5 - 38 DS6878 Product Reference Guide
Multicode Expression
Parameter # 661
Use this feature to program a multicode expression for Multicode Mode (grid method). The default is 1, which
indicates any bar code.
To set the multicode expression:
1. Scan the bar code below.
2. Scan bar codes from the alphanumeric keyboard in Chapter 16, Advanced Data Formatting to define the
expression.
3. Scan the End of Message bar code from Chapter 16, Advanced Data Formatting.
Multicode Expression Syntax
[n] [Element 1]; [Element 2 ]; ... [Element n];
Where:
n is the number of elements in the overall expression.
The multicode expression describes the bar code(s) that the digital scanner can expect to find in an
image. Each element represents one bar code in the digital scanner's field of view. The order of elements
in the expression is the order in which bar code data from each element transmits to the host. Elements
are defined using one or more of the following methods:
•
By Region. This type of element limits decoding to a specific area within the digital scanner's field of view.
Region coordinates are defined as the top left and bottom right corners of the region, expressed in
percentages of the field of view. These can range from 0% to 100%, or 0x00 to 0x64 in hex, for both
horizontal and vertical axes. A region element is constructed as:
[R] [4] [Top, Left] [Bottom, Right]
Where:
• [R] is the character R
• [4] is 0x04, indicating there are four bytes thereafter to describe the region
• [Top, Left] are two values representing the top left corner of the region
• [Bottom, Right] are two values representing the bottom right corner of the region
•
By Code Type. An element can specify a specific bar code symbology to find and decode somewhere in
the field of view. A code type element is constructed as:
[C] [2] [Code Type]
Where:
• [C] is the character C
• [2] is 0x02, indicating there are two bytes thereafter to describe the code type
• [Code Type] is the desired symbology's parameter number (see Chapter 15, Symbologies). For
single-byte parameter numbers, extend the value to two bytes by adding 00 before the parameter
number.
Multicode Expression