HITACHI LYD105A自動化卡件,LYD105A產品尺寸
3.8.2讀取異常狀態命令(RTU模塊規范)
Modbus讀取異常狀態命令返回一個字節值,該值指示RTU的狀態
接口模塊。以下定義了狀態字節中的每個位。MTE DCS超時;讀取異常狀態命令完成后清除。
自上次讀取異常狀態命令以來,MRS CPU/RTU接口模塊已重置。PLH/PLL特權級別的2位指定。級別1表示僅讀取數據表的權限。級別2表示讀取和寫入數據表的權限。
輸入/輸出故障指示CPU在故障表中有輸入/輸出故障。PLC FLTS表示CPU在故障表中記錄了CPU故障。輸入/輸出啟用表示CPU已啟用輸入/輸出。
HITACHI LYD105A自動化卡件RUN表示CPU處于運行模式。3.8.3環回診斷測試命令(RTU模塊規范)
RTU模塊支持以下用于環回診斷測試的標準診斷代碼命令:如果Modbus命令的地址與Modbus從機的地址匹配,并且接收到的數據經過驗證通過錯誤檢查代碼,從機執行指定的功能。奴隸還將發出基于該函數的響應?;蛘?,如果Modbus命令的地址為零(廣播),則所有
Modbus從機將執行命令;但是,沒有從設備會發出響應。請注意,僅5、6、15、16、72的功能代碼和功能8的一些子功能可以這樣“廣播”。正常響應將包含與請求相同的從屬地址和功能代碼;然而單個數據字段可能因功能而異。如果Modbus從站在內部或命令參數中檢測到錯誤,則命令將不會執行,函數將返回異常響應。指示異常響應通過在返回的函數代碼和描述異常的返回數據字節中設置高位。RTU模塊支持以下列出的標準異常代碼:
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: