modb_do_write_regcmd

Modbus function to generate command to write digital output register

Arguments

  1. Integer, device address 0 - 255
  2. Integer, digital output starting address 0x0-0xFFFF
  3. Integer, quantity of outputs 0x0-0x7B0
  4. Integer, output bit values

Output

Integer vector, command