產(chǎn)品展示
聯(lián)系我們
聯(lián)系人:麥女士
手機(jī):+86 15270269218
電話:
Q Q:3136378118
郵箱:stodcdcs@gmail.com
地址:江西省九江市瑞昌市東益路23號賽湖農(nóng)商城401號
4118
讀取輸入狀態(tài)1x(Modbus功能代碼2)
使用此命令從從屬設(shè)備讀取輸入線圈。這些是單位的
Modbus從設(shè)備內(nèi)的地址。與線圈0xxx不同,輸入線圈
只讀值,Modbus主設(shè)備無法寫入。也喜歡
線圈0xxx,此命令的IntAddress字段定義到位
模塊內(nèi)存中的電平。
以下是讀取節(jié)點(diǎn)Modbus地址10081至10090的示例命令
1在Modbus網(wǎng)絡(luò)上。
標(biāo)簽說明
啟用=1模塊將在每次通過
命令列表。
IntAddress=16480將從從設(shè)備讀取的數(shù)據(jù)放入模塊的地址
16480。模塊內(nèi)存的IntAddress 16480將復(fù)制到
標(biāo)記MCM。數(shù)據(jù)。READDATA[30](位16480/16=寄存器1030)。
計(jì)數(shù)=16從從設(shè)備讀取16個連續(xù)寄存器。
節(jié)點(diǎn)=1向網(wǎng)絡(luò)上的節(jié)點(diǎn)1發(fā)出Modbus命令。
Func=2發(fā)出Modbus功能代碼2以讀取輸入線圈。
DevAddress=80功能代碼2,80的DevAddress將讀取地址10081
該命令與計(jì)數(shù)16一起讀取10081到10096。



Read Input Status 1x (Modbus Function Code 2) Use this command to read Input Coils from a Slave device. These are single bit addresses within a Modbus Slave device. Unlike Coils 0xxx, the Input Coils are Read Only values and cannot be written to by a Modbus Master device. Also like the Coils 0xxx, the IntAddress field of this command is defined down to the bit level within the module memory. Below is a sample command to read Modbus addresses 10081 to 10090 of node 1 on the Modbus network. Label Description Enable = 1 The module will send the command every time it goes through the command list. IntAddress = 16480 Places the data read from the Slave device into the module at address 16480. IntAddress 16480 of the module memory will be copied into the tag MCM.DATA.READDATA[30] (bit16480 / 16 = register 1030). Count = 16 Reads 16 consecutive registers from the Slave device. Node = 1 Issues the Modbus command to node 1 on the network. Func = 2 Issues Modbus Function Code 2 to Read Input Coils. DevAddress = 80 Function Code 2, DevAddress of 80 will read address 10081 Along with a count of 16, this command reads 10081 to 10096.
相關(guān)產(chǎn)品