Skip to main content

Example - Ladder Diagram

CEND


The CEND instruction ends a scan program based on the execution condition.

Ladder Diagram Example


When the contacts, M0.0 and M0.2, are powered ON (1), the data registers, D0 and D1, increase every scan with the INC instruction.



When the contact, M0.1, is powered ON, the CEND instruction is energized and executed.
As a result, the data register, D1, terminates increasing.
The data register, D0, continues increasing.

CENDP


The CENDP one-shot instruction ends a scan program based on the execution condition.
Every time this instruction executes, it energizes the output only once.

Ladder Diagram Example


When the contacts, M0.0 and M0.2, are powered ON (1), the data registers, D0 and D1, increase every scan with the INC instruction.



When the contact, M0.1, is powered ON, the CENDP one-shot instruction is energized and executed.
As a result, the data register, D1, terminates increasing.
The data register, D0, continues increasing.