19 CC-LINK INSTRUCTIONS
19.8 Performing a Message Transmission to a Remote Device Station
1669
19
• These instructions performs a message transmission to a remote device station.
• The instructions can be executed to a remote device station, for example NZ2AW1C2AL, that supports the message
transmission function.
• The following figure shows how the G(P).RDMSG instruction operates during execution.
• The completion status of the G(P).RDMSG instruction can be checked with the completion device (d2) and the completion
status indication device (d2)+1.
The send data specified by (s2) is stored to the master station for the size specified by (s1)+2.
The master station sends data to the target station specified by (s1)+1.
Processing is performed for the data in the target station.
The master station receives a processing result from the target station.
The master station stores data in the device specified by (d1) and later, and the device specified by (d2) turns on.
• Completion device (d2)
This device turns on during END processing of the scan where the G(P).RDMSG 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).RDMSG 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).RDMSG instruction completes, and turns off during the
next END processing.
G(P).RDMSG
(s2)
(d1)
Ô
Ó
Õ
Ò
Ö
CPU module CC-Link master station
[Own station] [Target station]
Response message
Request message
Receive data
Send data
CC-Link remote device station
END0 0 END0ENDEND 0 END0
OFF
OFF
OFF
OFF
ON
ON
Sequence scan
G(P).RDMSG instruction
Completion device (d2)
1 scan
Completion of
the instruction
Completed successfully
Execution of the instruction
Completion status
indication device (d2)+1
Completed with an error