SIMATIC Instructions
9-145
S7-200 Programmable Controller System Manual
A5E00066097-02
9.14 SIMATIC Program Control Instructions
Conditional End
The Conditional END instruction terminates the main
user program based upon the condition of the preceding
logic.
Operands: None
Data Types: None
Note
You can use the Conditional END instruction in the main program, but you cannot
use it in either subroutines or interrupt routines.
Note
STEP 7-Micro/WIN 32 automatically adds an unconditional end to the main user
program.
Stop
The STOP instruction terminates the execution of your
program by causing a transition of the CPU from RUN to
STOP mode.
Operands: None
If the STOP instruction is executed in an interrupt
routine, the interrupt routine is terminated immediately,
and all pending interrupts are ignored. Remaining actions
in the current scan cycle are completed, including
execution of the main user program, and the transition
from RUN to STOP mode is made at the end of the
current scan.
L
A
D
S
T
L
END
END
F
B
D
END
222 224
✓✓✓
221 226
✓
L
A
D
S
T
L
STOP
STOP
F
B
D
STOP
222 224
✓
✓
221
✓
226
✓