23
23 http : // www.kvcins.com
Response ( Slave ----> Master )
Error ( Slave ----> Master )
( Exception codes )
0x01 : Command code not supported.
0x02 : When the address of the requested data is different from the address that can be
transmitted by the unit.
0x03 : When the number of requested data is larger than the number that can be transmitted by the unit.
0x04 : When transmitted data is not treated correctly.
11-2-2-2 Function code 4 ( 0x04 ) : Read input registers
Request ( Master ----> Slave )
Response ( Slave ----> Master )
Error ( Slave ----> Master )
0x03 0x10 0x03 0xE8 0x03 0xE8 xx xx
Address
Respond
command
No. of
Data
First Data n th Data CRC 16
H byte L byte H byte L byte H byte L byte
0x01 0x83 xx xx xx
Address
Response
command
Exception code CRC 16
0x01 0x04 0x00 0x00 0x00 0x10 xx xx
Address Command
Starting address No. of Data CRC 16
H byte L byte H byte L byte H byte L byte
0x01 0x04 0x10 0x03 0xE8 0x03 0xE8 xx xx
Address
Response
command
No. of
Data
First Data n th Data CRC 16
H byte L byte H byte L byte H byte L byte
0x01 0x84 xx xx xx
Address
Response
command
Exception code CRC 16