modb_do_writecmd

Modbus function to generate command to write digital output

Arguments

  1. Integer, device address
  2. Integer, channel address
  3. Integer, data to be written at digital output channel 0xFF00 for ON and 0x0000 for OFF

Output

Integer vector, command