Implementing a 2-wire Start/Stop control with RTES

Variables

Digital Output : LIGHT

Digital Inputs : BUTTON

Rules

RULE LIGHT=LIGHT&BUTTON’!LIGHT’&BUTTON

Notes

BUTTON is a momentary contact. Press and release to turn LIGHT on, press and release to turn LIGHT off.

This circuit is known as "Flip-Flop" or "Exclusive-Or".