Voyager 1470/1472 User Guide
109
If the bar code 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 zeroes in the bar code 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.
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
Summary of Contents for Voyager XP 1470
Page 1: ...User Guide Voyager XP 1470g 1472g Series Area Imaging Scanner ...
Page 14: ...xii Voyager 1470 1472 User Guide ...
Page 16: ...xiv Voyager 1470 1472 User Guide ...
Page 26: ...10 Voyager 1470 1472 User Guide ...
Page 47: ...Voyager 1470 1472 User Guide 31 300 600 1200 2400 4800 9600 19200 38400 57 600 115 200 ...
Page 128: ...112 Voyager 1470 1472 User Guide Data Format 1 Data Format 2 Data Format 3 ...
Page 182: ...166 Voyager 1470 1472 User Guide ...
Page 222: ...206 Voyager 1470 1472 User Guide ...
Page 228: ...212 Voyager 1470 1472 User Guide ...
Page 240: ...224 Voyager 1470 1472 User Guide ...
Page 243: ...Voyager 1470 1472 User Guide 227 PROGRAMMING CHART 0 1 2 3 4 5 6 7 8 9 ...
Page 245: ......