Leuze DCR 50 Operating Instructions

DCR 50
Scan Engine
EN 2017/05 - 50136789
We reserve the right to
make technical changes
O r i g i n a l o p e r a t i n g i n s t r u c t i o n s

Table of contents

1 About this document ............................................................................................5
1.1 Used symbols and signal words .............................................................................................5
2 Safety .....................................................................................................................6
2.1 Intended use ...........................................................................................................................6
2.2 Foreseeable misuse ............................................................................................................... 6
2.3 Competent persons ................................................................................................................ 7
2.4 Disclaimer ...............................................................................................................................7
3 Device description ................................................................................................8
3.1 Device overview...................................................................................................................... 8
3.1.1 About the DCR50 scanengine...........................................................................................8
3.1.2 Stand-alone operation .........................................................................................................8
3.2 Performance characteristics ...................................................................................................8
3.3 Device construction ................................................................................................................ 9
3.4 Connection technology ...........................................................................................................9
4 Mounting..............................................................................................................10
4.1 Selecting a mounting location............................................................................................... 10
5 Electrical connection..........................................................................................11
5.1 Voltage supply ......................................................................................................................11
5.2 Pin assignment .....................................................................................................................11
5.3 Switching input / switching output......................................................................................... 11
5.3.1 Switching input ..................................................................................................................11
5.3.2 Switching output ................................................................................................................12
5.4 PC or terminal connection .................................................................................................... 13
5.5 Cable lengths and shielding.................................................................................................. 13
6 Configuration and diagnostics software - SensorStudio...............................14
6.1 System requirements............................................................................................................ 14
6.2 Installing SensorStudio configuration software.................................................................... 15
6.2.1 Downloading configuration software .................................................................................15
6.2.2 Installing the SensorStudio FDT frame ............................................................................15
6.2.3 Installing the communication DTM and the device DTM ...................................................15
6.2.4 Connecting device to PC...................................................................................................15
6.3 Starting the SensorStudio configuration software................................................................ 16
6.4 Exiting SensorStudio ........................................................................................................... 17
6.5 Configuration parameters .....................................................................................................18
6.5.1 Control tab.........................................................................................................................18
6.5.2 Decode tab ........................................................................................................................19
6.5.3 Communications tab.......................................................................................................... 21
6.5.4 Diagnosis / Terminal.......................................................................................................... 22
7 Starting up the device - Configuration..............................................................23
7.1 Measures to be performed prior to the initial commissioning ............................................... 23
7.2 Starting the device ................................................................................................................23
7.2.1 Interface ............................................................................................................................23
7.2.2 Online commands .............................................................................................................23
7.2.3 Problems ...........................................................................................................................23
7.3 Setting the communication parameters ................................................................................23
Leuze electronic DCR 50 3
Table of contents
8 Configuration control .........................................................................................24
8.1 Configuration command architecture.................................................................................... 24
8.2 Supported commands........................................................................................................... 25
8.2.1 Symbology......................................................................................................................... 25
8.2.2 Communications................................................................................................................ 40
8.2.3 USB and HID.....................................................................................................................41
8.2.4 Packet and protocol parameters .......................................................................................44
8.2.5 Decoder and general decoding parameters ......................................................................45
8.2.6 Power mode parameters ...................................................................................................49
8.2.7 General reader information ...............................................................................................50
8.2.8 Reader configuration .........................................................................................................52
8.2.9 General firmware operation............................................................................................... 52
8.2.10 General reader feedback parameters ...............................................................................53
8.2.11 Setup default AGC mode ..................................................................................................53
8.2.12 Setup AGC parameters .....................................................................................................54
8.2.13 Setup motion detection parameters ..................................................................................55
8.2.14 Setup camera parameters................................................................................................. 57
8.2.15 Command barcode format................................................................................................. 57
8.3 Motion detection ................................................................................................................... 58
8.4 Data formatting .....................................................................................................................59
9 Command protocol .............................................................................................61
9.1 General commands .............................................................................................................. 61
9.1.1 Command packet ..............................................................................................................61
9.1.2 Device acknowledgement .................................................................................................63
9.1.3 Response packet............................................................................................................... 64
9.1.4 Host acknowledgement .....................................................................................................64
9.1.5 Example 1: Enabling Code 93 upon startup...................................................................... 64
9.1.6 Example 2: Getting information about a device after startup ............................................66
9.2 Barcode decoding................................................................................................................. 69
10 Care, maintenance and disposal .......................................................................70
10.1 Cleaning................................................................................................................................ 70
10.2 Servicing ...............................................................................................................................70
10.3 Disposing ..............................................................................................................................70
11 Service and support ...........................................................................................71
11.1 What to do should servicing be required? ............................................................................ 71
12 Technical data .....................................................................................................72
12.1 General specifications .......................................................................................................... 72
12.2 Reading fields .......................................................................................................................73
12.3 Dimensioned drawings ......................................................................................................... 75
13 Order guide and accessories.............................................................................76
13.1 Type overview....................................................................................................................... 76
13.2 Accessories........................................................................................................................... 76
14 EC Declaration of Conformity ............................................................................77
15 Appendix..............................................................................................................78
15.1 Bar code samples .................................................................................................................78
15.2 Configuration via configuration codes................................................................................... 79
Leuze electronic DCR 50 4

1 About this document

1.1 Used symbols and signal words

Tab.1.1: Warning symbols and signal words
Symbol indicating dangers to persons
NOTE Signal word for property damage
Indicates dangers that may result in property damage if the measures for dan­ger 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
BCL Bar code reader
CMOS Semiconductor process for implementing integrated circuits
(Complementary Metal-Oxide-Semiconductor)
DCR Image-based code reader
(Dual Code Reader)
DTM Software device manager
(Device Type Manager)
EMC Electromagnetic compatibility
EN European standard
FDT Software frame for management of device managers (DTM)
(Field Device Tool)
FE Functional earth
GUI Graphical user interface
HID Device class for input devices with which users directly interact
(Human Interface Device)
IO or I/O Input/Output
LED LED
(Light Emitting Diode)
PLC Programmable Logic Control
(corresponds to Programmable Logic Controller (PLC))
Leuze electronic DCR 50 5

2 Safety

This scan engine was developed, manufactured and tested in accordance with the applicable safety stan­dards. It corresponds to the state of the art.

2.1 Intended use

The DCR50 scanengine 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 DCR50 scanengine 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. Ä LeuzeelectronicGmbH+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.2 Foreseeable misuse

Any use other than that defined under "Intended use" or which goes beyond that use is considered im­proper 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 electronic DCR 50 6

2.3 Competent 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 de­tect 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.4 Disclaimer

LeuzeelectronicGmbH+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 electronic DCR 50 7

3 Device description

3.1 Device overview

3.1.1 About the DCR50 scanengine
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, QRCode, 2/5 Interleaved, Code39, Code128, 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 con­strained spaces.
Information on technical data and characteristics: see chapter 12 "Technical data".

3.1.2 Stand-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.

3.2 Performance characteristics

• High-performance miniature CMOS imager scan engine
• Compact design for simple integration, even in constrained spaces
• Reading of extremely small high-density codes and recording of standard codes in a large reading area using a special optical system
• Reading of shiny surfaces using a gloss reduction process
• Excellent decoding characteristics
• Clearly visible alignment LED
• RS 232 interface, triggering input, switching output
Device description
Leuze electronic DCR 50 8

3.3 Device construction

4
1
6
2
3
5
5
Device description
1 Two integrated LEDs for illumination (red light)
2 One integrated target LED (blue light)
3 Center of optical axis
4 Connector Molex (53261-0671), 6-pin
5 Mounting tabs, M2.5 through-hole
6 Inserts for M1.8 self-tapping screws, 2mm deep
Fig.3.1: DCR50 device construction

3.4 Connection technology

6-pin Molex connector (53261-0671)
Leuze electronic DCR 50 9

4 Mounting

α
β
γ
The scan engine can be attached at two M2.5 through-hole mounting tabs.
In addition, two 2mm deep inserts for M1.8 self-tapping screws are provided on top of the scan engine.

4.1 Selecting 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 ac­count 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 electronic DCR 50 10

5 Electrical 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 IEC60742 (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.1 Voltage supply

The scan engine is designed for connection to a 5V supply voltage.
• +5V DC (pin1)
• GND (pin2)
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 150mm 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…30V DC can be fed in via spring ter­minals or, alternatively, 5V DC can be fed in via a micro USB connector.
Electrical connection

5.2 Pin assignment

Pin Signal IN / OUT
1 VCC / +5V DC IN
2 GROUND IN
3 TRIGGER IN
4 GOOD READ OUT
5 RS232 TX OUT
6 RS232 RX IN

5.3 Switching 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.1 Switching input

A read process can be triggered using the trigger input (pin5) in the standard setting (low = active) via the connection to GND (pin2). We recommend wiring a 2.2kΩ pull-up resistor as defined cable termination.
Leuze electronic DCR 50 11
+ 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.2 Switching output

The NPN switching output connection between switching output (pin4) and GND (pin2) 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 20mA at +5…VDC!
Leuze electronic DCR 50 12

5.4 PC or terminal connection

1
2
10 11
3
4
8
9
5 6 7
Via the serial interface, you can configure the scan engine by means of a PC or terminal. For this, you need a RS232 connection that establishes the RxD, TxD and GND connections between PC and scan engine.
The RS232 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 "Acces­sories").
Electrical connection
1 RS232 connection
2 CR50 or DCR80 connection
3 DCR50, DCR85, CR100, CR55 connection
4 Molex Micro-Fit, 6-pin
5 USB connection
6 Connection to machine control, PLC, external voltage supply 5VDC
7 External voltage supply 10…30VDC
8 SWIN DIP switch (level for trigger button; 5V if the scanner high switching input is active, GND if the low input is
active)
9 USB/PWR DIP switch (USB position if voltage is supplied via USB; PWR position if voltage is supplied via(7))
10 Trigger button
11 Status LEDs
Fig.5.3: Connection options for MA-CR modular adapter unit

5.5 Cable lengths and shielding

The maximum cable length is 3m.
Should a cable extension be necessary, make certain that the cables of the RS232 interface are shielded.
Leuze electronic DCR 50 13
Configuration and diagnostics software - SensorStudio
6 Configuration and diagnostics software - SensorStudio
The SensorStudio configuration software provides a graphical user interface for the operation, configura­tion and diagnosis of the device via the RS232 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 SensorStudio configuration software for products manufactured by Leuzeelec­tronic.
The SensorStudio configuration software is offered in the following languages: German, Eng­lish, French, Italian and Spanish.
The FDT frame application of the SensorStudio supports all languages; all languages may not be supported in the device DTM (Device Type Manager).
The SensorStudio 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 DCR50
Procedure for the installation of the software and hardware:
Ä Install the SensorStudio configuration software on the PC. Ä Install the communication and device DTMs.
Communication and device DTM are included in the LeAnalysisCollectionSetup installation package.
Ä Create DCR50-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.1 System requirements

To use the SensorStudio configuration software, you need a PC or laptop with the following specifications:
Tab.6.1: System requirements for SensorStudio installation
Operating system WindowsXP or higher (32bit, 64bit)
Computer Processor type: 1GHz or higher
Graphics card At least 1024x768 pixels
Required hard disk capacity for SensorStudio and communica­tion DTM
NOTICE
Administrator privileges on the PC are necessary for installing SensorStudio.
WindowsVista
Windows7
Windows8
Serial COM interface
CD-ROM drive
Main memory (RAM): at least 64MB
Keyboard and mouse or touchpad
35MB
Leuze electronic DCR 50 14
Configuration and diagnostics software - SensorStudio
6.2 Installing SensorStudio configuration software
NOTICE
The installation files of the SensorStudio configuration software must be downloaded from the Internet at www.leuze.com.
For subsequent updates, you can find the most recent version of the SensorStudio installation software on the Internet at www.leuze.com.

6.2.1 Downloading 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.2 Installing the SensorStudio 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 SensorStudio instal­lation.
You can install the communication DTM and the device DTM in the existing FDT frame. Com­munication 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.3 Installing 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 DCR50.

