3 - 81
3 MOTION DEDICATED PLC INSTRUCTION
(b) Method to execute after data is written by D(P).DDWR instruction
Write the data from the PLC CPU to the Motion CPU by D(P).DDWR
instruction, and then it can be utilized for Motion dedicated PLC instruction
execution.
[Program example]
Sequence program (PLC CPU side)
Program which starts the servo program (positioning) by DP.SVST instruction after data is
written to D3000 to D3002 of the Motion CPU (CPU No.2) from the PLC CPU (CPU No.1) by
DP.DDWR.
RST M0
Instruction
execution
command
U3E1
\G516.0
Start accept
flag of CPU
No.2(Axis 1)
K 10: Real
1 INC-1
Axis 1, D3000 m
Speed D3002 mm/min
Servo program (Motion CPU side)
DP.SVST H3E1 "J1" K10 M100 D100
M0
Instruction
execution
command
DMOVP K10000 D0
Servo program
K10 position
command
DMOVP K100000 D2
Servo program
K10 speed
command
MOVP K4 D51
Number of
writing data
points
DP.DDWR H3E1 D50 D0 D3000 M50