modb_do_write

Modbus function to write digital output

Arguments

  1. COM port handle
  2. Integer, device address
  3. Integer, channel address
  4. Integer, data to be written at digital output channel 0xFF00 for ON and 0x0000 for OFF
  5. Integer, timeout interval in ms

Output

Boolean, true if command is successful