7.2 How to Add Characters
You can add special characters that provide additional information to the beginning or end of a
barcode. The output format depends on whether you add a prefix/suffix or a
preamble/postamble.
Prefix/Suffix
You can add a prefix or suffix of up to 4 digits to the data string. For each barcode symbology,
you can specify characters to add before or after the data. By default, the prefix is empty and
the suffix for all barcodes is the "CR" character.
Note: If the number of configured prefix/suffix characters exceeds the maximum of 4 digits, the
configuration is ignored.
Note: You cannot add a prefix or suffix if you are using Optical Character Recognition Data Edit
Reading. For more information, see
Barcodes" on page
Preamble/Postamble
You can add a preamble or postamble of up to 8 digits to the data string. For all barcode
symbologies, you can specify characters to add before or after the data. By default, the
preamble and postamble are empty.
Preamble
for each code
8 digits max
*By default, <CR> is added to suffix. To clear the default suffix, use the "RZ" command.
Figure 40: Prefix/Suffix and Preamble/Postamble
7.2.1
How to Set the Prefix/Suffix
When you set the prefix/suffix, the prefix/suffix commands clear the current values, including the
default suffix "CR" and configure new settings.
For all barcodes, the default suffix is:
•
HID: "Enter"
•
COM: "CR"
•
UART: "CR"
To set the Prefix/Suffix
1. Send a prefix/suffix command from
2. Send a value command from
"Optical Character Recognition" on page 59
54.
Prefix
Decoded Data
4 digits max
"Prefix/Suffix Value Commands" on page
MDI-4000 Series Serial Interface Manual
Suffix
for each code*
4 digits max
"Prefix/Suffix Commands" on page
"OCR
and
Postamble
8 digits max
85.
86.
85