Sample program, 2 instructions – Omron SYSMAC CP CP1E-N@@D@-@ User Manual
Page 381
2-345
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Step I
n
stru
ctio
ns
2
SNXT/STE
P
• STEP(008) and SNXT(009) cannot be used inside of subroutines, interrupt programs, or block pro-
grams.
• Be sure that two steps are not executed during the same cycle.
• The instructions that cannot be used within step programs are listed in the following table.
Sample program
Function
Mnemonic
Name
Sequence Control Instructions
END(001)
END
IL(002)
INTERLOCK
ILC(003)
INTERLOCK CLEAR
JMP(004)
JUMP
JME(005)
JUMP END
CJP(510)
CONDITIONAL JUMP
Subroutine Instructions
SBN(092)
SUBROUTINE ENTRY
RET(093)
SUBROUTINE RETURN
Step (A) ladder program
Step (B) ladder program
Normal ladder program
CIO 0.00 turns ON, step W0.00 starts
Step W0.00 starts from the next instruction
Step W0.00
W0.00 turns OFF, W0.01 turns ON and step W0.01 starts
Step W0.01 starts from the next instruction
W0.01 turns OFF and dummy bit W30.0 turns ON
End of step programming area
Step W0.01
End of step prog
ramming area
STEP
W0.00
0.00
SNXT
W0.00
STEP
W0.01
0.01
SNXT
W0.01
STEP
0.02
SNXT
W30.0