Libraries
9.2 Overview of Modbus communication
S7-200 SMART
System Manual, V2.3, 07/2017, A5E03822230-AF
473
9.2
Overview of Modbus communication
STEP 7-Micro/WIN SMART and the S7-200 SMART CPUs make communicating to Modbus
devices easier by including pre-configured subroutines and interrupt routines for Modbus
RTU communication through the serial ports of the CPUs.
9.2.1
Modbus addressing
Modbus addresses are five-to-six digit numbers that indicate the data type as well as the
address value.
Modbus RTU master addressing
Modbus RTU master instructions map the address to the correct functions to send to the
slave device. (The address corresponds to the Addr input parameter of the
MBUS_MSG/MB_MSG2 (Page 483) instruction.) The Modbus address definitions are as
follows:
●
00001 to 09999 are discrete outputs (coils)
●
10001 to 19999 are discrete inputs (contacts)
●
30001 to 39999 are input registers (generally analog inputs)
●
(40001 to 49999) and (400001 to 465535) are holding registers
All Modbus addresses are one-based, meaning that the first data value starts at address
one. The actual range of valid addresses depends on the slave device. Different devices
support different data types and address ranges.
Modbus RTU slave addressing
The Modbus RTU slave instructions support the following addresses:
●
00001 to 00256 are discrete outputs mapped to Q0.0 - Q31.7.
●
10001 to 10256 are discrete inputs mapped to I0.0 - I31.7.
●
30001 to 30056 are analog input registers mapped to AIW0 - AIW110.
●
40001 to 49999 and 400001 to 465535 are holding registers mapped to V memory.
Содержание 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 ...