Instruction Parameters
Supported PLC Series
| PLC-AES | PLC-FB | PLC-ES |
|---|---|---|
| ✓ | ✓ | ✓ |
Supported Data Registers
| M | X | Y | K | L | F | T | C | S | Z | R | Q | D | @D | Constant |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
Supported Flags
| Flag | Bit | Support |
|---|---|---|
| Error | F11.0 | – |
| Zero | F11.1 | – |
| Carry | F11.2 | – |
Number of Steps
| Steps |
|---|
| 1 |
Notice
Notice
Compile errors occur under the following conditions:
- When the CEND or CENDP instruction is the only termination instruction of the program.
Instruction Behavior
The CEND and CENDP instructions behave as follows:
- The CEND and CENDP instructions terminate a scan program when the execution condition is met.
- The CEND and CENDP instructions can be located anywhere, including instructions which should make a pair.
- When the CEND or CENDP instruction is executed, instructions located after the CEND or CENDP instruction are NOT executed.
- The difference between the CEND/CENDP and the END instruction is the existence of an execution condition.
- Even though the CEND or CENDP instruction exist, the END must be located at the end of every scan program.
- A program containing the CEND or CENDP instruction must include the END instruction.
Ladder Diagram Examples
CEND

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

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.

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.
