How do I encode a configuration downlink for a Voltage Sensor?

How do I encode a configuration downlink for a Voltage Sensor?

NOTE:  All downlinks must contain a total of (8) bytes, padded with zeros at the end when necessary.

For more information see the the user manual at https://www.multitech.com/brands/reveal-wireless-industrial-sensors

Voltage Sensor Threshold Configuration Example:
      14 00 A7 14 09 BB 0A 0D
      14            Downlink Message Type (0x14= Voltage Sensor)
      00            Configuration Mode (0x00 = Threshold Mode)
      A7            Periodic Reporting (0xA7 is above the 0x80 midpoint so the units change from hours to minutes = 39 minutes)
      14            Restoral Margin (0x14 = 20 = 20mV)
      09BB       Lower analog measurement threshold (0x09BB=  2491 = 24.91  Volts)
      0A0D       Upper analog measurement threshold (0x0A0D  =  2573 = 25.73 Volts) 

Voltage Sensor Report on Change Configuration Example:
      14 01 1B 00 07 1D 09 0D
       14            Downlink Message Type (0x14 = Voltage Sensor)
       01            Configuration Mode (0x01 = Report on Change Mode)
       1B            Periodic Reporting (0x1B = 27 Hours)
       00            Not Used
       071D       Analog measurement increase (0x071D = 1821 = 18.21 Volts)
       090D       Analog measurement decrease (0x090D = 2317 = 23.17 Volts)

      If the configuration is successful the sensor will respond with a Downlink Acknowledge message:
      1 0 FF 02
      1                   Protocol Version (currently always 0x1)
      0                   Packet Counter, increments by 1 each message and wraps from 0xF to 0x0
      FF                 Message Type (Downlink ACK = 0xFF)
      02                 Downlink Message Valid (Invalid/Undefined = 0x01, Valid = 0x02)