6.2.4 Connecting device to PC

The device is connected to the PC via the RS232 interface.
• You need an RS232 connection that establishes the RxD, TxD and GND connections between PC and device (see chapter 5.4 "PC or terminal connection").
• The 5V DC voltage supply is to be fed in externally (see chapter 5.1 "Voltage supply").
Leuze electronic DCR 50 15
Configuration and diagnostics software - SensorStudio
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 10V…30VDC as external voltage supply, which can be fed in via spring terminals. Alternatively, 5VDC can be fed via the 6-pin plug connector of the DCR50 using a 150mm long interconnection cable with 12-pin Molex terminal strip.
6.3 Starting the SensorStudio 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 RS232 interface (see chapter 6.2.4 "Connecting device to PC").
• The SensorStudio configuration software is installed on the PC (see chapter 6.2 "Installing SensorStu­dio configuration software").
Ä Start the SensorStudio configuration software by double-clicking the SensorStudio 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 DCR50
Leuze electronic DCR 50 16
Configuration and diagnostics software - SensorStudio
Ä Select DCR50 in the Device selection and click on [Next].
The device manager (DTM) of the connected DCR50 starts with the offline view for the SensorStudio configuration project.
Ä Establish the online connection to the connected DCR50.
In the SensorStudio FDT frame, click on the [Establish connection with device] button ( ).
In the SensorStudio 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: SensorStudio device manager (DTM) for DCR50
Ä The menus of the SensorStudio device manager (DTM) can be used to change or read out the config-
uration of the connected device. The user interface of the SensorStudio 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.4 Exiting SensorStudio
After completing the configuration settings, close the SensorStudio 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 SensorStudio
Project Wizard ( ).
Leuze electronic DCR 50 17

6.5 Configuration 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 SensorStudio configuration soft­ware.
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 SensorStudio 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 - SensorStudio

6.5.1 Control tab

Fig.6.3: Control tab
Leuze electronic DCR 50 18
Configuration and diagnostics software - SensorStudio
SCAN OPTIONS
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 toler­ance 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.
Targeting Switch the blue targeting LED on and off.
DECODE OUTPUT OPTIONS
Output Result with AIM ID Allows for the output of the AIM symbology identifier with the decode
result.
Barcode Prefix/Suffix enabled Enables/ disables the output of prefix and suffix text with the decode
result.
Barcode Prefix text
Barcode Suffix text
REGION OF INTEREST (ROI)
ROILeft
ROITop
ROIWidth
ROIHeight

6.5.2 Decode tab

Defines text of up to 255 characters that is added before/after the de­code result.
Allows for setting the region of interest in the image where the labels are decoded.
Fig.6.4: Decode tab
Leuze electronic DCR 50 19
Configuration and diagnostics software - SensorStudio
SYMBOLOGIES Use 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 PROPER­TIES
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 toler­ance 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 electronic DCR 50 20

6.5.3 Communications tab

Configuration and diagnostics software - SensorStudio
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 electronic DCR 50 21

6.5.4 Diagnosis / Terminal

Configuration and diagnostics software - SensorStudio
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 electronic DCR 50 22
Starting up the device - Configuration

7 Starting up the device - Configuration

7.1 Measures 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.2 Starting the device

7.2.1 Interface

Proper function of the interface can be most easily tested in service operation using the serial interface with the SensorStudio configuration software and a notebook computer.

7.2.2 Online commands

Using the online commands, important device functions can be checked, e.g. reading activation.

7.2.3 Problems

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 Leuzeelectronic subsidiary or Leuzeelectronic cus­tomer service, see chapter 11 "Service and support".

7.3 Setting 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 SensorStudio 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 - SensorStudio" 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 SensorStudio configuration software (see chapter 6 "Configuration and diagnostics software - SensorStudio").
Leuze electronic DCR 50 23

8 Configuration 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.
Example Indication Grammar
Text-Command Italic type Syntactic categories (non-terminals)
space Bold type Terminal symbols
%xx Byte data In Hex
Configuration control
0xFF 0x prefix indicating hexa-
decimal
‘X’ Single quotes Literal ASCII characters
SOH All caps Non-printable ASCII characters
esc | tab Vertical bar Alternatives (this or that)
data
opt opt.
crc16
nr nr
(opt subscript) Optional terminals and non-terminals
(nr subscript) Applies to packets sent in non-raw mode, i.e. in

8.1 Configuration 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 cate­gory
Example: SY, CM, etc.
Sub-category Action 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
Parameter Parameter 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 mem­ory. Breakdown of the command:
• SY=Symbology
• AZTC=Aztec
• S=Set
• PO=Polarity
• 1=Inverse Mode
Leuze electronic DCR 50 24
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.2 Supported commands

8.2.1 Symbology

