Quote Originally Posted by skimask View Post
Here's the SERIN2 command I want to use:
SERIN2 inport , 84 , [ WAIT ( "49 02 01 " ) , HEX2 vin[0] , HEX2 vin[1] , HEX2 vin[2] , HEX2 vin[3] and so on until I get all the char's I want....

Will SERIN2 skip the spaces between the hex digits & CR's & LF's at the end of the lines, or will SERIN2 kick out when a non-ASCII hex digit is encountered...
Well, right there in the manual on page 135

If variable is preceded by BIN, DEC or HEX, then SERIN2
converts a binary, decimal or hexadecimal value in ASCII and stores the
result in that variable. All non-digits received prior to the first digit of the
decimal value are ignored and discarded. The non-digit character which
terminates the value is also discarded.
HTH,