Constant lighting control with LM2

Example: Constant lighting control with Logic Machine

Task

Dimm lights with values received from lighting sensor, only if the binary object ‘gate’ is 1. If ‘gate’ is 0, the program send 0 to output object.
Start dimming also if the object ‘gate’ changes from 0 to 1.Input: 2/1/1Gate: 2/1/2Output: 2/1/3