Configuration control
Code Description Command Format Op-
tions
Get All Symbology Pa-
SY ALLS G Returns all Symbology values in a single
rameters
De­fault
Notes/Examples
XML element
Example: SYALLSG
Australian Post – Get All Parameter
SY AUPOG Returns all Australian post parameter
values in an XML element.
Example: SYAUPOG
Australian Post SY AUPOS/P/R/GEN 0 0 Disable
Example: SYAUPOSEN0
1 Enable
Example: SYAUPOSEN1
Australian Post – Strip Checksum
SY AUPOS/P/R/GSC 0 0 Disable
Example: SYAUPOSSC0
1 Enable
Example: SYAUPOSSC1
This setting value is ignored if Australian Post decoding is disabled.
Aztec – Get All Parame­ter
SY AZTCG Returns all Aztec parameter values in an
XML element.
Example: SYAZTCG
Aztec SY AZTCS/P/R/GEN 1 0 Disable
Example: SYAZTCSEN0
1 Enable
Example: SYAZTCSEN1
Leuze electronic DCR 50 25
Configuration control
Code Description Command Format Op-
tions
De­fault
Notes/Examples
Aztec – Polarity SY AZTCS/P/R/GPO 0 0 Normal mode enabled - Black on
white background
Example: SYAZTCSPO0
1 Inverse mode enabled - White on
black background
Example: SYAZTCSPO1
2 Both normal and inverse modes
enabled
Example: SYAZTCSPO2
Note: This setting value is ignored if
Aztec decoding is disabled
Aztec – Mirror SY AZTCS/P/R/GMR 0 0 Disable
Example: SYAZTCSMR0
1 Enable
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 Param­eter
SY B412 G Returns all BC412 parameter values in
an XML element.
Example: SYB412G
BC412 SY B412 S/P/R/GEN 0 0 Disable
Example: SYB412SEN0
1 Enable
Example: SYB412SEN1
BC412 – Reverse De­coding
SY B412 S/P/R/GRD 0 0 Disable
Example: SYB412SRD0
1 Enable
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 Post SY CAPOS/P/R/GEN 0 0 Disable
Example: SYCAPOSEN0
1 Enable
Example: SYCAPOSEN1
Codabar – Get All Pa­rameter
SY CBARG Returns all Codabar parameter values in
an XML element.
Example: SYCBARG
Leuze electronic DCR 50 26
Configuration control
Code Description Command Format Op-
tions
De­fault
Notes/Examples
Codabar SY CBARS/P/R/GEN 1 0 Disable
Example: SYCBARSEN0
1 Enable
Example: SYCBARSEN1
Codabar – Require Checksum
SY CBARS/P/R/GCS 0 0 Disable checksum check and out-
put checksum if one exists.
Example: SYCBARSCS0
1 Enable checksum check and out-
put checksum.
Example: SYCBARSCS1
2 Enable checksum check and strip
checksum.
Example: SYCBARSCS2
Note: This setting value is ignored if
Codabar decoding is disabled.
Codabar – Strip Start/ Stop Characters
SY CBARS/P/R/GSS 0 0 Disable
Example: SYCBARSSS0
1 Enable
Example: SYCBARSSS1
Note: This setting value is ignored if
Codabar decoding is disabled
CodablockA SY CODAS/P/R/GEN 0 0 Disable
Example: SYCODASEN0
1 Enable
Example: SYCODASEN1
CodablockF SY CODFS/P/R/GEN 0 0 Disable
Example: SYCODFSEN0
1 Enable
Example: SYCODFSEN1
Code11 – Get All Pa­rameter
SY CO11G Returns all code 11 parameter values in
an XML element.
Example: SYBCO11G
Code11 SY CO11S/P/R/GEN 0 0 Disable
Example: SYCO11SEN0
1 Enable
Example: SYCO11SEN1
Leuze electronic DCR 50 27
Configuration control
Code Description Command Format Op-
tions
Code11 – Checksum
SY CO11S/P/R/GCS 2 0 Decode with checksum disabled
Off / 1-digit / 2-digit
De­fault
Notes/Examples
Example: SYCO11SCS0
1 Decode with one checksum digits
checked.
Example: SYCO11SCS1
2 Decode with two checksum digits
checked.
Example: SYCO11SCS2
Note: This setting value is ignored if
Code 11 decoding is disabled.
Code11 – Strip Check­sum Characters On/Off
SY CO11S/P/R/GSC 0 0 Disable
Example: SYCO11SSC0
1 Enable
Example: SYCO11SSC1
Note: This setting value is ignored if
Code 11 decoding is disabled.
Code32 SY CO32S/P/R/GEN 0 0 Disable
Example: SYCO32SEN0
1 Enable
Example: SYCO32SEN1
Code39 – Get All Pa­rameter
SY CO39G Returns all Code39 parameter values in
an XML element.
Example: SYCO39G
Code39 SY CO39S/P/R/GEN 1 0 Disable
Example: SYCO39SEN0
1 Enable
Example: SYCO39SEN1
Code39 – Checksum Off/On/On Strip Check Character
SY C039 S/P/R/GCS 0 0 Disables checksum check & out-
put checksum if one exists
Example: SYCO39SCS0
1 Enables checksum check and
output checksum
Example: SYCO39SCS1
2 Enables checksum check and
strip checksum from decode data.
Example: SYCO39SCS2
Note: This setting value is ignored if
Code39 decoding is disabled.
Code39 – Extended ASCII On/Off
SY CO39S/P/R/GEA 0 0 Disable
Example: SYCO39SEA0
1 Enable
Example: SYCO39SEA1
Note: This setting value is ignored if
Code39 decoding is disabled.
Leuze electronic DCR 50 28
Configuration control
Code Description Command Format Op-
tions
Code39 – Start Stop
SY CO39S/P/R/GSS 0 0 Disable
On/Off
De­fault
Notes/Examples
Example: SYCO39SSS0
1 Enable
Example: SYCO39SSS1
Note: This setting value is ignored if
Code39 decoding is disabled
Code49 SY CO49S/P/R/GEN 1/0 0 Disable
Example: SYCO49SEN0
1 Enable
Example: SYCO49SEN1
Code93 SY CO93S/P/R/GEN 1 0 Disable
Example: SYCO93SEN0
1 Enable
Example: SYCO93SEN1
Code128 SY C128 S/P/R/GEN 1 0 Disable
Example: SYC128SEN0
1 Enable
Example: SYC128SEN1
Composite SY COMPS/P/R/GEN 0 0 Disable
Example: SYCOMPSEN0
1 Enable
Example: SYCOMPSEN1
Data Matrix – Get All Parameter
SY DATMG Returns all Data matrix parameter values
in an XML element.
Example: SYDATMG
Data Matrix SY DATMS/P/R/GEN 1 0 Disable
Example: SYDATMSEN0
1 Enable
Example: SYDATMSEN1
Data Matrix – Polarity SY DATMS/P/R/GPO 2 0 Normal mode enabled - Black on
white background
Example: SYDATMSPO0
1 Inverse mode enabled - White on
black background
Example: SYDATMSPO1
2 Both normal and inverse modes
enabled
Example: SYDATMSPO2
Note: This setting value is ignored if
Data Matrix decoding is disabled.
Leuze electronic DCR 50 29
Configuration control
Code Description Command Format Op-
tions
De­fault
Notes/Examples
Data Matrix – Mirror SY DATMS/P/R/GMR 0 0 Disable
Example: SYDATMSMR0
1 Enable
Example: SYDATMSMR1
Note: This setting value is ignored if
Data Matrix decoding is disabled.
Data Matrix Rectangular SY DATMS/P/R/GRE 1 0 Disable
Example: SYDATMSRE0
1 Enable
Example: SYDATMSRE1
Note: This setting value is ignored if
Data Matrix decoding is disabled
Data Matrix Rectangular Extended
SY DATMS/P/R/GRX 0 0 Disable
Example: SYDATMSRX0
1 Enable
Example: SYDATMSRX1
Note: This setting value is ignored if
Data Matrix decoding is disabled
Grid Matrix – Get All Pa­rameter
SY GDMXG Returns all Grid Matrix parameter values
in an XML element.
Example: SYGDMXG
Grid Matrix SY GDMXS/P/R/GEN 0 0 Disable
Example: SYGDMXSEN0
1 Enable
Example: SYGDMXSEN1
Grid Matrix – Polarity SY GDMXS/P/R/GPO 1 0 Normal mode enabled - Black on
white background
Example: SYGDMXSPO0
1 Inverse mode enabled - White on
black background
Example: SYGDMXSPO1
2 Both normal and inverse modes
enabled
Example: SYGDMXSPO2
Note: This setting value is ignored if Grid
Matrix decoding is disabled.
Grid Matrix – Mirror SY GDMXS/P/R/GMR 0 0 Disable
Example: SYGDMXSMR0
1 Enable
Example: SYGDMXSMR1
Note: This setting value is ignored if Grid
Matrix decoding is disabled.
GS1 DataBar – Get All Parameter
SY GS1DG Returns all GS1 DataBar parameter val-
ues in an XML element.
Example: SYGS1DG
Leuze electronic DCR 50 30
Configuration control
Code Description Command Format Op-
tions
De­fault
Notes/Examples
GS1 DataBar SY GS1DS/P/R/GEN 1 0 Disable
Example: SYGS1DSEN0
1 Enable
Example: SYGS1DSEN1
GS1 DataBar Omnidi­rectional & truncated
SY GS1DS/P/R/GOT 0 0 Disable
Example: SYGS1DSOT0
1 Enable
Example: SYGS1DSOT1
GS1 DataBar Stacked SY GS1DS/P/R/GST 1 0 Disable
Example: SYGS1DSST0
1 Enable
Example: SYGS1DSST1
GS1 DataBar Expanded SY GS1DS/P/R/GEX 1 0 Disable
Example: SYGS1DSEX0
1 Enable
Example: SYGS1DSEX1
GS1 DataBar Expanded Stacked
SY GS1DS/P/R/GES 1 0 Disable
Example: SYGS1DSES0
1 Enable
Example: SYGS1DSES1
GS1 DataBar Limited SY GS1DS/P/R/GLI 1 0 Disable
Example: SYGS1DSLI0
1 Enable
Example: SYGS1DSLI1
HanXin – Get All Pa­rameter
SY HAXNG Returns all HanXin parameter values in
an XML element.
Example: SYHAXNG
HanXin SY HAXNS/P/R/GEN 0 0 Disable
Example: SYHAXNSEN0
1 Enable
Example: SYHAXNSEN1
HanXin – Polarity SY HAXNS/P/R/GPO 0 0 Normal mode enabled - Black on
white background
Example: SYHAXNSPO0
1 Inverse mode enabled - White on
black background
Example: SYHAXNSPO1
2 Both normal and inverse modes
enabled
Example: SYHAXNSPO2
Note: This setting value is ignored if
HanXin decoding is disabled
Leuze electronic DCR 50 31
Configuration control
Code Description Command Format Op-
tions
De­fault
Notes/Examples
Han Xin – Mirror SY HAXNS/P/R/GMR 0 0 Disable
Example: SYHAXNSMR0
1 Enable
Example: SYHAXNSMR1
Note: This setting value is ignored if
HanXin decoding is disabled
Hong Kong 2of5 SY H2O5S/P/R/GEN 0 0 Disable
Example: SYH2O5SEN0
1 Enable
Example: SYH2O5SEN1
Interleaved 2of5– Get All Parameter
SY I2O5 G Returns all Interleaved 2of5 parameter
values in an XML element.
Example: SYI2O5G
Interleaved 2of5 SY I2O5 S/P/R/GEN 1 0 Disable
Example: SYI2O5SEN0
1 Enable
Example: SYI2O5SEN1
Interleaved 2of5 – Checksum Options Off/ On/Strip Checksum Characters
SY I2O5 S/P/R/GCO 0 0 Disables checksum checking and
output checksum if one exists.
Example: SYI2O5SCO0
1 Enables checksum checking and
output checksum with decode data.
Example: SYI2O5SCO1
2 Enables checksum check and
strip checksum from decode data.
Example: SYI2O5SCO2
Note: This setting value is ignored if In-
terleaved 2of5 decoding is disabled.
Interleaved 2of5 – Length
SY I2O5 S/P/R/GLN 0 0 Minimum Value
Example: SYI2O5SLN0
100 Maximum Value
Example: SYI2O5SLN100
Note: This setting value is ignored if In-
terleaved 2of5 decoding is disabled.
Japan Post SY JAPOS/P/R/GEN 0 0 Disable
Example: SYJAPOSEN0
1 Enable
Example: SYJAPOSEN1
KIX (Dutch Post) SY KIX0 S/P/R/GEN 0 0 Disable
Example: SYKIX0SEN0
1 Enable
Example: SYKIX0SEN1
Leuze electronic DCR 50 32
Configuration control
Code Description Command Format Op-
tions
De­fault
Notes/Examples
Korean Post SY KOPOS/P/R/GEN 0 0 Disable
Example: SYKOPOSEN0
1 Enable
Example: SYKOPOSEN1
Matrix 2of5 SY M2O5S/P/R/GEN 0 0 Disable
Example: SYM2O5SEN0
1 Enable
Example: SYM2O5SEN1
Maxicode SY MAXCS/P/R/GEN 0 0 Disable
Example: SYMAXCSEN0
1 Enable
Example: SYMAXCSEN1
MSI Plessey – Get All Parameter
SY MSIP G Returns all MSI Plessey parameter val-
ues in an XML element.
Example: SYMSIPG
MSI Plessey SY MSIP S/P/R/GEN 0 0 Disable
Example: SYMSIPSEN0
MSI Plessey – Require Checksum
MSI Plessey – Strip Checksum
1 Enable
Example: SYMSIPSEN1
SY MSIP S/P/R/GCS 0 0 Disable
Example: SYMSIPSCS0
1 Enable
Example: SYMSIPSCS1
2 10/10 Checksum type
Example: SYMSIPSCS2
3 11/10 Checksum type
Example: SYMSIPSCS3
Note: This setting value is ignored if MSI
Plessey decoding is disabled.
SY MSIP S/P/R/GSC 0 0 Disable
Example: SYMSIPSSC0
1 Enable
Example: SYMSIPSSC1
Note: This setting value is ignored if MSI
Plessey decoding is disabled.
Plessey – PLE SY MSIP S/P/R/GPE 0 0 Disable
Example: SYMSIPSPE0
1 Enable
Example: SYMSIPSPE1
NEC 2 of 5 – Get All Pa­rameter
SY N2O5G Returns all NEC 2 of 5 parameter values
in an XML element.
Example: SYN2O5G
Leuze electronic DCR 50 33
Configuration control
Code Description Command Format Op-
tions
De­fault
Notes/Examples
NEC 2 of 5 SY N2O5S/P/R/GEN 0 0 Disable
Example: SYN2O5SEN0
1 Enable
Example: SYN2O5SEN1
NEC 2 of 5 – Require Checksum
SY N2O5S/P/R/GCS 0 0 Disable
Example: SYN2O5SCS0
1 Enable
Example: SYN2O5SCS1
Note: This setting value is ignored if
NEC 2 of 5 decoding is disabled.
PDF417 SY P417 S/P/R/GEN 1 0 Disable
Example: SYP417SEN0
1 Enable
Example: SYP417SEN1
Micro PDF417 SY P417 S/P/R/GMI 0 0 Disable
Example: SYP417SMI0
1 Enable
Example: SYP417SMI1
Pharma Code – Get All Parameter
SY PHCOG Returns all Pharma code parameter val-
ues in an XML element.
Example: SYPHCOG
Pharmacode SY PHCOS/P/R/GEN 0 0 Disable
Example: SYPHCOSEN0
1 Enable
Example: SYPHCOSEN1
Pharmacode – Reverse SY PHCOS/P/R/GRV 0 0 Disable
Example: SYPHCOSRV0
1 Enable
Example: SYPHCOSRV1
Note: This setting value is ignored if
Pharmacode decoding is disabled.
Pharmacode – Support Color bars
SY PHCOS/P/R/GCB 0 0 Disable
Example: SYPHCOSCB0
1 Enable
Example: SYPHCOSCB1
Note: This setting value is ignored if
Pharmacode decoding is disabled.
Pharmacode – Bar Count Min
SY PHCOS/P/R/GCN 4 4 Minimum Value
Example: SYPHCOSCN4
Note: This setting value is ignored if
Pharmacode decoding is disabled.
Leuze electronic DCR 50 34
Configuration control
Code Description Command Format Op-
tions
Pharmacode – Bar
SY PHCOS/P/R/GCX 16 16 Maximum Value
Count Max
De­fault
Notes/Examples
Example: SYPHCOSCX16
Note: This setting value is ignored if
Pharmacode decoding is disabled
Pharmacode – Min Value
SY PHCOS/P/R/GMI 15 15 Minimum Value
Example: SYPHCOSMI15
Note: This setting value is ignored if
Pharmacode decoding is disabled.
Pharmacode – Max Value
SY PHCOS/P/R/GMX 131070 131070Maximum Value
Example: SYPHCOSMX131070
Note: This setting value is ignored if
Pharmacode decoding is disabled.
QR Code – Get All Pa­rameter
SY QRCOG Returns all QR code parameter values in
an XML element.
Example: SYQRCOG
QR Code SY QRCOS/P/R/GEN 1 0 Disable
Example: SYQRCOSEN0
1 Enable
Example: SYQRCOSEN1
QR Code – Polarity SY QRCOS/P/R/GPO 0 0 Normal mode enabled - Black on
white background
Example: SYQRCOSPO0
1 Inverse mode enabled - White on
black background
Example: SYQRCOSPO1
2 Both normal and inverse modes
enabled
Example: SYQRCOSPO2
Note: This setting value is ignored if QR
code decoding is disabled.
Micro QR Code SY QRCOS/P/R/GMI 0 0 Disable
Example: SYQRCOSMI0
1 Enable
Example: SYQRCOSMI1
QR Code – Mirror SY QRCOS/P/R/GMR 0 0 Disable
Example: SYQRCOSMR0
1 Enable
Example: SYQRCOSMR1
Note: This setting value is ignored if QR
Code decoding is disabled.
Leuze electronic DCR 50 35
Configuration control
Code Description Command Format Op-
tions
De­fault
Notes/Examples
QR Code – Mode 1 SY QRCOS/P/R/GM1 0 0 Disable
Example: SYQRCOSM10
1 Enable
Example: SYQRCOSM11
Note: This setting value is ignored if QR
Code decoding is disabled.
QR Code – Custom SY QRCOS/P/R/GCQ 0 0 Disable
Example: SYQRCOSCQ0
1 Enable
Example: SYQRCOSCQ1
Note: This setting value is ignored if QR
Code decoding is disabled.
Straight 2 of 5 SY S2O5 S/P/R/GEN 0 0 Disable
Example: SYS2O5SEN0
1 Enable
Example: SYS2O5SEN1
Telepen – Get All Pa­rameter
SY TELP G Returns all Telepen parameter values in
an XML element.
Example: SYTELPG
Telepen SY TELP S/P/R/GEN 0 0 Disable
Example: SYTELPSEN0
1 Enable
Example: SYTELPSEN1
Telepen – Ouput ASCII SY TELP S/P/R/GOA 0 0 Disable
Example: SYTELPSOA0
1 Enable
Example: SYTELPSOA1
Note: This setting value is ignored if
Telepen decoding is disabled.
Trioptic – Get All Param­eter
SY TRIO G Returns all Trioptic parameter values in
an XML element.
Example: SYTRIOG
Trioptic SY TRIO S/P/R/GEN 0 0 Disable
Example: SYTRIOSEN0
1 Enable
Example: SYTRIOSEN1
Trioptic – Reverse SY TRIO S/P/R/GRV 0 0 Disable
Example: SYTRIOSRV0
1 Enable
Example: SYTRIOSRV1
Note: This setting value is ignored if Tri-
optic decoding is disabled.
Leuze electronic DCR 50 36
Configuration control
Code Description Command Format Op-
tions
De­fault
Notes/Examples
Trioptic – Start/Stop SY TRIO S/P/R/GSS 0 0 Disable
Example: SYTRIOSSS0
1 Enable
Example: SYTRIOSSS1
Note: This setting value is ignored if Tri-
optic decoding is disabled.
UK Royal Mail SY UKROS/P/R/GEN 0 0 Disable
Example: SYUKROSEN0
1 Enable
Example: SYUKROSEN1
UK Royal Mail – Require Check Character
SY UKROS/P/R/GCC 0 0 Disable
Example: SYUKROSCC0
1 Enable
Example: SYUKROSCC1
Note: This setting value is ignored if UK
Royal Mail decoding is disabled.
UPC/EAN – Get All Pa­rameter
SY UPC0G Returns all UPC/EAN parameter values
in an XML element.
Example: SYUPC0G
UPC/EAN SY UPC0S/P/R/GEN 1/0 0 Disable
Example: SYUPC0SEN0
1 Enable
Example: SYUPC0SEN1
UPC/EAN – Expand UPC-E to UPC-A
SY UPC0S/P/R/GEA 1 0 Disable
Example: SYUPC0SEA0
1 Enable
Example: SYUPC0SEA1
Note: This setting value is ignored if
UPC/EAN decoding is disabled.
UPC/EAN – Supplemen­tal
SY UPC0S/P/R/GSU 0 0 Disable
Example: SYUPC0SSU0
1 Enable
Example: SYUPC0SSU1
Note: This setting value is ignored if
UPC/EAN decoding is disabled.
UPC/EAN – Expand EAN-8 to EAN-13
SY UPC0S/P/R/G8D 0 0 Disable
Example: SYUPC0S8D0
1 Enable
Example: SYUPC0S8D1
Note: This setting value is ignored if
UPC/EAN decoding is disabled.
Leuze electronic DCR 50 37
Configuration control
Code Description Command Format Op-
tions
UPC/EAN – Expand
SY UPC0S/P/R/GAD 0 0 Disable
UPC-A to EAN-13
UPC/EAN – Convert
SY UPC0S/P/R/GDI 0 0 Disable Bookland EAN-13 to ISBN
UPC/EAN – Convert
SY UPC0S/P/R/GDN 0 0 Disable Bookland EAN-13 to ISSN
De­fault
Notes/Examples
Example: SYUPC0SAD0
1 Enable
Example: SYUPC0SAD1
Note: This setting value is ignored if
UPC/EAN decoding is disabled.
Example: SYUPC0SDI0
1 Enable
Example: SYUPC0SDI1
Note: This setting value is ignored if
UPC/EAN decoding is disabled.
Example: SYUPC0SDN0
1 Enable
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
SY UPC0S/P/R/GAC 0 0 Disable
Example: SYUPC0SAC0
1 Enable
Example: SYUPC0SAC1
Note: This setting value is ignored if
UPC/EAN decoding is disabled.
SY UPC0S/P/R/GAN 0 0 Disable
Example: SYUPC0SAN0
1 Enable
Example: SYUPC0SAN1
Note:This setting value is ignored if
UPC/EAN decoding is disabled.
SY UPC0S/P/R/GEC 0 0 Disable
Example: SYUPC0SEC0
1 Enable
Example: SYUPC0SEC1
Note: This setting value is ignored if
UPC/EAN decoding is disabled.
SY UPC0S/P/R/GES 0 0 Disable
Example: SYUPC0SES0
1 Enable
Example: SYUPC0SES1
Note: This setting value is ignored if
UPC/EAN decoding is disabled.
Leuze electronic DCR 50 38
Configuration control
Code Description Command Format Op-
tions
UPC/EAN – Transmit
SY UPC0S/P/R/GDC 0 0 Disable EAN-13 Checksum
De­fault
Notes/Examples
Example: SYUPC0SDC0
1 Enable
Example: SYUPC0SDC1
Note: This setting value is ignored if
UPC/EAN decoding is disabled.
UPC/EAN – Transmit EAN-8 Checksum
SY UPC0S/P/R/G8C 0 0 Disable
Example: SYUPC0S8C0
1 Enable
Example: SYUPC0S8C1
Note: This setting value is ignored if
UPC/EAN decoding is disabled.
UPC/EAN – Send AIM Modifier
SY UPC0S/P/R/GAM 0 0 Disable
Example: SYUPC0SAM0
1 Enable
Example: SYUPC0SAM1
USPS Planet SY USPLS/P/R/GEN 0 0 Disable
Example: SYUSPLSEN0
1 Enable
Example: SYUSPLSEN1
USPS Postnet SY USPOS/P/R/GEN 0 0 Disable
Example: SYUSPOSEN0
1 Enable
Example: SYUSPOSEN1
UPU ID Tags SY UPUI S/P/R/GEN 0 0 Disable
Example: SYUPUISEN0
1 Enable
Example: SYUPUISEN1
USPS Intelligent Mail SY USIM S/P/R/GEN 0 0 Disable
Example: SYUSIMSEN0
1 Enable
Example: SYUSIMSEN1
Leuze electronic DCR 50 39

