Granit XP User Guide
135
If the barcode has characters that the host application does not want included, you
can use the E4 command to replace those characters with something else. In this
example, you will replace the zeros in the barcode above with carriage returns.
Command string:
E402300DF10D
E4 is the “Replace characters” command
02 is the total count of characters to be replaced, plus the replacement characters
(0 is replaced by CR, so total characters = 2)
30 is the hex value for 0
0D is the hex value for a CR (the character that will replace the 0)
F1 is the “Send all characters” command
0D is the hex value for a CR
The data is output as:
1234
5678
ABC
<CR>
Stop replacing characters
E5
Terminates character replacement.
Syntax = E5.
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),
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 the
ASCII Conversion Chart (Code Page 1252),
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.
Summary of Contents for Granit XP 199 i Series
Page 15: ...Granit XP User Guide xiii Programming Chart 291 ...
Page 16: ...xiv Granit XP User Guide ...
Page 18: ...xvi Granit XP User Guide ...
Page 27: ...Granit XP User Guide 9 Granit XP SR Linear Barcodes and 2D matrix symbol with aiming dot ...
Page 30: ...12 Granit XP User Guide ...
Page 56: ...38 Granit XP User Guide ...
Page 96: ...78 Granit XP User Guide ...
Page 222: ...204 Granit XP User Guide ...
Page 242: ...224 Granit XP User Guide ...
Page 290: ...272 Granit XP User Guide CCB22 100BT 03N BF Base ...
Page 296: ...278 Granit XP User Guide ...
Page 309: ...Granit XP User Guide 291 PROGRAMMING CHART 0 1 2 3 4 5 6 7 8 9 ...
Page 311: ......