Repository navigation
Behaviour State Lamp
Published from
_docs/reference/state-lamp.md— edit it there, not here. Changes made in the wiki are overwritten on the next sync.
The indication contract for H_SignalTower and the H_ControlPanel button lamps: which lamp is on,
and whether it is solid or flashing, for every PackML state.
This file is curated, not generated. It once lived under context/, which is the one place it
could not survive: that directory is rebuilt wholesale from the twin and anything the build did not
write is deleted. It lives here instead, alongside the other hand-written references, where the
never-hand-edit rule does not apply.
S — solid colour. F — flashing.
| Condition / Indication | Aborting | Clearing | Aborted | Completed | Stopped | Stopping | Resetting | Idle | Starting | Execute | Completing | Holding | Held (No Production) | Unholding | Suspending | Suspended | Unsuspending | Output |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Abnormal Stop | F | F | F | Red Lamp Flashing | ||||||||||||||
| Controlled Stop | S | S | S | S | Red Lamp Solid | |||||||||||||
| Starved Upstream | F | F | Amber Lamp Flashing | |||||||||||||||
| Blocked Downstream | S | S | Amber Lamp Solid | |||||||||||||||
| Low Material | F | F | F | F | F | F | F | F | F | F | F | F | F | F | F | Blue Lamp Flashing | ||
| Material Exhausted | S | S | Blue Lamp Solid | |||||||||||||||
| Ready to Start | F | Green Lamp Flashing | ||||||||||||||||
| Running | S | S | S | S | S | Green Lamp Solid | ||||||||||||
| Starting / Restarting | F | F | F | Horn | ||||||||||||||
| Ready to Start | F | Start Button Flashing | ||||||||||||||||
| Running | S | S | S | S | S | S | S | Start Button Solid | ||||||||||
| Ready to Reset | F | F | F | Reset Button Flashing |
Two translations are needed before this becomes ST, and both are easy to get wrong:
-
Completedhere isCompletein the PLC. This project runs SPT V3.9, where the state isE_PMLState.ePMLState_Complete;Completedis the V4 spelling and occurs 0 times in the shipped binary. Seespt-framework.md. - The rows are independent conditions, not a priority ladder. Red comes from the state, amber from starvation/blocking, blue from material and green from the state. Two lamps can be lit at once — Low Material is flagged as flashing blue across almost every state, including the ones that also light red or green.
| Row | Status |
|---|---|
| Abnormal Stop, Controlled Stop, Ready to Start, Running |
implemented — driven from the machine's CurrentState
|
| Start Button Flashing / Solid, Reset Button Flashing | implemented — panel lamp bits, same flash phase |
| Starved Upstream, Blocked Downstream | input exposed, never TRUE — no starvation or blocking source exists in the machine yet |
| Low Material, Material Exhausted | input exposed, never TRUE — there is no material model |
| Horn | not implemented — the twin carries no horn device |
The unimplemented rows are present as BOOL inputs on FB_SignalTower defaulting FALSE, so the
table can be completed later without touching the lamp logic.
Verified 2026-08-20 against the live PanelSampler._components lists:
| Symbol | Bits |
|---|---|
H_SignalTower ControlData
|
0 RED, 1 YELLOW, 2 BLUE, 3 GREEN |
H_ControlPanel StatusData (pressed) / ControlData (lamp) |
0 START, 1 RESET, 2 STOP, 3 CLEAR, 4 ABORT, 5 PRODUCTION, 6 MAINTANANCE, 7 MANUAL |
Note the tower has four lamps, not three, and GREEN is bit 3. The twin's authored prose said three lamps with GREEN at bit 2 until it was corrected on 2026-08-20.
-
spt-framework.md— the V3.9 ⇄ V4 differences, including theComplete/Completedsplit -
../context/fg-system.md— the devices themselves
Generated from DT_PSA_OPCV by _workflow/tools/build_wiki.py — 39 pages. Edit the source there; changes made here are overwritten.
Getting started
- Home
- Setup
- Using-The-Application
- How-It-Works
- PLC-Connectivity
- Engineering-Workflow
- Machine-Description
- Glossary
The machine
- Machine
- Machine-PLC-Symbols
- Machine-Provenance
- Machine-FG_01
- Machine-FG_02
- Machine-FG_03
- Machine-FG_04
- Machine-FG_05
- Machine-FG_System
- Machine-FG_Transport
Behaviour
- Behaviour-FG_01
- Behaviour-FG_02
- Behaviour-FG_03
- Behaviour-FG_04
- Behaviour-FG_05
- Behaviour-FG_System-Safety
- Behaviour-Gripper-Station-Reset
- Behaviour-State-Lamp
- Behaviour-Transport
Device types
- Device-Button
- Device-ControlBunker
- Device-Cylinder
- Device-DataReader
- Device-DrivePosition
- Device-DriveSimple
- Device-Lamp
- Device-LinkByte
- Device-Lock
- Device-PanelSampler
- Device-SensorBinary
- Device-SignalBinary
Control platforms
- Beckhoff TwinCAT 3
- Siemens TIA Portal — no wiki yet