Granit XP User Guide
133
Search backward for a string
B1
Search backward for “s” string from the current cursor position, leaving cursor
pointing to “s” string. Syntax = B1nnnnS 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, B1000454657374 will search backward for the first occurrence of the
4 character string “Test.”
Refer to the
ASCII Conversion Chart (Code Page 1252),
decimal, hex and character codes.
Search forward for a non-matching character
E6
Search the input message forward for the first non-“xx” character from the current
cursor position, leaving the cursor pointing to the non-“xx” character.
Syntax = E6xx
where xx stands for the search character’s hex value for its ASCII code. Refer to the
ASCII Conversion Chart (Code Page 1252),
beginning on page 282 for decimal, hex
and character codes.
E6 Example: Remove zeros at the beginning of barcode data
This example shows a barcode that has been zero filled. You may want to ignore the
zeros and send all the data that follows. E6 searches forward for the first character
that is not zero, then sends all the data after, followed by a carriage return. Using
the barcode above:
Command string:
E630F10D
E6 is the “Search forward for a non-matching character” command
30 is the hex value for 0
F1 is the “Send all characters” command
0D is the hex value for a CR
The data is output as:
37692
<CR>
Search backward for a non-matching character
E7
Search the input message backward for the first non-“xx” character from the
current cursor position, leaving the cursor pointing to the non-“xx” character.
Syntax = E7xx
where xx stands for the search character’s hex value for its ASCII code.
ASCII Conversion Chart (Code Page 1252),
decimal, hex and character codes.
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: ......