9-17
FROM(P),DFRO(P)
9
7
7
7
7
7
7
7
9.2 Reading from the CPU Shared Memory of another CPU
9.2.1 Reading from Other CPU Shared Memory (FROM(P), DFRO(P))
Read of data from the CPU shared memory can also be performed using the
intelligent function module devices.
For intelligent function module device, refer to the QnUCPU User's Manual
(Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU
User's Manual (Function Explanation, Program Fundamentals).
Operation Error
In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an
error code is stored into SD0.
(1) When the specified data is outside the following range. (Error code: 4101)
• The head address of the CPU shared memory (n2) from which read will be performed is
outside the CPU shared memory range.
• The address of the CPU shared memory (n2) from which data is read plus the number of
read points (n3) is outside the CPU shared memory range.
• The read data storage device number (D) plus the number of read points (n3) is outside
the specified device range.
(2) The CPU module does not exist in the position specified by the CPU module head I/O
number. (Error code: 2110)
(3) When the head of read CPU shared memory address (n2) is an invalid value.
(4097 to 9999) (Error code: 4101)
Program Example
(1) The following program stores data of 10 points from address 800
H
of the CPU shared
memory of CPU No. 2. into the area starting from D0 when X0 is turned ON.
[Ladder Mode] [List Mode]
Remark
The n1 is specified by the first 3 digits of the hexadecimal 4digits which represent
the head I/O number of the slot mounted to the CPU module.
The QCPU provides automatic interlocks for the FROM and TO instructions.
CPU Slot Slot 0 Slot 1 Slot 2
Head I/O number 3E00 3E10 3E20 3E30
n1 3E0 3E1 3E2 3E3
Step
Instruction
Device