HRX-OM-W069
Chapter 3 Serial communication
HRL Series
3.9
Function codes
3-9
d) Data
Depending on the function, the address and the number of the register, the value
of reading/writing are assigned.
e) CRC
CRC method.
Refer to
f )End
3.5 characters of silent interval indicates the end of a message.
3.9 Function codes
Table 3.9-1 shows function codes to read or write register. Refer to
"3.11 Explanation of function codes".
Table 3.9-1
Function codes
NO
Code
Name
Function
1
04(04h) read holding registers
Reading multiple registers
2
06(06h) preset single register
Writing registers
1
3
16(10h) preset multiple registers
Writing multiple registers
1 : Broadcast is not supported.
3.10
Checksum calculation method
3.10.1
LRC(ASCII)
LRC checks the content of the message other than [:] of START and
[CR][LF] of END. The sending side calculates and sets. The receiving
side calculates based on the received message, and compares the
calculation result with the received LRC. The received message is
deleted if the calculation result and received LRC do not match.
Consecutive 8 bits of the message are added, and the result without
carry (overflow) is converted to 2's complement.
Calculation example
Example) Change circulating fluid set temperature 23.4 ° C
Sending data
0106004000EA
○
Slave Address : No.1
○
Function : No.06
○
Writing address : 0040h
○
Writing data : 00EAh
Содержание HRL100-A
Страница 10: ...HRX OM W069 Chapter 1 Read before using 1 4 Touch panel flow HRL Series 1 6...
Страница 55: ......