Two-Button Lamp
easy
Turns on a lamp only when both push buttons are pressed simultaneously.
What it teaches
Turn on the lamp only when both buttons are pressed at the same time. The 'two-hand safety' interlock on industrial presses uses the same idea.
Parameters
| Tag | Direction | Type | Default | Description |
|---|---|---|---|---|
| In_Button1 | Input | BOOL | 0 | First push button |
| In_Button2 | Input | BOOL | 0 | Second push button |
| Out_Lamp | Output | BOOL | 0 | Lamp drive signal |
Required behavior
- The Out_Lamp is active (1) when both In_Button1 and In_Button2 are active (1).
- The Out_Lamp is inactive (0) when either In_Button1 or In_Button2 is inactive (0).