The WRITEHEX statement interprets the contents of a variable as a hex dump of a binary byte array and sends this binary data to the device after packing it into a protocol frame.

The WRITEHEX statement is used in the StandardBin.nc include file to define a convenient method of sending a command through the lowLevel driver variable for binary communication protocols. There is probably no other use for the WRITEHEX statement.