How to resolve ModbusSlaveException: Error Code = 3?

╄→尐↘猪︶ㄣ 提交于 2019-12-25 16:39:18

问题


I am having a modbus project where i am getting error code 3 while reading from device. If anyone knows what is the problem and how to resolve please help out.

net.wimpi.modbus.ModbusSlaveException: Error Code = 3

回答1:


Exception code 3 is "Illegal value", and it means that one of the values you provided in the request is illegal. This won't be an invalid address as that is exception code 2 ("Illegal address"). Which means that most likely your count of registers to read is either less than or equal to 0 or greater than the maximum number of registers which may be read per request -- typically 125 or so.



来源:https://stackoverflow.com/questions/31913253/how-to-resolve-modbusslaveexception-error-code-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!