209
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 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>
Summary of Contents for NLS-HR42
Page 1: ...NLS HR42 2D Handheld Barcode Scanner User Guide...
Page 23: ...9 Dimensions Left View Front View...
Page 24: ...10 Top View...
Page 48: ...34...
Page 65: ...51 KBWCTY27 UK KBWCTY28 Japan...
Page 79: ...65 KBWPOR8 9ms KBWPOR9 10ms...
Page 115: ...101 FEBSDT70 70ms FEBSDT75 75ms...
Page 116: ...102 Transmit Delay per 12 Characters FEBMEN0 Disable FEBMEN1 Enable...
Page 118: ...104 FEBMDT6 800ms FEBMDT7 900ms...
Page 184: ...170 DMCREC1 Enable Rectangular Barcode DMCREC0 Disable Rectangular Barcode...
Page 242: ...228 Appendix Digit Barcodes 0 9 DIGIT0 0 DIGIT1 1 DIGIT2 2 DIGIT3 3 DIGIT4 4 DIGIT5 5...
Page 243: ...229 DIGIT6 6 DIGIT7 7 DIGIT8 8 DIGIT9 9...
Page 244: ...230 A F DIGITA A DIGITB B DIGITC C DIGITD D DIGITE E DIGITF F...
Page 254: ...240 Terminating Character Suffix Enabled CR 0x0D Max 2 characters...