■Program example
• Program which sets 2 (Initial value) to SD797 and uses SM797 as an interlock when DP.DDWR (Number of blocks used: 2)
is executed.
M0
SM797
Instruction
execution
command
M1
SM797
Instruction
execution
command
• Program which sets 1 to SD797 and uses SM797 as an interlock condition when D(P).DDWR/D(P).DDRD is not executed.
SM402
At 1 scan
after RUN
M0
SM797
Instruction
execution
command
M1
SM797
Instruction
execution
command
DP.SFCS H3E1 K10
RST M0
MOVP
K10
DP.DDWR H3E1 D100 D0 W10 M100
RST M1
MOVP
K1
DP.SFCS H3E1 K10
RST
DP.SVST H3E1 "J1" K11 M100 D100
RST M1
Instruction
execution
command
D101
Instruction
execution
command
SD797
M0
Instruction
execution
command
Instruction
execution
command
2 MOTION DEDICATED PLC INSTRUCTION
2
87
2.3 Precautions