SerafinTech / ST-node-ethernet-ip

Connect to PLC controllers with Node and Ethernet/ip
MIT License
37 stars 20 forks source link

Error : TIMEOUT during backend server running #52

Open josephyou7 opened 1 year ago

josephyou7 commented 1 year ago

Current Behavior

I am trying to make backend server with node. It is running fine with attached program at first time but it has error after short 2 min. long 30 min.
< Error Message > C:\react-app\prodboard\backend\node_modules\ethernet-ip\src\controller\index.js:654 throw new Error(<SCAN_GROUP>\n ${e.message}); ^ Error: TIMEOUT occurred while writing Reading Tag Group. at C:\react-app\prodboard\backend\node_modules\ethernet-ip\src\controller\index.js:654:31 at async Controller.scan (C:\react-app\prodboard\backend\node_modules\ethernet-ip\src\controller\index.js:647:13)

Your Environment

SerafinTech commented 1 year ago

try const PLC = new Controller(false); on line 15 to use unconnected messaging. Windows especially can cause a node process loop to pause for a few seconds which will disconnect you when using connected messaging.