74
HH1800 User Guide
E4
Replaces up to 15 characters in the output message, without moving the cursor.
Replacement continues until the E5 command is encountered.
Syntax =
E4nnxx
1
xx
2
yy
1
yy
2
...zz
1
zz
2
where nn is the total count of the number of characters in the list
(characters to be replaced plus replacement characters); xx
1
defines characters to be replaced
and xx
2
defines replacement characters, continuing through zz
1
and zz
2
.
E4 Example: Replace zeros with CRs in barcode data
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 characte
rs
” 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 al
l
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.
Содержание HH1800
Страница 1: ...HH1800 Area Imaging Scanner User Guide ...
Страница 14: ...xiv HH1800 User Guide ...
Страница 94: ...80 HH1800 User Guide RFID TBD ...
Страница 158: ...144 HH1800 User Guide ...
Страница 210: ...196 HH1800 User Guide 1 2 3 4 5 6 7 8 9 10 5V power Data Data Cable shield Supply ground USB 10 Pin Modular Plug ...
Страница 226: ...212 HH1800 User Guide PROGRAMMING CHART 0 1 2 3 4 5 6 7 8 9 ...