Stp: step ste: step end – KEYENCE Visual KV Series User Manual
Page 138

2.4 Instruction Details
3-114
2
Chapter 2 Instructions
When 1000 is OFF,
steps 1) through 3) are
not executed.
1000
STP
STP
1001
STE
STE
1)
2)
3)
4)
Example
Coding
Description
•
When 1000 is ON, 0500 turns ON/OFF as soon as 0001 turns ON/OFF.
When 1000 is OFF, 0500 remains OFF after 0001 turns ON. When 0001 and
0500 are ON, 0500 remains ON after 0001 turns OFF.
•
The program step specified with
STP-STE instructions are ex-
ecuted when the STP operand
relay is ON. When the operand
relay is OFF, the program
execution jumps to STE instruc-
tion. (Fig 1).
•
STP-STE instructions can be
nested up to 8 levels deep as
shown in Fig. 2. When 1000 is
OFF, steps 1) through 3) are not
executed. Control jumps to the
STE instruction just above step
4), then step 4) is executed.
When 1000 and 1001 are ON,
steps 1) through 3) are executed
in that order. When 1000 is ON
and 1001 is OFF, steps 1), 3),
and 4) are executed in that
order, while step 2) is left unex-
ecuted.
Note 1: STP/STE operand relay Nos. cannot be duplicated in a program.
Note 2: When an STP operand turns OFF during program execution between STP
and STE instructions, the state of the instructions between STP and STE are re-
tained.
Note 3: The scan time is not affected by any instructions between STP and STE
which are not executed.
STP: Step
STE: Step End
Executes instructions between STP and
STE when operand relay is ON.
Used with STP to make a program step.
When 1000 is OFF,
A is not executed.
LDB
4
LDB
4
ANB
5
ORL
3
STE
STP
nnnn
FUN
FUN
STP
1000
STE
0001
0500
0000
1000
Line No.
Instruction
Operand
0000
LD
0000
0001
OUT
1000
0002
STP
1000
0003
LD
0001
0004
OUT
0500
0005
STE
1000
STP
STE
A
B
:
:
Fig. 1
Fig. 2
STP / STE
KVNKA Chap 02_4bP.p65
08.3.11, 0:00 PM
114