modbus_set_signal_watchdog(signal_name, new_timeout_in_sec)

Set tolerance for modbus errors (both communication, and device exceptions) as minimum time between valid device responses. No error will be thrown within the watchdog time. If needed, the modus_get_error() or the modbus_get_time_since_signal_invalid() can be used to detected that the signal is in an error state before the watchdog expires.Default signal timeout is 2 seconds.

>>> modbus_set_signal_watchdog("signal1", 5)

Parameters

signal_name: A string identifying an output digital signal that in advance has been added. Can not be empty.

new_timeout_in_sec:  A number in range 0-300 representing seconds.

Example command: modbus_set_signal_watchdog("signal1", 10.5)

Example Parameters:

  • signal_name = signal1

    • new_timeout_in_sec = 10.5 seconds