node-modbus-serial
node-modbus-serial copied to clipboard
ModbusTCP Connection keep open or not?
Hello,
We are employing the modbus-serial library but we have some doubts:
- If we perform a reading once per day is it better to close and reopen the connection each time? If yes why?
- If we keep a connection instantiated and opened but we do not read/write data can cause some problem? Consider that we do not set the timeout in the option parameter.
- Our concern is: if we let the connection open could it be automatically closed?
- In addition, does the opened connection generate traffic on the PLC and on the network (even if not used)?
Thank you all for help.
I have the same questions 😅