Specifications

Table Of Contents
3 - 13
3.2.4 Write to DDWR Q motion CPU device command
This command is used to directly write the device data in the Q motion CPU to the Q-
PLC CPU.
(1) Setting the number of data points to be written
Set the number of data points to be written, indirectly.
To write the data for 10 points from D0 of local machine (No. 1 machine) to
D100 and following of No. 2 machine, it is executed as follows.
H3E1 D30 D0 D100 M0
MOV
D31
K10
SP.DDWR
Setting the number of
write data
(2) Execution timing
The data of designated device is written to the Q motion CPU at the rising edge
(OFF ON) of the DDWR command execution command.
[Command [Execution
symbol] condition]
Command
SP.DDWR (n1) (S1) (S2) (D1) (D2)
Head input/output No. of target machi
CPU
÷
16
No. 2 machine: 3E1H
No. 3 machine: 3E2H
No. 4 machine: 3E3H
SP.DDWR
S.DDWR
Command
S.DDWR (n1) (S1) (S2) (D1) (D2)
Device to be turned on by one scan upon
completion of comm
Head device of local machine, to which control data is stor
(S1+0): Status at completion of command is stor
0: Non error
Other than 0: Error c
(S1+1): The number of data to be written is set.
Setting range: 1 to 16
Head device of target machine No., to whic
data to be written is stored
Head device of local machine to which data to be writt
is stored
Example
END
Sequence progra
CPUn interrupt accept fla
(buffer memory at
command accep
destination)
S.DDWR comman
DDWR command
completion device
Status display device at
completion of DDWR
command
END
END END
OFF
OFF
OFF
OFF
ON
ON
DDWR command accep
ON
ON
OFF
Abnormal
completion
Normal
completion
DDWR command
completion (with response)