EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-RJ71C24-R4 - Application Program for Data Reception Using a Combination that Specifies the Start Frame

Mitsubishi Electric MELSEC iQ-RJ71C24-R4
574 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
15 DATA COMMUNICATIONS USING USER FRAMES
15.3 Program for Data Reception with User Frame
303
15
Application program for data reception using a combination that
specifies the start frame
The following shows the program example when receiving data using a combination that specifies the start frame.
Reception program example
Data reception using a user frame set with the following conditions is shown below.
C24 interface used for communication with target device
CH1 side RS-232 interface of C24
Parameter settings
For other than the following items, use default values.
*1 It indicates the registered contents of the user frame No. specified to the start and final frame No., respectively.
Registration contents in user frame
Program example
The following shows example of data reception with a user frame.
Item Setting content Buffer memory address
to store registration value
Remarks
Word/byte units designation Word/byte 150(96H) Set to either one according to the program example.
Transparent code for receiving
specification
Designated/No
designation
288(120H) When 'Designated', Additional code: 10H (DLE)
Transparent code: 02H (STX)
ASCII-BIN conversion designation Do not convert 289(121H)
Receive end data quantity 6 164 (A4H)
Receive end code No designation 165 (A5H)
User frame use enable/disable
designation
Use 173 (ADH) Refer to the illustrations provided in this section.
Start frame No. designation
Final frame No. designation
*1
Designated 174 to 177 (AEH to B5H)
User frame receiving method
designation
Method 0/Method 1 8224 to 8227 (2020H to 2023H)
Method 1 dedicated receive end data
quantity designation
0H to FFFFH 8228 to 8231 (2024H to 2027H)
Item User frame No. Registered code Registered data content
Start frame No. 1st 3E8H 02H, 51H, 20H, 0AH, 3BH STX, Q, (SP), Station No. of target
device, ;
2nd 3E9H 02H, 41H, 3BH STX, A, ;
3rd 6H 06H ACK
4th 15H 15H NAK
Final frame No. 1st 41BH/8005H 03H, FFH, F0H ETX, Sum check code
2nd 0H (none) 
3rd 0H (none) 
4th 0H (none) 
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

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-RJ71C24-R4

Related product manuals