User’s Manual
Rev1.0
Date:15/07/2015 User’s Manual
30
/
47
Function code 03 – Read register
Request
Response
01 : Address
01: Address
03 : Function code
03 : Function code
00 : Register address higher
04 : Quantity of bit
00 : Register address lower (display the address)
80 : Date 1
00 : Register number higher
04 : Date 2
02 : Register number lower
80 : Date 3
CRCL : CRC Parity code lower
80 : Date 4
CRCH
:
CRC parity code higher
CRCL : CRC Parity code lower
CRCH
:
CRC parity code higher
Note:
To read a float date, the quantity of the register addresses and their values have to be even,
or reponse will be error.
Function code 04 – Same as function code 03
Function code 06
– write one register
Request
Response
01 : Address
01: Address
06 : Function code
06 : Function code
00 : Register address higher
00 : Register address higher
01 : Register address lower (code setting address)
01 : Register address lower
00 : Value higher
00 : Value higher
04 : Value lower
04 : Value lower
CRCH
:
CRC parity code higher
CRCH
:
CRC parity code higher
CRCL : CRC Parity code lower
CRCL : CRC Parity code lower
Note:
Function code is only supported for writing short dater.
Function code 16
- write multi registers.
Request
Response
01 : Address
01: Address
10H : Function code
10H : Function code
00 : Register address higher
00 : Register address higher
01 : Register address lower (digital setting address)
01 : Register address lower
00 : Quantity of register higher
00 : Quantity of register higher
02 : Quantity of register lower
02 : Quantity of register lower
04 : Quantity of values
CRCH
:
CRC parity code higher
86h : Value 1
CRCL : CRC Parity code lower
00 : Value 2
00 : Value 3
48H: Value 4
CRCH
:
CRC parity code higher
CRCL : CRC Parity code lower