I am to connect node-red to a modbus server on the same network (LAN)
Using node-red-contrib-modbus palette
I keep getting this error; As shown in image 1
{"enc":true,"type":"error","data":{"name":"Error","message":"Port Not Open","stack":"Error: Port Not Open\n at C:\Users\joelt\.node-red\node_modules\node-red-contrib-modbus\modbus\maps\core\core\modbus-client-core.js:37:206"}}
I turned on Modbus debug, I started getting this response (As Shown in image 2)
9 Jun 20:17:46 - [warn] [modbus-read:db7e824f2db08ed8] Modbus Failure On State sending Get More About It By Logging
9 Jun 20:17:46 - [error] [modbus-read:db7e824f2db08ed8] Error: Port Not Open
now I tested my port too, windows saids its open! (image 3)
ComputerName : 192.168.0.20
RemoteAddress : 192.168.0.20
RemotePort : 502
InterfaceAlias : Wi-Fi
SourceAddress : 192.168.0.101
TcpTestSucceeded : True
when I try with modsims local modbus tcp and my device's modbus rtu it works perfectly
my configuration is as below
I am running on Node-Red 5 and NodeJS
v24.16.0 but latest versions
