HRX-OM-W069
Chapter 3 Serial communication
3.11
Explanation of function codes
HRL Series
3-14
3.11.2
Function code
:
06 Writing registers
Write data to assigned address.
■
Communication example
○
Slave Address : No.1
○
Write data to register 0042Ch
(The mode request indication)
Request message 010600420002
Field name
Example
(HEX)
ASCII mode
character data
RTU mode
binary data
Header
-
“
:
”
None
Slave Address
0x01
“0”,“1”
0x01
Function
0x06
“0”,“6”
0x06
Head address of specified
register
0x0042
“0”,“0”,“4”,“2”
0x00,0x42
Information written to 0042h
(Mode request)
0x0002
“0”,“0”,“0”,“2”
0x00,0x02
Checksum ASCII:LRC RTU:CRC
-
“B”,”5”
0xA8,0x1F
Trailer
-
CR/LF
None
-
Total
quantity of byte
17
8
Response message 010600420002
Field name
Example
(HEX)
ASCII mode
character data
RTU mode
binary data
Header
-
“
:
”
None
Slave Address
0x01
“0”,“1”
0x01
Function
0x06
“0”,“6”
0x06
Address of register to write
0x0042
“0”, “0”,“4”,“2”
0x00,0x42
Information of register to write
0x0002
“0”,“0”,“0”,“2”
0x00,0x02
Checksum ASCII:LRC RTU:CRC
-
“B”,“5”
0xA8,0x1F
Trailer
-
CR/LF
None
Total
quantity of byte
17
8
Содержание HRL100-A
Страница 10: ...HRX OM W069 Chapter 1 Read before using 1 4 Touch panel flow HRL Series 1 6...
Страница 55: ......