Fix tag paths to match Ignition tag tree exactly
- BCN → Beacon (not Solenoids) - SOL → Solenoid (not Solenoids) - Added: Chute, Tipper, Diverter, Extendo, Chute Enable, Package Release Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
cb94116a87
commit
eb0b346e1a
@ -136,13 +136,26 @@ function getIgnitionTagPath(label: string, mcm: string): string | null {
|
||||
if (/_JR\d*_PB$/i.test(label) || /_JR\d*$/i.test(label)) return `System/${mcm}/Station/Jam_Reset/${label}`;
|
||||
if (/_SS\d*_PB$/i.test(label)) return `System/${mcm}/Station/Start_Stop/${label}`;
|
||||
if (/_S\d*_PB$/i.test(label)) return `System/${mcm}/Station/Start/${label}`;
|
||||
// Solenoids / Beacons
|
||||
if (/_BCN\d*$/i.test(label)) return `System/${mcm}/Solenoids/${label}`;
|
||||
if (/_SOL\d*$/i.test(label)) return `System/${mcm}/Solenoids/${label}`;
|
||||
// Beacon
|
||||
if (/_BCN\d*$/i.test(label)) return `System/${mcm}/Beacon/${label}`;
|
||||
// Solenoid
|
||||
if (/_SOL\d*$/i.test(label)) return `System/${mcm}/Solenoid/${label}`;
|
||||
// Chute (by suffix)
|
||||
if (/_CHT\d*$/i.test(label)) return `System/${mcm}/Chute/Conveyance/${label}`;
|
||||
// Tipper
|
||||
if (/_TIP\d*$/i.test(label)) return `System/${mcm}/Tipper/${label}`;
|
||||
// Diverter
|
||||
if (/_DIV\d*$/i.test(label) || /_LS\d*$/i.test(label)) return `System/${mcm}/Diverter/${label}`;
|
||||
// Extendo
|
||||
if (/_EXT\d*$/i.test(label)) return `System/${mcm}/Extendo/${label}`;
|
||||
// Chute Enable
|
||||
if (/_EN\d*_PB$/i.test(label)) return `System/${mcm}/Station/Jam_Reset_Chute_Bank/${label}`;
|
||||
// Package Release
|
||||
if (/_PR\d*_PB$/i.test(label)) return `System/${mcm}/Station/Emergency_Pull_Cord/${label}`;
|
||||
// PDP
|
||||
if (/^PDP/i.test(label)) return `System/${mcm}/PDP/${label}`;
|
||||
// MCM
|
||||
if (/^MCM/i.test(label)) return null; // MCM itself has no tag path
|
||||
if (/^MCM/i.test(label)) return null;
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user