Description: Selects the illuminated lamp during desktop component refresh. The lamps are first switched off, then the result selects one lamp and its mode.
Arguments: No event-specific arguments. Argument_EventName is OnGetValue; Argument_SenderName and Argument_SenderID identify the component.
Result: Return an integer state code:
| Result | State |
|---|---|
| 0 | All lamps off |
| 1 | Red |
| 2 | Yellow |
| 3 | Green |
| 4 | Blinking red |
| 5 | Blinking yellow |
| 6 | Blinking green |
Fallback: If the formula is missing or calculation fails, a non-Null linked Integer or Number entry supplies the state. Other integer codes select no lamp. Return an explicit numeric code: a successful formula returning Null or a nonnumeric value has no dedicated validation or fallback.
Availability: The formula runs only on desktop. Web uses the linked Number entry (etNumber) directly and supports codes 1, 2 and 3 for steady red, yellow and green; other numeric codes switch all lamps off. Linked Integer entries and blinking states are not handled by that web refresh path.
Examples (desktop): Steady green:
Result := 3;
Blinking red:
Result := 4;
Switch all lamps off:
Result := 0;