smart 200 modbus rtu 如何读取M寄存器和V寄存器的数据

使用modbus库从站都是指定数据起使地址&VB开始的,是不是改成MB就行了,要是V和M都要呢如何操作啊

最佳答案

smart 200 modbus rtu只能读取下面四种格式:
00001 至 0xxxx – 开关量输出
10001 至 1xxxx – 开关量输入
30001 至 3xxxx – 模拟量输入
40001 至 4xxxx – 保持寄存器
你要读取M位的状态只能将M位的状态传送到VW寄存器中,其中V区就包含在VW中。

MODBUS RTU通信_S7-200 SMART:
http://www.ad.siemens.com.cn/productportal/prods/s7-200-smart-portal/200smarttop/smartsms/020.html

Modbus RTU 主站:
http://www.ad.siemens.com.cn/productportal/prods/s7-200-smart-portal/200smarttop/communication/serial_port/modbus/Master/Master.htm

图片说明:

smart 200  modbus rtu  如何读取M寄存器和V寄存器的数据  

提问者对于答案的评价:
谢谢

原创文章,作者:more0621,如若转载,请注明出处:https://www.zhaoplc.com/plc281441.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2020年10月30日 下午10:08
下一篇 2020年10月30日

相关推荐