EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Number of Data Bytes

Mitsubishi Electric MELSEC iQ-R Series
498 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...
4 MESSAGES OF SERIAL COMMUNICATION MODULE
4.3 Details of Setting Data
35
4
Control code used in a message (format 5) in binary code
The control code used for a message in binary code (format 5) is shown in the table below.
Additional code (10H)
The additional code is added to distinguish the data when the control code DLE (10H) is the same as the setting data in the
frame 5.
When '10H' is included in the data from "Number of data bytes" and "Request data" in the request message, the additional
code '10H' is added in front of the data.
When '10H' is included in the data from "Number of data bytes" and "Response data" in the response message, the additional
code '10H' is added.
('10H' is transmitted as '10H' + '10H'.)
Calculate the following value except for the additional code.
Number of data bytes (setting item of format 5)
Sum check code
Number of data bytes
A number of data bytes indicates the total number of bytes from the frame ID No. to control code.
Range
Calculate the data in the range from frame ID No. before DLE (10H) except for the additional code. (Page 35 Additional
code (10H))
Setting method
Set the data in binary code (format 5) at data communication.
Send 2-byte numerical value from the lower byte (L: bits 0 to 7).
Ex.
Response message (Normal completion: Response data)
Frame ID No.: 1 byte
Access route: 7 byte
Response ID code, normal completion code: 4 bytes
Response data: 2 bytes + additional code (10H) 1 byte
Number of data bytes = 1 + 7 + 4 + 2 = 14 (0EH)
Symbol name Description Code (hexadecimal)
STX Start of Text 02H
ETX End of Text 03H
DLE Data Link Escape 10H
DLE
10
H
STX
02
H
DLE
10
H
ETX
03
H
F8
H
Frame
ID No.
Control codeControl code
Number of
data bytes
Sum check code
Specify the number of
bytes in this range.
DLE
10H
STX
02H
DLE
10H
ETX
03H
F8H FFFFH0E00H 0000H 001010H
Frame
ID No.
Access route Response
ID code
Normal
completion
code
Response
data
Number of
data bytes
Control codeControl code
Sum check code
( 7 bytes )
Specify the number of bytes in this range.

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals