34
(2) Transferring the substituted element string
If the bar code data contains the specified substitution string within the specified search area, the scanner transfers the
substituted element string followed by the bar code data read.
(Example)
Search start position Search string Substitution string Output data
2nd position 456 A [STX]K11A1234567890[ETX]
5th position 890 XYZ [STX]K13XYZ1234567890[ETX]
9th position 890 XYZ Error
(3) Transferring the substituted full string
If the bar code data contains the specified substitution string within the specified search area, the scanner substitutes the
search string with the substitution string and transfers the full string. If it contains two or more search strings, only the first
one is substituted.
(Example)
Search start position Search string Substitution string Output data
2nd position 456 A [STX]K08123A7890[ETX]
5th position 890 XYZ [STX]K101234567XYZ[ETX]
9th position 890 XYZ Error
9.3 Blocksorting Data
The scanner splits bar code data read into a maximum of 5 blocks at the specified split positions and sorts those blocks in
the specified order.
The split position must be specified by the number of digits from the head of bar code data. Specifying the number of
digits exceeding that in the bar code data results in an error.
The following sample bar code and scanner settings output data as listed below depending upon the sorting conditions.
- Bar code sample
Bar code type: Code 128, Data read: 1234567890
- Scanner settings
Header: STX, Terminator: ETX, Prefix/Suffix: None, Code ID mark: Type 1,
Transmission of number of digits: 2 digits
(Example)
Split position Order of blocks Output data
3rd position, 8th position Block 2, 1, 3 [STX]K104567812390[ETX]
3rd position, 8th position Block 1, 3 [STX]K0512390[ETX]