← Boolean Logic

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

TagDirectionTypeDefaultDescription
In_Button1InputBOOL0First push button
In_Button2InputBOOL0Second push button
Out_LampOutputBOOL0Lamp drive signal

Required behavior