9 MULTIPLE CPU DEDICATED INSTRUCTIONS
9.1 Writing to the CPU Shared Memory of Host CPU
853
9
■DTO
• Writes device data of words (S) to (n32) to the CPU shared memory address specified by n2 of the host CPU module or
later address.
• When a constant is specified to (S), writes the same data (value specified to (S)) to the area of (n32) words from the
specified CPU shared memory.
• No processing is performed when the number of write points is 0.
• The number of data that can be written varies depending on the target CPU module.
Writing data to CPU shared memory can be performed using the intelligent function module device.
For intelligent function module device, refer to the User's Manual (Function Explanation, Program
Fundamentals) for the CPU module used.
• In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
CPU module Number of write points
Basic model QCPU 1 to 160
Universal model QCPU 1 to 7168
Error
code
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
2110 No CPU module is installed at the position specified for the head I/O number
of the CPU module.
4101 When the number of write points (n3) is outside the specified range of the
setting data.
When the CPU shared memory address (n2) of the write destination host
CPU + the number of write points (n3) exceeds the CPU shared memory
range.
When the head number of the devices (S) where the data to be written is
stored + the number of write points (n3) exceeds the device range.
When the head of CPU shared memory address (n2) of the write destination
host CPU is outside the allowable range.
4111 When the head of CPU shared memory address (n2) of the write destination
host CPU is an invalid value.
4112 When the I/O number specified in (n1) is other than that of the host CPU
(Exclude the case of when the multiple CPU high speed transmission area of
other CPU is used.)
Host CPU
Device memory
CPU shared memory
of host CPU (n1)
Writes the
data of (n3 2)
words
n3 2
n2
S
Constant
CPU shared memory
of host CPU (n1)
n2
S
5
5
5
5
(n3 2)
words
5
(When "5" is designated
for )
S
Writes the same
data to the area
of (n3 2) words