Skip to main content

Stop Program Execution

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

Notice

Compile errors occur under the following conditions:

  • The STOP instruction is located in Interrupt Program, Subroutine Program, or the FOR ~ NEXT instructions.
Instruction Behavior

The STOP instruction behaves as follows:

  • When the execution condition of the STOP instruction is powered ON (1), the STOP instruction resets the output, Y, and stops the PLC process.
  • To restart the PLC process, change the RUN/STOP key switch from RUN→STOP→RUN.
  • The STOP instruction should not be located in an Interrupt Program, Subroutine Program, or the FOR ~ NEXT instructions.
  • If the STOP instruction is executed, it operates the same as changing the RUN/STOP key switch from RUN to STOP.
Operation Behavior

Operation of the STOP instruction according to the PLC:

  • When the STOP instruction is operated with the CPU type such as BP, XPnA1R, CP3/A/B/P/U, and P4A~D/U:
    • All scan programs are executed and then the CPU mode changes.
  • When the STOP instruction is operated with the CPU type such as PLC-S, XPnB/E/F, and CPnE/F:
    • The scan program that includes the STOP instruction is executed until the END instruction and then the CPU mode changes, and no other scan programs are executed.

Examples