8.2.2 Communications

Configuration control
Code Description Command Format Op-
tions
Get All Communications
CM CM G Example: CMCMG
De­fault
Notes/Examples
Parameters
Communications Mode CM MO S/P/R/GCM UK SE RS-232 Serial
Example: CMMOSCMSE
UK USB Keyboard
Example: CMMOSCMUK
UV USB VCOM
Example: CMMOSCMUV
UN USB Native
Example: CMMOSCMUN
UP USB HID POS
Example: CMMOSCMUP
UC USB CDC VCOM
Example: CMMOSCMUC
Communication Protocol CM CP S/P/R/GPM 0 0 Raw Mode
Example: CMCPSPM0
Connection Retry Timeout (s)
RS-232 Interface – Get All parameters
RS-232 Interface – Baud Rate
1 Packet Mode
Example: CMCPSPM1
CM GE S/P/R/GCR 5000 If reader disconnects, it will try to recon-
nect after the timeout interval in seconds.
Valid Range:
Example: CMGESCR5000
CM SE G Returns all serial communication param-
eter values in an XML element.
Example: CMSEG
CM SE S/P/R/GBA 115200 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 electronic DCR 50 40
Configuration control
Code Description Command Format Op-
tions
RS-232 Interface – Data
CM SE S/P/R/GDB 8 7 Seven data bits
Bits
De­fault
Notes/Examples
Example: CMSESDB7
8 Eight data bits
Example: CMSESDB8
The number of bits per character
RS-232 Interface – Stop Bits
CM SE S/P/R/GSB 1 1 One stop bit
Example: CMSESSB1
2 Two stop bits
Example: CMSESSB2
The number of stop bits sent
RS-232 Interface – Parity CM SE S/P/R/GPA N N None – No parity bits
Example: CMSESPAN
E Even parity bit
Example: CMSESPAE
O Odd parity bit
Example: CMSESPAO
RS-232 Interface – Flow Control
RS-232 Interface – Signal Polarity

8.2.3 USB 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 SE S/P/R/GFC 0/1 0 Example: CMSESFC0
1 Example: CMSESFC1
Transmit flow control
CM SE S/P/R/GPO 0 0 Standard or non-inverted UART0
signals
Example: CMSESPO0
1 Invert 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 Description Command Format Op-
Default Notes/Examples
tions
USB – Get All parameters CM UB G Returns all USB communication parame-
ter values in an XML element.
Example: CMUBG
USB – Manufacturer CM UB S/P/R/GMF CODE A string representing the manufacturer
name for the product
Example: CMUBSMFCODE
Leuze electronic DCR 50 41
Configuration control
Code Description Command Format Op-
Default Notes/Examples
tions
USB – Part Number CM UB S/P/R/GPN CR8200A string representing the part number or
name for the product
Example: CMUBSPNCR8200
USB – Full Speed CM UB S/P/R/GFS 0 0 Disable Full Speed
Example: CMUBSFS0
1 Enable Full Speed
Example: CMUBSFS1
HID Keyboard – Get All pa­rameters
CM HD G Returns all HID Keyboard parameter val-
ues in an XML element.
Example: CMHDG
HID Keyboard – Inter Char­acter Delay (ms)
CM HD S/P/R/GIC 0 In Milliseconds
Valid Range:
Example: CMHDSIC4
HID Keyboard – Inter Scan Delay (ms)
CM HD S/P/R/GIS 0 In Milliseconds
Valid Range:
Example: CMHDSIS4
HID Keyboard – Release Delay (ms)
CM HD S/P/R/GRL 0 In Milliseconds
Valid Range:
Example: CMHDSRL4
HID Keyboard Control Characters
HID Keyboard Decode Data Input Conversion
HID Keyboard Decode Data Output Method
CM HD S/P/R/GCC 0 0 Use language
Example: CMHDSCC0
1 Use Ctrl+<char>
Example: CMHDSCC1
2 Use Alt+<Keypad>
Example: CMHDSCC2
3 Use Alt+0<Keypad>
Example: CMHDSCC3
How to handle character values in the range 0x00 to 0x1F
CM HD S/P/R/GIE 0 0 ASCII – No Conversion
Example: CMHDSIE0
1 ASCII to Unicode Code point
Example: CMHDSIE1
2 UTF-8 to Unicode Code point
Example: CMHDSIE2
CM HD S/P/
R/G
OM 0 0 Unicode as XML Lookup
Example: CMHDSOM0
1 Unicode as Windows Alt-Se-
quence
Example: CMHDSOM1
Note: This parameter is only relevant
when Input Conversion >0
Leuze electronic DCR 50 42
Configuration control
Code Description Command Format Op-
tions
HID Keyboard Windows
CM HD S/P/R/GEA 0 0 Append leading zero (Code page code page for Extended ASCII Characters
USB Keyboard – Get All
CM UK G Returns all USB Keyboard parameter val­parameters
USB Keyboard – Number
CM UK S/P/R/GNE 1 1 One endpoint of Endpoints
Default Notes/Examples
1232)
Example: CMHDSEA0
1 Do not append leading zero (Code
page 437)
Example: CMHDSEA1
Extended ASCII characters [0x80, 0xFF] are output as alt-sequences with or with­out a leading zero which windows uses to determine whether to display the charac­ter from CP1232 or CP437. This only ap­plies 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 – Declara­tion Wait State
USB Keyboard – Use Serial Number
USB Keyboard – IN End­point Polling Interval (µs)
USB Vendor – Use Serial Number
USB Vendor – IN Endpoint Polling Interval (µs)
2 Two endpoints
Example: CMUKSEN2
CM UK S/P/R/GEM 0 0 Declare enumeration when ad-
dressed
Example: CMUKSEM0
1 Declare enumeration after receipt
of output report
Example: CMUKSEM1
2 Declare enumeration after receipt
of get report descriptor
Example: CMUKSEM2
CM UK S/P/R/GSN 0/1 0 Example: CMUKSSN0
1 Example: CMUKSSN1
CM UK S/P/R/GIN 1000 Controls the USB HID Keyboard IN End-
point Polling Interval
Example: CMUKSIN1000
CM UN S/P/R/GSN 0/1 0 Example: CMUNSSN0
1 Example: CMUNSSN1
CM UN S/P/R/GIN 1000 Controls the USB HID Vendor IN End-
point Polling Interval
Example: CMUNSIN1000
USB VCOM – Use Serial Number
USB HID POS – Use Serial Number
Leuze electronic DCR 50 43
CM UV S/P/R/GSN 0/1 0 Example: CMUVSSN0
1 Example: CMUVSSN1
CM UP S/P/R/GSN 0/1 0 Example: CMUPSSN0
1 Example: CMUPSSN1
Tab.8.2: HID language support
Configuration control
Code Description Command Format Op-
tions
Get all language parame-
LA IN G Get all language settings
ters
Active language LA IN S/P/R/GAL USEn-
De­fault
glish_ Win
Notes/Examples
Example: LAING
Active language setting
Valid Range: Languages listed by the LAINGIL command
Example: LAINGAL
Get Installed languages list LA IN G IL List installed language names
Example: LAINGIL
Control character encoding CM HD S/P/R/GCC 0 0 Language Default
Example: CMHDSCC0
1 Control + Character
Example: CMHDSCC1
2 Alt + Keypad
Example: CMHDSCC2
3 Alt + Leading 0
Example: CMHDSCC3

