How to handle disconnected slave.

69 views
Skip to first unread message

Nguyen Duy

unread,
Dec 25, 2021, 10:55:46 AM12/25/21
to modbus-tk
I am using modbus rtu as master. When the slave are not connected to the serial port, master could not run because of raise ModbusInvalidResponseError("Response length is invalid 0".
How to avoid crashing? Remove the raise exception did not work.
I need the master to show the error log that the slave are not available, and pending for another command instead of crashing.

Thank you.
Reply all
Reply to author
Forward
0 new messages