- 112 -
MS926 User’s Manual
■
Compare characters
FE
Compare the character in the current cursor position to the character “xx.”
If characters are equal, move the cursor forward one position. Syntax =
FExx where xx stands for the comparison character’s hex value for its
ASCII code. Refer to
the ASCII Conversion Chart (Code Page 1252)
, for
decimal, hex and character codes.
■
Compare string
B2
Compare the string in the input message to the string “s.” If the strings are
equal, move the cursor forward past the end of the string. Syntax =
B2nnnnS where nnnn is the string length (up to 9999), and S consists of
the ASCII hex value of each character in the match string. For example,
B2000454657374 will compare the string at the current cursor position
with the 4 character string “Test.” Refer to
for decimal, hex and character codes.
■
Check for a number
EC
Check to make sure there is an ASCII number at the current cursor
position. The format is aborted if the character is not numeric.
EC Example: Only output the data if the bar code begins with a number
If you want only data from bar codes that begin with a number, you can use EC
to check for the number.
Command string:
ECF10D
EC is the “Check for a number” command
F1 is the “Send all characters” command
0D is the hex value for a CR
If this bar code is read,
the next data format, if there is one,
will be used on the data. If there is no other format, the format fails and the
raw data is output as
AB1234
. If this bar code is read:
the data
is output as:
1234AB
<CR>
Содержание MS962
Страница 110: ...94 MS926 User s Manual 4 7 4 Data Terminator Scan the following bar code to set up data terminator CR None CRLF LF TAB...
Страница 139: ...123 MS926 User s Manual...
Страница 142: ...126 MS926 User s Manual...
Страница 143: ...127 MS926 User s Manual Appendix B Programming Charts 0 1 2 3 4 5 6 7 8 9...
Страница 144: ...128 MS926 User s Manual A B C D E F Save Discard Reset...