Enter Setup
** Exit Setup
136
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
” string is
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
Summary of Contents for NLS-FM3051-2X
Page 1: ...NLS FM305X 2X Fixed Mount Barcode Scanner User Guide...
Page 4: ......
Page 13: ...Appendix 9 Code Pages List 172 Appendix 10 Symbology ID Number 173...
Page 14: ......
Page 17: ...Enter Setup 3 Exit Setup Dimensions unit mm FM3056 2X Scanner...
Page 18: ...Enter Setup Exit Setup 4 FM3051 2X Scanner...
Page 19: ...Enter Setup 5 Exit Setup IR Triggering Range...
Page 20: ...Enter Setup Exit Setup 6 Optics Horizontal...
Page 21: ...Enter Setup 7 Exit Setup Vertical...
Page 31: ...Enter Setup 17 Exit Setup Stop Bits 1 Stop Bit 2 Stop Bits...
Page 56: ...Enter Setup Exit Setup 42 Beep Type Type 1 Type 3 Type 2 Beep Volume Loud Low Medium...
Page 181: ...167 Appendix 6 Digit Barcodes 0 9 0 5 1 6 2 7 3 8 4 9...
Page 182: ...168 A F A B C D E F...