Complete Guide to Modbus RTU Register Address Mapping for Siemens S7-1200 PLC

freeFree Technical Resource

This content is free to read, suitable for basic learning and search traffic.

1. Overview

The Siemens S7-1200 series PLC supports Modbus RTU master/slave functions through the CM1241 RS485 communication module. Based on the official Siemens technical documentation, this article explains the Modbus address mapping rules of the S7-1200 in detail.

2. Modbus Address Types

Modbus Address AreaFunction CodeRead/WriteS7-1200 Memory Area
0xxxx (Coils)01/05/15Read/WriteQ output bits / M bits
1xxxx (Discrete Inputs)02Read-onlyI input bits
3xxxx (Input Registers)04Read-onlyIW analog inputs
4xxxx (Holding Registers)03/06/16Read/WriteMW / DBD data blocks

3. S7-1200 Modbus Address Mapping Table

3.1 I Input Area → 1xxxx Discrete Inputs

Modbus AddressS7-1200 AddressDescription
10001I0.0Input bit 0
10002I0.1Input bit 1
......And so on

3.2 Q Output Area → 0xxxx Coils

Modbus AddressS7-1200 AddressDescription
00001Q0.0Output bit 0
00002Q0.1Output bit 1
......And so on

3.3 M Memory Area / DB Blocks → 4xxxx Holding Registers

Modbus AddressS7-1200 AddressDescription
40001MW0Memory word 0
40002MW2Memory word 1
......Or data in a DB block

4. Modbus Instructions

The S7-1200 uses the following Modbus instructions:

  • MB_COMM_LOAD: Port initialization
  • MB_MASTER: Modbus master
  • MB_SLAVE: Modbus slave

5. FAQ and Troubleshooting

  • Check that the CM1241 module is installed correctly
  • Verify the communication parameter settings (baud rate, parity)
  • Pay attention to the non-optimized block access attribute of data blocks
  • Check that the MB_COMM_LOAD instruction executes correctly

6. Summary

Modbus address mapping rules for the Siemens S7-1200:

  • 0xxxx Coils → Q output bits / M bits
  • 1xxxx Discrete Inputs → I input bits
  • 4xxxx Holding Registers → MW memory words / DB block data
Put this resource to use in a real project?

Go to the Tool Center for message parsing, CRC verification and device debugging, or submit your requirements for selection and integration advice.

Engineer Membership

Turn this article into actionable debugging resources

After activation, you can use advanced message parsing, resource pack downloads, code examples, engineering cases and priority technical support, suitable for real project delivery.

Unlimited Advanced Tools
Resource & Code Packs
Complete Engineering Case Library
Priority Technical Support

Leave a Reply

Your email address will not be published. Required fields are marked *.