95
5.
DATA FORMATTING
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
02
30
0D
F1
0D
“Replace characters” command
Total count of characters to be replaced, plus the replacement characters
(0 is replaced by CR, so total characters = 2)
Hex value for 0
Hex value for a CR (the character that will replace the 0)
“Send all characters” command
Hex value for a CR
The data is output as:
1234
5678
ABC
<CR>
E5—Stop replacing characters
Terminates character replacement.
Syntax = E5
FE—Compare characters
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),
for decimal, hex and
character codes.
EC—Check for a number
Check to make sure there is an ASCII number at the current cursor position.
The format is aborted if the character is not numeric. 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
FC
F1
0D
“Check for a number” command
“Send all characters” command
Hex value for a CR
Содержание CM-2D202
Страница 1: ...2D Handheld Barcode Scanner User Manual Ver 1 4 Copyright March 14 2018 All rights reserved...
Страница 19: ...19 2 PROGRAM THE INTERFACE Croatia Czech Czech Programmers Czech QWERTY Czech QWERTZ Denmark Dutch Netherlands...
Страница 20: ...20 2 PROGRAM THE INTERFACE Estonia Faroese Finland France Gaelic Germany Greek...
Страница 22: ...22 2 PROGRAM THE INTERFACE Hungarian 101 key Hungary Iceland Irish Italian 142 Italy Japan ASCII Kazakh...
Страница 23: ...23 2 PROGRAM THE INTERFACE Kyrgyz Cyrillic Latin America Latvia Latvia QWERTY Lithuania Lithuania IBM Macedonia...
Страница 24: ...24 2 PROGRAM THE INTERFACE Malta Mongolian Cyrillic Norway Poland Polish 214 Polish Programmers Portugal...
Страница 25: ...25 2 PROGRAM THE INTERFACE Romania Russia Russian MS Russian Typewriter SCS Serbia Cyrillic Serbia Latin...
Страница 26: ...26 2 PROGRAM THE INTERFACE Slovakia Slovakia QWERTY Slovakia QWERTZ Slovenia Spain Spanish variation Sweden...
Страница 35: ...35 2 PROGRAM THE INTERFACE 19200 bps 38400 bps 57600 bps 115200 bps...
Страница 73: ...73 3 INPUT OUTPUT SETTINGS Upright Vertical Bottom to Top Upside Down Vertical Top to Bottom...
Страница 141: ...141 6 SYMBOLOGIES 5 Digit Addenda Off...
Страница 145: ...145 6 SYMBOLOGIES Off...
Страница 151: ...151 6 SYMBOLOGIES Validate Type 11 then Type 10 Character and Transmit Disable MSI Check Characters...
Страница 154: ...154 6 SYMBOLOGIES Maximum Message Length...
Страница 157: ...157 6 SYMBOLOGIES Maximum Message Length...
Страница 230: ...230 Appendix A Reference Charts...
Страница 233: ...233 Appendix A Reference Charts...
Страница 236: ...236 Appendix A Reference Charts Programming Chart Numeric code table 0 1 2 3 4 5 6 Programming Chart Numeric code table...
Страница 237: ...237 Appendix A Reference Charts 7 8 9 Save Discard...
Страница 239: ...239 Appendix A Reference Charts 7 8 9 A B C D...