70
3 DATA COMMUNICATION USING NONPROCEDURAL PROTOCOL
3.1 Receiving Data from Target Device
■Program example
The following shows the CH1 receive data clear program example using MOV instruction.
The dedicated instructions (OUTPUT/INPUT) is used for data transmission/reception.(Page 520 Dedicated Instructions)
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.bSts_UnitReady Module READY X1E
C24_1.bSts_WatchdogTimerError Watchdog timer error X1F
C24_1.stnCH1.bSet_Req_ReceptionRead CH1 Reception data read request X3
C24_1.stnCH1.bSts_ReceptionAbnormalDetection CH1 Reception abnormal detection X4
C24_1.stnCH1.uSet_Request_ReceiveDataClear_D CH1_Receive data clear request U0\G168
Label to be defined Define the global label as shown below.