15. Communication Protocol
Node ID
0x01
Error Code
0x83
Exception Code
0x01 ~ 0x06
CRC Hi
-
CRC Lo
-
(2) Read Input Register (0x04)
Reads binary values of single register (16bit data) and continuousregister (16bit data unit).
Request
Function code
Starting Address
Quantity of Registers
Request OK
Function code
Starting Address
Quantity of Registers
Response not OK
Error code
Exception code
1Byte
2Byte
2 Bytes
1Byte
1Byte
N* x 2 Bytes
1Byte
1Byte
0x04
0x0000 to 0xFFFF
0x0000 to 0x007D
0x04
2 x N*
*N = Quantity of Input Registers
0x84
0x01 ~ 0x06
Example1) Reading the parameter value of DriveStatus Output 1(Address:
0x2121)Request
Node
ID
0x01
Function
0x04
Starting
Address Hi
0x21
Starting
Address Lo
0x21
Quantity of
Register Hi.
0x00
Quantity of
Register Lo
0x01
CRC Hi
0x6B
CRC Lo
0xFC
Request OK
Node
ID
Function
Byte Count
Register
Value Hi
Register
Value Lo
CRC Hi
CRC
Lo
0x01 0x04
0x02
0x04
0x99
0x7B
0x9A
- DriveStatus Output 1(Address: 0x2121) is 0b10010011001(0x0499): BRAKE, ZSPD, INPOS1,
INSPD, INPOS2 contact is output as high(Status 1).
15-11