8.2.4 Packet and protocol parameters

Code Description Command Format Op-
tions
Packet – Get All parameters PK OP G Returns all packet parameter values in
Receive Timeout (ms) PK OP S/P/R/GRT 250 When retry count specified and reader
Connection Protocol Time-
PK OP S/P/R/GCT 60 When sending fragmented data in
out (s)
De­fault
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 Count PK OP S/P/R/GRC 0 Number of retries from the reader when
no ACK is received from the host.
Valid Range:
Example: PKOPSRC1
Leuze electronic DCR 50 44

8.2.5 Decoder and general decoding parameters

Configuration control
Code Description Command Format Op-
tions
De­fault
Notes/Examples
Get All Decoder Parameters CD CD G Returns all decoder parameter values in
an XML element.
Example: CDCDG
CD DP DPM parameters (Not supported)
Decoder Timing – Get All Parameters
CD DT G Returns all decoder timing parameter
values in an XML element.
Example: CDDTG
Decode Time Limit (ms) CD DT S/P/R/GTL 150/320Time limit (decoder)
Example: CDDTSTL150
CD DT S/P/R/GTF 30 Timeout Factor
Example: CDDTSTF30
Get All Decoder Operational Parameters
CD OP G Returns all decoder operational parame-
ter values in an XML element.
Example: CDOPG
Maximum Decodes Per Read
CD OP S/P/R/GPR 1 The 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 Interest CD OP S/P/R/GRO 0 0 Disable ROI
Example: CDOPSRO0
1 Enable ROI
Example: CDOPSRO1
Ensure decoded barcoded is always in­side the region of interest. When dis­abled, barcode may be decoded as long as it is partially inside the ROI
Region of Interest Leftmost
CD OP S/P/R/GRL 0 ROI Left
pixel
Region of Interest Topmost
CD OP S/P/R/GRT 0 ROI Top
pixel
Region of Interest width (pix-
CD OP S/P/R/GRW 1280 ROI width
els)
Region of Interest height
CD OP S/P/R/GRH 960 ROI height
(pixels)
Low Contrast 1D CD OP S/P/R/GLC 0 0 Disable Low Contrast
Example: CDOPSLC0
1 Enable Low Contrast
Example: CDOPSLC1
Leuze electronic DCR 50 45
Configuration control
Code Description Command Format Op-
tions
De­fault
Notes/Examples
FOI Zoom CD OP S/P/R/GZR 0 0 Disable FOI Zoom
Example: CDOPSZR0
1 Enable FOI Zoom
Example: CDOPSZR1
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 Contrast CD OP S/P/R/GEC 0 0 Disable
Example: CDOPSEC0
1 Enable
Example: CDOPSEC1
Enhances image contrast before decod­ing
Prefix Decode Results with AIM Symbology Identifiers
CD OP S/P/R/GPA 0 0 Don’t prefix with AIM identifier
Example: CDOPSPA0
1 Prefix decode result with ISO/
IEC standard 15424/AIM
Example: CDOPSPA1
Security Level
CD OP S/P/R/GSE See decoder API
(Decoder P_SECU­RITY_LEVEL)
1D Barcode Aggressiveness CD OP S/P/R/GSE 0 0 Most Aggressive
Example: CDOPSSE0
1 Less Aggressive for poorly
printed 1D barcodes.
Example: CDOPSSE1
2 Least Aggressive for poorly
printed 1D barcodes.
Example: CDOPSSE2
11 Less Aggressive for 1D barcodes
with low module size
Example: CDOPSSE11
12 Least Aggressive for 1D bar-
codes with low module size
Example: CDOPSSE12
Decode Attempt Time CD OP S/P/R/GAT 0 Attempt Time (Same as sticky time in
CR8x)
Example: CDOPSAT0
Stop Decoding on Duplicate CD OP S/P/R/GSD 0 Instructs the decoder to stop looking for
decodes in the current image when a duplicate is found.
Prefix with AIM Identifier CD OP S/P/R/GPA 0 Prefixes the decode data with the 3-
character AIM identifier
Leuze electronic DCR 50 46
Configuration control
Code Description Command Format Op-
tions
De­fault
Notes/Examples
Cellphone Enable CD OP S/P/R/GCE 0 0 Disable Cellphone reading mode
1 Enable Cellphone reading mode
Upload Images CD OP S/P/R/GDI 0 0 Disable uploading images
Example: CDOPPDI0
1 Enable uploading
Example: CDOPPDI1
When Upload Images is set, each im­age captured by the reader will be sent as a stream of data to the host
Decode Trigger Mode CD OP S/P/R/GMD 0 0 Trigger Mode (default)
Example: CDOPSMD0
1 Motion Detection Mode
Example: CDOPSMD1
2 Continuous scan Mode
Example: CDOPSMD2
Notes: TBD
Target Tolerance (percent) CD VA S/P/R/GTT 1600 For reader to accept a barcode, it must
be within certain distance from the cen­ter 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 infi­nite tolerance, and no target checking is performed.
Valid Range: 1 to 1000
Example: CDVASTT1600
Duplicate Block Time (ms) CD VA S/P/R/GBT 0 Consecutive duplicate barcodes (i.e.
barcodes that contain the same data) are blocked for this amount of time (in milliseconds). 0 turns off blocking of du­plicate barcodes.
Valid Range: 0 to xx
Example: CDVASBT100
Block Duplicates CD VA S/P/R/GBD 0 0 Disable – do not block dupli-
cates
Example: CDVASBD0
1 Enable –block duplicates for the
amount of time set in DC­VAGBT
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 electronic DCR 50 47
Configuration control
Code Description Command Format Op-
tions
Data manipulation format
CD OP S/P/R/GFO 0 0 Don’t format data output
option selection
De­fault
Notes/Examples
Example: CDOPSFO0
1 Format data with prefix/suffix or
data configuration string
Example: CDOPSFO1
2 Perform match string validation*
Example: CDOPSFO2
3 Perform GS1 validation*
Example: CDOPSFO3
4 Perform UDI validation
Example: CDOPSFO4
5 Perform ISO15434 validation
Example: CDOPSFO5
6 Perform ISO15434 & ISO15418
validation
Example: CDOPSFO6
7 Perform Simple Age verification
using configuration string*
Example: CDOPSFO7
8 Perform Simple Age verification
without configuration
Example: CDOPSFO8
9 Perform DL Parsing with config-
uration string
Example: CDOPSFO9
10 Perform DL Parsing without
configuration
Example: CDOPSFO10
11 Perform Success & Raw valida-
tion
Example: CDOPSFO11
Simple prefix CD OP S/P/R/GPX Data formatting prefix
Example: CDOPSPX
Simple suffix CD OP S/P/R/GSX Data formatting suffix
Example: CDOPSSX
Output in upper or lower case or bracketed hex bytes
CD OP S/P/R/GFC upper
lower case
hex bytes
Data formatting output case/hex
Example: CDOPSFC
Full data format string CD OP S/P/R/GFD Data formatting raw format configuration
string
Example: CDOPSFD
Leuze electronic DCR 50 48
Configuration control
Code Description Command Format Op-
Public sector & validation configuration string
Stand Detection CD ST S/P/R/GSE 1 0 Disable

8.2.6 Power mode parameters

Code Description Command Format Op-
tions
De­fault
Notes/Examples
CD OP S/P/R/GFP Validation & public sector configuration
string
Example: CDOPSFP
Example: CDSTSSE0
1 Enable
Example: CDSTSSE1
Detects when the reader has been placed in a stand that contains a trigger magnet and change to Motion Detection mode.
CD ST S/P/R/GSD CDSTSSD100
Stand detect duplicate barcode block delay in ms
tions
De­fault
Notes/Examples
Get All Power Management Parameters
PM PM G Returns all power management parame-
ter values in an XML element.
Example: PMPMG
Standby Mode Timer PM SB S/P/R/GEN 0 0 Disable Standby Mode Timer
Example: PMSBSEN0
1 Enable Standby Mode Timer
Example: PMSBSEN1
Standby Mode Timer Delay (ms)
PM SB S/P/R/GVA 5000 If Standby Mode Timer is enabled, the
device will go into Standby Mode after this timer has expired.
Valid Range:
Example: PMSBSVA2000
Sleep Mode Timer PM SM S/P/R/GEN 0 0 Disable Sleep Mode Timer
Example: PMSMSEN0
1 Enable Sleep Mode Timer
Example: PMSMSEN1
The Standby Mode Timer must be en­abled for the device to go into Sleep Mode.
Sleep Mode Timer Delay (ms)
PM SM S/P/R/GVA 3600 If 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 electronic DCR 50 49
Configuration control
Code Description Command Format Op-
Sleep Mode Timer – Main­tain Connection
Power Mode Enter Sleep PM ES Forces the device to go into Sleep Mode

8.2.7 General reader information

Code Description Command Format Op-
Get All Reader Information Parameters
tions
De­fault
Notes/Examples
PM SM S/P/R/GMC 1 0 Disconnect from host in Sleep
Mode
Example: PMSMSMC0
1 Retain connection in Sleep
Mode
Example: PMSMSMC1
even if Standby Mode Timer and Sleep Mode Timer are disabled. This com­mand should be sent as RAW. The de­vice will immediately go into Sleep Mode after receiving this command.
Example: PMES
tions
De­fault
Notes/Examples
RD RD G Returns all Reader Information parame-
ter values in an XML element.
Example: RDRDG
Get all Firmware information RD FW G Returns all Firmware parameter values
in an XML element.
Example: RDFWG
Firmware Version Major RD FW G MJ Returns Firmware Major Version param-
eter value in an XML element.
Example: RDFWGMJ
Firmware Version Minor RD FW G MN Returns Firmware Minor Version param-
eter value in an XML element.
Example: RDFWGMN
Firmware Version Build Ver­sion
RD FW G BU Returns Firmware Build Version param-
eter value in an XML element.
Example: RDFWGBU
Decoder Version RD FW G DV Returns Decoder version parameter
value in an XML element.
Example: RDFWGDV
Chip Revision RD CP G RV Returns Chip Revision parameter value
in an XML element
Example: RDCPGRV
Reader Serial Number RD CP G SN Returns Reader Serial Number parame-
ter value in an XML element
Example: RDCPGSN
Reader Information RD RR G Returns Reader Information parameter
value in an XML element
Example: RDRRG
Leuze electronic DCR 50 50
Configuration control
Code Description Command Format Op-
tions
De­fault
Notes/Examples
Reader ID RD RR G ID Returns Reader ID parameter value in
an XML element.
Example: RDRRGID
Hardware Revision RD RR G HR Returns Reader Hardware Revision pa-
rameter value in an XML element.
Example: RDRRGHR
Reader Model Type RD RR S/P/R/GMT 0 DCR50
Example: RDRRSMT6
Reader Information String RD RR G IS Returns Reader Information String pa-
rameter value in an XML element.
Example: RDRRGIS
Reader Output Format – Line Ending
Reader Command – Process Barcode Data
RD OF S/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 CM X BD <data> Sends <data> to the host as barcode
data
Example: RDCMXBD12345
Reader Command – Reboot RD CM X RB 1 Reboots the reader
Example: RDCMXRB1
Reader Command – Post Event
RD CM X EV Posts 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 sin­gle 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
EV1P10 Stop decoding
List
P11 P20 Start single decode
P11 P21 Start continuous decoding
EV2P10 Disable Targeting
P11 Enable Targeting
Leuze electronic DCR 50 51
Configuration control
Code Description Command 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 com­mand 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 Licenses RD LC G GL Returns all Reader License values in an
XML element.
Example: RDLCGGL
Load License RD LC X LD “URL
en­coded 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 com­mand.
Example: RDLCXLD”%23%45….”
Delete License RD LC X DL Li-

