MyVars VAR BYTE(8)

Main:
HSERIN 500,NoData,[STR MyVars\8\"~"]

NoData:
do something else

This will wait 500mS before jumping to NoData. It will receive a string of up to 8 characters
in byte array MyVars, or exit on receipt of the "~" character.