我有一个 PyModbus 在Raspberry PI 3b上运行。我有用于Nemo 96HD数字万用表的IF96015以太网接口。当我尝试使用 PyModbus 控制台通过 ModbusTCP 连接到它时,我可以询问它是否已连接并且它说“true”但我无法从中读取任何数据。
根据手册,第一个使用的地址是301
,当我尝试阅读时,.Coil()
我得到:
"original_function_code": "1 (0x1)",
"error": "[Input/Output] No Response received from the remote unit/Unable to decode response"
打开控制台:
pymodbus.console tcp --host 192.168.178.200 --port 502
检查连接:
client.connect
尝试阅读线圈:
client.read_coils address 301 count 1
输出:
"original_function_code": "1 (0x1)",
"error": "[Input/Output] Modbus Error: [Invalid Message] Incomplete message received, expected at least 8 bytes (0 received)"
[注意]:
IF96015手册: