Siemens S7-1200 System Manual page 757

Hide thumbs Also See for S7-1200:
Table of Contents

Advertisement

The following table shows examples of Modbus address to holding register mapping that is
used for Modbus function codes 03 (read words), 06 (write word), and 16 (write words). The
actual upper limit of DB addresses is determined by the maximum work memory limit and M
memory limit, for each CPU model.
Table 12- 76 Mapping of Modbus addresses to CPU memory
Modbus Master
Address
MW100
40001
MW100
40002
MW102
40003
MW104
40004
MW106
40005
MW108
Table 12- 77 Diagnostic functions
S7-1200 MB_SLAVE Modbus diagnostic functions
Codes
Sub-function
08
0000H
08
000AH
11
The MB_SLAVE instruction supports broadcast write requests from any Modbus master as
long as the request is for accessing valid addresses. MB_SLAVE will produce error code
0x8188 for function codes not supported in broadcast.
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
MB_HOLD_REG parameter examples
DB10.DBw0
MW120
DB10.DBW0
MW120
DB10.DBW2
MW122
DB10.DBW4
MW124
DB10.DBW6
MW126
DB10.DBW8
MW128
Description
Return query data echo test: The MB_SLAVE will echo back to a Modbus master a
word of data that is received.
Clear communication event counter: The MB_SLAVE will clear out the communication
event counter that is used for Modbus function 11.
Get communication event counter: The MB_SLAVE uses an internal communication
event counter for recording the number of successful Modbus read and write requests
that are sent to the Modbus slave. The counter does not increment on any Function 8,
Function 11, or broadcast requests. It is also not incremented on any requests that
result in a communication error (for example, parity or CRC errors).
Communication processor and Modbus TCP
12.5 Modbus communication
DB10.DBW50
"Recipe".ingredient
DB10.DBW50
"Recipe".ingredient[1]
DB10.DBW52
"Recipe".ingredient[2]
DB10.DBW54
"Recipe".ingredient[3]
DB10.DBW56
"Recipe".ingredient[4]
DB10.DBW58
"Recipe".ingredient[5]
757

Advertisement

Table of Contents
loading

Table of Contents