nlscan.com
Page 167
Data Formatter
Formatter Command Type 6
Miscellaneous Commands
B1 Search backward for a string
Syntax=B1nnnnS (nnnn: The string length (up to 9999); S: The ASCII hex value of each character in the
string)
Search backward for “S” string from the current cursor position, leaving cursor pointing to “S” string. For
example, B1000454657374 will search backward for the first occurrence of the 4-character string “Test.”
E6 Search forward for a non-matching character
Syntax=E6xx (xx: The search character’s hex value)
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.
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>
E7 Search backward for a non-matching character
Syntax=E7xx (xx: The search character’s hex value)
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.
FB Suppress characters
Syntax=FBnnxxyy..zz (nn: The numeric value (00-15) for the number of suppressed characters; xxyy..zz:
The hex value of the characters to be suppressed)
Suppress all occurrences of up to 15 different characters, starting at the current cursor position, as the
cursor is advanced by other commands.