Skip to main content

End Interrupt Program

Instruction Parameters​

Supported PLC Series​

XPnA/1RXPnBXPnEXPnFCP3A/B/P/U
CP4A~D/U
CPnECPnFBPPLC-S
✓✓✓✓✓✓✓✓✓

Supported Data Registers​

MXYKLFTCSZRQD@DConstant
---------------

Supported Flags​

FlagBitSupport
ErrorF11.0-
ZeroF11.1-
CarryF11.2-

Number of Steps​

Steps
1

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.

Examples​