
MDI-4000 Series Serial Interface Manual
89
7.2.3.2
Code Identification (ID)
To add the Code Identification (ID), send a Code ID command with the command to set a
prefix/suffix.
Code ID Commands
Command
Description
$2
Code identification using OPTICON ID
$1
Code identification using AIM ID/ ISO 15424
Use one of these code identification methods:
•
OPTICON Code ID. For more information, see
“Code ID Table” on page 101
•
AIM/ISO Code ID. For more information, see
“Code Option AIM/ISO15424 Code ID
The code identifier is transmitted in ISO 15424 format:
]cM
where:
•
]
is ASCII decimal value 93
•
c
is a code character
•
M
is modifier character
Example Code ID command:
To add
“<OPTICON Code ID>” to the all codes prefix, send this command:
<Esc>RY$2<CR>
7.2.3.3
Code Length
To add the code length, send a code length command with the command to set a prefix/suffix.
For 1D barcodes, the code length is transmitted as 2 digits (excluding prefix and suffix
characters). For 2D barcodes, the code length is transmitted as 6 digits. You can also send the
length as 6 digits for both 1D and 2D barcodes. These direct input characters are counted as 1
of the 4 digits in the prefix and suffix.
Code Length Commands
Command
Description
Default
$3
Code length (1D/2D: 2/6 digit)
$6
Code length (1D/2D: 6/6 digit)
Example Code Length command:
To set the prefix for all codes to <Code length (1D/2D: 2/6 digit)>, send this command:
<ESC>RY$3<CR>
7.2.3.4
Code Coordinates
The code coordinate is transmitted as the pixel coordinate of the image sensor. You can output
the vertexes or the center of the code within the image.