332
16 TRANSPARENT CODES AND ADDITIONAL CODES
16.4 Data Communication Using Nonprocedural Protocol
Example of data reception
Program example
The following shows an example of storing received data in the data register.
For information on the module FB to be used, refer to the following manual.
MELSEC iQ-R Serial Communication Module Function Block Reference
Category Label name Description Device
Module label C24_1 Target module
C24_1.stnCH1.bSet_Req_ReceptionRead CH1 Reception data read request X3
C24_1.stnCH1.bSts_ReceptionAbnormalDetection CH1 Reception abnormal detection X4
Label to be defined Define the global label as shown below.
(0) Set the reception channel to the CH1 side.
Set the allowable number of data to be received.
Set the reception direction.
(55) Normal completion
(57) Abnormal completion