296
15 DATA COMMUNICATIONS USING USER FRAMES
15.3 Program for Data Reception with User Frame
■Registration contents in user frame
Program example when setting with Engineering tool
■Program example
For information on the module FB to be used, refer to the following manual.
MELSEC iQ-R Serial Communication Module Function Block Reference
User frame No. Registered code Registered data content
3E8H/8001H 02H, 51H, 20H, 0AH, 3BH STX, Q, (SP), Station No. of target device, ;
3E9H/8002H 02H, 41H, 3BH STX, A, ;
6H 06H ACK
15H 15H NAK
41BH/8005H 03H, FFH, F0H ETX, Sum check code
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
C24_1.stnCH1.uResult_ReceiveUserFrame_D CH1_Receive user frame (nth) U0\G603
Label to be defined Define the global label as shown below.