8.2.8 Reader configuration

Code Description Command Format Op-
Get All Reader Parameters CF G Returns all Reader Parameter values in
Reset Reader to Factory Default

8.2.9 General firmware operation

Code Description Command Format Op-
Deletes a license cense num­ber
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
De­fault
Notes/Examples
an XML element.
Example: CFG
CF R Resets all reader parameters to factory
default values.
Example: CFR
tions
De­fault
Notes/Examples
Get All Firmware Parame­ters
FW FW G Returns all Firmware parameter values
in an XML element.
Example: FWFWG
Leuze electronic DCR 50 52
Configuration control
Code Description Command Format Op-
tions
Echo option FW CM S/P/R/GOE 0 0 Disable Raw Command Echoing
Raw Command Enable FW CM S/P/R/GOR 0 0 Disable Raw Commands
8.2.10 General reader feedback parameters
Code Description Command Format Op-
tions
Get All Reader Feedback
FB FB G Returns all Reader Feedback parameter
Parameters
De-
Notes/Examples
fault
Example: FWCMSOE0
1 Enable Raw Command Echoing
Example: FWCMSOE1
Example: FWCMSOR0
1 Enable Raw commands
Example: FWCMSOR1
Default Notes/Examples
values in an XML element.
Example: FBFBG
Good Read Indication – Fre­quency (Hz)
Good Read Indication – Beep Volume (percent)
Good Read Indication – Beep As IO
8.2.11 Setup default AGC mode
Code Description Command Format Op-
Get All Scene Manager Pa­rameters
FB GR S/P/R/GFQ 2400 Good read beep output frequency.
Valid Range:
Example: FBGRSFQ2400
FB GR S/P/R/GVO 100 Valid Range: 0 to 100 percent
Example: FBGRSVO100
FB GR S/P/R/GBI 0 0 Good Read Indication is a fre-
quency output as defined by FB­GRGFQ
Example: FBGRSBI0
1 Good Read Indication is an IO
signal
Example: FBGRSBI1
Default Notes/Examples
tions
SC SC G Returns all Scene Manager parameter
values in an XML element.
Example: SCSCG
Scene Manager Mode SC SP S/P/R/GMO NO NO Normal AGC Mode
Example: SCSPSMONO
BY Bypass AGC Mode
Example: SCSPSMOBY
FX Fixed AGC Mode
Example: SCSPSMOFX
Leuze electronic DCR 50 53
Configuration control
Code Description Command Format Op-
Set Imager Exposure SC SP S/P/R/GEX This defines the imager exposure in
Set Imager Gain SC SP S/P/R/GGN This defines the imager gain in Bypass
Set Imager Illumination SC SP S/P/R/GIL This defines the Imager Illumination in
Set Fixed percent (percent) SC SP S/P/R/GFP Set Fixed percent
8.2.12 Setup AGC parameters
Code Description Command Format Op-
Get All AGC Parameters AG AG G Returns 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 Mo­tion Detect (percent)
AG CR S/P/R/GMB 100 Sets 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 Timing AG TM S/P/R/GHQ 360 AGC High Quality time limit
Valid Range:
Example: AGTMSHQ360
AGC Medium Quality time limit
AG TM S/P/R/GMQ 320 AGC Medium Quality time limit
Valid Range:
Example: AGTMSMQ320
AGC Low Quality time limit AG TM S/P/R/GLQ 120 AGC Low Quality time limit
Valid Range:
Example: AGTMSLQ120
Timeout multiplier (FP24_8) AG TM S/P/R/GMT 0x100 Timeout multiplier (FP24_8)
Valid Range:
Example: AGTMS
Leuze electronic DCR 50 54
8.2.13 Setup motion detection parameters
Configuration control
Code Description Command Format Op-
tions
Get All motion detect set-
MD PM G Returns all motion detection parameter
tings
De­fault
Notes/Examples
values in an XML element.
Example: MDPMG
Minimum Illumination MD PM S/P/R/GNI 0 0 Minimum 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 illumination MD PM S/P/R/GXI 6 100 Maximum Value
This is the highest value the AGC
should use to set the illumination
Valid Range: Minimum illumination to
100
Example: MDPMSXI0
Initial illumination value MD PM S/P/R/GII 1 The starting value the AGC will use to
start adjusting illumination
Valid Range: Minimum illumination to
Maximum illumination
Example: MDPMSII1
Minimum exposure time (µs) MD PM S/P/R/GNE 1 1 Minimum 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 PM S/P/R/GXE 46 20000Maximum Value
(µs)
Valid Range: Minimum exposure time
to 20000 microseconds
Example: MDPMSXE10040
Initial exposure time (µs) MD PM S/P/R/GIE 40 Valid Range: Minimum exposure time
to Maximum exposure time microsec-
onds
Example: MDPMSIE100
Minimum gain MD PM S/P/R/GNG 1 0 Minimum Value
Valid Range: 0 to Maximum Gain
Example: MDPMSNG15
Maximum gain MD PM S/P/R/GXG 47 64 Maximum 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 electronic DCR 50 55
Configuration control
Code Description Command Format Op-
tions
De­fault
Notes/Examples
Initial gain MD PM S/P/R/GIG 21 Valid Range: Greater than or equal to
Minimum Gain and less than or equal to
Maximum Gain.
Example: MDPMSIG15
Minimum lightest pixel value MD PM S/P/R/GNL 60 0 Minimum Value
Valid Range: 0 to Maximum lightest
pixel value
Example: MDPMSNL60
Maximum lightest pixel value
MD PM S/P/R/GXL 90 255 Maximum 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 threshold MD PM S/P/R/GPL 15 This 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 threshold MD PM S/P/R/GTL 5 Total 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 threshold MD PM S/P/R/GBT 4 The minimum number of sequential pix-
els to be considered a group or blob
(like a bar width)
Valid Range:
Example: MDPMSBT4
Leuze electronic DCR 50 56
8.2.14 Setup camera parameters
Configuration control
Code Description Command Format Op-
Test Mode IM CP S/P/R/GTM Example: IMCPG
Minimum Exposure (per­cent)
Maximum Exposure (per­cent)
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.
Header Command Trailer
<SOH>Y<GS><STX> (%01%59%1D%02)
tions
De­fault
Notes/Examples
IM CP S/P/R/GME 20 0 Minimum Value
Defines the minimum exposure parame-
ter of camera
Valid Range: 0 to less than or equal to
Maximum Exposure percent
Example: IMCPSME20
IM CP S/P/R/GXE 100 100 Maximum 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 electronic DCR 50 57

8.3 Motion 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 inter­nal 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 shut­ter. 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 pic­ture 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 il­lumination, 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 com­pare 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 deter­mines 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 electronic DCR 50 58

8.4 Data 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
Value Description
0 Data formatting off
1 Simple data formatting using either prefix and suffix, or by setting the format data string di-
rectly.
2 Match String validation
3 GS1 DataBar validation (requires a license)
Configuration control
4 UDI/HIBC validation (requires a license)
5 ISO15434 validation
6 ISO15434 and ISO15418 validation
7 Simple age verification using a configuration string
8 Simple age verification without using a configuration string
9 DL Parsing using a configuration string
10 DL Parsing without using a configuration string
11 Success 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 electronic DCR 50 59
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 electronic DCR 50 60

9 Command 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.1 General 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.1 Command packet

To send a command to the device, a properly formatted packet must be formed.
Tab.9.1: Command packet format
Section Bytes (or Range) Number of
Start of Frame 0x01
Packet Version 0x31 1 Indicates the version number for the packet
Packet Length 0x0013 – 0xFFFF 2 Indicates the number of bytes that are sent
0x43
0x54
Description
Bytes
3 Three 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 Address 0x00000000 –
0x0FFFFFFF
4 Represents 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 electronic DCR 50 61
Command protocol
Section Bytes (or Range) Number of
Description
Bytes
Source Address 0x40000000 –
0x4FFFFFFF
4 Represents 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 Type 0x01 1 Indicates the type of protocol to use when
communicating. This value is always 0x01.
Flags 0x00 Single byte representing a bit field. For send-
ing a command, this value is always 0x00.
Payload Protocol 0x02 1 Value indicating the type of packet. This
value is always 0x02 when sending a com­mand.
Acknowledgement Num­ber
0x0000 2 Represents the acknowledgement number.
For a command packet, this value is always 0x0000.
This value is written as a 2-byte big endian value.
Transaction Number 0x0000 – 0x7FFF 2 Represents a transaction number for a com-
mand. This value is tracked by the host de­vice and is sent to the device as a new com­mand. The host device increments the trans­action 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 ID 0x8000 – 0xFFFF 2 Represents a unique request ID for this com-
mand packet. It is used in the resulting ac­knowledgement packet. Typically, this value is the transaction number + 0x8000.
Payload N Data payload that contains the ASCII com-
mand that the host device wants to send to the device.
CRC16 0x0000 – 0xFFFF 2 Represents 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 electronic DCR 50 62

9.1.2 Device acknowledgement

Upon receipt of a command, the device immediately sends an acknowledgement.
Tab.9.2: Acknowledgement packet format
Command protocol
Section Bytes (or Range) Number of
Description
Bytes
Start of Frame 0x01
0x43
3 Three bytes that indicate the beginning of a
message
0x54
Packet Version 0x31 1 Indicates the version number for the packet
format. This value is always 0x31.
Packet Length 0xFFFF 2 For an acknowledgement packet, this value is
always 15.
Destination Address 0x40000000 –
0x4FFFFFFF
4 Represents the address of the host computer.
This value is written as a 4-byte big endian value.
Source Address 0x00000000 –
0x0FFFFFFE
4 Represents the address of the device that
you are attempting to communicate with.
This value is written as a 4-byte big endian value.
Protocol Type 0x01 1 Indicates the type of protocol to use when
communicating. This value is always 0x01.
Flags 0x00 Single byte representing a bit field. For send-
ing a command, this value is always 0x00.
Payload Protocol 0x00 1 Value indicating the type of packet. This
value is always 0x00 when sending an ac­knowledgement.
Acknowledgement Num­ber
0x0000 – 0xFFFF 2 Represents the acknowledgement number.
This value is written as a 2-byte big endian value.
CRC16 0x0000 – 0xFFFF 2 Represents 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 electronic DCR 50 63
NOTICE
The acknowledgement number in the device acknowledgement packet is the same as the trans­action number in the previous command packet.

9.1.3 Response 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 dif­ferences:
• 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.4 Host acknowledgement

