Specifications

Table Of Contents
3 - 11
3.2.3 Read from DDRD Q motion CPU device command
The command is used to directly read the device data in the Q motion CPU with Q-
PLC CPU.
(1) Setting the number of data points to be read
Set the number of data points to be read indirectly.
To read the data for 10 points from D0 of No. 2 machine to D100 and following
of local machine (No. 1 machine), it is executed as follows.
H3E1 D50 D0 D100 M0
MOV
D51
K10
SP.DDRD
Setting the number of
read data
(2) Execution timing
The data of designated device is read to the Q motion CPU at the rising edge
(OFF ON) of the DDRD command execution command.
[Command [Execution
symbol] condition]
Command
SP.DDRD (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.DDRD
S.DDRD
Command
S.DDRD (n1) (S1) (S2) (D1) (D2)
Device to be turned on by one scan upon
completion of comm
Head device of local machine, to which data to be read is
stored
Head device of object machine to which data to be read is stored
Head device of local machine, to which control data is stored
(S1+0): Status at completion of command is stor
0: Non error
Other than 0: Error code
(S1+1): The number of data to be read is set.
Setting range: 1 to 16
Example
END
Sequence progra
CPUn interrupt accept fla
(buffer memory at
command accep
destination)
S.DDRD command
DDRD command
completion device
Status display device at
completion of DDRD
command
END
END END
OFF
OFF
OFF
OFF
ON
ON
DDRD command accept
ON
ON
OFF
Abnormal
completion
Normal
completion
DDRD command
completion (with response)