609
9
9 Communication 9.4.3 Modbus Parameter Numbers and Data Addressing
g) Incorrect response frame
Incorrect response: slave address + (parameter number + 0 x 80) + error code +CRC code
No. Denition of Data
(Byte)
Number of
Bytes
Description
1 Slave address 1 The value ranges from 1 to 247, set by D8121.
2 Parameter number
+ 0x80
1 It indicates an incorrect parameter number.
3 Error code 1 The value ranges from 1 to 4.
4 CRC code 2 Upper bits are followed by lower bits.
2) Variable addressing
a) Coil addressing
Coil: Bit variables, indicated by 0 or 1. M, S, T, C, X, and Y variables are included.
Variable Head Address Number of Coils
M0 to M7679 0x0000 (0) 7680
M8000 to M8511 0x1F40 (8000) 512
SM0 to SM1023 0x2400 (9216) 1024
S0 to S4095 0xE000 (57344) 4096
T0 to T511 0xF000 (61440) 512
C0 to C255 0xF400 (62464) 256
X0 to X377 0xF800 (63488) 256
Y0 to Y377 0xFC00 (64512) 256
b) Register addressing
Register: 16-bit or 32-bit variables. D, T, and C0 to C199 are 16-bit variables; C200 to C255 are 32-bit
variables.
Variable Head Address
Number of
registers
Description
D0 to D8511 0 (0) 8512 16-bit register
SD0 to
SD1023
0x2400 1024 16-bit register
R0 to R32767 0x3000 32768 16-bit register
T0 to T511 0xF000 (61440) 512 16-bit register
C0 to C199 0xF400 (62464) 200 16-bit register
C200 to C255 0xF700 (63232) 56 32-bit register