Instruction Parameters
Supported PLC Series
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
Notice
Instruction Behavior
The IRET instruction behaves as follows:
- The IRET instruction ends the periodic interrupt program.
- After executing the IRET instruction, the process returns to the scan program.
- The IRET instruction can only be used in the periodic interrupt programs.
- A compile error is thrown if the IRET instruction is used in other programs.
Ladder Diagram Examples
IRET
The IRET instruction defines the end of a periodic interrupt program.