HITACHI LYD105A自動(dòng)化卡件,LYD105A產(chǎn)品尺寸
3.8.2讀取異常狀態(tài)命令(RTU模塊規(guī)范)
Modbus讀取異常狀態(tài)命令返回一個(gè)字節(jié)值,該值指示RTU的狀態(tài)
接口模塊。以下定義了狀態(tài)字節(jié)中的每個(gè)位。MTE DCS超時(shí);讀取異常狀態(tài)命令完成后清除。
自上次讀取異常狀態(tài)命令以來,MRS CPU/RTU接口模塊已重置。PLH/PLL特權(quán)級別的2位指定。級別1表示僅讀取數(shù)據(jù)表的權(quán)限。級別2表示讀取和寫入數(shù)據(jù)表的權(quán)限。
輸入/輸出故障指示CPU在故障表中有輸入/輸出故障。PLC FLTS表示CPU在故障表中記錄了CPU故障。輸入/輸出啟用表示CPU已啟用輸入/輸出。
HITACHI LYD105A自動(dòng)化卡件RUN表示CPU處于運(yùn)行模式。3.8.3環(huán)回診斷測試命令(RTU模塊規(guī)范)
RTU模塊支持以下用于環(huán)回診斷測試的標(biāo)準(zhǔn)診斷代碼命令:如果Modbus命令的地址與Modbus從機(jī)的地址匹配,并且接收到的數(shù)據(jù)經(jīng)過驗(yàn)證通過錯(cuò)誤檢查代碼,從機(jī)執(zhí)行指定的功能。奴隸還將發(fā)出基于該函數(shù)的響應(yīng)?;蛘撸绻鸐odbus命令的地址為零(廣播),則所有
Modbus從機(jī)將執(zhí)行命令;但是,沒有從設(shè)備會(huì)發(fā)出響應(yīng)。請注意,僅5、6、15、16、72的功能代碼和功能8的一些子功能可以這樣“廣播”。正常響應(yīng)將包含與請求相同的從屬地址和功能代碼;然而單個(gè)數(shù)據(jù)字段可能因功能而異。如果Modbus從站在內(nèi)部或命令參數(shù)中檢測到錯(cuò)誤,則命令將不會(huì)執(zhí)行,函數(shù)將返回異常響應(yīng)。指示異常響應(yīng)通過在返回的函數(shù)代碼和描述異常的返回?cái)?shù)據(jù)字節(jié)中設(shè)置高位。RTU模塊支持以下列出的標(biāo)準(zhǔn)異常代碼:
If a Modbus command’s address matches a Modbus Slave’s address and the received data is validated
by the Error Check Code, then that slave executes the indicated function. The slave will also issue a
response based on that function. Alternately, if a Modbus Command’s address is zero (broadcast), all
Modbus slaves will execute the command; however, no slave will issue a response. Note that only
Function Codes of 5, 6,15,16, 72 and some sub-functions of Function 8 may be “broadcast” in this way.
A normal response will contain the same slave address and function code as the request; however, the
individual data field(s) may vary according to the function.
If the Modbus slave detects an error either internally or in the command parameters, the command will
not be executed and the function will return an Exception Response. An exception response is indicated
by setting the high bit in the returned function code and returned data byte describing the exception.
The RTU Module supports the standard Exception codes listed below: