19 CC-LINK INSTRUCTIONS
19.3 Reading Data from the Buffer Memory of the Specified Intelligent Device Station
1653
19
• This instruction automatically performs handshake with the specified intelligent device station and reads data from its buffer
memory.
• The instruction can be executed, from the master station, for an intelligent device station with a handshake signal (e.g.
AJ65BT-R2N).
• The following figure shows how the G(P).RIRCV instruction operates during execution.
• The completion status of the G(P).RIRCV instruction can be checked with the completion device (d2) and the completion
status indication device (d2)+1.
• The monitoring time and the number of retries can be set with the following link special registers (SWs).
• The G(P).RIRCV instruction can be concurrently executed for two or more intelligent device stations. Two or more
dedicated instructions, including those other than G(P).RIRD, cannot be concurrently executed for a single station. If the
next dedicated instruction is issued before completion of the preceding one that has started, the next one will be ignored.
Create the program so that the next dedicated instruction will start after the completion device turns on, because
processing of a dedicated instruction takes several scans until its completion.
A request is issued to read data from the buffer memory address specified by (s1)+3 that is included in the station specified by (s1)+1.
The remote input (RX) specified by (s2)+1 that is in the station specified by (s1)+1 is monitored.
Turning on the remote input (RX) causes the master station to read the data from the buffer memory of the target station. The read data is stored in the
receive buffer of the master station.
The master station turns on the remote output (RY) specified by (s2)+0. It turns off the remote output (RY) specified by (s2)+0 by turning on and off the
remote output (RX) specified by (s2)+1.
The data read from the target station is stored in the device specified by (d1) and later, and the device specified by (d2) is turned on.
• Completion device (d2)
This device turns on during END processing of the scan where the G(P).RIRCV instruction completes, and turns off during the next END processing.
• Completion status indication device (d2)+1
This device turns on or off depending on the completion status of the G(P).RIRCV instruction.
When completed successfully: The device remains off.
When completed with an error: The device turns on during END processing of the scan where the G(P).RIRCV instruction completes, and turns off during the
next END processing.
• Monitoring time setting (SW0009)
• Setting of the number of retries for dedicated instruction (SW000B)
Error code
((s1)+0)
Description
4000H to 4FFFH MELSEC iQ-R CPU Module User's Manual (Application)
B000H to BFFFH MELSEC iQ-R CC-Link System Master/Local Module User's Manual (Application)
G(P).RIRCV
(d1)
(d2)
Ô
Ó
Õ
Ö
Ò
RX
RY
RX
RY
Receive buffer Buffer memory
CPU module
CC-Link intelligent device station
CC-Link master station
[Target station][Own station]