NeuronEX采集XINJIE旗下PLC:XDH 30A16,读取64位(8bit)的Double类型数据,使用XINJIE ModbusRTU OverTcp协议连接成功,采集报错:原因~此款PLC的EtherNET口只支持MODBUS TCP通讯协议,与配置驱动XINJIE ModbusRTU不匹配导致响应报文无法解析。建议开发XINJIE ModbusTCP协议驱动。

字节序不会导致协议解析失败,可以把这个节点开启 debug,查看日志。

我知道字节序不会导致失败~我的首选方案是通过信捷的驱动直接获取Double类型的数据,发现上述Error 3009。(我修改一下问题描述) 附上日志内容:2025-03-22 08:17:25:008 [NOTICE] xinje_modbus_rtu.c:100 thjx_0 init success
2025-03-22 08:17:25:009 [NOTICE] xinje_modbus_rtu.c:269 config: host: 192.168.1.182, port: 502, mode: 0
2025-03-22 08:17:25:009 [NOTICE] xinje_modbus_rtu.c:303 validate tag success, name: length, address: 1!D20044, type: 10, slave id: 1, start address: 20044, n register: 4, area: hold register
2025-03-22 08:17:25:009 [NOTICE] xinje_modbus_rtu.c:303 validate tag success, name: 1300, address: 1!D13100, type: 9, slave id: 1, start address: 13100, n register: 2, area: hold register
2025-03-22 08:17:25:009 [NOTICE] xinje_modbus_rtu.c:303 validate tag success, name: 20364, address: 1!D20364, type: 10, slave id: 1, start address: 20364, n register: 4, area: hold register
2025-03-22 08:17:25:009 [NOTICE] xinje_modbus_rtu.c:303 validate tag success, name: 254, address: 1!D254, type: 10, slave id: 1, start address: 254, n register: 4, area: hold register
2025-03-22 08:17:31:338 [NOTICE] xinje_modbus_rtu.c:127 thjx_0 start success
2025-03-22 08:17:31:362 [NOTICE] xinje_modbus_rtu.c:134 thjx_0 stop success
2025-03-23 02:41:56:231 [NOTICE] xinje_modbus_rtu.c:100 thjx_0 init success
2025-03-23 02:41:56:232 [NOTICE] xinje_modbus_rtu.c:269 config: host: 192.168.1.182, port: 502, mode: 0
2025-03-23 02:41:56:232 [NOTICE] xinje_modbus_rtu.c:303 validate tag success, name: length, address: 1!D20044, type: 10, slave id: 1, start address: 20044, n register: 4, area: hold register
2025-03-23 02:41:56:232 [NOTICE] xinje_modbus_rtu.c:303 validate tag success, name: 1300, address: 1!D13100, type: 9, slave id: 1, start address: 13100, n register: 2, area: hold register
2025-03-23 02:41:56:232 [NOTICE] xinje_modbus_rtu.c:303 validate tag success, name: 20364, address: 1!D20364, type: 10, slave id: 1, start address: 20364, n register: 4, area: hold register
2025-03-23 02:41:56:232 [NOTICE] xinje_modbus_rtu.c:303 validate tag success, name: 254, address: 1!D254, type: 10, slave id: 1, start address: 254, n register: 4, area: hold register
2025-03-23 02:42:01:768 [NOTICE] xinje_modbus_rtu.c:127 thjx_0 start success
2025-03-23 02:42:01:792 [NOTICE] xinje_modbus_rtu.c:134 thjx_0 stop success
2025-03-23 06:42:24:572 [NOTICE] xinje_modbus_rtu.c:100 thjx_0 init success
2025-03-23 06:42:24:572 [NOTICE] xinje_modbus_rtu.c:269 config: host: 192.168.1.182, port: 502, mode: 0
2025-03-23 06:42:24:572 [NOTICE] xinje_modbus_rtu.c:303 validate tag success, name: length, address: 1!D20044, type: 10, slave id: 1, start address: 20044, n register: 4, area: hold register
2025-03-23 06:42:24:572 [NOTICE] xinje_modbus_rtu.c:303 validate tag success, name: 1300, address: 1!D13100, type: 9, slave id: 1, start address: 13100, n register: 2, area: hold register
2025-03-23 06:42:24:572 [NOTICE] xinje_modbus_rtu.c:303 validate tag success, name: 20364, address: 1!D20364, type: 10, slave id: 1, start address: 20364, n register: 4, area: hold register
2025-03-23 06:42:24:572 [NOTICE] xinje_modbus_rtu.c:303 validate tag success, name: 254, address: 1!D254, type: 10, slave id: 1, start address: 254, n register: 4, area: hold register
2025-03-23 06:42:29:693 [NOTICE] xinje_modbus_rtu.c:127 thjx_0 start success
2025-03-23 06:42:29:715 [NOTICE] xinje_modbus_rtu.c:134 thjx_0 stop success
2025-03-24 08:17:30:799 [NOTICE] xinje_modbus_rtu.c:127 thjx_0 start success
2025-03-24 08:17:37:834 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:17:37:835 [WARN] modbus_stack.c:421 send read req fail, 1!254
2025-03-24 08:17:37:835 [ERROR] modbus_req.c:157 send message failed, skip, 1!254
2025-03-24 08:17:40:875 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:17:40:875 [WARN] modbus_stack.c:421 send read req fail, 1!13100
2025-03-24 08:17:40:875 [ERROR] modbus_req.c:157 send message failed, skip, 1!13100
2025-03-24 08:17:43:915 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:17:43:915 [WARN] modbus_stack.c:421 send read req fail, 1!20044
2025-03-24 08:17:43:915 [ERROR] modbus_req.c:157 send message failed, skip, 1!20044
2025-03-24 08:17:46:955 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:17:46:955 [WARN] modbus_stack.c:421 send read req fail, 1!20364
2025-03-24 08:17:46:955 [ERROR] modbus_req.c:157 send message failed, skip, 1!20364
2025-03-24 08:17:53:995 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:17:53:995 [WARN] modbus_stack.c:421 send read req fail, 1!254
2025-03-24 08:17:53:996 [ERROR] modbus_req.c:157 send message failed, skip, 1!254
2025-03-24 08:17:57:035 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:17:57:035 [WARN] modbus_stack.c:421 send read req fail, 1!13100
2025-03-24 08:17:57:035 [ERROR] modbus_req.c:157 send message failed, skip, 1!13100
2025-03-24 08:18:00:075 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:18:00:075 [WARN] modbus_stack.c:421 send read req fail, 1!20044
2025-03-24 08:18:00:075 [ERROR] modbus_req.c:157 send message failed, skip, 1!20044
2025-03-24 08:18:03:115 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:18:03:115 [WARN] modbus_stack.c:421 send read req fail, 1!20364
2025-03-24 08:18:03:115 [ERROR] modbus_req.c:157 send message failed, skip, 1!20364
2025-03-24 08:18:10:155 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:18:10:155 [WARN] modbus_stack.c:421 send read req fail, 1!254
2025-03-24 08:18:10:155 [ERROR] modbus_req.c:157 send message failed, skip, 1!254
2025-03-24 08:18:13:195 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:18:13:195 [WARN] modbus_stack.c:421 send read req fail, 1!13100
2025-03-24 08:18:13:195 [ERROR] modbus_req.c:157 send message failed, skip, 1!13100
2025-03-24 08:18:16:235 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:18:16:236 [WARN] modbus_stack.c:421 send read req fail, 1!20044
2025-03-24 08:18:16:236 [ERROR] modbus_req.c:157 send message failed, skip, 1!20044
2025-03-24 08:18:19:275 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:18:19:275 [WARN] modbus_stack.c:421 send read req fail, 1!20364
2025-03-24 08:18:19:275 [ERROR] modbus_req.c:157 send message failed, skip, 1!20364
2025-03-24 08:18:26:315 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:18:26:315 [WARN] modbus_stack.c:421 send read req fail, 1!254
2025-03-24 08:18:26:317 [ERROR] modbus_req.c:157 send message failed, skip, 1!254
2025-03-24 08:18:29:355 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:18:29:355 [WARN] modbus_stack.c:421 send read req fail, 1!13100
2025-03-24 08:18:29:355 [ERROR] modbus_req.c:157 send message failed, skip, 1!13100
2025-03-24 08:18:32:395 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:18:32:395 [WARN] modbus_stack.c:421 send read req fail, 1!20044
2025-03-24 08:18:32:395 [ERROR] modbus_req.c:157 send message failed, skip, 1!20044
2025-03-24 08:18:35:435 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:18:35:435 [WARN] modbus_stack.c:421 send read req fail, 1!20364
2025-03-24 08:18:35:435 [ERROR] modbus_req.c:157 send message failed, skip, 1!20364
2025-03-24 08:18:42:475 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:18:42:475 [WARN] modbus_stack.c:421 send read req fail, 1!254
2025-03-24 08:18:42:475 [ERROR] modbus_req.c:157 send message failed, skip, 1!254
2025-03-24 08:18:45:515 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:18:45:515 [WARN] modbus_stack.c:421 send read req fail, 1!13100
2025-03-24 08:18:45:515 [ERROR] modbus_req.c:157 send message failed, skip, 1!13100
2025-03-24 08:18:48:555 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:18:48:555 [WARN] modbus_stack.c:421 send read req fail, 1!20044
2025-03-24 08:18:48:556 [ERROR] modbus_req.c:157 send message failed, skip, 1!20044
2025-03-24 08:18:51:595 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:18:51:595 [WARN] modbus_stack.c:421 send read req fail, 1!20364
2025-03-24 08:18:51:596 [ERROR] modbus_req.c:157 send message failed, skip, 1!20364
2025-03-24 08:18:58:635 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:18:58:635 [WARN] modbus_stack.c:421 send read req fail, 1!254
2025-03-24 08:18:58:635 [ERROR] modbus_req.c:157 send message failed, skip, 1!254
2025-03-24 08:19:01:675 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:19:01:675 [WARN] modbus_stack.c:421 send read req fail, 1!13100
2025-03-24 08:19:01:675 [ERROR] modbus_req.c:157 send message failed, skip, 1!13100
2025-03-24 08:19:04:715 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:19:04:715 [WARN] modbus_stack.c:421 send read req fail, 1!20044
2025-03-24 08:19:04:715 [ERROR] modbus_req.c:157 send message failed, skip, 1!20044
2025-03-24 08:19:07:755 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:19:07:755 [WARN] modbus_stack.c:421 send read req fail, 1!20364
2025-03-24 08:19:07:755 [ERROR] modbus_req.c:157 send message failed, skip, 1!20364
2025-03-24 08:19:14:795 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:19:14:795 [WARN] modbus_stack.c:421 send read req fail, 1!254
2025-03-24 08:19:14:795 [ERROR] modbus_req.c:157 send message failed, skip, 1!254
2025-03-24 08:19:17:835 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:19:17:835 [WARN] modbus_stack.c:421 send read req fail, 1!13100
2025-03-24 08:19:17:835 [ERROR] modbus_req.c:157 send message failed, skip, 1!13100
2025-03-24 08:19:20:875 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:19:20:875 [WARN] modbus_stack.c:421 send read req fail, 1!20044
2025-03-24 08:19:20:875 [ERROR] modbus_req.c:157 send message failed, skip, 1!20044
2025-03-24 08:19:23:915 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:19:23:915 [WARN] modbus_stack.c:421 send read req fail, 1!20364
2025-03-24 08:19:23:915 [ERROR] modbus_req.c:157 send message failed, skip, 1!20364
2025-03-24 08:19:30:955 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:19:30:955 [WARN] modbus_stack.c:421 send read req fail, 1!254
2025-03-24 08:19:30:955 [ERROR] modbus_req.c:157 send message failed, skip, 1!254
2025-03-24 08:19:33:995 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:19:33:995 [WARN] modbus_stack.c:421 send read req fail, 1!13100
2025-03-24 08:19:33:995 [ERROR] modbus_req.c:157 send message failed, skip, 1!13100
2025-03-24 08:19:37:035 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:19:37:035 [WARN] modbus_stack.c:421 send read req fail, 1!20044
2025-03-24 08:19:37:035 [ERROR] modbus_req.c:157 send message failed, skip, 1!20044
2025-03-24 08:19:37:055 [DEBUG] log.h:125 >>(8) 0x01 0x03 0x4F 0x8C 0x00 0x04 0x93 0x36
2025-03-24 08:19:40:085 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:19:40:085 [WARN] modbus_stack.c:421 send read req fail, 1!20364
2025-03-24 08:19:40:085 [ERROR] modbus_req.c:157 send message failed, skip, 1!20364
2025-03-24 08:19:44:105 [DEBUG] log.h:125 >>(8) 0x01 0x03 0x00 0xFE 0x00 0x04 0x25 0xF9
2025-03-24 08:19:47:115 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:19:47:115 [WARN] modbus_stack.c:421 send read req fail, 1!254
2025-03-24 08:19:47:115 [ERROR] modbus_req.c:157 send message failed, skip, 1!254
2025-03-24 08:19:47:135 [DEBUG] log.h:125 >>(8) 0x01 0x03 0x33 0x2C 0x00 0x02 0x0A 0x86
2025-03-24 08:19:50:155 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:19:50:155 [WARN] modbus_stack.c:421 send read req fail, 1!13100
2025-03-24 08:19:50:155 [ERROR] modbus_req.c:157 send message failed, skip, 1!13100
2025-03-24 08:19:50:175 [DEBUG] log.h:125 >>(8) 0x01 0x03 0x4E 0x4C 0x00 0x04 0x92 0xF6
2025-03-24 08:19:53:195 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:19:53:195 [WARN] modbus_stack.c:421 send read req fail, 1!20044
2025-03-24 08:19:53:195 [ERROR] modbus_req.c:157 send message failed, skip, 1!20044
2025-03-24 08:19:53:215 [DEBUG] log.h:125 >>(8) 0x01 0x03 0x4F 0x8C 0x00 0x04 0x93 0x36
2025-03-24 08:19:56:235 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:19:56:235 [WARN] modbus_stack.c:421 send read req fail, 1!20364
2025-03-24 08:19:56:235 [ERROR] modbus_req.c:157 send message failed, skip, 1!20364
2025-03-24 08:20:00:255 [DEBUG] log.h:125 >>(8) 0x01 0x03 0x00 0xFE 0x00 0x04 0x25 0xF9
2025-03-24 08:20:03:275 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:20:03:275 [WARN] modbus_stack.c:421 send read req fail, 1!254
2025-03-24 08:20:03:275 [ERROR] modbus_req.c:157 send message failed, skip, 1!254
2025-03-24 08:20:03:295 [DEBUG] log.h:125 >>(8) 0x01 0x03 0x33 0x2C 0x00 0x02 0x0A 0x86
2025-03-24 08:20:06:315 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:20:06:315 [WARN] modbus_stack.c:421 send read req fail, 1!13100
2025-03-24 08:20:06:315 [ERROR] modbus_req.c:157 send message failed, skip, 1!13100
2025-03-24 08:20:06:335 [DEBUG] log.h:125 >>(8) 0x01 0x03 0x4E 0x4C 0x00 0x04 0x92 0xF6
2025-03-24 08:20:09:355 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:20:09:355 [WARN] modbus_stack.c:421 send read req fail, 1!20044
2025-03-24 08:20:09:355 [ERROR] modbus_req.c:157 send message failed, skip, 1!20044
2025-03-24 08:20:09:375 [DEBUG] log.h:125 >>(8) 0x01 0x03 0x4F 0x8C 0x00 0x04 0x93 0x36
2025-03-24 08:20:12:395 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:20:12:395 [WARN] modbus_stack.c:421 send read req fail, 1!20364
2025-03-24 08:20:12:395 [ERROR] modbus_req.c:157 send message failed, skip, 1!20364
2025-03-24 08:20:16:415 [DEBUG] log.h:125 >>(8) 0x01 0x03 0x00 0xFE 0x00 0x04 0x25 0xF9
2025-03-24 08:20:19:435 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:20:19:435 [WARN] modbus_stack.c:421 send read req fail, 1!254
2025-03-24 08:20:19:435 [ERROR] modbus_req.c:157 send message failed, skip, 1!254
2025-03-24 08:20:19:455 [DEBUG] log.h:125 >>(8) 0x01 0x03 0x33 0x2C 0x00 0x02 0x0A 0x86
2025-03-24 08:20:22:475 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:20:22:475 [WARN] modbus_stack.c:421 send read req fail, 1!13100
2025-03-24 08:20:22:475 [ERROR] modbus_req.c:157 send message failed, skip, 1!13100
2025-03-24 08:20:22:495 [DEBUG] log.h:125 >>(8) 0x01 0x03 0x4E 0x4C 0x00 0x04 0x92 0xF6
2025-03-24 08:20:25:515 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:20:25:515 [WARN] modbus_stack.c:421 send read req fail, 1!20044
2025-03-24 08:20:25:515 [ERROR] modbus_req.c:157 send message failed, skip, 1!20044
2025-03-24 08:20:25:535 [DEBUG] log.h:125 >>(8) 0x01 0x03 0x4F 0x8C 0x00 0x04 0x93 0x36
2025-03-24 08:20:28:555 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:20:28:555 [WARN] modbus_stack.c:421 send read req fail, 1!20364
2025-03-24 08:20:28:555 [ERROR] modbus_req.c:157 send message failed, skip, 1!20364
2025-03-24 08:20:32:575 [DEBUG] log.h:125 >>(8) 0x01 0x03 0x00 0xFE 0x00 0x04 0x25 0xF9
2025-03-24 08:20:35:595 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:20:35:595 [WARN] modbus_stack.c:421 send read req fail, 1!254
2025-03-24 08:20:35:595 [ERROR] modbus_req.c:157 send message failed, skip, 1!254
2025-03-24 08:20:35:615 [DEBUG] log.h:125 >>(8) 0x01 0x03 0x33 0x2C 0x00 0x02 0x0A 0x86
2025-03-24 08:20:38:635 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:20:38:635 [WARN] modbus_stack.c:421 send read req fail, 1!13100
2025-03-24 08:20:38:635 [ERROR] modbus_req.c:157 send message failed, skip, 1!13100
2025-03-24 08:20:38:655 [DEBUG] log.h:125 >>(8) 0x01 0x03 0x4E 0x4C 0x00 0x04 0x92 0xF6
2025-03-24 08:20:41:675 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:20:41:675 [WARN] modbus_stack.c:421 send read req fail, 1!20044
2025-03-24 08:20:41:675 [ERROR] modbus_req.c:157 send message failed, skip, 1!20044
2025-03-24 08:20:41:695 [DEBUG] log.h:125 >>(8) 0x01 0x03 0x4F 0x8C 0x00 0x04 0x93 0x36
2025-03-24 08:20:44:715 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:20:44:715 [WARN] modbus_stack.c:421 send read req fail, 1!20364
2025-03-24 08:20:44:715 [ERROR] modbus_req.c:157 send message failed, skip, 1!20364
2025-03-24 08:20:48:736 [DEBUG] log.h:125 >>(8) 0x01 0x03 0x00 0xFE 0x00 0x04 0x25 0xF9
2025-03-24 08:20:51:755 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:20:51:755 [WARN] modbus_stack.c:421 send read req fail, 1!254
2025-03-24 08:20:51:755 [ERROR] modbus_req.c:157 send message failed, skip, 1!254
2025-03-24 08:20:51:775 [DEBUG] log.h:125 >>(8) 0x01 0x03 0x33 0x2C 0x00 0x02 0x0A 0x86
2025-03-24 08:20:54:795 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:20:54:795 [WARN] modbus_stack.c:421 send read req fail, 1!13100
2025-03-24 08:20:54:795 [ERROR] modbus_req.c:157 send message failed, skip, 1!13100
2025-03-24 08:20:54:815 [DEBUG] log.h:125 >>(8) 0x01 0x03 0x4E 0x4C 0x00 0x04 0x92 0xF6
2025-03-24 08:20:57:835 [ERROR] connection.c:886 connect 192.168.1.182:502 error: Operation now in progress(115)
2025-03-24 08:20:57:835 [WARN] modbus_stack.c:421 send read req fail, 1!20044
2025-03-24 08:20:57:835 [ERROR] modbus_req.c:157 send message failed, skip, 1!20044
2025-03-24 08:20:57:856 [DEBUG] log.h:125 >>(8) 0x01 0x03 0x4F 0x8C 0x00 0x04 0x93 0x36

