plcpeople / mcprotocol

node.js implementation of the MC (MELSEC communication) protocol to exchange data with Mitsubishi FX programmable controllers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Node-red can't reconnection PLC.

godliony opened this issue · comments

I want to assume a situation if the PLC goes off for 1 minute and it starts working again. Node-red can't reconnection PLC. Node-red still say "Error: Not connected!"

@godliony
Do you using this module through your Node-RED custom-node? (me too).
You might need close the connection every time you read items.
https://github.com/ia-cloud/node-red-contrib-ia-cloud-fds/blob/master/plc-mc-protocol/plc-mc-protocol.js#L19-L26

I can confirm this behaviour. I hope some expert can solve this.
This is of very high importance.
Regards,
Jinx