260
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
rep
lace 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
32 is the hex value for 2 (character in the string to be replaced)
33 is the hex value for 3 (character in the string to be replaced)
03 is the length of the replacement string
Summary of Contents for NLS-NVH300 Series
Page 1: ...NLS NVH300 Industrial Handheld Barcode Scanner User Guide ...
Page 3: ...Revision History Version Description Date V1 0 0 Initial release September 5th 2019 ...
Page 20: ...6 Dimensions of the Scanner unit mm NVH300 DP NVH300 HD Left View Front View ...
Page 21: ...7 Top View ...
Page 28: ...14 ...
Page 37: ...23 AMLENA2 Always On ...
Page 47: ...33 SCNMOD13 Pre Aiming Mode ...
Page 62: ...48 ...
Page 66: ...52 232PAR1 Even Parity 232PAR2 Odd Parity ...
Page 79: ...65 KBWCPG12 Code Page 932 Japanese Shift JIS ...
Page 89: ...75 KBWPOR5 6ms KBWPOR6 7ms KBWPOR7 8ms KBWPOR8 9ms KBWPOR9 10ms ...
Page 93: ...79 ...
Page 97: ...83 Enhance Poor Quality 1D Barcode Decoding ALL1DE0 Off ALL1DE1 On ...
Page 104: ...90 EA8EXP1 Convert EAN 8 to EAN 13 ...
Page 124: ...110 UPAPRE1 System Character UPAPRE2 System Character Country Code ...
Page 131: ...117 FEBSDT70 70ms FEBSDT75 75ms ...
Page 139: ...125 characters including the check character cannot be read ...
Page 143: ...129 including the check character cannot be read ...
Page 150: ...136 including the check character cannot be read ...
Page 152: ...138 CBASCF3 abcd tn e as the Start Stop Character ...
Page 156: ...142 characters including the two check characters cannot be read ...
Page 160: ...146 characters including the check character cannot be read ...
Page 172: ...158 C11CHK5 One Check Character MOD11 Len 10 Two Check Characters MOD11 MOD9 Len 10 ...
Page 175: ...161 Set ISBN Format ISBT101 ISBN 10 ISBT100 ISBN 13 ...
Page 180: ...166 characters including the check character cannot be read ...
Page 192: ...178 including the check characters cannot be read ...
Page 204: ...190 TLPASC2 Full ASCII and Numeric Only Output ...
Page 209: ...195 PDFENC1 UTF 8 ...
Page 210: ...196 PDF417 ECI Output PDFECI0 Disable PDF417 ECI Output PDFECI1 Enable PDF417 ECI Output ...
Page 217: ...203 QRCENC1 UTF 8 ...
Page 218: ...204 QR ECI Output QRCECI0 Disable QR ECI Output QRCECI1 Enable QR ECI Output ...
Page 224: ...210 Set the Number of Barcodes AZTMUL1 1 AZTMUL2 2 AZTMUL3 3 AZTMUL4 4 AZTMUL5 5 AZTMUL6 6 ...
Page 225: ...211 AZTMUL7 7 AZTMUL8 8 ...
Page 231: ...217 DMCINV2 Decode Both ...
Page 245: ...231 the Enable USPS Intelligent Mail barcode ...
Page 259: ...245 DFMTON1 Non Match Error Beep On ...
Page 263: ...249 DFMQFA Query Preset Data Formats ...
Page 287: ...273 CID030 Modify GS1 Composite Code ID CID031 Modify GS1 Databar Code ID ...
Page 289: ...275 CID042 Modify Micro PDF417 Code ID CID043 Modify Micro QR Code ID ...
Page 297: ...283 Appendix Digit Barcodes 0 9 DIGIT0 0 DIGIT1 1 DIGIT2 2 DIGIT3 3 DIGIT4 4 ...
Page 298: ...284 DIGIT5 5 DIGIT6 6 DIGIT7 7 DIGIT8 8 DIGIT9 9 ...
Page 299: ...285 A F DIGITA A DIGITB B DIGITC C DIGITD D DIGITE E DIGITF F ...
Page 314: ...300 ...
Page 321: ...307 ...