先解决网络问题


修正网络配置。连接状态”连接“,延时9999,已确认”网络连接测试“ 连接正常。数据监控页仍提示Error3009

附上日志:
2025-03-25 02:42:12:795 [NOTICE] xinje_modbus_rtu.c:134 thjx_0 stop success
2025-03-25 02:42:13:645 [NOTICE] xinje_modbus_rtu.c:127 thjx_0 start success
2025-03-25 02:42:17:675 [DEBUG] log.h:125 >>(8) 0x01 0x03 0x00 0xFE 0x00 0x04 0x25 0xF9
2025-03-25 02:42:17:678 [NOTICE] connection.c:878 connect 192.168.2.182:502 success
2025-03-25 02:42:20:714 [DEBUG] log.h:125 <<(9) 0x01 0x03 0x00 0xFE 0x00 0x03 0x25 0xF9 0x01
2025-03-25 02:42:20:715 [ERROR] modbus_req.c:157 modbus message error, skip, 1!254
2025-03-25 02:42:20:735 [DEBUG] log.h:125 >>(8) 0x01 0x03 0x4E 0x4C 0x00 0x04 0x92 0xF6
2025-03-25 02:42:20:737 [NOTICE] connection.c:878 connect 192.168.2.182:502 success
2025-03-25 02:42:23:755 [DEBUG] log.h:125 <<(9) 0x01 0x03 0x4E 0x4C 0x00 0x03 0x92 0xF6 0x01
2025-03-25 02:42:23:755 [ERROR] modbus_req.c:157 modbus message error, skip, 1!20044
2025-03-25 02:42:23:775 [DEBUG] log.h:125 >>(8) 0x01 0x03 0x4F 0x8C 0x00 0x04 0x93 0x36
2025-03-25 02:42:23:778 [NOTICE] connection.c:878 connect 192.168.2.182:502 success
2025-03-25 02:42:26:794 [DEBUG] log.h:125 <<(9) 0x01 0x03 0x4F 0x8C 0x00 0x03 0x93 0xB6 0x01
2025-03-25 02:42:26:795 [ERROR] modbus_req.c:157 modbus message error, skip, 1!20364
2025-03-25 02:42:30:815 [DEBUG] log.h:125 >>(8) 0x01 0x03 0x00 0xFE 0x00 0x04 0x25 0xF9
2025-03-25 02:42:30:818 [NOTICE] connection.c:878 connect 192.168.2.182:502 success
2025-03-25 02:42:33:835 [DEBUG] log.h:125 <<(9) 0x01 0x03 0x00 0xFE 0x00 0x03 0x25 0xF9 0x01
2025-03-25 02:42:33:835 [ERROR] modbus_req.c:157 modbus message error, skip, 1!254
2025-03-25 02:42:33:855 [DEBUG] log.h:125 >>(8) 0x01 0x03 0x4E 0x4C 0x00 0x04 0x92 0xF6
2025-03-25 02:42:33:858 [NOTICE] connection.c:878 connect 192.168.2.182:502 success
2025-03-25 02:42:36:874 [DEBUG] log.h:125 <<(9) 0x01 0x03 0x4E 0x4C 0x00 0x03 0x92 0xF6 0x01
2025-03-25 02:42:36:875 [ERROR] modbus_req.c:157 modbus message error, skip, 1!20044
2025-03-25 02:42:36:895 [DEBUG] log.h:125 >>(8) 0x01 0x03 0x4F 0x8C 0x00 0x04 0x93 0x36
2025-03-25 02:42:36:897 [NOTICE] connection.c:878 connect 192.168.2.182:502 success
2025-03-25 02:42:39:914 [DEBUG] log.h:125 <<(9) 0x01 0x03 0x4F 0x8C 0x00 0x03 0x93 0xB6 0x01
2025-03-25 02:42:39:915 [ERROR] modbus_req.c:157 modbus message error, skip, 1!20364

