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: