In the second stage, the program code is developed in the IEC programming language LD (Ladder Diagram) in the graphic editor. Since the code body worksheet of our LD_POU is already opened we can immediately start editing.
Creating an LD network
The video about this stage demonstrates how you can simply...
Insert a first LD network into the worksheet consisting of a contact (C000) and a coil (C001).
Insert one variable each for the contact and the coil and declare it with the property dialog. Both variables are assigned to I/Os of the PLC, i.e. they are declared as physically addressed variables.
Insert an instance of the timer function block TON (Timer On-Delay) into the LD code worksheet using the Edit Wizard. As for the variables before, the FB instance name is also declared via dialog during insertion.
Insert a constant as delay time at the preset input of the timer.
Insert a variable at the output of the timer and declare it at the same time.