收到的报文不对

1 个赞

那我能做些什么呢?预期的获取结果就是成功获取 4个16位寄存器存储的64位 8Byte Double类型的数据。

是你自己写的模拟器,还是设备?再具体去修复

是真实设备啊,你看我页面里配置的是xinjie的驱动,文章标题也指明了PLC的型号 XDH 30A16。设备详情配置如下


连接模式是Client

这个问题(对信捷特定型号的PLC XDH30A16的数据采集)是无解了吗?

看看设备手册有没有描述。
目前看报文是收到的响应不对

谢谢答复,这个问题查完了,下午调查发现:信捷XDH-30A16L-E提供的Ethernet通讯口只支持TCP/IP,MODBUS TCP,自由格式TCP三种通讯协议,上面问题中的设置选择了 “XINJIE Modbus RTU” 驱动,并且物理链路选择了 “Ethernet”,底层应该是 Modbus RTU over TCP 的通信方式,这样导致发送的请求帧是包含了从站 ID 和 CRC 校验,符合 Modbus RTU 帧的格式,并通过Tcp方式发送,但是设备端特定端口不支持Modbus RTU over TCP 的通信方式,导致响应报文长度和内容不匹配Modbus RTU over TCP的要求,我在文档中看到这款PLC自带485端口,我会尝试用Neuron的XINJIE Modbus RTU 模式与之通讯。最后,我希望NeuronEX中增加XINJIE Modbus TCP 模式,毕竟我看其它国产PLC的驱动都有两个版本,只有信捷是RTU一种。

1 个赞