After reception of the response packet, the host device must send an acknowledgement packet to the de­vice. 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.5 Example 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
Section Bytes (or Range) Number of
Start of Frame 0x01
0x43
0x54
Packet Version 0x31 1
Packet Length 0x001D 2 19 + 10 = 29 = 0x001D
Destination Address 0x0FFFFFFF 4 Broadcasting to every listening device.
Source Address 0x40000000 4
Protocol Type 0x01 1
Description
Bytes
3
Flags 0x00
Payload Protocol 0x02 1
Acknowledgement Num-
0x0000 2
ber
Leuze electronic DCR 50 64
Command protocol
Section Bytes (or Range) Number of
Description
Bytes
Transaction Number 0x0000 2 Starting with zero for the transaction number.
Request ID 0x8000 2 Following the convention, we add 0x8000 to
the transaction number.
Payload 10 The bytes represent the ASCII command
SYCO93PEN1.
CRC16 0x4501 2
Upon reception of the command, the device sends an acknowledgement.
Tab.9.4: Device acknowledgement for example 1
Section Bytes (or Range) Number of
Description
Bytes
Start of Frame 0x01
3
0x43
0x54
Packet Version 0x31 1
Packet Length 0x000F 2
Destination Address 0x40000000 4
Source Address 0x01234567 4 The device returns its unique address.
Protocol Type 0x01 1
Flags 0x01
Payload Protocol 0x00 1
Acknowledgement Num-
0x0000 2
ber
CRC16 0xED19 2
After the acknowledgement, the device sends a response packet to the initial command packet.
Tab.9.5: Response packet for example 1
Section Bytes (or Range) Number of
Description
Bytes
Start of Frame 0x01
3
0x43
0x54
Packet Version 0x31 1
Packet Length 0x003A 2 19 + 39 = 58 = 0x003A
Destination Address 0x40000000 4
Source Address 0x01234567 4
Protocol Type 0x01 1
Flags 0x00
Payload Protocol 0x02 1
Acknowledgement Num-
0x0000 2
ber
Transaction Number 0x8000 2
Leuze electronic DCR 50 65
Command protocol
Section Bytes (or Range) Number of
Description
Bytes
Request ID 0x0000 2 Following the convention, we add 0x8000 to
the transaction number.
Payload 39 Returns
<Response Val="0" Descrip­tion="none" />
CRC16 0xDA64 2
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
Section Bytes (or Range) Number of
Description
Bytes
Start of Frame 0x01
3
0x43
0x54
Packet Version 0x31 1
Packet Length 0x000F 2
Destination Address 0x01234567 4
Source Address 0x40000000 4
Protocol Type 0x01 1
Flags 0x01
Payload Protocol 0x00 1
Acknowledgement Num-
0x8000 2
ber
CRC16 0x2CCE 2

9.1.6 Example 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
Section Bytes (or Range) Number of
Description
Bytes
Start of Frame 0x01
3
0x43
0x54
Packet Version 0x31 1
Packet Length 0x001D 2 19 + 10 = 29 = 0x001D
Destination Address 0x01234567 4
Source Address 0x40000000 4
Protocol Type 0x01 1
Leuze electronic DCR 50 66
Command protocol
Section Bytes (or Range) Number of
Description
Bytes
Flags 0x00
Payload Protocol 0x02 1
Acknowledgement Num-
0x0000 2
ber
Transaction Number 0x0001 2
Request ID 0x8000 2 Following the convention, we add 0x8000 to
the transaction number.
Payload 10 The bytes represent the ASCII command
SYC128PEN1.
CRC16 0x4501 2
Upon reception of the command, the device sends an acknowledgement.
Tab.9.8: Device acknowledgement for example 2
Section Bytes (or Range) Number of
Description
Bytes
Start of Frame 0x01
3
0x43
0x54
Packet Version 0x31 1
Packet Length 0x000F 2
Destination Address 0x40000000 4
Source Address 0x01234567 4 The device returns its unique address.
Protocol Type 0x01 1
Flags 0x01
Payload Protocol 0x00 1
Acknowledgement Num-
0x0001 2
ber
CRC16 0xFD38 2
After the acknowledgement, the device sends a response packet to the initial command packet.
Tab.9.9: Response packet for example 2
Section Bytes (or Range) Number of
Description
Bytes
Start of Frame 0x01
3
0x43
0x54
Packet Version 0x31 1
Packet Length 0x003A 2 19 + 39 = 58 = 0x003A
Destination Address 0x40000000 4
Source Address 0x01234567 4
Protocol Type 0x01 1
Flags 0x00
Payload Protocol 0x02 1
Leuze electronic DCR 50 67
Command protocol
Section Bytes (or Range) Number of
Description
Bytes
Acknowledgement Num-
0x0000 2
ber
Transaction Number 0x8001 2
Request ID 0x0001 2
Payload 39 Returns
<Response Val="0" Descrip­tion="none" />
CRC16 0xF213 2
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
Section Bytes (or Range) Number of
Description
Bytes
Start of Frame 0x01
3
0x43
0x54
Packet Version 0x31 1
Packet Length 0x000F 2
Destination Address 0x01234567 4
Source Address 0x40000000 4
Protocol Type 0x01 1
Flags 0x01
Payload Protocol 0x00 1
Acknowledgement Num-
0x8001 2
ber
CRC16 0x3CEF 2
Leuze electronic DCR 50 68

9.2 Barcode 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 electronic DCR 50 69

10 Care, maintenance and disposal

Usually, the device does not require any maintenance by the operator.

10.1 Cleaning

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.2 Servicing

Repairs to the device must only be carried out by the manufacturer.
Ä For repairs, contact your responsible Leuzeelectronic subsidiary or Leuzeelectronic customer service
(see chapter 11 "Service and support").

10.3 Disposing

Ä For disposal observe the applicable national regulations regarding electronic components.
Care, maintenance and disposal
Leuze electronic DCR 50 70

11 Service and support

24-hour on-call service at:
+49 (0) 7021 573-0
Service hotline:
+49 (0) 7021 573-123
Monday to Friday 8.00a.m. to 5.00p.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.1 What 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 electronic DCR 50 71

12 Technical data

12.1 General specifications

Tab.12.1: Optics
Optical system CMOS Imager, Rolling Shutter (1280x960)
Reading area 30mm…425mm
Contrast 1D code: minimum 15%
Resolution 1D code: m=0.190mm (7.5mil), distance dependent
Technical data
2D code: minimum 15%
2D code: m=0.127mm (5mil), distance dependent
Light sources
• Illumination
• Alignment LEDs (Aimer)
Tab.12.2: Code specifications
integrated LEDs
• visible red light
• visible blue light
Code type: 1D BC412, Codabar, Code11, Code32, Code39, Code93, Code128,
IATA2of5, Interleaved2of5, GS1DataBar, Hong Kong2of5, Ma­trix2of5, MSIPlessey, NEC2of5, Pharmacode, Plessey, Straight2of5, Telepen, Trioptic, UPC/EAN/JAN
Code type: Stacked 1D CodablockF, Code49, GS1Composite (CC-A/CC-B/CC-C), MicroPDF,
PDF417
Code type: 2D AztecCode, DataMatrix, HanXin, MicroQRCode, QRCode
Postal Codes AustralianPost, CanadaPost, IntelligentMail, JapanPost, KIXCode, Ko-
reaPost, Planet, Postnet, UKRoyalMail, UPUIDTags
Tab.12.3: Interfaces
Interface type RS232
Baud rate 9600…115200baud, configurable
Data formats configurable
Trigger • Switching input
• active: 0V
• inactive: +5V or not connected
• Presentation Mode (Motion Control)
Switching output NPN transistor output, max. 20mA, Good Read
Buzzer NPN transistor output, modulated, Good Read
Tab.12.4: Electrical equipment
Operating voltage 4.75…5.25VDC
Current consumption Duration reading: typ. 350mA
Inactive illumination: typ. 75mA
Leuze electronic DCR 50 72
Tab.12.5: Mechanical data
Connection type Molex Inc. (53261-0671), 6-pin
Weight 10g
Dimensions (H x W x D) 12.70x31.60x27.53mm
Fastening 4x M1.8 self-tapping screws, 2mm deep
Tab.12.6: Environmental data
Ambient temp. (operation/storage) 0°C…+50°C/-20°C…+60°C
Air humidity 10%…90% rel. humidity, non-condensing
Ambient light max. 100000Lux
Electromagnetic compatibility EN55022:2006 ClassB
Conformity CE, FCC, RoHS

12.2 Reading fields

Technical data
IEC62471:2006
NOTICE
Please note that the actual reading fields are also influenced by factors such as labeling mate­rial, printing quality, scanning angle, printing contrast etc., and may thus deviate from the read­ing fields specified here. The origin of the read distance always refers to the front edge of the housing of the beam exit.
Leuze electronic DCR 50 73
Technical data
1
39.4°
51.0°
2
130 mm
130 mm
50 (2.0) 245 (9.6)
35 (1.4) 225 (8.9)
40 (1.5) 370 (14.6)
85 (3.3) 155 (6.1)
65 (2.6) 175 (6.9)
75 (3.0) 90 (3.5)
70 (2.8) 135 (5.3)
50 (2.0) 205 (8.1)
30 (1.2) 425 (16.7)
1 Reading field – side view
2 Reading field – top view
Fig.12.1: Reading field
Tab.12.7: Reading fields
Code type Resolution m Typical reading distance [mm] ([inch])
Code 39 0.190mm (7.5mil)
GS1Data bar 0.267mm (10.5mil)
UPC 0.330mm (13mil)
PDF417 0.147mm (5.8mil)
PDF417 0.170mm (6.7mil)
Data Matrix 0.127mm (5mil)
Data Matrix 0.160mm (6.3mil)
Data Matrix 0.254mm (10mil)
Data Matrix 0.528mm (20.8mil)
Leuze electronic DCR 50 74

12.3 Dimensioned drawings

A
B
D
C
M1,8 x max.2,5mm
6,4
20,4
Ă
2,5
26
31,6
13
21,4
12,7
0,4
2,8
27,5
Technical data
A 2 integrated LEDs for illumination (red light)
B 1 integrated target LED (blue light)
C Center of optical axis
D Connector Molex (53261-0671), 6-pin
Fig.12.2: DCR50 dimensioned drawing
all dimensions in mm
NOTICE
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: 1mm; optics as flush as possible with the glass.
Leuze electronic DCR 50 75

13 Order guide and accessories

13.1 Type overview

Tab.13.1: Part numbers
Part no. Part designation Description
50135000 DCR50M2/R2 CMOS imager scan engine for 1D and 2D codes,

13.2 Accessories

Tab.13.2: Accessories
Part no. Part designation Description
50128204 MA-CR Modular adapter unit to interface device-to-host to
Order guide and accessories
RS232 interface, Molex53261-0671 connection, 6­pin
connect to PC for evaluation
SensorStudio configuration software
Download at www.leuze.com
see chapter 6.2.1 "Downloading configuration soft­ware"
SensorStudio designed according to the FDT/DTM concept. Contains: communication DTM and device DTM
Leuze electronic DCR 50 76

14 EC Declaration of Conformity

The scan engines of the DCR50 series have been developed and manufactured in accordance with the applicable European standards and directives.
EC Declaration of Conformity
Leuze electronic DCR 50 77

15 Appendix

15.1 Bar 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 electronic DCR 50 78
SC 3
Fig.15.7: Code type 07: EAN 8
Appendix
Fig.15.8: Example codes

