產(chǎn)品展示
聯(lián)系我們
聯(lián)系人:麥女士
手機(jī):+86 15270269218
電話:
Q Q:3136378118
郵箱:stodcdcs@gmail.com
地址:江西省九江市瑞昌市東益路23號(hào)賽湖農(nóng)商城401號(hào)
115VAC/DC 數(shù)字輸入模件
讀取輸入寄存器3x(Modbus功能代碼4)
與4x保持寄存器一樣,3x輸入寄存器用于讀取模擬
16位寄存器值。您還可以使用這些寄存器來(lái)存儲(chǔ)
浮點(diǎn)數(shù)據(jù)(第57頁(yè))。與4x寄存器不同,3x寄存器是只讀的。
以下是讀取節(jié)點(diǎn)的Modbus地址30021至30030的示例命令
1在Modbus網(wǎng)絡(luò)上。
標(biāo)簽說(shuō)明
啟用=1模塊將在每次通過(guò)
命令列表。
IntAddress=1010將從設(shè)備讀取的數(shù)據(jù)放入模塊的地址
模塊內(nèi)存的IntAddress 1010將復(fù)制到標(biāo)簽中
MCM公司。數(shù)據(jù)。READDATA[10]。
計(jì)數(shù)=10從從設(shè)備讀取10個(gè)連續(xù)寄存器。
節(jié)點(diǎn)=1向網(wǎng)絡(luò)上的節(jié)點(diǎn)1發(fā)出Modbus命令。
Func=4發(fā)出Modbus功能代碼4以讀取輸入寄存器。
DevAddress=20功能代碼4 20的DevAddress將讀取地址30021
該命令與計(jì)數(shù)10一起讀取30021到30030。



Read Input Registers 3x (Modbus Function Code 4) Like the 4x holding registers, 3x input registers are used for reading analog values that are 16-bit register values. You can also use these registers to store floating-point data (page 57). Unlike the 4x registers, 3x registers are Read Only. Below is a sample command to read Modbus addresses 30021 to 30030 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 = 1010 Places the data read from the Slave device into the module at address 1010. IntAddress 1010 of the module memory will be copied into the tag MCM.DATA.READDATA[10]. Count = 10 Reads 10 consecutive registers from the Slave device. Node = 1 Issues the Modbus command to node 1 on the network. Func = 4 Issues Modbus Function Code 4 to Read Input Registers. DevAddress =20 Function Code 4 DevAddress of 20 will read address 30021 Along with a count of 10, this command reads 30021 to 30030.
相關(guān)產(chǎn)品