=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Command: READ_HEX {CHANNEL channelNum} varName {numHexBytes} Description: Read a stream of hex bytes from the sequential channel chosen. The stream must be in the form of a string containing two byte printable hex numbers, e.g., "616263" would correspond the the string "abc". The value is converted into ASCII before it is store in varName. Parameters: channelNum: The number of the sequential device channel to be read from. If not specified, the currently active input channel is read from. varName: The variable to read the bytes into. numHexBytes: The number of two digit hex codes to read in, e.g., "616263" is 3 hex codes (even though it is actually 6 bytes). If ommitted or zero, READ_HEX will read until it encounters the end of the line. If data is read which cannot be converted from hex to ascii, READ_HEX stops at that point. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#IFSAME !1 CHANNEL
!A [] $10A |CI0 !2
#IF !0>2
#CHECK !3 _ULE
#CHECK !4 _RU
!A [] $110 !3 !4
#ENDIF
#ELSE
#CHECK !1 _ULEC
#CHECK !2 _RU
!A [] $110 !1 !2
#ENDIF