My first lamp
From a light switch at home to your first rung: a contact reads Switch, a coil writes Lamp, and you test it in the simulator.
- 0:28Close the circuit: closing the switch lets current flow
- 0:38From switch to lamp: input, PLC, output
- 0:48XIC reads the Switch bit: false at 0, true at 1
- 0:59OTE writes the Lamp bit: the output follows the rung condition
- 1:10Open rung 0: Edit, Edit rungs, double-click
- 1:20Insert XIC and enter Switch as the tag
- 1:28Insert OTE, enter Lamp and click Accept
- 1:37Click Run and open the Simulator tab
- 1:45Set Switch to 1: Lamp changes to 1