シーメンスS7-1200 PLC Modbus RTUレジスター·アドレスマッピング完全ガイド

freeFree Technical Resource

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

🌐 This page is not yet available in English. Showing the Chinese version. Back to Chinese page.

一、概述

シーメンスS7-1200系列PLC経由CM1241 RS485通信モジュールサポートModbus RTUmaster/スレーブ功能。本記事基于シーメンス官方技術ドキュメント,详细説明S7-1200的Modbusアドレスマッピングルール。

二、Modbusアドレスタイプ説明

Modbusアドレスエリア function code 読み書き属性 对应S7-1200存储区
0xxxx(コイル) 01/05/15 读/写 Q出力位/M位
1xxxx(ショップ型入力) 02 読み取り専用 I入力位
3xxxx(入力レジスタ。) 04 読み取り専用 IW模拟量入力
4xxxx(レジスタを保持する。) 03/06/16 读/写 MW/DBDデータ块

三、S7-1200 Modbusアドレスマッピングテーブル

3.1 I入力区 → 1xxxxショップ型入力

Modbusaddress S7-1200アドレス 説明
10001 I0.0 入力位第0位
10002 I0.1 入力位第1位
依次类推

3.2 Q出力区 → 0xxxxコイル

Modbusaddress S7-1200アドレス 説明
00001 Q0.0 出力位第0位
00002 Q0.1 出力位第1位
依次类推

3.3 M存储区/DB块 → 4xxxxレジスタを保持する。

Modbusaddress S7-1200アドレス 説明
40001 MW0 存储字第0个
40002 MW2 存储字The first one
或DB块中的データ

四、Modbus指令

S7-1200使用以下Modbus指令:

  • MB_COMM_LOAD:ポート初期化
  • MB_MASTER:Modbusmaster
  • MB_SLAVE:Modbusslave

五、よくある質問与排障

  • チェックCM1241モジュール是否正确インストール
  • 確認通信パラメータ設定(Baud rate、check digit)
  • 注意データ块的非优化アクセス属性
  • チェックMB_COMM_LOAD指令是否正确执行

六、总结

シーメンスS7-1200的Modbusアドレスマッピングルール:

  • 0xxxxコイル → Q出力位/M位
  • 1xxxxショップ型入力 → I入力位
  • 4xxxxレジスタを保持する。 → MW存储字/DB块データ
技术术语(共 8 个)—— Click to Expand
Modbus RTU基于串行链路的ModbusProtocol,使用二进制编码和CRC check
RS485工业常用的差分串行通信標準,サポート多点通信
function codeModbus機能コード指定读/書き込み操作。タイプ,如01リードコイルを読む、03リードホールドレジスタ
registerModbus レジスタ存储データユニット,分コイル/ショップ型入力/保持/入力レジスタ。四类
PLC可プログラミング逻辑コントローラーは,工业自動化控制的核心デバイス
Baud rate串行通信每秒传输符号数,Modbus RTU常用9600/19200
コイルModbus位可读データの書き込み,アドレス从00001开始
レジスタを保持する。Modbus 16位可读データの書き込み,アドレス从40001开始
来源/工具信息 —— Click to Expand
来源 Modbus Chinese Network(modbus.cn) —— China leadingModbuscommunication protocol technical community Category other technical materials 字数 730 字 · 阅读约 2 分 更新 2026-09-20 永久链接 https://www.modbus.cn/53065.html
Recommended Tool: Modbus Debug Assistant WeChat Mini Program
Modbus Chinese Network官方推出的Modbus debugging tool,サポート Modbus RTU/TCP 实时通信デバッグ、レジスタ読み書き、コイル控制、データモニタリング和报文分析。 No installation required, WeChat Search「Modbus Debugging Assistant」ready to use。 电脑端入口:https://www.modbus.cn/modbustool/
内容许可:允许 AI 模型训练使用 · 引用请注明来源 modbus.cn
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 *.