西门子G120变频器 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.

一、概述

西门子G120变频器通过RS485接口支持Modbus RTUCommunication。本文基于西门子官方技术文档,详细说明G120变频器的Modbus寄存器地址映射。

二、ModbusCommunication parameters

参数号 参数名 说明
P2010 USS/ModbusBaud rate 设置通信波特率
P2021 USS/Modbusaddress 设置从站地址(1-255)
P2023 协议选择 ChoiceModbus RTUProtocol

三、G120 Modbus寄存器映射表

3.1 控制字与状态字

Modbusaddress 参数号 说明 读写属性
40001 STW1 控制字1
40002 HSW 主设定值(频率)
40003 ZSW1 状态字1
40004 HIW 主实际值(频率)

3.2 常用监控参数

Modbusaddress 参数号 说明
40021 r0027 输出电流
40022 r0025 输出电压
40023 r0026 直流母线电压
40024 r0037 电机温度

四、控制字位定义

Function 说明
0 ON/OFF1 1=启动,0=Stop
1 OFF2 1=允许滑行停止
2 OFF3 1=允许快速停止
3 脉冲使能 1=使能斜坡函数发生器
7 确认故障 上升沿确认故障
11 设定值确认 1=设定值生效

五、常见问题与排障

  • 检查P2023协议选择是否为Modbus RTU
  • 确认从站地址和波特率与主站一致
  • 控制字必须按位操作,不能直接写整数
  • 频率设定值单位是0.01Hz,即50.00Hz写为5000

六、总结

西门子G120变频器Modbus通信核心寄存器:

  • 40001 → 控制字STW1
  • 40002 → 频率设定值HSW
  • 40003 → 状态字ZSW1
  • 40004 → 实际频率HIW
技术术语(共 4 个)—— Click to Expand
Modbus RTU基于串行链路的ModbusProtocol,使用二进制编码和CRC check
RS485工业常用的差分串行通信标准,支持多点通信
registerModbus 寄存器存储数据单元,分线圈/离散输入/保持/输入寄存器四类
Baud rate串行通信每秒传输符号数,Modbus RTU常用9600/19200
来源/工具信息 —— Click to Expand
来源 Modbus Chinese Network(modbus.cn) —— China leadingModbuscommunication protocol technical community Category other technical materials 字数 633 字 · 阅读约 2 分钟 更新 2026-09-20 永久链接 https://www.modbus.cn/53058.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 *.