Example - Ladder Diagram
INITEND
The INITEND instruction defines the end of an hot or cold initialization program.
Ladder Diagram Example
This is the program in the COLD initialization program.
When the CPU is in RUN mode, the data registers, D0, and D1, increase every scan due to the INC instruction.
The contact, M0.0, is powered OFF (0). This means the initialization program will run forever until powered ON (1).
This is the program in the main scan program.
The data register, D2, is NOT increasing the main scan program since the initialization program has NOT ended.
When the contact, M0.0, is powered ON (1), the INITEND instruction executes.
The data registers, D0 and D1, no longer increase each scan.
Since the INIT end instruction was executed, the data register, D2 increases in the main scan program.