Lamp Follow
easy
Turns on a lamp while a push button is pressed and off when released.
What it teaches
Copy the input straight to the output. When the button is on, the lamp is on; when the button is off, the lamp is off. The simplest pattern — no memory, no timing.
Parameters
| Tag | Direction | Type | Default | Description |
|---|---|---|---|---|
| In_Button | Input | BOOL | 0 | Push button input |
| Out_Lamp | Output | BOOL | 0 | Lamp drive signal |
Required behavior
- Lamp output mirrors the push button input every scan.