EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-RJ71C24-R4 - Application Program for Data Reception Using a Combination that Does Not Specify 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...
310
15 DATA COMMUNICATIONS USING USER FRAMES
15.3 Program for Data Reception with User Frame
Application program for data reception using a combination that
does not specify the start frame
The following shows the program example when receiving data using a combination that does not specify 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 the 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) The unit is set to "Word" in the example.
Transparent code for receiving
specification
Designated 288 (120H) Specify as follows: 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)
Start frame No. designation
*1
No designation 174 to 177 (AEH to B1H)
Final frame No. designation
*1
Designated 178 to 181 (B2H to B5H)
User frame receiving method
designation
Method 0 8224 to 8227 (2020H to
2023H)
Method 1 dedicated receive end data
quantity designation
0H 8228 to 8231 (2024H to
2027H
Item User frame No. Registered code Registered data content
Start frame No. 1st 0H (none) 
2nd 0H (none) 
3rd 0H (none) 
4th 0H (none) 
Final frame No. 1st 419H 3BH, 04H ;, E0T
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