dxming20
級(jí)別: 探索解密
精華主題: 0
發(fā)帖數(shù)量: 32 個(gè)
工控威望: 157 點(diǎn)
下載積分: 805 分
在線時(shí)間: 24(小時(shí))
注冊(cè)時(shí)間: 2011-10-25
最后登錄: 2023-12-26
查看dxming20的 主題 / 回貼
樓主  發(fā)表于: 2018-07-20 21:10
現(xiàn)要我要做一臺(tái)統(tǒng)計(jì)用水量。流量計(jì)通訊協(xié)義L_mag 電磁流量計(jì)轉(zhuǎn)換器
Modbus 通訊協(xié)議V77.買了一個(gè)三菱485通訊模塊連接。
表2-1 L-mag 電磁流量計(jì)Modbus 通訊地址表
Protocol Addresses(Decimal)      Protocol Addresses(HEX) 數(shù)據(jù)格式                         寄存器定義
4112                                                                0x1010                   Float Inverse                     瞬時(shí)流量浮點(diǎn)表示
4114                                                                0x1012                   Float Inverse                     瞬時(shí)流速浮點(diǎn)表示
4116                                                                 0x1014                  Float  Inverse                     流量百分比浮點(diǎn)表示(電池供電表保留)
4118                                                                  0x1016                 Float  Inverse                     流體電導(dǎo)比浮點(diǎn)表示
4120                                                                  0x1018                 Long  Inverse                     正向累積數(shù)值整數(shù)部分
4122                                                                   0x101A                Float   Inverse                    正向累積數(shù)值小數(shù)部分
4124                                                                   0x101C               Long     Inverse                   反向累積數(shù)值整數(shù)部分
4126                                                                    0x101E               Float    Inverse                   反向累積數(shù)值小數(shù)部分
4128                                                                   0x1020                 Unsigned short                  瞬時(shí)流量單位(表3)
4129                                                                     0x1021                Unsigned short                 累積總量單位(表4/表5)
4130                                                                   0x1022                 Unsigned  short                 上限報(bào)警
4131                                                                    0x1023                 Unsigned  short                 下限報(bào)警
4132                                                                  0x1024                 Unsigned short                   空管報(bào)警
4133                                                                   0x1025                  Unsigned short                  系統(tǒng)報(bào)警
那位大俠能否指導(dǎo)下。第一次寫這個(gè)通訊程序

dxming20
級(jí)別: 探索解密
精華主題: 0
發(fā)帖數(shù)量: 32 個(gè)
工控威望: 157 點(diǎn)
下載積分: 805 分
在線時(shí)間: 24(小時(shí))
注冊(cè)時(shí)間: 2011-10-25
最后登錄: 2023-12-26
查看dxming20的 主題 / 回貼
1樓  發(fā)表于: 2018-07-22 08:31
真的太感 謝了