15.1 Bar code samples .................................................................................................................78
15.2 Configuration via configuration codes................................................................................... 79
Leuze electronicDCR 504
1About this document
1.1Used symbols and signal words
Tab.1.1: Warning symbols and signal words
Symbol indicating dangers to persons
NOTESignal word for property damage
Indicates dangers that may result in property damage if the measures for danger avoidance are not followed.
Tab.1.2: Other symbols
Symbol for tips
Text passages with this symbol provide you with further information.
Symbols for action steps
Text passages with this symbol instruct you to perform actions.
About this document
Symbol for action results
Text passages with this symbol describe the result of the preceding action.
Tab.1.3: Terms and abbreviations
BCLBar code reader
CMOSSemiconductor process for implementing integrated circuits
(Complementary Metal-Oxide-Semiconductor)
DCRImage-based code reader
(Dual Code Reader)
DTMSoftware device manager
(Device Type Manager)
EMCElectromagnetic compatibility
ENEuropean standard
FDTSoftware frame for management of device managers (DTM)
(Field Device Tool)
FEFunctional earth
GUIGraphical user interface
HIDDevice class for input devices with which users directly interact
(Human Interface Device)
IO or I/OInput/Output
LEDLED
(Light Emitting Diode)
PLCProgrammable Logic Control
(corresponds to Programmable Logic Controller (PLC))
Leuze electronicDCR 505
2Safety
This scan engine was developed, manufactured and tested in accordance with the applicable safety standards. It corresponds to the state of the art.
2.1Intended use
The DCR50 scanengine is designed as an installation scanner with integrated decoder for all of the most
popular 1D and 2D codes for automatic object recognition.
Areas of application
The DCR50 scanengine is intended especially for the following areas of application:
• In automatic analyzers
• For space-critical code reading tasks
• For installation in a housing or beneath covers
Observe intended use!
The protection of personnel and the device cannot be guaranteed if the device is operated in a
manner not complying with its intended use.
Ä Only operate the device in accordance with its intended use.
Ä LeuzeelectronicGmbH+Co.KG is not liable for damages caused by improper use.
Ä Read these operating instructions before commissioning the device. Knowledge of the oper-
Safety
CAUTION
ating instructions is an element of proper use.
NOTICE
Comply with conditions and regulations!
Ä Observe the locally applicable legal regulations and the rules of the employer's liability insur-
ance association.
2.2Foreseeable misuse
Any use other than that defined under "Intended use" or which goes beyond that use is considered improper use.
In particular, use of the device is not permitted in the following cases:
• in rooms with explosive atmospheres
• in circuits which are relevant to safety
• for medical purposes
NOTICE
Do not modify or otherwise interfere with the device!
Ä Do not carry out modifications or otherwise interfere with the device. The device must not be
tampered with and must not be changed in any way.
Ä The device must not be opened. There are no user-serviceable parts inside.
Ä Repairs must only be performed by Leuze electronic GmbH + Co. KG.
Leuze electronicDCR 506
2.3Competent persons
Connection, mounting, commissioning and adjustment of the device must only be carried out by competent
persons.
Prerequisites for competent persons:
• They have a suitable technical education.
• They are familiar with the rules and regulations for occupational safety and safety at work.
• They are familiar with the operating instructions for the device.
• They have been instructed by the responsible person on the mounting and operation of the device.
Certified electricians
Electrical work must be carried out by a certified electrician.
Due to their technical training, knowledge and experience as well as their familiarity with relevant standards
and regulations, certified electricians are able to perform work on electrical systems and independently detect possible dangers.
In Germany, certified electricians must fulfill the requirements of accident-prevention regulations BGV A3
(e.g. electrician foreman). In other countries, there are respective regulations that must be observed.
2.4Disclaimer
LeuzeelectronicGmbH+Co.KG is not liable in the following cases:
• The device is not being used properly.
• Reasonably foreseeable misuse is not taken into account.
• Mounting and electrical connection are not properly performed.
• Changes (e.g., constructional) are made to the device.
Safety
Leuze electronicDCR 507
3Device description
3.1Device overview
3.1.1About the DCR50 scanengine
The code reader is based on a scan engine with CMOS imager with integrated decoder for all of the most
popular 1D and 2D codes such as DataMatrix, Aztec, QRCode, 2/5 Interleaved, Code39, Code128, UPC/
EAN etc.
The many possible configurations of the device allow it to be adapted to a multitude of reading tasks. Due
to the small dimensions of the unit and the large reading field, the device can also be used in highly constrained spaces.
Information on technical data and characteristics: see chapter 12 "Technical data".
3.1.2Stand-alone operation
The scan engine is operated as a single "stand-alone" device. It is equipped with a 6-pin Molex connector
for the power supply electrical connection, the interface, the trigger input, and the switching output.
The scan engine can be attached at two M2.5 through-hole mounting tabs.
In addition, two 2mm deep inserts for M1.8 self-tapping screws are provided on top of the scan engine.
4.1Selecting a mounting location
NOTICE
The size of the code module influences the maximum reading distance and the width of the
reading field. Therefore, when selecting a mounting location and/or the code label, take into account the different reading characteristics of the scanner with various code modules.
NOTICE
Observe when choosing the mounting location!
Ä Maintaining the required environmental conditions (temperature, humidity).
Ä Possible soiling of the reading window due to liquids, abrasion by boxes, or packaging mate-
rial residues.
Ä Lowest possible chance of damage to the scanner by mechanical collision or jammed parts.
Ä Possible extraneous light influence (no direct sunlight).
Mounting
The best read results are obtained when
• the reading distance lies in the middle area of the reading field.
• there is no direct sunlight and extraneous light is avoided.
• the bar code labels are of good print quality and have good contrast ratios.
• you do not use high-gloss labels.
• the bar code or the Data Matrix code is moved past the reading window with an angle of rotation of 10°
to 15°.
• the red light beam is narrowed down for its respective reading task in order to avoid reflections on shiny
components.
NOTICE
The front beam exit of the scan engine is almost vertical to the optics. The code label must be
rotated by >10° to avoid a total reflection of the red light beam in the case of glossy labels.
αAzimuth angle
βAngle of inclination
γAngle of rotation
Recommended angle of rotation: γ > 10°
Fig.4.1: Definition of the reading angles
Leuze electronicDCR 5010
5Electrical connection
CAUTION
Safety notices
Ä Before connecting the device, be sure that the supply voltage agrees with the value printed
on the name plate.
Ä Connection of the device and maintenance work while under voltage must only be carried
out by a qualified electrician.
Ä The power supply unit for the generation of the supply voltage for the scan engine and the
corresponding connection units must have a secure electrical insulation according to
IEC60742 (PELV). For UL applications: only for use in class 2 circuits according to NEC.
Ä If faults cannot be cleared, the device should be switched off and protected against acciden-
tal use.
5.1Voltage supply
The scan engine is designed for connection to a 5V supply voltage.
• +5V DC (pin1)
• GND (pin2)
A MA-CR Modular adapter unit (interface device-to-host to connect to a PC for evaluation, 50128204) with
spring terminals, Molex connector, and D-SUB 9-pin socket is available as an accessory (see chapter 13.2
"Accessories").
• With the MA-CR Modular adapter unit, the 6-pin connector of the scan engine can be contacted via a
150mm long interconnection cable with a 12-pin Molex terminal strip and connected to the PC via the
D-SUB 9-pin socket using an RS 232 interconnection cable.
• With the MA-CR Modular adapter unit, the voltage supply of 10…30V DC can be fed in via spring terminals or, alternatively, 5V DC can be fed in via a micro USB connector.
Electrical connection
5.2Pin assignment
PinSignalIN / OUT
1VCC / +5V DCIN
2GROUNDIN
3TRIGGERIN
4GOOD READOUT
5RS232 TXOUT
6RS232 RXIN
5.3Switching input / switching output
The scan engine has a switching input and a switching output.
• The switching input is used to trigger code reading.
• The switching output signals successful code reading.
5.3.1Switching input
A read process can be triggered using the trigger input (pin5) in the standard setting (low = active) via the
connection to GND (pin2). We recommend wiring a 2.2kΩ pull-up resistor as defined cable termination.
Leuze electronicDCR 5011
+ 5 V DC
TRIGGER
GND
4.75 … 5.25 V DC
GND
2.2 k
1
5
2
Connection version NPN: standard setting (low = active)
+ 5 V DC
OUT
GND
GND
+ 5 V DC
max. 20 mA !
R
L
4.75 … 5.25 V DC
1
4
2
Fig.5.1: Wiring example of the trigger input
5.3.2Switching output
The NPN switching output connection between switching output (pin4) and GND (pin2) switches if a code
is detected against GND.
Electrical connection
Fig.5.2: Switching output
NOTICE
Maximum loading of the switching output
Ä Do not load the switching output of the scan engine with more than 20mA at +5…VDC!
Leuze electronicDCR 5012
5.4PC or terminal connection
1
2
1011
3
4
8
9
567
Via the serial interface, you can configure the scan engine by means of a PC or terminal. For this, you need
a RS232 connection that establishes the RxD, TxD and GND connections between PC and scan engine.
The RS232 connection can be established in the following ways:
• Direct connection of the plug connector of the scan engine to the PC or terminal via its own connector.
• Connection via a MA-CR modular adapter unit
To simplify the connection of the connection wires to the PC interface, a modular adapter unit (MA-CR)
is available for implementing the 6-pin plug connector to D-SUB, 9-pin (see chapter 13.2 "Accessories").
Electrical connection
1RS232 connection
2CR50 or DCR80 connection
3DCR50, DCR85, CR100, CR55 connection
4Molex Micro-Fit, 6-pin
5USB connection
6Connection to machine control, PLC, external voltage supply 5VDC
7External voltage supply 10…30VDC
8SWIN DIP switch (level for trigger button; 5V if the scanner high switching input is active, GND if the low input is
active)
9USB/PWR DIP switch (USB position if voltage is supplied via USB; PWR position if voltage is supplied via(7))
10Trigger button
11Status LEDs
Fig.5.3: Connection options for MA-CR modular adapter unit
5.5Cable lengths and shielding
The maximum cable length is 3m.
Should a cable extension be necessary, make certain that the cables of the RS232 interface are shielded.
Leuze electronicDCR 5013
Configuration and diagnostics software - SensorStudio
6Configuration and diagnostics software - SensorStudio
The SensorStudio configuration software provides a graphical user interface for the operation, configuration and diagnosis of the device via the RS232 interface.
A device that is not connected to the PC can be configured offline.
Configurations can be saved and reopened as projects for transferring back to the device at a later time.
NOTICE
Only use the SensorStudio configuration software for products manufactured by Leuzeelectronic.
The SensorStudio configuration software is offered in the following languages: German, English, French, Italian and Spanish.
The FDT frame application of the SensorStudio supports all languages; all languages may not
be supported in the device DTM (Device Type Manager).
The SensorStudio configuration software is designed according to the FDT/DTM concept:
• You make the individual configuration settings for the scan engine in the Device Type Manager (DTM).
• The individual DTM configurations of a project can be called up via the frame application of the Field
Device Tool (FDT).
• Communication DTM for scan engines: LeCommInterface
• Device DTM for scan engine DCR50
Procedure for the installation of the software and hardware:
Ä Install the SensorStudio configuration software on the PC.
Ä Install the communication and device DTMs.
Communication and device DTM are included in the LeAnalysisCollectionSetup installation package.
Ä Create DCR50-DTM in the project tree of the Sensor Studio FDT frame.
Ä Connect scan engine to PC (see chapter 5.4 "PC or terminal connection").
6.1System requirements
To use the SensorStudio configuration software, you need a PC or laptop with the following specifications:
Tab.6.1: System requirements for SensorStudio installation
Operating systemWindowsXP or higher (32bit, 64bit)
ComputerProcessor type: 1GHz or higher
Graphics cardAt least 1024x768 pixels
Required hard disk capacity for
SensorStudio and communication DTM
NOTICE
Administrator privileges on the PC are necessary for installing SensorStudio.
WindowsVista
Windows7
Windows8
Serial COM interface
CD-ROM drive
Main memory (RAM): at least 64MB
Keyboard and mouse or touchpad
35MB
Leuze electronicDCR 5014
Configuration and diagnostics software - SensorStudio
The installation files of the SensorStudio configuration software must be downloaded from the
Internet at www.leuze.com.
For subsequent updates, you can find the most recent version of the SensorStudio installation
software on the Internet at www.leuze.com.
6.2.1Downloading configuration software
Ä Call up the Leuze home page: www.leuze.com
Ä Enter the type designation or part number of the device as the search term.
Ä The configuration software can be found on the product page for the device under the Downloads tab.
6.2.2Installing the SensorStudio FDT frame
NOTICE
First install the software!
Ä Do not yet connect the device to the PC. First install the software.
NOTICE
If FDT frame software is already installed on your PC, you do not need the SensorStudio installation.
You can install the communication DTM and the device DTM in the existing FDT frame. Communication DTM and device DTM are included in the LeAnalysisCollectionSetup installation
package.
Ä Start the PC.
Ä Download the configuration software from the Internet to the PC (see chapter 6.2.1 "Downloading con-
figuration software").
Unpack the installation package.
Ä Start the SensorStudioSetup.exe file.
Ä Follow the instructions on the screen.
The Installation Wizard installs the software and places a shortcut on the desktop ().
6.2.3Installing the communication DTM and the device DTM
Prerequisites:
ü A FDT frame is installed on the PC.
Ä Start the LeAnalysisCollection.exe file from the installation package and follow the instructions on the
screen.
The installation wizard installs communication DTM and device DTM for DCR50.
6.2.4Connecting device to PC
The device is connected to the PC via the RS232 interface.
• You need an RS232 connection that establishes the RxD, TxD and GND connections between PC and
device (see chapter 5.4 "PC or terminal connection").
• The 5V DC voltage supply is to be fed in externally (see chapter 5.1 "Voltage supply").
Leuze electronicDCR 5015
Configuration and diagnostics software - SensorStudio
NOTICE
The MA-CR modular adapter unit with spring terminals and plug connector for connecting the
device, as well as a D-SUB 9-pin socket for connecting an RS 232 interconnection cable, is
available as an accessory (see chapter 13 "Order guide and accessories").
The MA-CR modular adapter unit requires 10V…30VDC as external voltage supply, which
can be fed in via spring terminals. Alternatively, 5VDC can be fed via the 6-pin plug connector
of the DCR50 using a 150mm long interconnection cable with 12-pin Molex terminal strip.
6.3Starting the SensorStudio configuration software
Prerequisites:
• The device has been mounted (see chapter 4 "Mounting") and connected (see chapter 5 "Electrical
connection") correctly.
• The device is connected to the PC via the RS232 interface (see chapter 6.2.4 "Connecting device to
PC").
• The SensorStudio configuration software is installed on the PC (see chapter 6.2 "Installing SensorStudio configuration software").
Ä Start the SensorStudio configuration software by double-clicking the SensorStudio icon ().
The mode selection of the Project Wizard is displayed.
Ä Select the Device selection without communication connection (offline) configuration mode and
click on [Next].
The Project Wizard displays the Device selection list of the configurable devices.
Fig.6.1: Device selection for scan engine DCR50
Leuze electronicDCR 5016
Configuration and diagnostics software - SensorStudio
Ä Select DCR50 in the Device selection and click on [Next].
The device manager (DTM) of the connected DCR50 starts with the offline view for the SensorStudio
configuration project.
Ä Establish the online connection to the connected DCR50.
In the SensorStudio FDT frame, click on the [Establish connection with device] button ().
In the SensorStudio FDT frame, click on the [Upload parameters to device] button ().
The current configuration data is displayed in the device manager (DTM).
Fig.6.2: Configuration project: SensorStudio device manager (DTM) for DCR50
Ä The menus of the SensorStudio device manager (DTM) can be used to change or read out the config-
uration of the connected device.
The user interface of the SensorStudio device manager (DTM) is largely self-explanatory.
The online help system provides information on the menu items and adjustment parameters. Select the
Help menu item in the menu [?] ().
Ä Transfer the modified configuration parameters to the device.
If a connection exists, click on the [Download parameters to device] button () on the task bar.
6.4Exiting SensorStudio
After completing the configuration settings, close the SensorStudio configuration software.
Ä Exit the program via File > Exit.
Ä Save the configuration settings as a configuration project on the PC.
You can open the configuration project again at later time via File > Open or with the SensorStudio
Project Wizard ().
Leuze electronicDCR 5017
6.5Configuration parameters
In this chapter, you will find information and explanations on the configuration parameters of the device
manager (DTM).
NOTICE
This chapter does not include a complete description of the SensorStudio configuration software.
Complete information on the FDT frame menu and on the functions in the device manager
(DTM) can be found in the online help system.
The device manager (DTM) of the SensorStudio configuration software offers the following configuration
functions:
• General (Control)
• Decode (see chapter 6.5.2 "Decode tab")
• Communications (see chapter 6.5.3 "Communications tab")
• Diagnosis (see chapter 6.5.4 "Diagnosis / Terminal")
NOTICE
The online help system displays information on the menu items and configuration parameters
for each function. Select the Help menu item in the menu [?].
Configuration and diagnostics software - SensorStudio
6.5.1Control tab
Fig.6.3: Control tab
Leuze electronicDCR 5018
Configuration and diagnostics software - SensorStudio
SCAN OPTIONS
Maximum labels to decodeThe device processes up to this number of codes per read code
event.
• If there are more codes in the field of view and within target tolerance and the device is set to decode more than one code, it will
decode all codes in the field of view.
• Set to 1 for fastest performance with single codes.
TargetingSwitch the blue targeting LED on and off.
DECODE OUTPUT OPTIONS
Output Result with AIM IDAllows for the output of the AIM symbology identifier with the decode
result.
Barcode Prefix/Suffix enabledEnables/ disables the output of prefix and suffix text with the decode
result.
Barcode Prefix text
Barcode Suffix text
REGION OF INTEREST (ROI)
ROILeft
ROITop
ROIWidth
ROIHeight
6.5.2Decode tab
Defines text of up to 255 characters that is added before/after the decode result.
Allows for setting the region of interest in the image where the labels
are decoded.
Fig.6.4: Decode tab
Leuze electronicDCR 5019
Configuration and diagnostics software - SensorStudio
SYMBOLOGIESUse the … button to the right of the given code to select the code-spe-
cific settings.
Alternatively, the property settings can be selected directly via the
navigation tree under the Decode button.
The properties can be individually set for each code type.
COMMON DECODE PROPERTIES
Maximum labels to decode
The device processes up to this number of codes per read code
event.
• If there are more codes in the field of view and within target tolerance and the device is set to decode more than one code, it will
decode all codes in the field of view.
• Set to 1 for fastest performance with single codes.
Fig.6.5: Standard settings for the Properties window (SYMBOLOGY SETTINGS) – Decode tab
Leuze electronicDCR 5020
6.5.3Communications tab
Configuration and diagnostics software - SensorStudio
Fig.6.6: Communications tab
Select the desired baud rate, the stop bits, the data bits, the parity and various transmission modes here.
The desired acknowledgment settings are also to be set in this selection window.
Leuze electronicDCR 5021
6.5.4Diagnosis / Terminal
Configuration and diagnostics software - SensorStudio
Fig.6.7: Terminal
The Terminal tab provides the following functions:
• Send online commands to the scan engine for diagnostic purposes.
• Visualize the output of the scan engine.
The contents of the terminal display can be printed out or saved in a file for subsequent offline evaluation.
Leuze electronicDCR 5022
Starting up the device - Configuration
7Starting up the device - Configuration
7.1Measures to be performed prior to the initial commissioning
NOTICE
Ä Please observe the notices for device arrangement, see chapter 4.1 "Selecting a mounting
location".
Ä If possible, always trigger the scanner with the aid of commands or an external signal trans-
mitter (photoelectric sensor).
Ä Before commissioning, familiarize yourself with the operation and configuration of the de-
vice(s).
Ä Before connecting the supply voltage, recheck all connections and ensure that they have
been properly made.
7.2Starting the device
7.2.1Interface
Proper function of the interface can be most easily tested in service operation using the serial interface with
the SensorStudio configuration software and a notebook computer.
7.2.2Online commands
Using the online commands, important device functions can be checked, e.g. reading activation.
7.2.3Problems
If a problem occurs that cannot be rectified even after checking all electrical connections and settings on
the devices and on the host, contact your responsible Leuzeelectronic subsidiary or Leuzeelectronic customer service, see chapter 11 "Service and support".
7.3Setting the communication parameters
You have now commissioned the device. Usually, you will have to configure it before you can use it. Using
the configuration options offered in the SensorStudio or by means of the device DTM, the device can be
individually configured according to your application. For information on the various configuration options,
see chapter 6 "Configuration and diagnostics software - SensorStudio" or refer to the online help.
It is normally sufficient to set the code type and code length in accordance with the 1D or 2D codes that are
to be read in order to be able to operate the device.
The setting of code type and code length is usually accomplished by using the SensorStudio configuration
software (see chapter 6 "Configuration and diagnostics software - SensorStudio").
Leuze electronicDCR 5023
8Configuration control
This chapter specifies the configuration commands of the scan engine.
Notations
The interface protocol is described as a set of grammars, indicated by different type styles and symbols.
(opt subscript)Optional terminals and non-terminals
(nr subscript)Applies to packets sent in non-raw mode, i.e. in
8.1Configuration command architecture
This section describes the format of configuration commands that the scan engine will accept to change
and save configuration settings.
Command format
Primary category
Example: SY,
CM, etc.
Sub-categoryAction code
(SP/R/G)
Example: AZTC,
SE, etc.
S – Change and save
P – Change but do not save
R – Reset to default value
G – Get value in effect
Literal byte values
packet mode
ParameterParameter value
Example: AL,
BA , [ , etc.
(when actions is
S or P)
String of decimal
number or text
Example: SYAZTCSPO1
This command sets the polarity to Inverse mode of the Aztec symbology and saves it to non-volatile memory. Breakdown of the command:
• SY=Symbology
• AZTC=Aztec
• S=Set
• PO=Polarity
• 1=Inverse Mode
Leuze electronicDCR 5024
Example: SYAZTCSPO1,MR1
This compound command sets the polarity to Inverse mode of the Aztec symbology and sets the ability to
read mirrored Aztec codes. It saves both to non-volatile memory. Breakdown of the command:
• SY=Symbology
• AZTC=Aztec
• S=Set
• PO=Polarity
• 1=Inverse Mode
• MR=Mirror
• 1=Enable
8.2Supported commands
8.2.1Symbology
Configuration control
Code DescriptionCommand Format Op-
tions
Get All Symbology Pa-
SYALLS GReturns all Symbology values in a single
rameters
Default
Notes/Examples
XML element
Example: SYALLSG
Australian Post – Get All
Parameter
SYAUPOGReturns all Australian post parameter
values in an XML element.
Example: SYAUPOG
Australian PostSYAUPOS/P/R/GEN00Disable
Example: SYAUPOSEN0
1Enable
Example: SYAUPOSEN1
Australian Post – Strip
Checksum
SYAUPOS/P/R/GSC00Disable
Example: SYAUPOSSC0
1Enable
Example: SYAUPOSSC1
This setting value is ignored if Australian
Post decoding is disabled.
Aztec – Get All Parameter
SYAZTCGReturns all Aztec parameter values in an
XML element.
Example: SYAZTCG
AztecSYAZTCS/P/R/GEN10Disable
Example: SYAZTCSEN0
1Enable
Example: SYAZTCSEN1
Leuze electronicDCR 5025
Configuration control
Code DescriptionCommand Format Op-
tions
Default
Notes/Examples
Aztec – PolaritySYAZTCS/P/R/GPO00Normal mode enabled - Black on
white background
Example: SYAZTCSPO0
1Inverse mode enabled - White on
black background
Example: SYAZTCSPO1
2Both normal and inverse modes
enabled
Example: SYAZTCSPO2
Note: This setting value is ignored if
Aztec decoding is disabled
Aztec – MirrorSYAZTCS/P/R/GMR00Disable
Example: SYAZTCSMR0
1Enable
Example: SYAZTCSMR1
The ability to decode an Aztec code that
has been printed as a mirror image of a
standard Aztec.
Note: This setting value is ignored if
Aztec decoding is disabled.
BC412 – Get All Parameter
SYB412 GReturns all BC412 parameter values in
an XML element.
Example: SYB412G
BC412SYB412 S/P/R/GEN00Disable
Example: SYB412SEN0
1Enable
Example: SYB412SEN1
BC412 – Reverse Decoding
SYB412 S/P/R/GRD00Disable
Example: SYB412SRD0
1Enable
Example: SYB412SRD1
The ability to decode a BC412 that is
printed in reverse.
Note: This setting value is ignored if
BC412 decoding is disabled.
Canada PostSYCAPOS/P/R/GEN00Disable
Example: SYCAPOSEN0
1Enable
Example: SYCAPOSEN1
Codabar – Get All Parameter
SYCBARGReturns all Codabar parameter values in
an XML element.
Example: SYCBARG
Leuze electronicDCR 5026
Configuration control
Code DescriptionCommand Format Op-
tions
Default
Notes/Examples
CodabarSYCBARS/P/R/GEN10Disable
Example: SYCBARSEN0
1Enable
Example: SYCBARSEN1
Codabar – Require
Checksum
SYCBARS/P/R/GCS00Disable checksum check and out-
put checksum if one exists.
Example: SYCBARSCS0
1Enable checksum check and out-
put checksum.
Example: SYCBARSCS1
2Enable checksum check and strip
checksum.
Example: SYCBARSCS2
Note: This setting value is ignored if
Codabar decoding is disabled.
Codabar – Strip Start/
Stop Characters
SYCBARS/P/R/GSS00Disable
Example: SYCBARSSS0
1Enable
Example: SYCBARSSS1
Note: This setting value is ignored if
Codabar decoding is disabled
CodablockASYCODAS/P/R/GEN00Disable
Example: SYCODASEN0
1Enable
Example: SYCODASEN1
CodablockFSYCODFS/P/R/GEN00Disable
Example: SYCODFSEN0
1Enable
Example: SYCODFSEN1
Code11 – Get All Parameter
SYCO11GReturns all code 11 parameter values in
an XML element.
Example: SYBCO11G
Code11SYCO11S/P/R/GEN00Disable
Example: SYCO11SEN0
1Enable
Example: SYCO11SEN1
Leuze electronicDCR 5027
Configuration control
Code DescriptionCommand Format Op-
tions
Code11 – Checksum
SYCO11S/P/R/GCS20Decode with checksum disabled
Off / 1-digit / 2-digit
Default
Notes/Examples
Example: SYCO11SCS0
1Decode with one checksum digits
checked.
Example: SYCO11SCS1
2Decode with two checksum digits
checked.
Example: SYCO11SCS2
Note: This setting value is ignored if
Code 11 decoding is disabled.
Code11 – Strip Checksum Characters On/Off
SYCO11S/P/R/GSC00Disable
Example: SYCO11SSC0
1Enable
Example: SYCO11SSC1
Note: This setting value is ignored if
Code 11 decoding is disabled.
Code32SYCO32S/P/R/GEN00Disable
Example: SYCO32SEN0
1Enable
Example: SYCO32SEN1
Code39 – Get All Parameter
SYCO39GReturns all Code39 parameter values in
an XML element.
Example: SYCO39G
Code39SYCO39S/P/R/GEN10Disable
Example: SYCO39SEN0
1Enable
Example: SYCO39SEN1
Code39 – Checksum
Off/On/On Strip Check
Character
SYC039 S/P/R/GCS00Disables checksum check & out-
put checksum if one exists
Example: SYCO39SCS0
1Enables checksum check and
output checksum
Example: SYCO39SCS1
2Enables checksum check and
strip checksum from decode data.
Example: SYCO39SCS2
Note: This setting value is ignored if
Code39 decoding is disabled.
Code39 – Extended
ASCII On/Off
SYCO39S/P/R/GEA00Disable
Example: SYCO39SEA0
1Enable
Example: SYCO39SEA1
Note: This setting value is ignored if
Code39 decoding is disabled.
Leuze electronicDCR 5028
Configuration control
Code DescriptionCommand Format Op-
tions
Code39 – Start Stop
SYCO39S/P/R/GSS00Disable
On/Off
Default
Notes/Examples
Example: SYCO39SSS0
1Enable
Example: SYCO39SSS1
Note: This setting value is ignored if
Code39 decoding is disabled
Code49SYCO49S/P/R/GEN1/00Disable
Example: SYCO49SEN0
1Enable
Example: SYCO49SEN1
Code93SYCO93S/P/R/GEN10Disable
Example: SYCO93SEN0
1Enable
Example: SYCO93SEN1
Code128SYC128 S/P/R/GEN10Disable
Example: SYC128SEN0
1Enable
Example: SYC128SEN1
CompositeSYCOMPS/P/R/GEN00Disable
Example: SYCOMPSEN0
1Enable
Example: SYCOMPSEN1
Data Matrix – Get All
Parameter
SYDATMGReturns all Data matrix parameter values
in an XML element.
Example: SYDATMG
Data MatrixSYDATMS/P/R/GEN10Disable
Example: SYDATMSEN0
1Enable
Example: SYDATMSEN1
Data Matrix – PolaritySYDATMS/P/R/GPO20Normal mode enabled - Black on
white background
Example: SYDATMSPO0
1Inverse mode enabled - White on
black background
Example: SYDATMSPO1
2Both normal and inverse modes
enabled
Example: SYDATMSPO2
Note: This setting value is ignored if
Data Matrix decoding is disabled.
Leuze electronicDCR 5029
Configuration control
Code DescriptionCommand Format Op-
tions
Default
Notes/Examples
Data Matrix – MirrorSYDATMS/P/R/GMR00Disable
Example: SYDATMSMR0
1Enable
Example: SYDATMSMR1
Note: This setting value is ignored if
Data Matrix decoding is disabled.
Data Matrix Rectangular SYDATMS/P/R/GRE10Disable
Example: SYDATMSRE0
1Enable
Example: SYDATMSRE1
Note: This setting value is ignored if
Data Matrix decoding is disabled
Data Matrix Rectangular
Extended
SYDATMS/P/R/GRX00Disable
Example: SYDATMSRX0
1Enable
Example: SYDATMSRX1
Note: This setting value is ignored if
Data Matrix decoding is disabled
Grid Matrix – Get All Parameter
SYGDMXGReturns all Grid Matrix parameter values
in an XML element.
Example: SYGDMXG
Grid MatrixSYGDMXS/P/R/GEN00Disable
Example: SYGDMXSEN0
1Enable
Example: SYGDMXSEN1
Grid Matrix – PolaritySYGDMXS/P/R/GPO10Normal mode enabled - Black on
white background
Example: SYGDMXSPO0
1Inverse mode enabled - White on
black background
Example: SYGDMXSPO1
2Both normal and inverse modes
enabled
Example: SYGDMXSPO2
Note: This setting value is ignored if Grid
Matrix decoding is disabled.
Grid Matrix – MirrorSYGDMXS/P/R/GMR00Disable
Example: SYGDMXSMR0
1Enable
Example: SYGDMXSMR1
Note: This setting value is ignored if Grid
Matrix decoding is disabled.
GS1 DataBar – Get All
Parameter
SYGS1DGReturns all GS1 DataBar parameter val-
ues in an XML element.
Example: SYGS1DG
Leuze electronicDCR 5030
Configuration control
Code DescriptionCommand Format Op-
tions
Default
Notes/Examples
GS1 DataBarSYGS1DS/P/R/GEN10Disable
Example: SYGS1DSEN0
1Enable
Example: SYGS1DSEN1
GS1 DataBar Omnidirectional & truncated
SYGS1DS/P/R/GOT00Disable
Example: SYGS1DSOT0
1Enable
Example: SYGS1DSOT1
GS1 DataBar StackedSYGS1DS/P/R/GST10Disable
Example: SYGS1DSST0
1Enable
Example: SYGS1DSST1
GS1 DataBar Expanded SYGS1DS/P/R/GEX10Disable
Example: SYGS1DSEX0
1Enable
Example: SYGS1DSEX1
GS1 DataBar Expanded
Stacked
SYGS1DS/P/R/GES10Disable
Example: SYGS1DSES0
1Enable
Example: SYGS1DSES1
GS1 DataBar LimitedSYGS1DS/P/R/GLI10Disable
Example: SYGS1DSLI0
1Enable
Example: SYGS1DSLI1
HanXin – Get All Parameter
SYHAXNGReturns all HanXin parameter values in
an XML element.
Example: SYHAXNG
HanXinSYHAXNS/P/R/GEN00Disable
Example: SYHAXNSEN0
1Enable
Example: SYHAXNSEN1
HanXin – PolaritySYHAXNS/P/R/GPO00Normal mode enabled - Black on
QR Code – PolaritySYQRCOS/P/R/GPO00Normal mode enabled - Black on
white background
Example: SYQRCOSPO0
1Inverse mode enabled - White on
black background
Example: SYQRCOSPO1
2Both normal and inverse modes
enabled
Example: SYQRCOSPO2
Note: This setting value is ignored if QR
code decoding is disabled.
Micro QR CodeSYQRCOS/P/R/GMI00Disable
Example: SYQRCOSMI0
1Enable
Example: SYQRCOSMI1
QR Code – MirrorSYQRCOS/P/R/GMR00Disable
Example: SYQRCOSMR0
1Enable
Example: SYQRCOSMR1
Note: This setting value is ignored if QR
Code decoding is disabled.
Leuze electronicDCR 5035
Configuration control
Code DescriptionCommand Format Op-
tions
Default
Notes/Examples
QR Code – Mode 1SYQRCOS/P/R/GM100Disable
Example: SYQRCOSM10
1Enable
Example: SYQRCOSM11
Note: This setting value is ignored if QR
Code decoding is disabled.
QR Code – CustomSYQRCOS/P/R/GCQ00Disable
Example: SYQRCOSCQ0
1Enable
Example: SYQRCOSCQ1
Note: This setting value is ignored if QR
Code decoding is disabled.
Straight 2 of 5SYS2O5 S/P/R/GEN00Disable
Example: SYS2O5SEN0
1Enable
Example: SYS2O5SEN1
Telepen – Get All Parameter
SYTELP GReturns all Telepen parameter values in
an XML element.
Example: SYTELPG
TelepenSYTELP S/P/R/GEN00Disable
Example: SYTELPSEN0
1Enable
Example: SYTELPSEN1
Telepen – Ouput ASCIISYTELP S/P/R/GOA00Disable
Example: SYTELPSOA0
1Enable
Example: SYTELPSOA1
Note: This setting value is ignored if
Telepen decoding is disabled.
Trioptic – Get All Parameter
SYTRIO GReturns all Trioptic parameter values in
an XML element.
Example: SYTRIOG
TriopticSYTRIO S/P/R/GEN00Disable
Example: SYTRIOSEN0
1Enable
Example: SYTRIOSEN1
Trioptic – ReverseSYTRIO S/P/R/GRV00Disable
Example: SYTRIOSRV0
1Enable
Example: SYTRIOSRV1
Note: This setting value is ignored if Tri-
optic decoding is disabled.
Leuze electronicDCR 5036
Configuration control
Code DescriptionCommand Format Op-
tions
Default
Notes/Examples
Trioptic – Start/StopSYTRIO S/P/R/GSS00Disable
Example: SYTRIOSSS0
1Enable
Example: SYTRIOSSS1
Note: This setting value is ignored if Tri-
optic decoding is disabled.
UK Royal MailSYUKROS/P/R/GEN00Disable
Example: SYUKROSEN0
1Enable
Example: SYUKROSEN1
UK Royal Mail – Require
Check Character
SYUKROS/P/R/GCC00Disable
Example: SYUKROSCC0
1Enable
Example: SYUKROSCC1
Note: This setting value is ignored if UK
Royal Mail decoding is disabled.
UPC/EAN – Get All Parameter
SYUPC0GReturns all UPC/EAN parameter values
in an XML element.
Example: SYUPC0G
UPC/EANSYUPC0S/P/R/GEN1/00Disable
Example: SYUPC0SEN0
1Enable
Example: SYUPC0SEN1
UPC/EAN – Expand
UPC-E to UPC-A
SYUPC0S/P/R/GEA10Disable
Example: SYUPC0SEA0
1Enable
Example: SYUPC0SEA1
Note: This setting value is ignored if
UPC/EAN decoding is disabled.
UPC/EAN – Supplemental
SYUPC0S/P/R/GSU00Disable
Example: SYUPC0SSU0
1Enable
Example: SYUPC0SSU1
Note: This setting value is ignored if
UPC/EAN decoding is disabled.
UPC/EAN – Expand
EAN-8 to EAN-13
SYUPC0S/P/R/G8D00Disable
Example: SYUPC0S8D0
1Enable
Example: SYUPC0S8D1
Note: This setting value is ignored if
UPC/EAN decoding is disabled.
Leuze electronicDCR 5037
Configuration control
Code DescriptionCommand Format Op-
tions
UPC/EAN – Expand
SYUPC0S/P/R/GAD00Disable
UPC-A to EAN-13
UPC/EAN – Convert
SYUPC0S/P/R/GDI00Disable
Bookland EAN-13 to
ISBN
UPC/EAN – Convert
SYUPC0S/P/R/GDN00Disable
Bookland EAN-13 to
ISSN
Default
Notes/Examples
Example: SYUPC0SAD0
1Enable
Example: SYUPC0SAD1
Note: This setting value is ignored if
UPC/EAN decoding is disabled.
Example: SYUPC0SDI0
1Enable
Example: SYUPC0SDI1
Note: This setting value is ignored if
UPC/EAN decoding is disabled.
Example: SYUPC0SDN0
1Enable
Example: SYUPC0SDN1
Note: This setting value is ignored if
UPC/EAN decoding is disabled.
UPC/EAN – Transmit
UPC-A Checksum
UPC/EAN – Transmit
UPC-A Number System
UPC/EAN – Transmit
UPC-E Checksum
UPC/EAN – Transmit
UPC-E Number System
SYUPC0S/P/R/GAC00Disable
Example: SYUPC0SAC0
1Enable
Example: SYUPC0SAC1
Note: This setting value is ignored if
UPC/EAN decoding is disabled.
SYUPC0S/P/R/GAN00Disable
Example: SYUPC0SAN0
1Enable
Example: SYUPC0SAN1
Note:This setting value is ignored if
UPC/EAN decoding is disabled.
SYUPC0S/P/R/GEC00Disable
Example: SYUPC0SEC0
1Enable
Example: SYUPC0SEC1
Note: This setting value is ignored if
UPC/EAN decoding is disabled.
SYUPC0S/P/R/GES00Disable
Example: SYUPC0SES0
1Enable
Example: SYUPC0SES1
Note: This setting value is ignored if
UPC/EAN decoding is disabled.
Leuze electronicDCR 5038
Configuration control
Code DescriptionCommand Format Op-
tions
UPC/EAN – Transmit
SYUPC0S/P/R/GDC00Disable
EAN-13 Checksum
Default
Notes/Examples
Example: SYUPC0SDC0
1Enable
Example: SYUPC0SDC1
Note: This setting value is ignored if
UPC/EAN decoding is disabled.
UPC/EAN – Transmit
EAN-8 Checksum
SYUPC0S/P/R/G8C00Disable
Example: SYUPC0S8C0
1Enable
Example: SYUPC0S8C1
Note: This setting value is ignored if
UPC/EAN decoding is disabled.
UPC/EAN – Send AIM
Modifier
SYUPC0S/P/R/GAM00Disable
Example: SYUPC0SAM0
1Enable
Example: SYUPC0SAM1
USPS PlanetSYUSPLS/P/R/GEN00Disable
Example: SYUSPLSEN0
1Enable
Example: SYUSPLSEN1
USPS PostnetSYUSPOS/P/R/GEN00Disable
Example: SYUSPOSEN0
1Enable
Example: SYUSPOSEN1
UPU ID TagsSYUPUI S/P/R/GEN00Disable
Example: SYUPUISEN0
1Enable
Example: SYUPUISEN1
USPS Intelligent MailSYUSIM S/P/R/GEN00Disable
Example: SYUSIMSEN0
1Enable
Example: SYUSIMSEN1
Leuze electronicDCR 5039
8.2.2Communications
Configuration control
Code DescriptionCommand Format Op-
tions
Get All Communications
CM CMGExample: CMCMG
Default
Notes/Examples
Parameters
Communications ModeCM MOS/P/R/GCM UKSERS-232 Serial
Example: CMMOSCMSE
UKUSB Keyboard
Example: CMMOSCMUK
UVUSB VCOM
Example: CMMOSCMUV
UNUSB Native
Example: CMMOSCMUN
UPUSB HID POS
Example: CMMOSCMUP
UCUSB CDC VCOM
Example: CMMOSCMUC
Communication ProtocolCM CPS/P/R/GPM 00Raw Mode
Example: CMCPSPM0
Connection Retry Timeout
(s)
RS-232 Interface – Get All
parameters
RS-232 Interface – Baud
Rate
1Packet Mode
Example: CMCPSPM1
CM GES/P/R/GCR 5000If reader disconnects, it will try to recon-
nect after the timeout interval in seconds.
Valid Range:
Example: CMGESCR5000
CM SEGReturns all serial communication param-
eter values in an XML element.
Example: CMSEG
CM SES/P/R/GBA115200 1200 1200 Bits per second
Example: CMSESBA1200
2400 2400 Bits per second
Example: CMSESBA2400
4800 4800 Bits per second
Example: CMSESBA4800
9600 9600 Bits per second
Example: CMSESBA9600
1920019200 Bits per second
Example: CMSESBA19200
3840038400 Bits per second
Example: CMSESBA38400
5760057600 Bits per second
Example: CMSESBA57600
115200115200 Bits per second
Example: CMSESBA115200
Supported Baud Rate
Leuze electronicDCR 5040
Configuration control
Code DescriptionCommand Format Op-
tions
RS-232 Interface – Data
CM SES/P/R/GDB 87Seven data bits
Bits
Default
Notes/Examples
Example: CMSESDB7
8Eight data bits
Example: CMSESDB8
The number of bits per character
RS-232 Interface – Stop
Bits
CM SES/P/R/GSB11One stop bit
Example: CMSESSB1
2Two stop bits
Example: CMSESSB2
The number of stop bits sent
RS-232 Interface – ParityCM SES/P/R/GPANNNone – No parity bits
Example: CMSESPAN
EEven parity bit
Example: CMSESPAE
OOdd parity bit
Example: CMSESPAO
RS-232 Interface – Flow
Control
RS-232 Interface – Signal
Polarity
8.2.3USB and HID
Tab.8.1: USB and HID
A parity bit, or check bit, is a bit added to
a string of binary code to ensure that the
total number of 1-bits in the string is even
or odd.
CM SES/P/R/GFC0/10Example: CMSESFC0
1Example: CMSESFC1
Transmit flow control
CM SES/P/R/GPO 00Standard or non-inverted UART0
signals
Example: CMSESPO0
1Invert UART0 signals
Example: CMSESPO1
Note: UART1 does not have polarity con-
trol
Note: The default polarity is controlled by
the STRAP[3] value at power up.
Code DescriptionCommand Format Op-
Default Notes/Examples
tions
USB – Get All parametersCM UBGReturns all USB communication parame-
ter values in an XML element.
Example: CMUBG
USB – ManufacturerCM UBS/P/R/GMF CODEA string representing the manufacturer
name for the product
Example: CMUBSMFCODE
Leuze electronicDCR 5041
Configuration control
Code DescriptionCommand Format Op-
Default Notes/Examples
tions
USB – Part NumberCM UBS/P/R/GPN CR8200A string representing the part number or
name for the product
Example: CMUBSPNCR8200
USB – Full SpeedCM UBS/P/R/GFS 00Disable Full Speed
Example: CMUBSFS0
1Enable Full Speed
Example: CMUBSFS1
HID Keyboard – Get All parameters
CM HDGReturns all HID Keyboard parameter val-
ues in an XML element.
Example: CMHDG
HID Keyboard – Inter Character Delay (ms)
CM HDS/P/R/GIC0In Milliseconds
Valid Range:
Example: CMHDSIC4
HID Keyboard – Inter Scan
Delay (ms)
CM HDS/P/R/GIS0In Milliseconds
Valid Range:
Example: CMHDSIS4
HID Keyboard – Release
Delay (ms)
CM HDS/P/R/GRL 0In Milliseconds
Valid Range:
Example: CMHDSRL4
HID Keyboard Control
Characters
HID Keyboard Decode
Data Input Conversion
HID Keyboard Decode Data
Output Method
CM HDS/P/R/GCC 00Use language
Example: CMHDSCC0
1Use Ctrl+<char>
Example: CMHDSCC1
2Use Alt+<Keypad>
Example: CMHDSCC2
3Use Alt+0<Keypad>
Example: CMHDSCC3
How to handle character values in the
range 0x00 to 0x1F
CM HDS/P/R/GIE00ASCII – No Conversion
Example: CMHDSIE0
1ASCII to Unicode Code point
Example: CMHDSIE1
2UTF-8 to Unicode Code point
Example: CMHDSIE2
CM HDS/P/
R/G
OM 00Unicode as XML Lookup
Example: CMHDSOM0
1Unicode as Windows Alt-Se-
quence
Example: CMHDSOM1
Note: This parameter is only relevant
when Input Conversion >0
Leuze electronicDCR 5042
Configuration control
Code DescriptionCommand Format Op-
tions
HID Keyboard Windows
CM HDS/P/R/GEA 00Append leading zero (Code page
code page for Extended
ASCII Characters
USB Keyboard – Get All
CM UKGReturns all USB Keyboard parameter valparameters
USB Keyboard – Number
CM UKS/P/R/GNE 11One endpoint
of Endpoints
Default Notes/Examples
1232)
Example: CMHDSEA0
1Do not append leading zero (Code
page 437)
Example: CMHDSEA1
Extended ASCII characters [0x80, 0xFF]
are output as alt-sequences with or without a leading zero which windows uses to
determine whether to display the character from CP1232 or CP437. This only applies when the HID Keyboard Decode
Data Output Method is set to Unicode as
Windows Alt-Sequence.
ues in an XML element.
Example: CMUKG
Example: CMUKSEN1
USB Keyboard – Declaration Wait State
USB Keyboard – Use Serial
Number
USB Keyboard – IN Endpoint Polling Interval (µs)
USB Vendor – Use Serial
Number
USB Vendor – IN Endpoint
Polling Interval (µs)
2Two endpoints
Example: CMUKSEN2
CM UKS/P/R/GEM 00Declare enumeration when ad-
dressed
Example: CMUKSEM0
1Declare enumeration after receipt
of output report
Example: CMUKSEM1
2Declare enumeration after receipt
of get report descriptor
Example: CMUKSEM2
CM UKS/P/R/GSN 0/10Example: CMUKSSN0
1Example: CMUKSSN1
CM UKS/P/R/GIN1000Controls the USB HID Keyboard IN End-
point Polling Interval
Example: CMUKSIN1000
CM UNS/P/R/GSN 0/10Example: CMUNSSN0
1Example: CMUNSSN1
CM UNS/P/R/GIN1000Controls the USB HID Vendor IN End-
point Polling Interval
Example: CMUNSIN1000
USB VCOM – Use Serial
Number
USB HID POS – Use Serial
Number
Leuze electronicDCR 5043
CM UVS/P/R/GSN 0/10Example: CMUVSSN0
1Example: CMUVSSN1
CM UPS/P/R/GSN 0/10Example: CMUPSSN0
1Example: CMUPSSN1
Tab.8.2: HID language support
Configuration control
Code DescriptionCommand Format Op-
tions
Get all language parame-
LAINGGet all language settings
ters
Active languageLAINS/P/R/GALUSEn-
Default
glish_
Win
Notes/Examples
Example: LAING
Active language setting
Valid Range: Languages listed by the
LAINGIL command
Example: LAINGAL
Get Installed languages listLAINGILList installed language names
Example: LAINGIL
Control character encodingCM HDS/P/R/GCC 00Language Default
Example: CMHDSCC0
1Control + Character
Example: CMHDSCC1
2Alt + Keypad
Example: CMHDSCC2
3Alt + Leading 0
Example: CMHDSCC3
8.2.4Packet and protocol parameters
Code DescriptionCommand Format Op-
tions
Packet – Get All parameters PKOPGReturns all packet parameter values in
Receive Timeout (ms)PKOPS/P/R/GRT250When retry count specified and reader
Connection Protocol Time-
PKOPS/P/R/GCT60When sending fragmented data in
out (s)
Default
Choose the control character encoding
style.
Notes/Examples
an XML element.
Example: PKOPG
doesn’t receive the ACK, it will resend
the response after the timeout.
In milliseconds
Valid Range:
Example: PKOPSRT250
packet mode, this timeout specifies the
maximum time between two fragments.
Reader cancels the transaction when
the timeout expires and it didn’t receive
new fragmented data.
In Seconds
Valid Range:
Example: PKOPSCT120
Reader Retry CountPKOPS/P/R/GRC 0Number of retries from the reader when
no ACK is received from the host.
Valid Range:
Example: PKOPSRC1
Leuze electronicDCR 5044
8.2.5Decoder and general decoding parameters
Configuration control
Code DescriptionCommand Format Op-
tions
Default
Notes/Examples
Get All Decoder Parameters CD CDGReturns all decoder parameter values in
an XML element.
Example: CDCDG
CD DPDPM parameters (Not supported)
Decoder Timing – Get All
Parameters
CD DTGReturns all decoder timing parameter
values in an XML element.
Example: CDDTG
Decode Time Limit (ms)CD DTS/P/R/GTL150/320Time limit (decoder)
Example: CDDTSTL150
CD DTS/P/R/GTF30Timeout Factor
Example: CDDTSTF30
Get All Decoder Operational
Parameters
CD OPGReturns all decoder operational parame-
ter values in an XML element.
Example: CDOPG
Maximum Decodes Per
Read
CD OPS/P/R/GPR 1The reader will process up to this num-
ber of barcodes per read. If there are
more barcodes in the field of view and
target tolerance, only the first ones will
be decoded.
Valid Range: 1 to 16
Example: CDOPSPR2
Ensure Region of InterestCD OPS/P/R/GRO 00Disable ROI
Example: CDOPSRO0
1Enable ROI
Example: CDOPSRO1
Ensure decoded barcoded is always inside the region of interest. When disabled, barcode may be decoded as long
as it is partially inside the ROI
Increases the FOI resolution to robustly
decode small barcodes when FOI is set
to sub-region of the entire FOI. For
faster speed, set FOI width * FOI height
< 320 * 480.
Enhance ContrastCD OPS/P/R/GEC 00Disable
Example: CDOPSEC0
1Enable
Example: CDOPSEC1
Enhances image contrast before decoding
Prefix Decode Results with
AIM Symbology Identifiers
CD OPS/P/R/GPA00Don’t prefix with AIM identifier
Example: CDOPSPA0
1Prefix decode result with ISO/
IEC standard 15424/AIM
Example: CDOPSPA1
Security Level
CD OPS/P/R/GSESee decoder API
(Decoder P_SECURITY_LEVEL)
1D Barcode Aggressiveness CD OPS/P/R/GSE00Most Aggressive
Example: CDOPSSE0
1Less Aggressive for poorly
printed 1D barcodes.
Example: CDOPSSE1
2Least Aggressive for poorly
printed 1D barcodes.
Example: CDOPSSE2
11Less Aggressive for 1D barcodes
with low module size
Example: CDOPSSE11
12Least Aggressive for 1D bar-
codes with low module size
Example: CDOPSSE12
Decode Attempt TimeCD OPS/P/R/GAT0Attempt Time (Same as sticky time in
CR8x)
Example: CDOPSAT0
Stop Decoding on Duplicate CD OPS/P/R/GSD 0Instructs the decoder to stop looking for
decodes in the current image when a
duplicate is found.
Prefix with AIM IdentifierCD OPS/P/R/GPA0Prefixes the decode data with the 3-
Target Tolerance (percent)CD VAS/P/R/GTT1600For reader to accept a barcode, it must
be within certain distance from the center of the image. The distance is defined
as a percentage of the barcode’s
smaller dimension. For example, with a
10 x 20 mm barcode and a setting of
150 (%), the barcode must be within 15
mm of the center of the image.
Any value over 1000 is considered infinite tolerance, and no target checking is
performed.
Valid Range: 1 to 1000
Example: CDVASTT1600
Duplicate Block Time (ms)CD VAS/P/R/GBT0Consecutive duplicate barcodes (i.e.
barcodes that contain the same data)
are blocked for this amount of time (in
milliseconds). 0 turns off blocking of duplicate barcodes.
Valid Range: 0 to xx
Example: CDVASBT100
Block DuplicatesCD VAS/P/R/GBD 00Disable – do not block dupli-
cates
Example: CDVASBD0
1Enable –block duplicates for the
amount of time set in DCVAGBT
Example: CDVASBD1
If enabled, the reader will not output the
same barcode until the barcode has not
been seen for the “duplicate block time”
period.
Leuze electronicDCR 5047
Configuration control
Code DescriptionCommand Format Op-
tions
Data manipulation format
CD OPS/P/R/GFO 00Don’t format data output
option selection
Default
Notes/Examples
Example: CDOPSFO0
1Format data with prefix/suffix or
data configuration string
Example: CDOPSFO1
2Perform match string validation*
Example: CDOPSFO2
3Perform GS1 validation*
Example: CDOPSFO3
4Perform UDI validation
Example: CDOPSFO4
5Perform ISO15434 validation
Example: CDOPSFO5
6Perform ISO15434 & ISO15418
validation
Example: CDOPSFO6
7Perform Simple Age verification
using configuration string*
Example: CDOPSFO7
8Perform Simple Age verification
without configuration
Example: CDOPSFO8
9Perform DL Parsing with config-
uration string
Example: CDOPSFO9
10Perform DL Parsing without
configuration
Example: CDOPSFO10
11Perform Success & Raw valida-
tion
Example: CDOPSFO11
Simple prefixCD OPS/P/R/GPXData formatting prefix
Example: CDOPSPX
Simple suffixCD OPS/P/R/GSXData formatting suffix
Example: CDOPSSX
Output in upper or lower
case or bracketed hex bytes
CD OPS/P/R/GFCupper
lower case
hex bytes
Data formatting output case/hex
Example: CDOPSFC
Full data format stringCD OPS/P/R/GFDData formatting raw format configuration
string
Example: CDOPSFD
Leuze electronicDCR 5048
Configuration control
Code DescriptionCommand Format Op-
Public sector & validation
configuration string
Stand DetectionCD STS/P/R/GSE10Disable
8.2.6Power mode parameters
Code DescriptionCommand Format Op-
tions
Default
Notes/Examples
CD OPS/P/R/GFPValidation & public sector configuration
string
Example: CDOPSFP
Example: CDSTSSE0
1Enable
Example: CDSTSSE1
Detects when the reader has been
placed in a stand that contains a trigger
magnet and change to Motion Detection
mode.
The Standby Mode Timer must be enabled for the device to go into Sleep
Mode.
Sleep Mode Timer Delay
(ms)
PM SMS/P/R/GVA3600If both Standby Mode Timer and Sleep
Mode Timer are enabled, the device will
go into Sleep Mode after this timer has
expired.
Valid Range:
Example: PMSMSVA3600
Leuze electronicDCR 5049
Configuration control
Code DescriptionCommand Format Op-
Sleep Mode Timer – Maintain Connection
Power Mode Enter SleepPM ESForces the device to go into Sleep Mode
8.2.7General reader information
Code DescriptionCommand Format Op-
Get All Reader Information
Parameters
tions
Default
Notes/Examples
PM SMS/P/R/GMC 10Disconnect from host in Sleep
Mode
Example: PMSMSMC0
1Retain connection in Sleep
Mode
Example: PMSMSMC1
even if Standby Mode Timer and Sleep
Mode Timer are disabled. This command should be sent as RAW. The device will immediately go into Sleep Mode
after receiving this command.
Example: PMES
tions
Default
Notes/Examples
RD RDGReturns all Reader Information parame-
ter values in an XML element.
Example: RDRDG
Get all Firmware information RD FWGReturns all Firmware parameter values
in an XML element.
Example: RDFWG
Firmware Version MajorRD FWGMJReturns Firmware Major Version param-
eter value in an XML element.
Example: RDFWGMJ
Firmware Version MinorRD FWGMNReturns Firmware Minor Version param-
eter value in an XML element.
Example: RDFWGMN
Firmware Version Build Version
RD FWGBUReturns Firmware Build Version param-
eter value in an XML element.
Example: RDFWGBU
Decoder VersionRD FWGDVReturns Decoder version parameter
value in an XML element.
Example: RDFWGDV
Chip RevisionRD CPGRVReturns Chip Revision parameter value
in an XML element
Example: RDCPGRV
Reader Serial NumberRD CPGSNReturns Reader Serial Number parame-
ter value in an XML element
Example: RDCPGSN
Reader InformationRD RRGReturns Reader Information parameter
value in an XML element
Example: RDRRG
Leuze electronicDCR 5050
Configuration control
Code DescriptionCommand Format Op-
tions
Default
Notes/Examples
Reader IDRD RRGIDReturns Reader ID parameter value in
Reader Information StringRD RRGISReturns Reader Information String pa-
rameter value in an XML element.
Example: RDRRGIS
Reader Output Format –
Line Ending
Reader Command –
Process Barcode Data
RD OFS/P/R/GLE<CR><
LF>
(%0D
%0A)
Defines the output format line ending.
Non-printable ASCII characters must be
set using URL encoded hex value.
Example: RDOFSLE%0D%0A
RD CMXBD<data> Sends <data> to the host as barcode
data
Example: RDCMXBD12345
Reader Command – Reboot RD CMXRB 1Reboots the reader
Example: RDCMXRB1
Reader Command – Post
Event
RD CMXEVPosts an event. If the event has param-
eters, it uses P1 and P2. The values for
these parameters are specified after
each parameter.
Example: Posts an event to start a single decode RDCMXEV1, P11, P20
P1(see Reader Command List below)
P2(see Reader Command List below)
P3(see Reader Command List below)
P4(see Reader Command List below)
PL(see Reader Platform command below)
RDCMX
Reader Command Execute
EV1P10Stop decoding
List
P11P20Start single decode
P11P21Start continuous decoding
EV2P10Disable Targeting
P11Enable Targeting
Leuze electronicDCR 5051
Configuration control
Code DescriptionCommand Format Op-
tions
RDCMXPL
“<Configuration>”Quoted string containing the Configuration Con-
Reader Command to set a
platform configuration
De-
Notes/Examples
fault
trol Command. The configuration will be saved
and restored on reboot/restart. Enclose the command in square brackets (inside the quotes) and
add a carret between the opening square bracket
and command to delete a command from the
platform configuration
Save Example:
RDCMXPL"FBGRPBI1"
Delete Example:
RDCMXPL"[^FBGRPBI1]"
Get All Reader LicensesRD LCGGLReturns all Reader License values in an
XML element.
Example: RDLCGGL
Load LicenseRD LCXLD“URL
encoded
license
string”
Loads license on the reader
Copies the contents of the License CRB
file starting after the ‘?’character to use
as the URL encoded license string. This
string must be in quotes in the command.
Example: RDLCXLD”%23%45….”
Delete LicenseRD LCXDLLi-
8.2.8Reader configuration
Code DescriptionCommand Format Op-
Get All Reader ParametersCFGReturns all Reader Parameter values in
Reset Reader to Factory
Default
8.2.9General firmware operation
Code DescriptionCommand Format Op-
Deletes a license
cense
number
License number is an integer that repre-
sents just the license number, not the
serial number of the license you want to
delete.
Example: RDLCXDL5000
tions
Default
Notes/Examples
an XML element.
Example: CFG
CFRResets all reader parameters to factory
default values.
Example: CFR
tions
Default
Notes/Examples
Get All Firmware Parameters
FW FWGReturns all Firmware parameter values
in an XML element.
Example: FWFWG
Leuze electronicDCR 5052
Configuration control
Code DescriptionCommand Format Op-
tions
Echo optionFW CMS/P/R/GOE 00Disable Raw Command Echoing
Raw Command EnableFW CMS/P/R/GOR 00Disable Raw Commands
Scene Manager ModeSCSPS/P/R/GMO NONONormal AGC Mode
Example: SCSPSMONO
BYBypass AGC Mode
Example: SCSPSMOBY
FXFixed AGC Mode
Example: SCSPSMOFX
Leuze electronicDCR 5053
Configuration control
Code DescriptionCommand Format Op-
Set Imager ExposureSCSPS/P/R/GEXThis defines the imager exposure in
Set Imager GainSCSPS/P/R/GGNThis defines the imager gain in Bypass
Set Imager IlluminationSC SPS/P/R/GILThis defines the Imager Illumination in
Set Fixed percent (percent)SCSPS/P/R/GFPSet Fixed percent
8.2.12 Setup AGC parameters
Code DescriptionCommand Format Op-
Get All AGC ParametersAG AGGReturns all AGC parameters values in
tions
tions
Default Notes/Examples
Bypass AGC Mode.
Example: SCSPSEX50
AGC Mode.
Example: SCSPSGN50
Bypass AGC Mode.
Example: SCSPSIL50
Valid Range: 0 to 100
Example:
De-
Notes/Examples
fault
an XML element.
Example: AGAGG
Max AGC Brightness in Motion Detect (percent)
AG CRS/P/R/GMB 100Sets the maximum brightness used wile
in Motion Detect mode.
An integer from 0 to 100 representing a
percentage of overall maximum bright-
ness.
Valid Range: 0 to 100
Example: AGCRPMB50
AGC TimingAG TMS/P/R/GHQ 360AGC High Quality time limit
Valid Range:
Example: AGTMSHQ360
AGC Medium Quality time
limit
AG TMS/P/R/GMQ 320AGC Medium Quality time limit
Valid Range:
Example: AGTMSMQ320
AGC Low Quality time limitAG TMS/P/R/GLQ120AGC Low Quality time limit
Valid Range:
Example: AGTMSLQ120
Timeout multiplier (FP24_8) AG TMS/P/R/GMT 0x100Timeout multiplier (FP24_8)
Valid Range:
Example: AGTMS
Leuze electronicDCR 5054
8.2.13 Setup motion detection parameters
Configuration control
Code DescriptionCommand Format Op-
tions
Get All motion detect set-
MD PMGReturns all motion detection parameter
tings
Default
Notes/Examples
values in an XML element.
Example: MDPMG
Minimum IlluminationMD PMS/P/R/GNI00Minimum Value
Minimum illumination is the lowest value
the AGC should use to set the illumina-
tion.
Valid Range: 0 to Maximum illumination
Example: MDPMSNI1
Maximum illuminationMD PMS/P/R/GXI6100Maximum Value
This is the highest value the AGC
should use to set the illumination
Valid Range: Minimum illumination to
100
Example: MDPMSXI0
Initial illumination valueMD PMS/P/R/GII1The starting value the AGC will use to
start adjusting illumination
Valid Range: Minimum illumination to
Maximum illumination
Example: MDPMSII1
Minimum exposure time (µs) MD PMS/P/R/GNE 11Minimum Value
Valid Range: 1 to Maximum exposure
time microseconds
Example: MDPMSNE100
This is the minimum time the camera
lets light into the element to take the pic-
ture in microseconds.
Maximum exposure time
MD PMS/P/R/GXE4620000Maximum Value
(µs)
Valid Range: Minimum exposure time
to 20000 microseconds
Example: MDPMSXE10040
Initial exposure time (µs)MD PMS/P/R/GIE40Valid Range: Minimum exposure time
to Maximum exposure time microsec-
onds
Example: MDPMSIE100
Minimum gainMD PMS/P/R/GNG 10Minimum Value
Valid Range: 0 to Maximum Gain
Example: MDPMSNG15
Maximum gainMD PMS/P/R/GXG 4764Maximum Value
Gain is the amount of signal amplifica-
tion the AGC can apply to make the pic-
ture easier to read
Valid Range: Minimum Gain to 64
Example: MDPMSXG35
Leuze electronicDCR 5055
Configuration control
Code DescriptionCommand Format Op-
tions
Default
Notes/Examples
Initial gainMD PMS/P/R/GIG21Valid Range: Greater than or equal to
Minimum Gain and less than or equal to
Maximum Gain.
Example: MDPMSIG15
Minimum lightest pixel value MD PMS/P/R/GNL600Minimum Value
Valid Range: 0 to Maximum lightest
pixel value
Example: MDPMSNL60
Maximum lightest pixel
value
MD PMS/P/R/GXL90255Maximum Value
The lightest values give the motion cal-
culations a base range for maximum
brightness before the image begins to
saturate. If you set these too high, the
algorithm will not be able to detect indi-
vidual pixels because the image is
washed out.
Valid Range: Minimum lightest pixel
value to 255
Example: MDPMSXL90
Detection pixel thresholdMD PMS/P/R/GPL15This pixel threshold is the minimum dif-
ference value between the background
brightness and the pixel brightness for
the current pixel to be considered a
pixel.
Valid Range:
Example: MDPMS PL15
Detection total thresholdMD PMS/P/R/GTL5Total threshold is the minimum number
of pixels detected per detection region
(left, center, right) to be considered de-
tected motion
Valid Range:
Example: MDPMS TL5
Detection blob thresholdMD PMS/P/R/GBT4The minimum number of sequential pix-
els to be considered a group or blob
(like a bar width)
Valid Range:
Example: MDPMSBT4
Leuze electronicDCR 5056
8.2.14 Setup camera parameters
Configuration control
Code DescriptionCommand Format Op-
Test ModeIMCPS/P/R/GTMExample: IMCPG
Minimum Exposure (percent)
Maximum Exposure (percent)
8.2.15 Command barcode format
The scan engine can receive commands directly through user input, via serial or text and via configuration
command barcodes. This section describes the format of configuration command barcodes.
HeaderCommandTrailer
<SOH>Y<GS><STX>
(%01%59%1D%02)
tions
Default
Notes/Examples
IMCPS/P/R/GME 200Minimum Value
Defines the minimum exposure parame-
ter of camera
Valid Range: 0 to less than or equal to
Maximum Exposure percent
Example: IMCPSME20
IMCPS/P/R/GXE100100Maximum Value
Valid Range: Greater than or equal to
Minimum Exposure to 100 percent
Example: IMCPSXE100
String<ETX><EOT>
(%03%04)
Multiple commands can be included in one configuration command barcode by separating each command
with <ETX>.
Example: Scanning a barcode generated from %01%59%1d%02SYAZTCG%03SYAUPOG%03%04 will output
all settings of the AZTC and AUPO symbologies.
Configuration command barcodes:
• Configuration command barcodes use the QR code barcode symbology.
• Source files to generate configuration barcodes have a file extension of .CRCCS and an intermediate
file extension of .CRMKR.
• If source files contain comments, the comment should start with two forward slash (//) characters.
• Source files can have only one Primary Category command per line (see chapter 8.1 "Configuration
command architecture").
Examples:
• example.crccs
Contains:
// Hypothetical
// Outputs all settings of symbologies Aztec and Australian Post
// Rev 1 – 6/22/16 – Jackson – Initial Release
• example.crmkr
Contains:
%01%59%1d%02SYAZTCG%03SYAUPOG%03%04
• example.tif
Leuze electronicDCR 5057
8.3Motion detection
The scan engine supports motion detection, which means, the device can detect codes brought into the
field of view and decode them without manually triggering a decode. Motion detect is often used with the
device stationary or mounted, and targets passing in front of it. The device is set to use the minimum internal illumination possible, and works best when in bright ambient light shining from behind the device.
Motion detection parameters
The motion detection determination uses many parameters. The exposure time, gain, and illumination are
camera settings used to get the best picture to determine whether or not objects have moved into the field
of view. They all have minimum and maximum values which the AGC (Automatic Gain Control) uses to get
that best picture.
• The exposure is how long the camera “shutter” lets light into the detector array. If it is not open long
enough, all the device can see is blackness. If it is open too long, all the pixels are over-exposed, and
the picture is white. By setting the minimum and maximum time, the AGC is allowed to open the shutter. We can try to force the AGC to not over- or under-expose the picture.
• The gain is the amount of amplification the AGC can use to attempt to increase the contrast of the picture between light and dark pixels. Setting the minimum too low does not produce enough contrast, and
setting the maximum too high overflows the AGC. Thus, the gain range helps the AGC to optimize the
contrast of the data without overflowing the calculations.
• The illumination is how much additional light the device shines on the image to increase the sensitivity
of the motion detection algorithm. The more illumination, the easier it is to read the codes, however, it
also makes the device more obvious in a given environment. By setting the minimum and maximum illumination, the device can be set to add much less light into an environment.
• Thresholds are used to detect motion in the following way:
• A baseline is created when motion detection starts. Thus, the device has a set of values to compare against.
• Motion detection finds pixels that vary (more or less) from the baseline by more than the pix-elThreshold threshold. Motion detection then filters out groups of pixels detected when the number
of consecutive pixels is less than the blobThreshold threshold, considering it a false positive.
• When the total number of pixels not filtered out is greater than the total threshold, the device determines that a code has come into the field of view: motion detected.
• The motion detect takes three blocks ‑ a left block, a center block, and a right block ‑ from the complete
image from which to detect motion. Motion in any one of the three blocks or in the combined detection
from all three blocks causes motion detection.
Configuration control
Leuze electronicDCR 5058
8.4Data formatting
The scan engine supports data formatting at the decoder level. This produces fast, consistent results in a
minimal amount of device space. The device supports simple prefixes and suffixes around the decoded
data ‑ the simplest form of data formatting and allows full user control by using the data format string. The
device performs data validations and public sector parsing by using the format parse setting in conjunction
with the selected format option.
Data formatting options
The decoder allows many types of data formatting, selected by setting the data format option, and setting
the appropriate configuration string.
Tab.8.3: Data format options
ValueDescription
0Data formatting off
1Simple data formatting using either prefix and suffix, or by setting the format data string di-
rectly.
2Match String validation
3GS1 DataBar validation (requires a license)
Configuration control
4UDI/HIBC validation (requires a license)
5ISO15434 validation
6ISO15434 and ISO15418 validation
7Simple age verification using a configuration string
8Simple age verification without using a configuration string
9DL Parsing using a configuration string
10DL Parsing without using a configuration string
11Success and Raw validation
Note: Several options require a license
Data format string
The data format string allows full user control of the data formatting. The data format string consists of a
12-digit configuration string, typically zeros, a prefix, decode data, and a suffix. Also, there may be user
data injected into the string. Format string example that adds a carriage return line feed to the decoded
data:
CDOPSFD”000000000000!,,/0d/0a”
Leuze electronicDCR 5059
Configuration control
Prefixes and Suffixes
Prefix and suffix values define data that will be added to the read code data. The firmware adds the prefix
and suffix to the beginning and end of the decoded data respectively. Adding prefix or suffix data allows
you to define prefixes and/or suffixes and enable/disable them as needed.
• Define the prefix and/or suffix strings:
• Command to define a prefix: CDOPSPX"string"
• Command to define a suffix: CDOPSSX"string"
• "string" must be in quotes in the command.
• Non-printable characters are represented by a forward slash and the corresponding hexadecimal
value, such as /0D for a carriage return.
Examples:
• Command to define a prefix comma: CDOPSPX","
• Command to define a prefix non-keyboard tab: CDOPSPX"/09"
• Enable the application of prefixes and suffixes:
After defining prefix and/or suffix strings, the application of prefixes and suffixes must be enabled.
Command: CDOPSFO1
Format case
The decoder will decode the code data. Setting the format case option changes the default configuration
string. You can set the following data output options:
• decoded (0)
• uppercase (1)
• lowercase (2)
• bracketed hex (3)
Example: CDOPSFC1 sets the data output in upper case.
Format parse and validation configuration string
Validation and public sector parsing also require a configuration string. This string is set using the
CDOPSFP”string” command.
NOTICE
Configuration strings and special character sequences are used to enable validation or public
sector parsing.
Ä Public sector validations and data formatting cannot be used at the same time.
Ä When changing from the public sector validations mode to the data formatting mode, you
must enter the configuration string again.
Leuze electronicDCR 5060
9Command protocol
Each device has a well-defined protocol for communication. The protocol can be split into two parts:
• General command/response-type communication
• Barcode decoding
9.1General commands
Most of the time, the user will use the command protocol when communicating with the device. The figure
shows the general command sequence for sending a command to the device.
Command protocol
Fig.9.1: General command sequence
• The host device sends a properly formatted command to the device.
• The device sends an acknowledgement to the host device.
• Immediately after the acknowledgement, the device sends a response to the command.
• To maintain communication integrity, the host device sends an acknowledgement back to the device.
9.1.1Command packet
To send a command to the device, a properly formatted packet must be formed.
Tab.9.1: Command packet format
SectionBytes (or Range) Number of
Start of Frame0x01
Packet Version0x311Indicates the version number for the packet
Packet Length0x0013 – 0xFFFF 2Indicates the number of bytes that are sent
0x43
0x54
Description
Bytes
3Three bytes that indicate the beginning of a
message
format. This value is always 0x31.
after these two bytes, up to and including the
CRC. This value should be 19+N.
This value is written as a 2-byte big endian
value.
Destination Address0x00000000 –
0x0FFFFFFF
4Represents the address of the device that
you are attempting to communicate with.
0x0FFFFFFF is a special address indicating
that the host device wants to broadcast to all
devices on the network. Anything less than
this value is a real device address.
This value is written as a 4-byte big endian
value.
Leuze electronicDCR 5061
Command protocol
SectionBytes (or Range) Number of
Description
Bytes
Source Address0x40000000 –
0x4FFFFFFF
4Represents the address of the host computer.
This value can be any value within the range
specified and can be arbitrarily chosen.
This value is written as a 4-byte big endian
value.
Protocol Type0x011Indicates the type of protocol to use when
communicating. This value is always 0x01.
Flags0x00Single byte representing a bit field. For send-
ing a command, this value is always 0x00.
Payload Protocol0x021Value indicating the type of packet. This
value is always 0x02 when sending a command.
Acknowledgement Number
0x00002Represents the acknowledgement number.
For a command packet, this value is always
0x0000.
This value is written as a 2-byte big endian
value.
Transaction Number0x0000 – 0x7FFF 2Represents a transaction number for a com-
mand. This value is tracked by the host device and is sent to the device as a new command. The host device increments the transaction number by 1.
Typically, this value starts at 0x0000 when
the device is first powered.
This value is written as a 2-byte big endian
value.
Request ID0x8000 – 0xFFFF 2Represents a unique request ID for this com-
mand packet. It is used in the resulting acknowledgement packet. Typically, this value
is the transaction number + 0x8000.
PayloadNData payload that contains the ASCII com-
mand that the host device wants to send to
the device.
CRC160x0000 – 0xFFFF 2Represents a CRC16 (using the CCITT zero
algorithm) value calculated on the bytes after
the packet length.
• Destination Address
• Source Address
• Protocol Type
• Flags
• Payload Protocol
• Acknowledgement Number
• Transaction Number
• Request ID
• Payload
Leuze electronicDCR 5062
9.1.2Device acknowledgement
Upon receipt of a command, the device immediately sends an acknowledgement.
Tab.9.2: Acknowledgement packet format
Command protocol
SectionBytes (or Range) Number of
Description
Bytes
Start of Frame0x01
0x43
3Three bytes that indicate the beginning of a
message
0x54
Packet Version0x311Indicates the version number for the packet
format. This value is always 0x31.
Packet Length0xFFFF2For an acknowledgement packet, this value is
always 15.
Destination Address0x40000000 –
0x4FFFFFFF
4Represents the address of the host computer.
This value is written as a 4-byte big endian
value.
Source Address0x00000000 –
0x0FFFFFFE
4Represents the address of the device that
you are attempting to communicate with.
This value is written as a 4-byte big endian
value.
Protocol Type0x011Indicates the type of protocol to use when
communicating. This value is always 0x01.
Flags0x00Single byte representing a bit field. For send-
ing a command, this value is always 0x00.
Payload Protocol0x001Value indicating the type of packet. This
value is always 0x00 when sending an acknowledgement.
Acknowledgement Number
0x0000 – 0xFFFF 2Represents the acknowledgement number.
This value is written as a 2-byte big endian
value.
CRC160x0000 – 0xFFFF 2Represents a CRC16 (using the CCITT zero
algorithm) value calculated on the bytes after
the packet length.
• Destination Address
• Source Address
• Protocol Type
• Flags
• Payload Protocol
• Acknowledgement Number
NOTICE
The destination address and the source address now have the source address and destination
address values from the previous command packet.
Ä If a broadcast address is set in the destination address, it is replaced with the address of the
device in the corresponding acknowledgement packet.
Ä You must use this address in any following sequences. Without using it, the device will not
respond.
Leuze electronicDCR 5063
NOTICE
The acknowledgement number in the device acknowledgement packet is the same as the transaction number in the previous command packet.
9.1.3Response packet
After the acknowledgement is sent, the device sends a response to the command. The response packet
has the same format as the command packet (see chapter 9.1.1 "Command packet") with the following differences:
• The payload part of the response packet contains the response from the device.
• The transaction number and the request ID are swapped in the response packet (as compared to the
command packet).
• The destination address and the source address are swapped in the response packet (as compared to
the command packet).
The response is formatted as XML message. Each command description shows an example of a response
from each command when getting a value for a setting.
9.1.4Host acknowledgement
After reception of the response packet, the host device must send an acknowledgement packet to the device. This host acknowledgement has the same format as the device acknowledgement (see chapter 9.1.2
"Device acknowledgement") with the following differences:
• The destination address and the source address are swapped in the host acknowledgement packet (as
compared to the device acknowledgement packet).
• The acknowledgement number in the host acknowledgement packet is the same as the transaction
number in the response packet.
Command protocol
9.1.5Example 1: Enabling Code 93 upon startup
In this example, the host device has just powered the device and is ready to send its first command: make
sure Code 93 is enabled.
Assumptions:
• The host device does not know what the address of the device is and thus, will send out a broadcast.
• Address of the host device: 0x40000000
• Address of the device: 0x01234567
Tab.9.3: Command packet for example 1
SectionBytes (or Range) Number of
Start of Frame0x01
0x43
0x54
Packet Version0x311
Packet Length0x001D219 + 10 = 29 = 0x001D
Destination Address0x0FFFFFFF4Broadcasting to every listening device.
Source Address0x400000004
Protocol Type0x011
Description
Bytes
3
Flags0x00
Payload Protocol0x021
Acknowledgement Num-
0x00002
ber
Leuze electronicDCR 5064
Command protocol
SectionBytes (or Range) Number of
Description
Bytes
Transaction Number0x00002Starting with zero for the transaction number.
Request ID0x80002Following the convention, we add 0x8000 to
the transaction number.
Payload10The bytes represent the ASCII command
SYCO93PEN1.
CRC160x45012
Upon reception of the command, the device sends an acknowledgement.
Tab.9.4: Device acknowledgement for example 1
SectionBytes (or Range) Number of
Description
Bytes
Start of Frame0x01
3
0x43
0x54
Packet Version0x311
Packet Length0x000F2
Destination Address0x400000004
Source Address0x012345674The device returns its unique address.
Protocol Type0x011
Flags0x01
Payload Protocol0x001
Acknowledgement Num-
0x00002
ber
CRC160xED192
After the acknowledgement, the device sends a response packet to the initial command packet.
Tab.9.5: Response packet for example 1
SectionBytes (or Range) Number of
Description
Bytes
Start of Frame0x01
3
0x43
0x54
Packet Version0x311
Packet Length0x003A219 + 39 = 58 = 0x003A
Destination Address0x400000004
Source Address0x012345674
Protocol Type0x011
Flags0x00
Payload Protocol0x021
Acknowledgement Num-
0x00002
ber
Transaction Number0x80002
Leuze electronicDCR 5065
Command protocol
SectionBytes (or Range) Number of
Description
Bytes
Request ID0x00002Following the convention, we add 0x8000 to
the transaction number.
Payload39Returns
<Response Val="0" Description="none" />
CRC160xDA642
In accordance with the protocol, the host device sends an acknowledgement packet before sending the
next command.
Tab.9.6: Host acknowledgement for example 1
SectionBytes (or Range) Number of
Description
Bytes
Start of Frame0x01
3
0x43
0x54
Packet Version0x311
Packet Length0x000F2
Destination Address0x012345674
Source Address0x400000004
Protocol Type0x011
Flags0x01
Payload Protocol0x001
Acknowledgement Num-
0x80002
ber
CRC160x2CCE2
9.1.6Example 2: Getting information about a device after startup
In this example, the host device has been communicating with the device for some time and is ready to
send another command: enable Code 128 and set it as a default value.
Assumptions:
• Address of the host device: 0x40000000
• Address of the device: 0x01234567
Tab.9.7: Command packet for example 2
SectionBytes (or Range) Number of
Description
Bytes
Start of Frame0x01
3
0x43
0x54
Packet Version0x311
Packet Length0x001D219 + 10 = 29 = 0x001D
Destination Address0x012345674
Source Address0x400000004
Protocol Type0x011
Leuze electronicDCR 5066
Command protocol
SectionBytes (or Range) Number of
Description
Bytes
Flags0x00
Payload Protocol0x021
Acknowledgement Num-
0x00002
ber
Transaction Number0x00012
Request ID0x80002Following the convention, we add 0x8000 to
the transaction number.
Payload10The bytes represent the ASCII command
SYC128PEN1.
CRC160x45012
Upon reception of the command, the device sends an acknowledgement.
Tab.9.8: Device acknowledgement for example 2
SectionBytes (or Range) Number of
Description
Bytes
Start of Frame0x01
3
0x43
0x54
Packet Version0x311
Packet Length0x000F2
Destination Address0x400000004
Source Address0x012345674The device returns its unique address.
Protocol Type0x011
Flags0x01
Payload Protocol0x001
Acknowledgement Num-
0x00012
ber
CRC160xFD382
After the acknowledgement, the device sends a response packet to the initial command packet.
Tab.9.9: Response packet for example 2
SectionBytes (or Range) Number of
Description
Bytes
Start of Frame0x01
3
0x43
0x54
Packet Version0x311
Packet Length0x003A219 + 39 = 58 = 0x003A
Destination Address0x400000004
Source Address0x012345674
Protocol Type0x011
Flags0x00
Payload Protocol0x021
Leuze electronicDCR 5067
Command protocol
SectionBytes (or Range) Number of
Description
Bytes
Acknowledgement Num-
0x00002
ber
Transaction Number0x80012
Request ID0x00012
Payload39Returns
<Response Val="0" Description="none" />
CRC160xF2132
In accordance with the protocol, the host device sends an acknowledgement packet before sending the
next command.
Tab.9.10: Host acknowledgement for example 2
SectionBytes (or Range) Number of
Description
Bytes
Start of Frame0x01
3
0x43
0x54
Packet Version0x311
Packet Length0x000F2
Destination Address0x012345674
Source Address0x400000004
Protocol Type0x011
Flags0x01
Payload Protocol0x001
Acknowledgement Num-
0x80012
ber
CRC160x3CEF2
Leuze electronicDCR 5068
9.2Barcode decoding
The figure shows the command sequence for activating the scan engine for decoding ‑ for a single scan or
for continuous scanning.
Command protocol
Fig.9.2: Command sequence for decoding
• The host device sends a start decoding command to the device ‑ for single decode or for continuous
decoding
• The device sends the corresponding acknowledgement back to the host device.
• The barcode decoder takes over and sends the barcode result to the host device. The barcode result is
sent in clear ASCII text, that is, without the framing protocol.
• The host device sends a stop decoding command to the device.
• The device sends the corresponding acknowledgement back to the host device.
Leuze electronicDCR 5069
10Care, maintenance and disposal
Usually, the device does not require any maintenance by the operator.
10.1Cleaning
Clean the glass window of the device with a soft cloth before mounting.
NOTICE
Do not use aggressive cleaning agents!
Ä Do not use aggressive cleaning agents such as thinner or acetone for cleaning the device.
10.2Servicing
Repairs to the device must only be carried out by the manufacturer.
Ä For repairs, contact your responsible Leuzeelectronic subsidiary or Leuzeelectronic customer service
(see chapter 11 "Service and support").
10.3Disposing
Ä For disposal observe the applicable national regulations regarding electronic components.
Care, maintenance and disposal
Leuze electronicDCR 5070
11Service and support
24-hour on-call service at:
+49 (0) 7021 573-0
Service hotline:
+49 (0) 7021 573-123
Monday to Friday 8.00a.m. to 5.00p.m. (UTC+1)
E-mail:
service.identify@leuze.de
Return address for repairs:
Service center
Leuze electronic GmbH + Co. KG
In der Braike 1
D-73277 Owen / Germany
Service and support
11.1What to do should servicing be required?
NOTICE
Please use this chapter as a master copy should servicing be required!
Ä Enter the contact information and fax the form together with your service order to the fax
number given below.
Customer data (please complete)
Device type:
Serial number:
Firmware:
Display messages:
Status of LEDs:
Error description:
Company:
Contact person/department:
Phone (direct dial):
Fax:
Street/No:
ZIP code/City:
Country:
Leuze Service fax number:
+49 (0) 7021 573-199
Leuze electronicDCR 5071
12Technical data
12.1General specifications
Tab.12.1: Optics
Optical systemCMOS Imager, Rolling Shutter (1280x960)
Please note that the actual reading fields are also influenced by factors such as labeling material, printing quality, scanning angle, printing contrast etc., and may thus deviate from the reading fields specified here. The origin of the read distance always refers to the front edge of the
housing of the beam exit.
It is advisable to use a transparent, double-sided anti-reflective coated material when installing
the scan engine behind a pane of glass. Recommended pane thickness: 1mm; optics as flush
as possible with the glass.
Leuze electronicDCR 5075
13Order guide and accessories
13.1Type overview
Tab.13.1: Part numbers
Part no.Part designationDescription
50135000DCR50M2/R2CMOS imager scan engine for 1D and 2D codes,
13.2Accessories
Tab.13.2: Accessories
Part no.Part designationDescription
50128204MA-CRModular adapter unit to interface device-to-host to
see chapter 6.2.1 "Downloading configuration software"
SensorStudio designed according to the FDT/DTM
concept. Contains: communication DTM and device
DTM
Leuze electronicDCR 5076
14EC Declaration of Conformity
The scan engines of the DCR50 series have been developed and manufactured in accordance with the
applicable European standards and directives.
EC Declaration of Conformity
Leuze electronicDCR 5077
15Appendix
15.1Bar code samples
Module 0.3
Fig.15.1: Code type 01: Interleaved 2 of 5
Module 0.3
Fig.15.2: Code type 02: Code 39
Appendix
Module 0.3
Fig.15.3: Code type 11: Codabar
Module 0.3
Fig.15.4: Code 128
Module 0.3
Fig.15.5: Code type 08: EAN 128
SC 2
Fig.15.6: Code type 06: UPC-A
Leuze electronicDCR 5078
SC 3
Fig.15.7: Code type 07: EAN 8
Appendix
Fig.15.8: Example codes
15.2Configuration via configuration codes
The device can also be configured using configuration codes. The device parameters in the device are set
and permanently saved after reading this code.