Skip to content
ezeioDocs
  1. Reference
  2. Script reference
  3. Modbus

SetModbusTimeout

Set the bus timeout for Modbus/RTU communication

Description#

SetModbusTimeout( ms )

Set the timeout in milliseconds that bus commands will wait for a device to reply.

Parameters#

ms Timeout in milliseconds

Return value#

This function returns no value.

Example usage#

   SetModbusTimeout(1000);  // Bus commands will wait up to 1s for replies.

Last updated Oct 2, 2023