![TREBING + HIMSTEDT SPI 3 Скачать руководство пользователя страница 40](http://html1.mh-extra.com/html/trebing-himstedt/spi-3/spi-3_manual_1154873040.webp)
Appendix
40
Trebing & Himstedt | SPI 3 | MODBUS RTU
Function 16: Preset Multiple Regs
Response with error code (Exception Response)
If the MODBUS slave generates an exception code, the MS bit in byte 2 is set to 1.
The exception code is used to indicate the following errors:
0x01
Invalid MODBUS function
0x02
Invalid MODBUS address
0x03
Invalid MODBUS data value
0x04
Slave device faulty
0x05
Acknowledge, slave cannot process data immediately
0x06
Slave busy, repeat the service later
Request to the slave
Slave response
Byte
Contents
Hex code (e.g.)
Contents
Hex code (e.g.)
Byte 1
Slave Address
11
Slave Address
11
Byte 2
Function
10
Function
10
Byte 3
Starting Address High
00
Starting Address High
00
Byte 4
Starting Address Low
01
Starting Address Low
01
Byte 5
No. of Registers High
00
No. of Registers High
00
Byte 6
No. of Registers Low
02
No. of Registers Low
02
Byte 7
Byte Count
04
–
–
Byte 8
Data High
00
–
–
Byte 9
Data Low
0A
–
–
Byte 10 Data High
01
–
–
Byte 11 Data Low
02
–
–
Request to the slave
Slave response
Byte
Contents
Hex code (e.g.)
Contents
Hex code (e.g.)
Byte 1
Slave Address
0A
Slave Address
0A
Byte 2
Function
01
Function
81
Byte 3
Starting Address High
04
Exception code
02
Byte 4
Starting Address Low
A1
–
–
Byte 5
No. of Coils High
00
–
–
Byte 6
No. of Coils Low
01
–
–