![Toho Electronics TTX-800 Скачать руководство пользователя страница 10](http://html1.mh-extra.com/html/toho-electronics/ttx-800/ttx-800_operation-manual_1124823010.webp)
- 10 -
3.3.3
Explanation of MODBUS RTU Codes
■
The following codes from a) Slave Address, b) Function Code up to h) Error Code will be expressed in 8-bit binary:
a) Slave Address
This is the address of the device that will be communicated by the upper computer (this product).
The address in the response message from this product indicates the source of the response message.
b) Function Code
Enter the code 03H or 10H.
・
03H: If the data is to be read from this product
・
10H: If the data is to be written or saved into this product
c) Register Address
Specifies the position of data to be read or written with two bytes.
See
“
6. List of Identifiers (Codes)
”
for the address of each command.
d) Number of Registers
Specifies the number of registers that write.
Since the number of registers of this product is fixed to 2, set it to
“
0002H
.”
e) CRC-16
This is an error checking code for the detection of a possible error in the message. It sends CRC-16 (Cyclic Redundancy
Code).
The generating polynomial of CRC-16 that is used in this product is X
16
+ X
15
+ X
2
+ 1.
The lower byte before the upper byte is to be attached at the end of the message.
f) Number of Bytes
Specifies the number of registers that read and write x 2.
Since the number of registers of this product is 2 (fixed), set
“
04H
.”
g) Data Section
Specifies the data to be written into the register. Data is four bytes (fixed).
If the data contains a decimal point, set the numeric value that ignores the decimal point.
Data that is enclosed in parentheses is the value that will be used in the actual message to be sent. See
“
3.3.1
Structure of the MODBUS RTU Request Message (Data Transmission from Upper Computer to This Product)
”
for details.
■
In case of numerical data
Contents of Communication
HEX Data
PV = 1200.0 (
℃
)
00002EE0h (2EE00000)
SV = -10.00(
℃
)
FFFFFC18h (FC18FFFF)
■
ASCII code will be written in case of character data (□ means space).
Contents of Communication
HEX Data
Priority Screen 0-1 =
☐
INP
20494E50h (4E502049)
Priority Screen 0-2 =
☐☐
P1
20205031h (50312020)