210
BA Replace a string with another
Syntax
=
BAnnNN
1
SS
1
NN
2
SS
2
nn: The count of replacements to be made, if nn=00 or nn>=the number of occurrences of a string to be replaced, then
replace all occurrences of that string.
NN
1
: The length of the string to be replaced, NN
1
>0.
SS
1
: The ASCII hex value of each character in the string to be replaced.
NN
2
: The length of replacement string, NN
2
>=0. To replace string
“SS
1
” with NUL (i.e. deIete string “SS
1
”), you should set
NN
2
to 00 and leave out SS
2
.
SS
2
: The ASCII hex value of each character in the replacement string.
From the current cursor position, search forward for the occurrence of
“SS
1
” string (of length “NN
1
”) and replace the string
with
“SS
2
” string (of length “NN
2
”) in the output message until every “SS
1
” stringis replaced or the count of replacements
made reaches
“nn” times, without moving the cursor.
BA Example: Replace
“23”s with “ABC”s in barcode data
If the barcode has a string of characters that the host application does not want included, you can use the BA command to
replace the string with something else. In this example, you will replace the
“23”s in the barcode above with “ABC”s.
Command string:
BA0002323303414243F100
BA is the
“Replace a string with another” command
00 is the count of replacements to be made, 00 means to replace all occurrences of that string
02 is the length of the string to be replaced
Содержание NLS-HR42
Страница 1: ...NLS HR42 2D Handheld Barcode Scanner User Guide...
Страница 23: ...9 Dimensions Left View Front View...
Страница 24: ...10 Top View...
Страница 39: ...25 SCNMOD3 Continuous Mode SCNMOD7 Batch Mode SCNMOD5 Aiming Mode SCNMOD4 Pulse Mode SCNMOD1 Trigger Mode...
Страница 48: ...34...
Страница 65: ...51 KBWCTY27 UK KBWCTY28 Japan...
Страница 79: ...65 KBWPOR8 9ms KBWPOR9 10ms...
Страница 114: ...100 FEBSDT35 35ms FEBSDT40 40ms FEBSDT45 45ms FEBSDT50 50ms FEBSDT55 55ms FEBSDT60 60ms FEBSDT65 65ms...
Страница 115: ...101 FEBSDT70 70ms FEBSDT75 75ms...
Страница 116: ...102 Transmit Delay per 12 Characters FEBMEN0 Disable FEBMEN1 Enable...
Страница 118: ...104 FEBMDT6 800ms FEBMDT7 900ms...
Страница 168: ...154 Enable Disable PDF417 ECI Output PDFECI0 Enable PDF417 ECI Output PDFECI1 Disable PDF417 ECI Output...
Страница 184: ...170 DMCREC1 Enable Rectangular Barcode DMCREC0 Disable Rectangular Barcode...
Страница 186: ...172 Enable Disable Data Matrix ECI Output DMCECI1 Enable Data Matrix ECI Output DMCECI0 Disable Data Matrix ECI Output...
Страница 198: ...184 PNTCHK1 Do Not Transmit USPS Postnet Check Character PNTCHK2 Transmit USPS Postnet Check Character...
Страница 236: ...222 CID099 Modify USPS Planet Code ID CID100 Modify KIX Post Code ID CID101 Modify Australian Postal Code ID...
Страница 242: ...228 Appendix Digit Barcodes 0 9 DIGIT0 0 DIGIT1 1 DIGIT2 2 DIGIT3 3 DIGIT4 4 DIGIT5 5...
Страница 243: ...229 DIGIT6 6 DIGIT7 7 DIGIT8 8 DIGIT9 9...
Страница 244: ...230 A F DIGITA A DIGITB B DIGITC C DIGITD D DIGITE E DIGITF F...
Страница 254: ...240 Terminating Character Suffix Enabled CR 0x0D Max 2 characters...