15.2 Configuration 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.
Leuze electronic DCR 50 79
Appendix
A1 A4A2 A3
B1 B2 B3
C1 C4C2 C3
D1 D4D2 D3
E1 E4E2 E3
B4
Motion Detect Off - Default Motion Detect Always On Enable Cell phone reading
enhancement
General Reading Mode
Settings
Disable Cell phone reading
enhancement. - Default
Set motion detect maximum
brightness to 25%
Set motion detect maximum
brightness to 50%
Set motion detect maximum
brightness to 75%
Set motion detect maximum
brightness to 100% - Default
Disable Data Formatting -
Default
Prefix Comma
Data Formatting
(Prefix/Suffix) Settings
Prefix Space Prefix Tab (USB Keyboard Mode
Only)
Prefix Tab (RS232 Mode Only) Erase Prefix Data
Suffix Comma Suffix Space Suffix Enter (USB Keyboard
Mode Only) - Default
Suffix Tab (USB Keyboard Mode
Only)
Fig.15.9: DCR50 Configuration Guide
Leuze electronic DCR 50 80
Appendix
A1 A4A2 A3
B1 B2 B3
C1 C4C2 C3
D1 D4D2 D3
E1 E4E2 E3
B4
Suffix Tab (RS232 Mode Only) Suffix Carriage Return (RS232
Mode Only)
Suffix Carriage Return Line
Feed (RS232 Mode Only) -
Default
Suffix Line Feed (RS232 Mode
Only)
Erase Suffix Data Convert Barcode Data to
Uppercase
Convert Barcode Data to
Lowercase
Intentionally Blank
Australian Post On Australian Post Off - Default Aztec On - Default
Symbology Settings
Aztec Off Aztec Inverse & Normal On Aztec Inverse Off - Default BC412 On
BC412 Off - Default Canada Post On Canada Post Off - Default Codabar On - Default
Fig.15.10: DCR50 Configuration Guide
Leuze electronic DCR 50 81
A1 A4A2 A3
B1 B2 B3
C1 C4C2 C3
D1 D4D2 D3
E1 E4E2 E3
B4
CR8200 Configuration Guide
Codabar Off Codabar Checksum On Codabar Checksum Off -
Default
Remove Codabar Start and
Stop Delimiters
Keep Codabar Start and Stop
Delimiters - Default
Codablock A On Codablock A Off - Default Codablock F On
Codablock F Off - Default Code 11 Checksum Stripped
from Result On - Default
Code 11 Checksum Stripped
from Result Off - Default
Code 11 On
Code 11 Off - Default Code 11 One Digit Checksum Code 11 Two Digit Checksum -
Default
Code 128 On - Default
Code 128 Off Code 32 (Italian Pharmacode)OnCode 32 (Italian Pharmacode)
Off - Default
Code 39 On - Default
Appendix
Fig.15.11: DCR50 Configuration Guide
Leuze electronic DCR 50 82
A1 A4A2 A3
B1 B2 B3
C1 C4C2 C3
D1 D4D2 D3
E1 E4E2 E3
B4
CR8200 Configuration Guide
Code 39 Off Code 39 Checksum On Code 39 Checksum Off -
Default
Code 39 Checksum Stripped
from Result On - Default
Code 39 Checksum Stripped
from Result Off - Default
Composite On Composite Off - Default Data Matrix On - Default
Data Matrix Off Data Matrix Mirror On Data Matrix Mirror Off -
Default
Data Matrix Inverse and
Normal On - Default
Data Matrix Inverse Off Data Matrix Rectangular On -
Default
Data Matrix Rectangular Off Data Matrix Rectangular
Extended On
Data Matrix Rectangular
Extended Off - Default
Grid Matrix On Grid Matrix Off - Default GS1 DataBar On - Default
Appendix
Fig.15.12: DCR50 Configuration Guide
Leuze electronic DCR 50 83
A1 A4A2 A3
B1 B2 B3
C1 C4C2 C3
D1 D4D2 D3
E1 E4E2 E3
B4
CR8200 Configuration Guide
GS1 DataBar Off Han Xin On Han Xin Off - Default Han Xin Mirror On
Han Xin Mirror Off - Default Han Xin Inverse On Han Xin Inverse Off - Default Hong Kong 2 of 5 On
Hong Kong 2 of 5 Off -
Default
Interleaved 2 of 5 On -
Default
Interleaved 2 of 5 Off Interleaved 2 of 5 Checksum
On
Interleaved 2 of 5 Checksum
Off - Default
Interleaved 2 of 5 Checksum
Stripped from Result On
Interleaved 2 of 5 Checksum
Stripped from Result Off -
Default
Japan Post On
Japan Post Off - Default KIX (Dutch Post) On KIX (Dutch Post) Off - Default Korean Post On
Appendix
Fig.15.13: DCR50 Configuration Guide
Leuze electronic DCR 50 84
A1 A4A2 A3
B1 B2 B3
C1 C4C2 C3
D1 D4D2 D3
E1 E4E2 E3
B4
CR8200 Configuration Guide
Korean Post Off - Default Matrix 2 of 5 On Matrix 2 of 5 Off - Default Maxicode On
Maxicode Off - Default Micro PDF417 On Micro PDF417 Off - Default Micro QR Code On
Micro QR Code Off - Default Mode 1 QR Code On Mode 1 QR Code Off - Default MSI Plessey Checksum On
MSI Plessey Checksum Off -
Default
MSI Plessey Checksum Stripped
from Result On
MSI Plessey Checksum Stripped
from Result Off - Default
MSI Plessey Checksum Must
Be Mod 10/11
MSI Plessey Checksum Must
Be Mod 10/10
MSI Plessey On MSI Plessey Off - Default NEC 2 of 5 Checksum On -
Default
Appendix
Fig.15.14: DCR50 Configuration Guide
Leuze electronic DCR 50 85
A1 A4A2 A3
B1 B2 B3
C1 C4C2 C3
D1 D4D2 D3
E1 E4E2 E3
B4
CR8200 Configuration Guide
NEC 2 of 5 Checksum Off NEC 2 of 5 On NEC 2 of 5 Off - Default PDF417 On - Default
PDF417 Off Pharmacode On Pharmacode Off - Default Pharmacode Normal Barcode
Decoding (Left to Right) -
Default
Pharmacode Reverse Barcode
Decoding (Right to Left)
QR Code On - Default QR Code Off QR Code Standard Only -
Default
QR Code Mirror On QR Code Mirror Off - Default QR Code Inverse and Normal
On
QR Code Inverse Only
Telepen On Telepen Off - Default Output Telepen as Numeric -
Default
Output Telepen as ASCII
Appendix
Fig.15.15: DCR50 Configuration Guide
Leuze electronic DCR 50 86
A1 A4A2 A3
B1 B2 B3
C1 C4C2 C3
D1 D4D2 D3
E1 E4E2 E3
B4
CR8200 Configuration Guide
Trioptic On Trioptic Off - Default Reverse Trioptic On Reverse Trioptic Off - Default
Keep Trioptic Start and Stop
Delimiters
Remove Trioptic Start and Stop
Delimiters - Default
Straight 2 of 5 On Straight 2 of 5 Off - Default
UK Royal Mail On UK Royal Mail Off - Default UPC/EAN On - Default UPC/EAN Off
UPC Supplemental On UPC Supplemental Off - Default UPC E Expansion On UPC E Expansion Off - Default
Convert UPC-A to EAN-13 Do Not Convert UPC-A to
EAN-13 - Default
Transmit UPC-A Check Digit Do Not Transmit UPC-A Check
Digit - Default
Appendix
Fig.15.16: DCR50 Configuration Guide
Leuze electronic DCR 50 87
A1 A4A2 A3
B1 B2 B3
C1 C4C2 C3
D1 D4D2 D3
E1 E4E2 E3
B4
CR8200 Configuration Guide
Transmit UPC-A Number System Do Not Transmit UPC-A Number
System - Default
Do Not Transmit UPC-E Check
Digit - Default
Transmit UPC-E Number System
Do Not Transmit UPC-E Number
System - Default
Convert EAN-8 to EAN-13 Do Not Convert EAN-8 to
EAN-13 - Default
Transmit UPC-E Check Digit
Convert Bookland EAN-13 to
ISBN
Do Not Convert Bookland EAN-13 to ISBN - Default
Convert Bookland EAN-13 to
ISSN
Do Not Convert Bookland EAN-13 to ISSN - Default
Transmit EAN-8 Check Digit Do Not Transmit EAN-8 Check
Digit - Default
Transmit EAN-13 Check Digit Do Not Transmit EAN-13 Check
Digit - Default
UPU ID Tags On UPU ID Tags Off - Default USPS Intelligent Mail On USPS Intelligent Mail Off -
Default
Appendix
Fig.15.17: DCR50 Configuration Guide
Leuze electronic DCR 50 88
A1 A4A2 A3
B1 B2 B3
C1 C4C2 C3
D1 D4D2 D3
E1 E4E2 E3
B4
CR8200 Configuration Guide
USPS Planet On USPS Planet Off - Default USPS Postnet On USPS Postnet Off - Default
List Installed Languages Get Active Language Keyboard Support: US English
Keyboard Mapping for Windows
- Default
Keyboard Language
Settings
Keyboard Support: English
Keyboard Mapping for Apple
Keyboard Support: French-
Belgian Keyboard Mapping for
Windows
Keyboard Support: French
Keyboard Mapping for Windows
Keyboard Support: French
Keyboard Mapping for Apple
Keyboard Support: German
Keyboard Mapping for Apple
Keyboard Support: German
Keyboard Mapping for Windows
Keyboard Support: German-Swiss
Keyboard Mapping for Apple
Keyboard Support: German-
Swiss Keyboard Mapping for
Windows
Keyboard Support: Italian
Keyboard Mapping for Apple
Keyboard Support: Japanese
Keyboard Mapping for Windows
Keyboard Support: Russian
Keyboard Mapping for Windows
Keyboard Support: Spanish-Latin American Keyboard Mapping for
Windows
Appendix
Fig.15.18: DCR50 Configuration Guide
Leuze electronic DCR 50 89
A1 A4A2 A3
B1 B2 B3
C1 C4C2 C3
D1 D4D2 D3
E1 E4E2 E3
B4
CR8200 Configuration Guide
Keyboard Support: Spanish
Keyboard Mapping for Windows
Keyboard Support: Spanish
Keyboard Mapping for Apple
Keyboard Support: UK English
Keyboard Mapping for Windows
Keyboard Support: US
International (Universal)
Keyboard Mapping for Windows
Data Encoding: Raw ASCII to
Keyboard XML File Lookup -
Default
Data Encoding: UTF8 to
Unicode Codepoint - Alt
Sequences for Windows
USB Downloader Mode
USB Settings
USB Keyboard Mode - Default Enable HID POS Mode Enable CDC VCOM Mode Enable USB VCOM mode
Reset to RS232 Factory
Defaults
RS232 Interface - 1200 Baud
Rate
RS232 Interface - 2400 Baud
Rate
RS232 Settings
RS232 Interface - 4800 Baud
Rate
RS232 Interface - 9600 Baud
Rate
RS232 Interface - 19200 Baud
Rate
RS232 Interface - 38400 Baud
Rate
Appendix
Fig.15.19: DCR50 Configuration Guide
Leuze electronic DCR 50 90
A1 A4A2 A3
B1 B2 B3
C1 C4C2 C3
D1 D4D2 D3
E1 E4E2 E3
B4
CR8200 Configuration Guide
RS232 Interface - 57600 Baud
Rate
RS232 Interface - 115200 Baud
Rate - Default
RS232 Interface - 7 Data Bits RS232 Interface - 8 Data Bits
- Default
RS232 Interface - 1 Stop Bit -
Default
RS232 Interface - 2 Stop Bits RS232 Interface - Even Parity RS232 Interface - No Parity
RS232 Interface - Odd Parity RS232 Interface Flow ControlOnRS232 Interface Flow Control
Off - Default
Enable Packet Mode
Enable Raw Mode - Default Enable RS-232 Serial mode -
Default
Disable Duplicate Scan Delay -
Default
Scan Delay Settings
Set Duplicate Scan delay to 1
Second
Set Duplicate Scan delay to 2
Seconds
Set Duplicate Scan delay to 3
Seconds
Set Duplicate Scan delay to 5
Seconds
Appendix
Fig.15.20: DCR50 Configuration Guide
Leuze electronic DCR 50 91
A1 A4A2 A3
B1 B2 B3
C1 C4C2 C3
D1 D4D2 D3
E1 E4E2 E3
B4
CR8200 Configuration Guide
Set Duplicate Scan delay to 10
Seconds
Set Duplicate Scan delay to 30
Seconds
Set Duplicate Scan delay to 1
hour
Set Duplicate Scan delay to 1
day
Output Reader Configuration Get Reader Parameters Intentionally Blank
Reader/Modem
Command Settings
Reset to Factory Defaults Intentionally Blank Intentionally Blank
Reset, Clear and Save
Reader Settings
Intentionally Blank Intentionally Blank Intentionally Blank Intentionally Blank
Intentionally Blank Intentionally Blank Intentionally Blank Intentionally Blank
Appendix
Fig.15.21: DCR50 Configuration Guide
Leuze electronic DCR 50 92
Loading...