Libraries
9.2 Overview of Modbus communication
S7-200 SMART
System Manual, V2.3, 07/2017, A5E03822230-AF
475
9.2.2
Modbus read and write functions
The Modbus RTU master instructions utilize the Modbus functions shown below to read or
write a specific Modbus address. The Modbus RTU slave device must support the
appropriate Modbus function to read or write a particular Modbus address.
Table 9- 2
Required Modbus slave function support
Modbus address
Read or write
Modbus slave function required
00001 – 09999 discrete outputs
Read
Function 1
Write
Function 5 for a single output point
Function 15 for multiple output points
10001 – 19999 discrete inputs
Read
Function 2
Write
not possible
30001 – 39999 input registers
Read
Function 4
Write
not possible
40001 – 49999 holding registers
400001 - 465535
Read
Function 3
Write
Function 6 for a single register
Function 16 for multiple registers
Modbus message length
The S7-200 SMART CPU supports Modbus messages with up to 240 bytes (1920 bits or
120 registers) of data per message. Some slave devices might support fewer than 240 bytes
of data
Содержание SIMATIC S7-200
Страница 30: ...Product overview 1 7 Programming software S7 200 SMART 30 System Manual V2 3 07 2017 A5E03822230 AF ...
Страница 267: ...Program instructions 7 6 Counters S7 200 SMART System Manual V2 3 07 2017 A5E03822230 AF 267 HSC modes 3 and 4 ...
Страница 394: ...Program instructions 7 18 Subroutine S7 200 SMART 394 System Manual V2 3 07 2017 A5E03822230 AF ...
Страница 425: ...Communication 8 5 PROFIBUS S7 200 SMART System Manual V2 3 07 2017 A5E03822230 AF 425 ...
Страница 786: ...Technical specifications A 11 S7 200 SMART cables S7 200 SMART 786 System Manual V2 3 07 2017 A5E03822230 AF ...
Страница 798: ...Error codes C 4 PLC fatal error codes S7 200 SMART 798 System Manual V2 3 07 2017 A5E03822230 AF ...
Страница 848: ...Ordering information F 6 Human Machine Interface devices S7 200 SMART 848 System Manual V2 3 07 2017 A5E03822230 AF ...