This code reader was developed, manufactured and tested in accordance with the applicable safety standards. It corresponds to the state of the art.
2.1Intended use
The code readers of the DCR200i series are camera-based code readers for all commonly used bar
codes, stacked codes and DataMatrix codes as well as for codes of the GS1DataBar family.
Areas of application
The code readers of the DCR200i series are especially designed for the following areas of application:
• Packaging systems
• Mounting/handling technology
• Analysis technology
Observe intended use!
The protection of personnel and the device cannot be guaranteed if the device is operated in a
manner not complying with its intended use.
Ä Only operate the device in accordance with its intended use.
Ä LeuzeelectronicGmbH+Co.KG is not liable for damages caused by improper use.
Ä Read these operating instructions before commissioning the device. Knowledge of the oper-
Safety
CAUTION
ating instructions is an element of proper use.
NOTICE
Integrated illumination!
The code readers of the DCR 200i series correspond to the following classification with respect
to the integrated illumination:
Ä Illumination red: risk group0 (exempt group) in acc. with EN62471
NOTICE
Comply with conditions and regulations!
Ä Observe the locally applicable legal regulations and the rules of the employer's liability insur-
ance association.
2.2Foreseeable misuse
Any use other than that defined under "Intended use" or which goes beyond that use is considered improper use.
In particular, use of the device is not permitted in the following cases:
• in rooms with explosive atmospheres
• in circuits which are relevant to safety
• In food processing
• 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 may only be opened for exchanging the housing hood.
Ä There are no user-serviceable parts inside the device.
Ä Repairs must only be performed by Leuze electronic GmbH + Co. KG.
Leuze electronicDCR 248i8
2.3Competent persons
Connection, mounting, commissioning and adjustment of the device must only be carried out by competent
persons.
Prerequisites for competent persons:
• They have a suitable technical education.
• They are familiar with the rules and regulations for occupational safety and safety at work.
• They are familiar with the operating instructions for the device.
• They have been instructed by the responsible person on the mounting and operation of the device.
Certified electricians
Electrical work must be carried out by a certified electrician.
Due to their technical training, knowledge and experience as well as their familiarity with relevant standards
and regulations, certified electricians are able to perform work on electrical systems and independently detect possible dangers.
In Germany, certified electricians must fulfill the requirements of accident-prevention regulations BGV A3
(e.g. electrician foreman). In other countries, there are respective regulations that must be observed.
2.4Disclaimer
LeuzeelectronicGmbH+Co.KG is not liable in the following cases:
• The device is not being used properly.
• Reasonably foreseeable misuse is not taken into account.
• Mounting and electrical connection are not properly performed.
• Changes (e.g., constructional) are made to the device.
Safety
Leuze electronicDCR 248i9
3Device description
3.1Device overview
Device description
3.1.1
About the DCR200i code reader
The code readers of the DCR200i series are camera-based code readers for all commonly used bar
codes, stacked codes and Data Matrix codes (e.g. Code128, EAN8/13, ECC200, QR etc.) as well as for
codes of the GS1DataBar family.
The extensive options for device configuration via control buttons, configuration codes or software enable
adaptation to a multitude of reading tasks. The high resolution in combination with a very high depth of field
as well as the compact design make the device ideal for use in packaging machines.
Code readers of the DCR200i series perform numerous tasks in industrial code reading such as:
• Omnidirectional code reading
• Reading of codes while at a standstill or in motion
• Manual reading by holding up codes
• In packaging machines
• In automatic handling and testing machines
The DCR2xxi code readers are available in several optics models:
• DCR2xxi with HighDensity optics (N-optics)
• DCR2xxi with MediumDensity optics (M optics)
• DCR2xxi with LowDensity optics (F optics)
The DCR2xxi code readers are operated as a “stand-alone” single device with individual IP address in an
Ethernet star topology.
Information on technical data and characteristics: see chapter 15 "Technical data".
3.1.2
Performance characteristics
• Decoding of 1D-, stacked- and 2D-codes
• Maximum depth of field and reading distance of approx. 40mm…360mm
• High object speed and decoding performance of up to 7m/s with 10decodings
• Reference code comparison
• Quality evaluation of 1D bar codes and 2D-codes in accordance with ISO/IEC15415 and ISO/
IEC15416
• Integrated process interfaces RS232, RS422, Ethernet and PROFINET
The MA2xxi modular connection units are available for connecting to other fieldbus systems, e.g.,
PROFIBUS, EtherCAT, etc.
• Four freely programmable switching inputs/outputs for the activation or signaling of states:
• 1 switching input
• 1 switching output
• 2 switching inputs/outputs
• Integrated red LED illumination for illumination of the rectangular read field
• Green feedback LED for direct acknowledgment of whether the read process was successful
• Two control buttons for intuitive operation without PC
• Industrial design: degree of protection IP65 acc. to EN60529
• Diverse mounting options with mounting threads on rear and side surfaces
• Variously coded M12 connections for unique assignment of the connections:
• Voltage supply, RS232/RS422, switching inputs/outputs
• Ethernet/PROFINET connection
• webConfig, a web-based configuration tool for configuration of all device parameters
No additional configuration software necessary
Leuze electronicDCR 248i10
Device description
• Installation wizard for simple configuration in just a few steps
• Integrated teach functions for automatic adjustment of the exposure time, of the code types, and of the
number of digits and for teaching a reference code
3.1.3
Accessories
Special accessories are available for the code reader (see chapter 16 "Order guide and accessories"):
• Mounting systems for mounting
• Housing hood with integrated protective screen made of glass for increased protection against
scratches or welding sparks
• Housing hood with integrated linear polarisation filter – avoids additional interfering reflections
• Diffusor foil that can be affixed to housing hoods, with plastic or glass screen. The diffusor foil reduces
interfering reflections
• Ready-made connection and interconnection cables for M12 connectors
• External illumination and mounting bracket for external illumination
For further information, contact your responsible Leuzeelectronic subsidiary or Leuzeelectronic customer service (see chapter 14 "Service and support")
• MA2xxi modular connection units for connection to fieldbus systems (see chapter 7.6 "Connecting
code reader to fieldbus")
• MA150 modular connection unit for decentralized distribution of the signals (see chapter 7.7 "Connecting code reader to MA150 connection unit")
Leuze electronicDCR 248i11
3.2Device construction
2
3
3
1
8
5
7
6
4
Device description
1Lens
2Control panel with indicator LEDs, control buttons, bar graph display
3LEDs for illumination (red light)
4M4 mounting thread
5Device housing
6Housing hood
7M12 connection technology
8Feedback LED (green)
Fig.3.1: Device construction
Leuze electronicDCR 248i12
3.3Connection technology
PWR / SWIOHOST
12
The device is connected using variously coded M12 connectors:
Ready-made cables are available for all connections (see chapter 16.4 "Cables accessories").
NOTICE
Shielding connection!
Ä The shielding is connected via the M12 connector housing.
3.4Indicators and operational controls
The device is equipped with the following indicators and operational controls:
• Feedback LED
The green feedback LED indicates whether a read process was successful. This function is activated
upon shipment of the device from the factory and can be deactivated via the webConfig tool.
Upon successful decoding, the feedback LED illuminates briefly (GOOD READ, MATCH).
• Three indicator LEDs (PWR, NET, LINK)
• Six-level bar graph display for function selection and display of the read quality (SIGNALQUALITY)
• Two control buttons
Leuze electronicDCR 248i13
1
3
2
1LED indicators: PWR, NET, LINK
2Bar graph display
3Control buttons
Device description
Fig.3.3: Layout of indicator and control panel
3.4.1
LED indicators
PWR LED
Tab.3.1: PWR indicators
ColorStateDescription
---OFFDevice off
No operating voltage
GreenFlashingDevice ok
• Initialization phase
• Code reading not possible
• Operating voltage applied
• Self test running
ON (continuous light)Device ok
• Code reading possible
• Self test successfully finished
• Device monitoring active
OrangeON (continuous light)Service mode
• Code reading possible
• No data on the host interface
FlashingWave function (synchronous with NET LED)
• Code reading possible
RedFlashingDevice ok, warning set
• Code reading possible
• Temporary operating fault
ON (continuous light)Device error/parameter enable
No code reading possible
Leuze electronicDCR 248i14
NET LED
Tab.3.2: NET indicators
ColorStateDescription
---OFFNo operating voltage
• No communication possible
• Ethernet protocols not released
• PROFINET-IO communication not initialized or inactive
GreenFlashingInitialization of the device
Establishing communication
ON (continuous light)Operation ok
• Network mode ok
• Connection and communication to Host established
RedFlashingCommunication error
• Temporary connection error
• If DHCP active: No IP address could be obtained
Device description
3.4.2
ON (continuous light)Network error
• No connection established
• No communication possible
OrangeFlashingTopology error detected
• No connection established
• No communication possible
NOTICE
NET display only for Ethernet and PROFINET communication!
The NET indicator refers only to the Ethernet or PROFINET communication, not to the RS232/
RS422.
The following functions are selected and displayed via the bar graph display (see chapter 8.5 "Activating
device functions"):
• TRIG: Trigger function for activating a read process
• AUTO: Auto setup function for determining the optimum read setting
• ADJ: Adjustment function for aligning the device
• TEACH: Teach function for teaching a reference code
The individual functions are selected and activated with the control buttons.
• Select function with the navigation button: The function LED flashes.
• Activate function with the enter button: The function LED illuminates continuously.
Leuze electronicDCR 248i15
Device description
NOTICE
A preselected function (flashing LED) does not yet have any influence on the functionality. If no
button is pressed for a longer period of time, flashing of the LED is ended automatically by the
device.
NOTICE
If you activate the TRIG, AUTO, ADJ or TEACH function via the control buttons, the device accepts no commands via the process interface. Process mode is thereby interrupted.
3.4.3
Control buttons
The functions of the bar graph display are controlled via the control buttons.
NOTICE
In the Service operating mode (which is set using the webConfig tool), the code reader cannot
be operated using the control buttons.
• –Navigation button: Scroll through the functions in the bar graph display from left to right.
• –Navigation button: Scroll through the functions in the bar graph display.
NOTICE
A preselected function (flashing LED) does not yet have any influence on the functionality. If no
button is pressed for a longer period of time, flashing of the LED is ended automatically by the
device.
Example: Activation of the trigger
Ä Press the navigation button.
ð The TRIG LED flashes and the Trigger function is preselected.
Ä Press the enter button.
ð The TRIG LED illuminates continuously.
ð The configured Trigger function (e.g., reading gate control) is started.
Leuze electronicDCR 248i16
4Functions
A
ABCD
BCDEFGHABDC
1
1
2
3
This chapter describes the functions of the code reader:
• Camera operating modes (see chapter 4.1 "Camera operating modes")
• Reference code comparison (see chapter 4.2 "Reference code comparison")
• Code quality (see chapter 4.3 "Code quality")
• webConfig tool (see chapter 4.4 "Leuze webConfig tool")
4.1Camera operating modes
The camera operating mode defines how the code reader starts a read process and decodes the codes if a
code is located in the read field.
Functions
4.1.1
4.1.2
4.1.3
Single trigger mode
In the "Single trigger mode" camera operating mode, the code reader captures one image and attempts to
decode it. Under uniform conditions, this camera operating mode makes fast decoding possible.
Reading gate control
The "Reading gate control" camera operating mode is activated upon shipment from the factory. The reading gate control opens a time window for the read process in the code reader – the reading gate. In this
time window, the code reader can capture and decode one or more codes.
Burst mode
In the "Burst mode" camera operating mode, the code reader captures multiple images in quick succession
after activation by a trigger signal.
• Decoding occurs following image capture, thereby allowing the codes to be detected more quickly.
• As soon as the decoding result corresponds to the settings, the decoding stops the capture of the remaining images.
1Continuous image capture
2Decoding
3Output of the read data
Fig.4.1: "Burst mode" camera operating mode
Leuze electronicDCR 248i17
Functions
4.1.4
4.1.5
Presentation mode
In the "Presentation mode" camera operating mode, the code reader is in the idle state in a kind of wait
mode.
In the event of a change in the image area, e.g., by holding up a code, the code reader captures images
with illumination (as previously configured) until a code is read successfully. The code reader then switches
back to the wait mode and the illumination switches off after a few seconds.
Reading the same code multiple times
To prevent the same code from being read and output repeatedly in the "Presentation mode" camera operating mode, a delay time can be defined that must elapse before a code can be read again.
The delay time is set or deactivated with the webConfig tool (see chapter 9 "Commissioning – Leuzeelectronic webConfig tool").
Configuration > Control > Reread delay
Sensitivity
This function can only be activated in the "Presentation mode" camera operating mode. You can set the
sensitivity threshold at which a change in the field of view is to be detected: 0…100.
• 0 = not sensitive
• 100 = sensitive
Continuous mode
In the "Continuous mode" camera operating mode, the code reader operates continuously in process
mode. In this mode, image acquisition is started again immediately after an image has been processed. An
external trigger signal is not required.
Image frequency
You can limit the maximum number of images per second. A reduction in image frequency is recommended for slow applications where the object with the code moves slowly past the code reader. Consider
here the decoding time per decoding.
• It is recommended to limit the decoding time.
• It is recommended to deactivate the NOREAD output.
4.2Reference code comparison
With the reference code comparison, the code reader compares the actual decoding result with a stored
reference code – the exact code content is compared.
The code reader is to perform a partial comparison of two characters "42". Beginning with the string
"42", any number of characters and content may follow.
• Comparison string entered in the webConfig tool: ^42
Ä When entering regular expressions, note the use of space characters.
4.3Code quality
Overview
To check the code quality, you can activate the Code quality function. This function determines the code
quality for bar codes and 2D-codes in compliance with ISO/IEC15416 and ISO/IEC15415.
NOTICE
Functions
Activating the Code quality function increases the decoding time.
The code quality is given as follows: A…F
• A = High quality
• F = Low quality
The following options are available:
• Determination of individual features for bar codes and 2D-codes
• Setting of a minimum quality (= NOMINALMINIMUM)
• Output of each feature via the interface and as a programmable switching output
ISO/IEC15416 mode: Individual features for bar codes
• Overall quality
• Symbol contrast (SC)
• Modulation (MOD)
• Decodability
• Minimal edge contrast (EC
• Minimal reflectance (R
min
)
min
)
• Defects
• Decodes
ISO/IEC15415 mode: Individual features for 2D-codes
• Overall quality
• Symbol contrast (SC)
• Modulation (MOD)
• Decodability
• Fixed pattern damage (FPD)
• Axial non-uniformity (AN)
• Grid non-uniformity (GN)
• Unused error correction (UEC)
• Reflectance margin
Leuze electronicDCR 248i19
• Print growth
• Defects (only PDF417)
• Start/stop pattern (only PDF417)
• Codeword yield (only PDF417)
Overall quality
The "Overall quality" feature corresponds to the lowest ascertained individual quality. If multiple codes are
decoded, the minimum quality is output via the switching output for the first found code only.
4.4Leuze webConfig tool
The webConfig configuration tool offers a graphical user interface for the configuration of the code reader
via a PC (see chapter 9 "Commissioning – Leuzeelectronic webConfig tool").
The wizard of the webConfig tool can be used to easily configure the code reader in just a few steps.
Functions
Leuze electronicDCR 248i20
5Applications
5.1Reading of 1D-codes
Applications
Fig.5.1: Reading of 1D-codes
Leuze electronicDCR 248i21
5.2Reading of 2D-codes
12
Applications
Fig.5.2: Reading of 2D-codes in packaging systems
5.3Code reading with polarization filter
1Code reading without polarization filter
2Code reading with polarization filter
Fig.5.3: Using the polarization filter
By using the linear polarization filter integrated in the housing hood, you can avoid interfering reflections.
NOTICE
When the polarization filter is used, the exposure settings change. The exposure time is increased considerably.
Leuze electronicDCR 248i22
5.4Code reading with diffusor foil
1
2
1Code reading without diffusor foil
2Code reading with diffusor foil
Fig.5.4: Using the diffusor foil
The diffusor foil reduces interfering reflections by increasing the scatter of the integrated LED illumination of
the code reader.
NOTICE
When the diffusor foil is used, the exposure settings change.
Applications
Leuze electronicDCR 248i23
6Mounting
The code reader can be mounted in the following ways:
• Mounting using four M4 mounting threads on the rear of the device
• Mounting using two M4 mounting threads on each of the side surfaces of the device
• Mounting on a 12 mm rod using the BTU320M-D12 mounting system
• Mounting on the BT320M mounting bracket
NOTICE
Ä Mount the device on a metal mounting bracket.
6.1Determining the mounting position of the code reader
Mounting
6.1.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 suitable code label, take
into account the different reading characteristics of the code reader with various code modules.
NOTICE
Observe when choosing the mounting location!
Ä Make certain that the required environmental conditions (humidity, temperature) are main-
tained.
Ä Avoid possible soiling of the reading window due to liquids, abrasion by boxes, or packaging
material residues.
Ä Ensure the lowest possible chance of damage to the code reader through mechanical colli-
sion or jammed parts.
Ä Avoid possible ambient light influence (no direct sunlight).
Take the following factors into account when selecting the correct mounting location:
• Size, orientation, and position tolerance of the bar codes or Data Matrix codes on the objects to be
scanned.
• The reading distance resulting from the code size and code type (see chapter 6.1.3 "Determining the
reading distance").
• Time of data output.
Position the device in such a way that, taking into consideration the time required for data processing
and the conveyor belt speed, there is sufficient time to e.g. initiate sorting operations on the basis of the
read data.
• The permissible line lengths between code reader and host system depending on which interface is
used.
• Visibility of the control panel and access to the control buttons.
• No direct sunlight and/or no strong ambient light on the code that is to be read.
Observe the following criteria for the best read results:
• The reading distance is located in the middle part of the read field (see chapter 6.1.3 "Determining the
reading distance").
• There is no direct sunlight and protect against ambient light effects.
• The code labels are of good print quality and have good contrast ratios.
Leuze electronicDCR 248i24
Mounting
10° … 20°10° … 20°
1
2
3
1
• Do not use glossy labels.
• The bar code or DataMatrix code is moved past the reading window with a tilt angle or angle of inclination of 10°… 20° (see chapter 6.1.2 "Avoiding total reflection").
6.1.2
Avoiding total reflection
If the illumination light of the code reader is directly incident on the surface of the code at an angle of 90°,
total reflection occurs. The illumination light directly reflected by the code label may overload the code
reader and thereby result in non-reading of the code.
Ä Mount the code reader with a tilt angle or angle of inclination of ±10°… 20° from vertical.
Recommended tilt angle or angle of inclination: 10°…20°
1Code label
2Mounting with tilt angle
3Mounting with angle of inclination
6.1.3
Fig.6.1: Mounting with tilt angle or angle of inclination
Determining the reading distance
In general, the read field of the code reader becomes larger with increasing reading distance. This also results in a decrease in the resolution, however.
The following figures show typical reading distances for the individual optics models of the code reader.
NOTICE
Code reading while in motion is dependent on the code type, code size, cell or modulus size of
the code and the position of the code in the read field of the code reader.
For the relationship between camera distance and reading field size, see the section "Relationship between
camera distance and reading field size".
Reading distances for code reader with N1-optics
NOTICE
Please note that the actual reading distances are also influenced by factors such as labeling
material, printing quality, reading angle, printing contrast etc., and may thus deviate from the
reading distances specified here.
Leuze electronicDCR 248i25
1D-Codes
2D-Codes
400
[mm]
350300250200150100500
0.127 mm (5 mil)
0.19 mm (7.5mil)
0.25 mm (10 mil)
0.5 mm (20 mil)
0.127 mm (5 mil)
0.19 mm (7.5 mil)
0.25 mm (10 mil)
0.5 mm (20 mil)
1
1Reading distance [mm]
1D-Codes
2D-Codes
400
[mm]
350300250200150100500
0.19 mm (7.5 mil)
0.25 mm (10 mil)
0.35 mm (14 mil)
0.5 mm (20 mil)
0.19 mm (7.5 mil)
0.25 mm (10 mil)
0.35 mm (14 mil)
0.5 mm (20 mil)
1
Mounting
Fig.6.2: Typical reading distances for 1D- and 2D-codes with various modulus sizes of the codes
Reading distances for code reader with M1-optics
NOTICE
Please note that the actual reading distances are also influenced by factors such as labeling
material, printing quality, reading angle, printing contrast etc., and may thus deviate from the
reading distances specified here.
1Reading distance [mm]
Fig.6.3: Typical reading distances for 1D- and 2D-codes with various modulus sizes of the codes
Leuze electronicDCR 248i26
Reading distances for code reader with F-optics
1D-Codes
2D-Codes
400
[mm]
350300250200150100500
0.19 mm (7.5 mil)
0.25 mm (10 mil)
0.35 mm (14 mil)
0.5 mm (20 mil)
0.19 mm (7.5 mil)
0.25 mm (10 mil)
0.35 mm (14 mil)
0.5 mm (20 mil)
1
1
2
3
4
NOTICE
Please note that the actual reading distances are also influenced by factors such as labeling
material, printing quality, reading angle, printing contrast etc., and may thus deviate from the
reading distances specified here.
Mounting
1Reading distance [mm]
Fig.6.4: Typical reading distances for 1D- and 2D-codes with various modulus sizes of the codes
Relationship between camera distance and reading field size
The following images show the relationship between the camera distance and the resulting read field for
the individual optics models of the code reader. The camera distance is the path from the front edge of the
code reader to the code.
Leuze electronicDCR 248i27
1Camera distance
2Reading field
3Height of the reading field
4Width of the reading field
Fig.6.6: Relationship between camera distance and reading field size
6.2Mounting the code reader
NOTICE
Information on mounting the code reader can also be found in document "Quick Start Guide
DCR200i".
6.2.1
6.2.2
Mounting with M4 fastening screws
Ä Mount the device on the system with M4 fastening screws (not included in delivery contents).
ð Max. tightening torque of the fastening screws: 1.4Nm
ð Location and thread depth of the mounting thread: see chapter 15.3 "Dimensioned drawings"
Mounting with the BTU320M-D12 mounting system
Mounting with a BTU320M-D12 mounting system is intended for 12-mm rod mounting. For ordering information, see chapter 16.5 "Other accessories".
Ä Mount the mounting system on the rod with the clamp profile (system-side).
Ä Mount the device to the mounting system with M4 fastening screws.
ð Max. tightening torque of the fastening screws: 1.4Nm
ð Location and thread depth of the mounting thread: see chapter 15.3 "Dimensioned drawings"
Leuze electronicDCR 248i28
Mounting
6.2.3
Mounting with the BT320M mounting bracket
Mounting with a BT320M mounting bracket is intended for wall mounting. For ordering information, see
chapter 16.5 "Other accessories".
Ä Mount the mounting bracket on the system side with M4 fastening screws (included in delivery con-
tents).
Ä Mount the device to the mounting bracket with M4 fastening screws.
ð Max. tightening torque of the fastening screws: 1.4Nm
ð Location and thread depth of the mounting thread: see chapter 15.3 "Dimensioned drawings"
6.2.4
Mounting with the BTU320M-D12-RL70 mounting bracket
Mounting using a BTU320M-D12-RL70 mounting bracket is intended for 12mm rod mounting in combination with the RL-70/40r-003-M12 ring light. For ordering information, see chapter 16.5 "Other accessories".
Ä Mount the ring light to the mounting bracket with M4 fastening screws.
Ä Mount the device to the mounting bracket with M4 fastening screws.
ð Max. tightening torque of the fastening screws: 1.4Nm
ð Location and thread depth of the mounting thread: see chapter 15.3 "Dimensioned drawings"
Ä Mount the mounting bracket on the rod with the clamp profile (system-side).
6.3Replace housing hood
In individual cases, you can exchange the housing hood of the code reader, e.g., if the protective screen is
scratched or if changed operating conditions necessitate a housing hood with polarization filter. For ordering information, see chapter 16.3 "Optical accessories".
NOTICE
Only replace the housing hood while the device is in a de-energized state!
Only replace the housing hood if no voltage is being applied to the device.
Ä Disconnect the device from the voltage supply before replacing the device hood.
NOTICE
Check the seal before mounting!
Ä Check the seal on the base of the code reader housing for cleanliness before mounting the
new housing hood.
NOTICE
Clean the new housing hood before mounting!
Ä Clean the new housing hood with a soft cloth before mounting.
Ä Loosen the four fastening screws of the housing hood.
Ä First tip the housing hood downward and away from the housing base.
Ä Then lift the housing hood up and off of the housing base.
Ä Then mount the new housing hood in the reverse order. The tightening torque of the fastening screws
is 0.25Nm.
Leuze electronicDCR 248i29
1
22
1Fastening screws
2Housing hood
Fig.6.7: Replace housing hood
6.4Attaching the diffusor foil
To reduce interfering reflections, you can attach a diffusor foil to the screen of the housing hood.
Mounting
NOTICE
Do not use diffusor foil in combination with polarization filter!
The diffusor foil is not suitable for use in combination with the polarization filter.
NOTICE
Only attach diffusor foil to dust- and grease-free surface!
Ä Before attaching the foil, make certain that the surface is free of dust and grease.
Ä Make certain that the diffusor foil is correctly oriented.
Small recess at top, large recess at bottom.
Fig.6.8: Orientation of the diffusor foil
Ä Attach the diffusor foil to the housing screen from bottom to top.
Fig.6.9: Attaching the diffusor foil
Leuze electronicDCR 248i30
Mounting
NOTICE
Avoid air bubbles when attaching the diffusor foil!
Ä When attaching the diffusor foil, take care to prevent bubbles from forming under the film.
Leuze electronicDCR 248i31
7Electrical connection
CAUTION
Safety notices!
Ä Before connecting the device, please ensure that the operating voltage matches the value
printed on the nameplate.
Ä Only allow competent persons to perform the electrical connection.
Ä Ensure that the functional earth (FE) is connected correctly.
Fault-free operation is only guaranteed if the functional earth is connected properly.
Ä If faults cannot be rectified, take the device out of operation. Protect the device from acci-
dentally being started.
NOTICE
Shielding connection!
The shielding is connected via the M12 connector housing.
NOTICE
UL applications!
For UL applications, use is only permitted in Class 2 circuits in accordance with the NEC (National Electric Code).
Electrical connection
NOTICE
Protective Extra Low Voltage (PELV)!
The device is designed in accordance with protection classIII for supply with PELV (Protective
Extra-Low Voltage).
NOTICE
Degree of protection IP65!
Degree of protection IP65 is achieved only if the connectors and caps are screwed into place.
Leuze electronicDCR 248i32
7.1Overview
PWR / SWIOHOST
12
4
11
3
2
1
10
9
8
12
5
6
7
The code reader is provided with the following connections:
Ready-made cables are available for all connections (see chapter 16.4 "Cables accessories").
Voltage supply, RS232/RS422 and switching inputs/outputs
The voltage supply (18V…30 V DC) is connected at the PWR/SWIO M12 plug.
The RS232/RS422 interface on the PWR/SWIO M12 plug is directly connected to the host.
To connect to other fieldbus systems, e.g., PROFIBUS, PROFINET, EtherCAT, etc., Leuzeelectronic offers various connection units (see chapter 7.6 "Connecting code reader to fieldbus").
Four freely programmable switching inputs/outputs for individual adaptation to the respective application
are also available on the PWR/SWIO M12 plug.
Standalone operation in Ethernet network
The code reader is operated as a "stand-alone" single device in an Ethernet star topology with individual IP
address. The host interface of the superior system is connected to the HOST M12 socket.
7.2PWR/SWIO – voltage supply / RS232/RS422 / switching inputs/outputs
The shield of the connection cable is on the thread of
the M12 plug.
NOTICE
The core colors only apply if Leuze electronic’s original connection cables are used (see chapter
16.4 "Cables accessories").
NOTICE
UL applications!
For UL applications, use is only permitted in Class 2 circuits in accordance with the NEC (National Electric Code).
Switching input/output
The code reader features four freely programmable switching inputs/outputs: SWI1, SWO2, SWIO3 and
SWIO4.
NOTICE
The function as switching input or switching output is set via the webConfig configuration tool
(CONFIGURATION > DEVICE > Switching inputs/outputs, see chapter 9 "Commissioning –
Leuzeelectronic webConfig tool").
Leuze electronicDCR 248i34
The four switching inputs/outputs are configured by default as follows:
18-30 V DC
max. 8 mA
SWI (Pin 3)
SWIO (Pin 11/12)
VIN (Pin 1)
GNDIN (Pin 2)
2
1
18-30 V DC
SWO (Pin 4)
SWIO (Pin 11/12)
VIN (Pin 1)
VIN
GNDIN (Pin 2)
max. 60 mA
2
1
• SWI1
Trigger switching input (default)
• SWO2
GOODREAD switching output (default)
• SWIO3
As switching output: NOREAD (default)
• SWIO4
As switching output: device ready (default)
Function as switching input
Electrical connection
1Switching input
2Switching input to controller
Fig.7.3: Switching input SWIO3 and SWIO4 connection
NOTICE
Maximum input current!
Ä The input current of the respective switching input is maximum 8mA.
Function as switching output
1Switching output
2Switching output from controller
Fig.7.4: Switching output SWIO3 and SWIO4 connection
NOTICE
Maximum loading of the switching outputs!
Ä Do not load the respective switching output of the code reader with more than 60mA at
+18V…+30 V DC in normal operation.
Leuze electronicDCR 248i35
Ä Each configured switching output is short-circuit proof.
NOTICE
1
3
2
4
SWIO3 and SWIO4 as switching output!
Ä Do not operate pins2 and 4 as switching output if sensors which function as switching input
are also connected to these pins.
ð If, for example, the inverted sensor output is connected to pin2, and pin2 of the code
reader is, at the same time, configured as a switching output (and not as a switching input), the switching output malfunctions.
RS232/RS422 interface
The RS232/RS422 interface is used primarily for outputting the read and decoded code contents of the
activated code types.
7.3HOST - Host input / Ethernet / PROFINET
4-pin, M12 socket (D-coded) for connecting to HOST.
Electrical connection
Fig.7.5: HOST connection
Tab.7.2: HOST pin assignment
Pin/terminalDesignationAssignment
1TD+Transmit Data +
2RD+Receive Data +
3TD-Transmit Data -
4RD-Receive Data -
Thread (M12
socket)
FE (functional earth)Connection cable shield.
The shield of the connection cable is on the thread of the
M12 socket.
NOTICE
Use ready-made cables!
Ä If possible, use the ready-made cables from Leuzeelectronic (see chapter 16.4 "Cables ac-
cessories").
7.4Ethernet star topology
The code reader is operated as a "stand-alone" single device in an Ethernet star topology with individual IP
address.
• The code reader is designed as an Ethernet device with a standard baud rate of 10/100Mbit.
• A fixed MAC address is assigned to each device by the manufacturer; this address cannot be changed.
• The device automatically supports the transmission rates of 10Mbit/s (10BASET) and 100Mbit/s
(10BASETX), as well as auto-negotiation and auto-crossover.
• The device supports the following protocols and services:
• TCP / IP (client/server)
• UDP
• ARP
• PING
Leuze electronicDCR 248i36
Electrical connection
1
2
3
4
2
1
3
4
1
8
• For communication with the superior host system, the corresponding TCP/IP protocol (client/server
mode) or UDP must be selected.
1Ethernet switch
2Code reader of the DCR200i series
3Other network participants
4Host interface - PC/control
Fig.7.6: Ethernet star topology
Ethernet cable assignment
Fig.7.7: HOST to RJ-45 cable assignments
Designed as shielded cable, max. 100m.
Pin (M12)DesignationPin/core color (RJ45)
1TD+1/yellow
2RD+3/white
3TD-2/orange
4RD-6/blue
NOTICE
Self-configured cables with Ethernet interface!
Ä Ensure adequate shielding.
Ä The entire interconnection cable must be shielded and earthed.
Ä The RD+/RD- and TD+/TD- wires must be stranded in pairs.
Ä Use at least a CAT5 cable for the connection.
Leuze electronicDCR 248i37
7.5Cable lengths and shielding
Observe the maximum cable lengths and the shielding types:
ConnectionInterfaceMax. cable lengthShielding
Electrical connection
DCR200i hostRS232
RS422
Network from the first
DCR200i to the last network participant
Switching input10mNot necessary
Switching output10mNot necessary
DCR200i power supply
unit
EthernetMax. segment length:
7.6Connecting code reader to fieldbus
The code reader can be connected to the following fieldbuses via the MA2xxi modular connection units:
• CANopen: MA235i
• EtherCAT: MA238i
• EtherNet/IP: MA258i
• DeviceNET: MA255i
• PROFIBUS: MA204i
• PROFINET: MA248i
10m
1200m
(dependent on baud
rate)
100m for 100BASE-TX
twistedpair (min.CAT5)
30mNot necessary
Shielding absolutely necessary
RS422 conductors,
stranded in pairs
Shielding absolutely necessary
NOTICE
Ready-made cables are available for connecting the code reader to a modular connection unit
(see chapter 16.4 "Cables accessories").
7.7Connecting code reader to MA150 connection unit
The signals from the code reader are distributed in the machine decentrally via the MA150 modular connection unit. The following components can be connected to the MA150 connection unit:
• Code reader of the DCR200i series
• Photoelectric sensor/diffuse sensor to activate the code reader
• Voltage supply
• External illumination
• Serial communication RS232/RS422
Leuze electronicDCR 248i38
Circuit diagram example for electrical installation with MA150 connection unit
ð Only then can you be certain whether a code has been read (code contents are trans-
mitted) or not (the "NOREAD" character is transmitted at the end of the reading gate).
Ä Before commissioning, familiarize yourself with the operation and configuration of the de-
vice.
Ä Before connecting the operating voltage, recheck all connections and ensure that they have
been properly made.
NOTICE
No additional configuration software is necessary for commissioning.
8.2Starting the device
Ä Connect the 18V…30V DC operating voltage.
Ä After applying the operating voltage, the device operates with the factory settings:
• Activation of the reading gate via SWI1. The integrated illumination becomes visible.
• If a code is detected, it is output via the interfaces.
• Protocol of the RS232 interface:
<STX><Code data><CR><LF>
(9600baud, 8data bits, no parity, 1stop bit)
• With the factory settings, the device can decode the following code types:
• 2/5Interleaved; number of digits: 10
• Code128; number of digits: 4…63
• Code39; number of digits: 4…30
• EAN8/13; number of digits: 8 and 13
• UPC; number of digits: 8...12
• Codabar; number of digits: 4…63
• Code93; number of digits: 4…63
• GS1DataBar OMNIDIRECTIONAL; number of digits: 14
• GS1DataBar LIMITED; number of digits: 14
• GS1DataBar EXPANDED; number of digits: 14…21
• GS1DataBar TRUNCATED; number of digits: 14
• DataMatrix code ECC200; number of digits: 10x10…144x144, or 8x18…16x48
• QRcode; number of digits: 11x11…161x161
• Azteccode; number of digits: 11x11…151x151
NOTICE
Deviations from these settings must be set via the webConfig tool (see chapter 9 "Commissioning – Leuzeelectronic webConfig tool").
Leuze electronicDCR 248i40
Ä Using the online commands, important device functions can be checked, e.g. reading activation (see
chapter 11.1 "Online commands").
NOTICE
For information on how to proceed in the event of problems during commissioning of the devices
see chapter 13 "Diagnostics and troubleshooting".
If a problem occurs that cannot be rectified even after checking all electrical connections and
settings on the devices and on the host, contact your responsible Leuzeelectronic subsidiary or
Leuzeelectronic customer service (see chapter 14 "Service and support").
8.3Setting the communication parameters
With the communication parameters, you determine how data is exchanged between device and host system, monitor PCs etc.
NOTICE
For devices with integrated PROFINET interface: see chapter 10 "PROFINET"
Starting up the device – Basic configuration
8.3.1
Manually setting the IP address
Set the IP manually if your system does not include a DHCP server or if the IP addresses of the devices
are to be set permanently.
Factory settings for the network address of the code readers DCR248i:
• IP address: 192.168.060.101
• Subnet mask: 255.255.255.0
Setting the IP address via PC/laptop
Set the network address on the PC (example for Windows7).
Ä Log in as administrator.
Ä Select Start > System control > Network and Internet > Network and Sharing Center.
ð Select LAN connection and double-click to open the Properties dialog.
Ä Select Internet Protocol Version 4 (TCP/IPv4) and click on the [Properties] button.
Ä Set the IP address of the PC.
ð The IP address of the PC must not be identical to the IP address of the code reader.
ð Example: IP address of the code reader: 192.168.060.101
IP address of the PC: 192.168.060.110
Ä Set the subnet mask of the PC to the same value as on the code reader.
ð Example: 255.255.255.0
Ä Confirm all of the settings dialogs with [OK] or [Close].
Ä Connect the Ethernet interface of the device directly to the LAN port of the PC.
Ä Start the webConfig tool using your PC's Internet browser with IP address 192.168.060.101.
NOTICE
With PROFINET devices, you can change the station name:
Configuration > Control > Host > PROFINET
IP address, subnet mask and gateway settings can be viewed but not changed.
NOTICE
The device cannot be accessed if the IP address is incorrect!
Ä Make certain that the correct IP address is entered. The device can otherwise no longer be
accessed.
Leuze electronicDCR 248i41
Starting up the device – Basic configuration
IP
00:15:7B:20:00:15
DCR 202i MAC
Name
Setting the IP address with Device-Finder
Ä Download the program Device-Finder from the Internet to the PC.
ð Call up the Leuze home page: www.leuze.com.
ð Enter the type designation or part number of the device as the search term.
ð The program Device-Finder can be found on the product page for the device under the Downloads
tab.
Ä Connect the Ethernet interface of the device directly to the LAN port of the PC.
Ä Start the program Device-Finder.
ð The program displays all code readers DCR2xxi that are available in the network.
Ä Select the DCR2xxi code reader from the list.
ð The IP address of the code reader can now be changed to the desired IP address.
Setting the IP address with the DCRConfigurator
With the "DCRConfigurator" smartphone app, you can set the IP address of the code reader without a PC.
Ä Download the "DCR Configurator" smartphone app from the Internet.
ð Call up the Leuze home page: www.leuze.com.
ð Enter the type designation or part number of the device as the search term.
ð The "DCRConfigurator" smartphone app can be found on the product page for the device on the
Downloads tab.
Ä Open the "DCR Configurator" smartphone app.
Ä Select the Assign IP address configuration menu item and enter the desired IP address.
ð The "DCRConfigurator" generates a configuration code for changing the IP address to the desired
value. The configuration code is displayed on the smartphone.
Ä Connect the code reader to the voltage supply and select the AUTO function on the control panel.
Ä Hold the configuration code generated by the "DCRConfigurator" at the correct distance in front of the
optics of the code reader.
ð The code reader adjusts the illumination and reads the configuration code.
ð The code reader changes the device configuration and saves the new configuration.
8.3.2
8.3.3
Automatically setting the IP address
Set the IP address automatically if a DHCP server assigns the IP addresses in the system.
Ä Select the option to obtain the IP address automatically in the webConfig tool:
Configuration > Control > Ethernet DCR > DHCP
Ä Use the configuration code to obtain the IP address automatically (see chapter 18.3 "Configuration via
configuration codes").
Address Link Label
The "Address Link Label" is an additional stick-on label that is affixed to the device.
Fig.8.1: Example of an "Address Link Label"; the device type varies depending on the series
Leuze electronicDCR 248i42
Starting up the device – Basic configuration
• The "Address Link Label" contains the MAC address (Media Access Control address) of the device and
makes it possible to enter the IP address and the device name manually.
The area of the "Address Link Label" on which the MAC address is printed can be separated from the
remainder of the stick-on label if necessary using the perforation.
• The "Address Link Label" can be removed from the device and affixed in the installation and layout diagrams to designate the device.
• Once it is affixed in the documents, the "Address Link Label" establishes a unique reference between
the mounting location, the MAC address or the device, and the associated control program.
There is no need for time-consuming searching, reading, and manually writing down of the MAC addresses of every device that is installed in the system.
NOTICE
Each device with Ethernet interface is uniquely identified via the MAC address assigned during
production. The MAC address is also listed on the name plate of the device.
If multiple devices are commissioned in a system, the MAC address of each installed device
must be correctly assigned, e.g., during programming of the control.
8.3.4
Ethernet host communication
You can configure the connections to an external host system via the Ethernet host communication.
You can use both the UDP protocol as well as the TCP/IP protocol – in either client or in server mode. Both
protocols can be activated simultaneously and used in parallel.
• The connection-free UDP protocol is used primarily to transfer process data to the host (monitor operation).
• The connection-oriented TCP/IP protocol can also be used to transfer commands from the host to the
device. With this connection, the data is backed up by the TCP/IP protocol itself.
• If you would like to use the TCP/IP protocol, you must also define whether the device is to operate as a
TCP client or as a TCP server.
UDP
The device requires from the user the IP address and the port number of the communication partner. In the
same way, the host system (PC/control) also requires the set IP address of the device and the selected
port number. By assigning these parameters, a socket is formed via which the data can be sent and received.
Ä Activate the UDP protocol.
Ä Set the following values:
ð IP address of the communication partner
ð Port number of the communication partner
The corresponding adjustment options can be found in the webConfig tool:
Configuration > Control > Host > Ethernet > UDP
TCP/IP
Ä Activate the TCP/IP protocol.
Ä Set the TCP/IP mode of the device.
ð In TCP client mode, the device actively establishes the connection to the superior host system, e.g.,
PC/control as server. The device requires from the user the IP address of the server (host system)
and the port number on which the server (host system) accepts a connection. In this case, the device determines when and with whom a connection is established.
ð In TCP server mode, the superior host system (PC/control) actively establishes the connection and
the connected device waits for the connection to be set up.
The TCP/IP stack must be informed by the user as to the local port of the device (port number) on
which connection requests from a client application (host system) are to be received.
If there is a connection request and a connection is established by the superior host system (PC/
control as client), the device – in server mode – accepts the connection. Data can then be sent and
received.
Leuze electronicDCR 248i43
Starting up the device – Basic configuration
Ä With a device as TCP client, set the following values:
ð IP address of the TCP server, normally the IP address of the control or the host computer
ð Port number of the TCP server
ð Timeout for the wait time for an answer from the server
ð Repetition time for renewed communication attempt following a timeout
Ä With a device as TCP server, set the following values:
ð Port number for the communication of the device with the TCP clients
The corresponding adjustment options can be found in the webConfig tool:
Configuration > Control > Host > Ethernet > TCP/IP
8.3.5
8.3.6
RS232/RS422 communication
The code reader sends an S to the interface as a start-up message and to announce that the device is
ready.
The device operates as follows with the factory settings:
• Activation of the reading gate via SWI1. The integrated illumination becomes visible.
• If a code is detected, it is output via the RS232 interface according to the following protocol.
<STX><Code data><CR><LF>
(9600baud, 8data bits, no parity, 1stop bit)
FTP client
To transfer images and log files, you can configure process data output via an FTP server.
Ä You can set the IP address and the port number of the FTP server with which communication is to oc-
cur.
Ä Assign user names and password settings or define the direction of communication using the Passive
mode option.
ð When the Passive mode option is activated, the FTP client sets up an outgoing connection to the
server.
Ä Activate the FTP client.
Ä Select which images (OK/NOK) are transferred. You can assign each one a name.
The corresponding adjustment options can be found in the webConfig tool:
Configuration > Control > Host > FTP client
NOTICE
Ä You can set the time stamp via Maintenance > System clock.
ð The system clock is reset if the operating voltage is interrupted.
8.4Configuration via configuration codes
You can make configuration changes with the help of configuration codes (see chapter 18.3 "Configuration
via configuration codes").
8.5Activating device functions
You can activate the following device functions via the control buttons on the control panel:
• TRIG
• AUTO
• ADJ
• TEACH
Ä Connect the code reader to the voltage supply.
Ä Select the desired function via the control buttons on the control panel (see chapter 3.4.2 "Bar graph
display").
Leuze electronicDCR 248i44
Starting up the device – Basic configuration
TRIG
Trigger function that activates a read process with the configuration stored in the device, e.g., reading gate
control.
AUTO
By activating the AUTO function, the following sequence is started:
1. Optimum image setting: The device determines the optimum illumination setting for the given scenario.
2. Determine code types and number of digits: If codes are found, they are decoded.
3. Decoder table: The contents of the decoder table stored in the device are deleted. The new codes
(code type and number of digits) are stored in the decoder table.
NOTICE
Only activate the AUTO function while at a standstill!
Ä Only activate the AUTO function if the code is not moving relative to the device.
NOTICE
AUTO function not for Pharmacode!
Ä The AUTO function cannot be used for Pharmacode codes.
ADJ
Adjustment function for aligning the device.
The reading quality is visually displayed as a percentage in the bar graph display. The bar graph display
depicts the average value over the last ten measurements.
NOTICE
Deactivate the ADJ function!
Ä You must deactivate the ADJ function with the enter button.
TEACH
With activation of the teach function, a present code is taught-in as a reference code.
During the teach event, the reading gate is opened and a code located in the read field is decoded. The decoded code is stored as a new reference code in the device.
NOTICE
Only one code in the read field during the teach function!
Ä Upon activation of the teach function, only one code may be located in the read field of the
device.
NOTICE
TEACH function not for Pharmacode!
Ä The teach function cannot be used for Pharmacode codes.
Leuze electronicDCR 248i45
8.6Performing further settings
Starting up the device – Basic configuration
8.6.1
Decoding and processing the read data
The device offers the following possibilities:
• Setting the number of code labels to be decoded for each reading gate (0…99). This is done via the
Max. no. of labels parameter.
• Setting the Search mode in which the system is to search for the codes (see chapter 8.6.5 "Optimizing
reading performance").
• Fast
• Optimized
• Robust
• Further parameters can be set for many code types, e.g.
• Code type (symbology)
• Number of digits
Either a number of digits, e.g., 10, 12, 24, or a number of digits range, e.g., 8…22
• Check digit method used for decoding as well as the type of check digit transmission for the output
of the read result.
Standard: corresponds to the standard for the selected code type/symbology
Not standard
Ä Define at least one code type with the desired settings.
ð webConfig tool: Configuration > Decoder
ð Control buttons: AUTO function
8.6.2
Control of the decoding
In general, decoding is controlled via the configurable switching inputs/outputs. The corresponding connection to the PWR/SWIO interface must be configured as a switching input for this purpose (see chapter 7.2
"PWR/SWIO – voltage supply / RS232/RS422 / switching inputs/outputs").
Controlling decoding via a switching input:
• Start/stop decoding
• Start decoding and then stop decoding after a configurable time period
• Read in a reference code
• Start automatic code type configuration (AUTO function)
• Start alignment mode
Ä Connect the required control devices, e.g., photoelectric sensor, proximity switch, etc., to the device
(see chapter 7 "Electrical connection").
Ä Configure the connected switching inputs according to your requirements.
ð First set the I/O mode to input.
ð Then configure the switching behavior.
ð webConfig tool: Configuration > Control > DigitalI/Os
NOTICE
Alternatively, depending on the camera operating mode, you can activate decoding using the+
online command and deactivate it using the– online command (see chapter 11.1 "Online commands").
Leuze electronicDCR 248i46
Starting up the device – Basic configuration
8.6.3
8.6.4
Activating camera operating mode
The camera operating mode defines how the code reader starts a read process and decodes the codes if a
code is located in the read field (see chapter 4.1 "Camera operating modes").
The following options are available for activating the camera operating mode:
• Online command via the host interface (see chapter 11.1 "Online commands")
• Trigger signal via a digital trigger input
Control of the switching outputs
By using the switching inputs/outputs of the device, external event-controlled functions can be implemented
without assistance from the superior process control. Switching inputs/outputs SWO2, SWIO3 and SWIO4
on the PWR/SWIO connection must be configured as switching output for this purpose (see chapter 7.2
"PWR/SWIO – voltage supply / RS232/RS422 / switching inputs/outputs").
A switching output can, for example, be activated according to the following criteria:
• At the start/end of the reading gate
• Upon actuation by an external flash
• Depending on the read result:
• reference code comparison positive/negative
• read result valid/invalid
• Depending on the state of the device:
• Device ready/not ready
• Data transmission active/not active
• Active/standby
• Error/no error
Ä Connect the required switching outputs (see chapter 7 "Electrical connection").
Ä Configure the connected switching outputs according to your requirements.
ð First set the I/O mode to output
ð Then configure the switching behavior.
ð webConfig tool: Configuration > Control > DigitalI/Os
8.6.5
Optimizing reading performance
Optimize the reading performance of the code reader using the following settings in the webConfig tool:
• Decoding table
Limiting of the code types being searched for and the number of digits
The adjustment options can be found in the webConfig tool: Configuration > Decoder > Code types
• Exposure time
A short exposure time enables high object speeds. Because the image brightness is thereby reduced, it
may be necessary to adjust the signal gain. Image noise increases as a result, however.
The adjustment options can be found in the webConfig tool: Configuration > Image acquisition
• Working range
Define a region of interest (ROI) to restrict coding to a single part of the image. If no region of interest is
defined, the complete image is defined as the region of interest.
The adjustment options can be found in the webConfig tool: Configuration > Decoder > Region of in-
terest
• Max. decoding time
Define the maximum decoding time to limit the execution time of the code search algorithm.
The adjustment options can be found in the webConfig tool: Configuration > Decoder > Properties
Leuze electronicDCR 248i47
Starting up the device – Basic configuration
• Camera operating mode
Select the Single trigger mode camera operating mode for fast complete decoding.
The adjustment options can be found in the webConfig tool: Configuration > Control > Camera oper-
ating mode
• Max. no. of codes
If the maximum number of codes to be expected in an image (ROI) is small and known, the code
search is accelerated.
Define the maximum number of codes that can be decoded in a test program. If the defined number of
codes has been decoded, the code search algorithm is interrupted.
The adjustment options can be found in the webConfig tool: Configuration > Decoder > Extended
• Image transfer
Deactivation of image transfer in process mode increases the decoding rate.
Adjustment options can be found in the webConfig tool: Configuration > Device > Image transfer
• Search mode
Select the Optimized search mode for fast decoding. This search mode can only be used for 2D-codes.
The adjustment options can be found in the webConfig tool: Configuration > Decoder > Extended
You must then teach the found codes using the [Optimize code] button.
• Color mode
If it is known beforehand whether the codes are printed black on a white background or white on a
black background, you can select the color mode accordingly. Set the Automatic color mode if codes in
both print variants are present.
The adjustment options can be found in the webConfig tool: Configuration > Decoder > Extended
8.6.6
Transfer configuration data
Transferring configuration data with the webConfig tool
With the webConfigtool, you can store complete device configurations on data carriers and transfer them
from these to the device: Maintenance > Backup/Restore
This storage of configuration data is especially useful if you want to store basic configurations which will require only minor changes.
Leuze electronicDCR 248i48
Commissioning – Leuzeelectronic webConfig tool
9Commissioning – Leuzeelectronic webConfig tool
The code readers of the DCR200i series can be operated and configured via the Ethernet service interface
with the integrated Leuzeelectronic webConfig tool.
With the webConfig tool, an operating-system independent, web-technology based, graphical user interface
is available for configuring code readers.
Through the use of HTTP as communication protocol and the client-side restriction to standard technologies (HTML, JavaScript and AJAX), which are supported by all of today's popular, modern browsers, it is
possible to operate the webConfig tool on any Internet-enabled PC.
NOTICE
The webConfig tool is offered in the following languages:
German, English, French, Italian, Spanish, Chinese, Korean
9.1System requirements
To use the webConfig tool, you need a PC or laptop with the following specifications:
Tab.9.1: System requirements for the webConfig tool
MonitorMin. resolution: 1280x800 pixels or higher
Internet browserInternet Explorer version9.0 or higher
Firefox version 30 or higher
Chrome version 40 or higher
NOTICE
Ä Regularly update the operating system and the Internet browser.
Ä Install the current Windows Service Packs.
9.2Start webConfig tool
ü Prerequisite: IP address and subnet mask for the LAN connection with the device are set correctly.
Ä Connect the operating voltage to the device.
Ä Connect the HOST interface of the device to the PC. The connection to the HOST interface of the de-
vice is made via the LAN port of the PC.
Ä Start the webConfig tool via your PC's Internet browser with IP address 192.168.60.101 or with the IP
address set by you.
ð 192.168.60.101 is the standard Leuzeelectronic IP address for communication with code readers
of the DCR200i series.
The PC displays the webConfig start page with the current process information in the Process operating
mode:
• Current image of the code reader
• Current decoding result
• Brief history of the last decoding operations
• States of the switching inputs/outputs
• Statistics counter
NOTICE
The process information may be displayed with a time delay depending on the current processing speed.
Leuze electronicDCR 248i49
1
1Changing the operating mode (Process - Service)
Commissioning – Leuzeelectronic webConfig tool
Fig.9.1: The start page of the webConfig tool
The user interface of the webConfigtool is largely self-explanatory.
NOTICE
The webConfig tool is completely contained in the firmware of the device. The pages and functions of the webConfig tool may appear and be displayed differently depending on the firmware
version.
Clear browser history
The cache of the Internet browser is to be cleared if different device types or devices with different firmware
were connected to the webConfig tool.
Ä Delete cookies and temporary Internet and website data from browser history before starting the web-
Config tool.
ð Example for Internet Explorer10:
Settings > Security > Browser History > [Delete]
Note limit of Firefox sessions for version 17.0 and higher
If the limited number of Firefox sessions is exceeded, it may no longer be possible to address the device
via the webConfig tool.
Ä Do not use the refresh functions of the Internet browser:
[Shift] [F5] or [Shift] + mouse click
9.3Short description of the webConfigtool
The menus and dialog boxes of the webConfig tool are intuitive to operate and provide texts and tool tips.
The start page of the webConfig tool displays the current process information.
Leuze electronicDCR 248i50
Commissioning – Leuzeelectronic webConfig tool
1
9.3.1
Change operating mode
For configurations with the webConfig tool, you can switch between the following operating modes:
• Process
The device is connected to the control or to the PC.
• The process communication to the control is activated.
• The switching inputs/outputs are activated.
• The image currently recorded by the code reader is displayed if the function was not deactivated in
the webConfig tool.
• The configuration cannot be changed.
• Service
• Process communication to the control or to the PC has been interrupted.
• The switching inputs/outputs are deactivated.
• The configuration can be changed.
NOTICE
Configuration changes only in the Service operating mode!
Ä Changes made using the CONFIGURATION function can only be performed in the Service
operating mode.
Located in the upper left of all pages of the webConfig tool is a software switch for changing the operating
mode (Process - Service).
After changing to the Service operating mode, the CONFIGURATION menu is displayed.
1Changing the operating mode (Process - Service)
Fig.9.2: CONFIGURATION menu of the webConfig tool
9.3.2
Menu options of the webConfig tool
The webConfig tool offers the following menu functions:
• PROCESS
• Information on the current read result
• Current camera image
• Status of the switching inputs/outputs
• Reading statistics
Leuze electronicDCR 248i51
• CONFIGURATION
• Configuring decoding
• Configuring data formatting and data output
• Configuring the switching inputs/outputs
• Configuring communication parameters and interfaces
• General device settings, e.g. device names
• DIAGNOSTICS
• Event logging of warnings and errors
• MAINTENANCE
• Assigning user roles (user management)
• Backup/restore the configuration file
• Update firmware
• Setting system time (system clock)
• Managing user guidance
Commissioning – Leuzeelectronic webConfig tool
9.3.3
CONFIGURATION menu
NOTICE
Configuration changes only in the Service operating mode!
Ä Changes made using the CONFIGURATION menu can only be performed in the Service op-
erating mode.
Fig.9.3: CONFIGURATION menu
Ä Select the application that you would like to configure.
• [Start wizard]: Quick configuration in just a few steps
• [Edit project]: Configuration via the full view of the webConfig tool
• [Load project from PC]: Configuration via an existing configuration project
• [Save project on PC]: Save configuration project
Leuze electronicDCR 248i52
Commissioning – Leuzeelectronic webConfig tool
9.3.4
Configuring applications with the wizard
With the configuration wizard, you can set up your application in just a few steps.
Fig.9.4: Configuration wizard
Ä Select CONFIGURATION > [Start Wizard].
Ä Make the settings using the configuration steps presented by the wizard.
NOTICE
The settings are not saved until the final configuration step (FINISH) is performed.
Leuze electronicDCR 248i53
10PROFINET
10.1Overview
The DCR248i code reader is designed as a modular field device and is a PROFINET-IO device that communicates cyclically with the assigned PROFINET-IO controller during operation.
The device can be operated as a single device (standalone) with individual device name in a PROFINETIO star or tree topology. The control must communicate this device name to the participant during the device naming (see chapter 10.3 "Configuring for the Siemens SIMATIC-S7 control").
Performance characteristics
The device has the following performance characteristics:
• A GSDML file is available for the device description
• The device family is certified as a PROFINET-IO device according to V2.32
• PROFINET-IO with real-time (RT) communication
• Standard Fast Ethernet (100 Mbit/s) connection (M12 technology)
• Auto-crossover and auto-negotiation
• Cyclical data exchange
• 4-pin, M12 connectors with D-coding are used for the electrical connection
• The IP address – or name assignment – is set using, e.g., the Siemens STEP7 or TIA development environment or comparable tools
• Cycle time: maximum 4ms (MinDeviceInterval=128)
• Function range acc. to Conformance ClassB
• Network load classI
PROFINET
Communication
Basic communication and integration takes place via the GSDML file (see chapter 10.2 "GSDML file"). The
modules of the GSDML file do not support any configuration of the device functionality. Configuration is
performed via other mechanisms, e.g., the webConfig tool or online/XML commands (see chapter 9 "Commissioning – Leuzeelectronic webConfig tool"; see chapter 11 "Interfaces – Communication").
Each device has a unique MAC address (Media Access Control) that is specified on the name plate. The
MAC address (MAC-ID) is linked to an IPaddress during the course of configuration. The MAC address
can be found on the name plate and on an easily removable "Address Link Label” (MAC address) that is
also attached to the device.
On delivery, the device is assigned the following network address:
• IP address: 192.168.60.101
• Subnet mask: 255.255.255.0
Electrical connection
The device features multiple M12 connectors / sockets for the electrical connection of the supply voltage,
the interface and the switching inputs and outputs (see chapter 7 "Electrical connection").
10.2GSDML file
The functionality of the DCR248i via the PROFINET interface is defined with input/output data that is defined in the modules of the GSDML file (see chapter 10.4 "PROFINET project modules").
A user-specific configuration tool is used during PLC program creation to integrate the required modules
and configure them appropriately for their respective use.
When operating the device on the PROFINET, all input/output data is occupied with default values. If this
input/output data is not changed by the user, the device operates with the default settings set by Leuze
electronic on delivery. The default settings of the device can be found in the module descriptions.
Leuze electronicDCR 248i54
PROFINET
NOTICE
Observe when configuring PROFINET devices!
Ä Always perform the basic configuration using the GSDML file (GSDML=Generic Station De-
scription Markup Language).
Ä Download the appropriate GSDML file from the Internet: www.leuze.com.
Ä In process operation, the input/output data of the respective, activated GSDML modules are
exchanged with the control.
Ä If you switch the device to the Service operating mode via the webConfig tool, the device is
disconnected from the PROFINET.
General information on the GSDML file
The term GSD (Generic Station Description) stands for the textual description of a PROFINET device
model. For the description of the complex PROFINET device model, the XML-based GSDML (Generic Station Description Markup Language) was introduced.
In the GSDML file, all data necessary for operating the device is described in modules: Input and output
data, definition of the control and status bits.
The GSDML file can support an arbitrary number of languages in one file. Every GSDML file contains a
version of the DCR248i device model. This is also reflected in the file name.
The GSDML file is a certified and integral part of the device and must not be changed. The file is not
changed by the system either. If parameters are changed in the project tool, for example, these changes
are stored by the control in the project, not in the GSDML file.
NOTICE
GSDML file name structure
The file name of the GSDML file is constructed according to the following rule:
[GSDML schema version] = Version identifier of the GSDML schema version used, e.g., V2.32
[Date] = Release date of the GSDML file in the format yyyymmdd
This date also stands for the release date of the file.
Example: GSDML-V2.32-LEUZE-DCR248i-20170505.xml
10.3Configuring for the Siemens SIMATIC-S7 control
The functionality of the device is defined via input/output data, which is organized in modules (see chapter
10.4 "PROFINET project modules"). The modules are part of the GSDML file (see chapter 10.2 "GSDML
file").
By using a user-specific configuration tool, such as SIMATIC Manager or TIA Portal for the Siemens
SIMATIC S7 control (S7 PLC), the required modules are integrated in a project during PLC programming.
These modules are provided by the GSD file.
NOTICE
Observe SIMATIC Manager version!
Ä For the Siemens SIMATIC-S7 control, you need at least SIMATIC Manager version 5.4 +
service pack5 (V5.4+SP5).
The following steps are necessary for commissioning:
• Start code reader
• Preparation of the control
• Installation of the GSDML file
• Hardware configuration of the control (S7 PLC)
• Transmission of the PROFINET-IO configuration to the IOController (S7 PLC)
Leuze electronicDCR 248i55
PROFINET
• Device naming
• Configuration of the device name
• Device naming
• Assigning the device names to the configured IOdevices
• Assignment of MAC address – IP address – individual device names
• Checking device names
Start code reader
Ä Connect the +18…+30 V DC supply voltage (typ. +24 V DC).
ð The code reader starts up.
Prepare the control
Ä Assign the IO controller (PLC-S7) an IP address.
Ä Prepare the control for consistent data transmission.
Install the GSDML file
Ä Download the corresponding GSDML file from the Leuze electronic homepage: www.leuze.com.
NOTICE
Alternatively, the GSDML file can be loaded from the device with the webConfig tool (see chapter 9 "Commissioning – Leuzeelectronic webConfig tool"):
HOME>INSTALLATION>GSDML file
The GSDML file stored in the device is always compatible with the firmware version of the
DCR248i.
NOTICE
Do not change the GSDML file!
The GSDML file is a certified and integral part of the device and must not be changed. The file is
not changed by the system either.
If parameters are changed in the project tool, for example, these changes are stored by the control in the project, not in the GSDML file.
Ä Install the GSDML file for the subsequent configuration of the code reader.
Configure the control hardware (S7 PLC)
Ä Insert the code reader in your project. The PROFINET system is configured with the help of the hard-
ware configuration (HW-Config) of the SIMATIC Manager.
Ä Assign an IP address a unique device name.
Leuze electronicDCR 248i56
1
1 Device name
Fig.10.1: Assignment of the device names to IP addresses
PROFINET
Transfer the PROFINET configuration to the IOController (S7 PLC)
Ä Transfer the PROFINET configuration to the IOController (S7 PLC).
Following successful transfer, the following activities take place automatically:
• Check of device names
• Assignment of the IP addresses that were configured in the HW Config to the IOdevices
• Establishment of a connection between the IOController and configured IOdevices
• Cyclical data exchange
NOTICE
Participants that have not been "named" cannot be contacted yet at this point in time!
Name the device
PROFINET defines the "naming of the device" as the creation of a name-based relationship for a
PROFINET device.
Ä Set the device name.
• The PROFINET device has a unique MAC address that is part of the factory settings. The MAC address may be found on the name plate of the device. Multiple devices can be distinguished by the MAC
addresses displayed.
• This information is used to assign a unique, plant-specific device name ("NameOfStation") to the device
via the "Discovery and Configuration Protocol (DCP)".
• Every time the system is started up, PROFINET uses the DCP protocol for the IP address assignment,
provided the IO-device is located in the same subnet.
Ä Assign the device names to the configured IO devices.
• Select the code reader on the basis of the MAC address.
• The code reader is then assigned the unique device name. The device name must match the device
name configured in the HW Config.
Leuze electronicDCR 248i57
PROFINET
1
2
3
1
2
3
1 Device name
2 [Search] button
3 MAC address selection dialog
Fig.10.2: Assigning the device names to the configured IOdevices
Ä Assign the IP address to the MAC address (individual device name).
• At this point, assign another IP address (suggested by the control), a subnet mask and, if required, a
router address, and assign this data to the named participant (device name).
1 Ethernet participant
2 Set IP configuration
3 Device name
Fig.10.3: MAC address – IP address – individual device name
• From now on, and when programming, only the unique device name (max. 240characters) is used.
Check device name
Ä After completing the configuration phase, check the device names that have been assigned.
NOTICE
Assign unique device name!
Ä Ensure that the device names are unique and that all participants are located in the same
subnet.
Leuze electronicDCR 248i58
10.4PROFINET project modules
NOTICE
Overwriting of data by PLC!
Ä During the configuration phase, the DCR248i receives data telegrams from the IO controller
(master). Before the data telegrams are evaluated and the respective settings are made, all
interface-specific settings are reset to default values. This ensures that the settings of modules that are not selected are set to the default values.
NOTICE
Ä You can find the default values of the DCR248i in the module descriptions.
Ä Examples for using the modules: see chapter 18.5 "Communication examples".
NOTICE
Behavior of the input/output data
Ä The default value of the input data bits after switching on the device corresponds to the
specified initial value (generally ZERO).
Ä The outputs are deactivated during device start-up.
Ä For output data with status IOPS = Bad, the downstream functions are switched to a safe
state. This is the case, for example, if the control is switched to the STOP mode. For example, an activated device or an output is then deactivated.
In the event of a connection interruption, the device behaves in the same way.
PROFINET
10.4.1
Overview of the modules
ModuleDescriptionParameterInp. dataOutp.
data
M10
see chapter 10.4.2 "Activation"
M13
see chapter 10.4.3 "Fragmented result"
M16
see chapter 10.4.4 "Fragmented entry"
M21
see chapter 10.4.5 "Result
Activation
Control bits for the activation and
transfer of the input data.
Fragmented result
Transmission of the results in the
fragmented mode
Fragmented entry
Transmission of the entry data in
the fragmented mode
Result data 1
Entry information 8bytes max.
111
130
103
0110
data 1"
M22
see chapter 10.4.6 "Result
Result data 2
Entry information 16 bytes max.
0190
data 2"
M23
see chapter 10.4.7 "Result
Result data 3
Entry information 32bytes max.
0350
data 3"
M24
see chapter 10.4.8 "Result
Result data 4
Entry information 48bytes max.
0510
data 4"
M25
see chapter 10.4.9 "Result
Result data 5
Entry information 64bytes max.
0670
data 5"
Leuze electronicDCR 248i59
PROFINET
ModuleDescriptionParameterInp. dataOutp.
data
M26
see chapter 10.4.10 "Result data 6"
M27
see chapter 10.4.11 "Result data 7"
M28
see chapter 10.4.12 "Result data 8"
M101 –
see chapter 10.4.13 "Entry
data 1"
M102
see chapter 10.4.14 "Entry
data 2"
M103
see chapter 10.4.15 "Entry
data 3"
M104
see chapter 10.4.16 "Entry
data 4"
Result data 6
Entry information 96bytes max.
Result data 7
Entry information 128bytes max.
Result data 8
Entry information 256bytes max.
Entry data 1
Entry information 8bytes max.
Entry data 2
Entry information 16 bytes max.
Entry data 3
Entry information 32bytes max.
Entry data 4
Entry information 48bytes max.
0990
01310
02590
0111
0119
0135
0151
M105
see chapter 10.4.17 "Entry
data 5"
M106
see chapter 10.4.18 "Entry
data 6"
M107
see chapter 10.4.19 "Entry
data 7"
M108
see chapter 10.4.20 "Entry
data 8"
M60
see chapter 10.4.21 "Device status and control"
M61
see chapter 10.4.22 "Device application status and
control"
M74
see chapter 10.4.23 "I/O
status and control"
Entry data 5
Entry information 64bytes max.
Entry data 6
Entry information 96bytes max.
Entry data 7
Entry information 128bytes max.
Entry data 8
Entry information 256bytes max.
Device status and control
Display of the device status as well
as control bits for reset and standby
Device application status and control
Transfer of application-specific control and status information.
I/O status and control
Handling of switching input and
switching output signals
0167
0199
01131
01259
011
022
021
Leuze electronicDCR 248i60
PROFINET
10.4.2
Module10–Activation
PROFINET-IO module identifier
• Module ID: 1010
• Submodule ID:1
Description
The module defines the control signals for activating the device as well as the signals for the control of the
result output. A handshake mode must be selected for this function.
In handshake operation, the controller must acknowledge the data reception via the ACK bit before the new
data is written into the input area. After acknowledging the last result, the input data is reset (filled with zeros).
0.4Bit0 -> 1: Data has
been processed
by the master
1 -> 0: Data has
0---This control bit signals
that the transmitted
data have been processed by the master.
been processed
by the master
Data reset0.5Bit0 -> 1: Data re-
set
0---Deletes any stored re-
sults. For details, see
note.
Reserved0.6Bit0---Free
0.7Bit0---Free
Output data length: 1 byte consistently
Leuze electronicDCR 248i61
PROFINET
NOTICE
Data reset behavior
If the data reset control bit is activated, the following actions are carried out:
Ä Deletion of results that may still be stored.
Ä Reset of module13, i.e., even a partially transmitted read result is deleted (see chapter
10.4.3 "Module13–Fragmented result").
Ä Deletion of the input data areas of all modules.
Exception: The input data of modules 60/61 is not deleted (see chapter 10.4.21 "Module60Device status and control", see chapter 10.4.22 "Module61-Device application status and
control").
With the status byte of result modules 21…27 and entry data modules 101…107, the two
toggle bits are not changed.
10.4.3
Module13–Fragmented result
PROFINET-IO module identifier
• Module ID: 1013
• Submodule ID:1
Description
The module defines the output of fragmented results (direction: from device to control). To occupy few i/odata, the results may be split into several fragments with this module. The fragments can then be transmitted one after another with a handshake.
These settings act on result modules 21…28. The presence of this module switches on fragmentation of
the result data.
which still have to be
read for a complete result.
Fragment
size
2UN-
SIGNED8
0-2550---Fragment length, al-
ways corresponds to
the configured fragment length, except for
the last fragment.
Input data length: 3bytes, consistently
Leuze electronicDCR 248i62
PROFINET
10.4.4
Module16–Fragmented entry
PROFINET-IO module identifier
• Module ID: 1016
• Submodule ID:1
Description
The module defines the transfer of fragmented entry data (direction: from control to device). To occupy few
I/O data, the entry data may be split into several fragments with this module. The fragments can then be
transmitted one after another with a handshake.
These settings act on entry modules 101…108. The presence of this module switches on fragmentation of
the entry data.
which still have to be
transmitted for a complete entry.
Fragment
size
2UN-
SIGNED8
0-2550---Fragment length,
should always be identical, except for the last
fragment to be transferred.
Output data length: 3bytes, consistently
Module21–Result data 1
PROFINET-IO module identifier
• Module ID: 1021
• Submodule ID:1
NOTICE
Ä Modules 21…28 can only be used one at a time, not simultaneously.
Ä If the result information (result plus additional information, such as the code quality) does not
fit in the selected module width, the information is shortened.
The transmitted result data length is an indication of shortening of the result information.
Description
The module defines the transfer of the result data. The result data comes from the Formatter currently selected. The Formatter can be selected and configured in the webConfig tool (see chapter 9.3 "webConfig
tool").
sult from the Formatter
and answer from the
Cmd interpreter.
Makes the distinction
easy for the user.
Further results in the
buffer
Buffer overflow
0.3Bit0: No
1: Yes
0.4Bit0: No
1: Yes
0---Signal indicates
whether further results
are in the buffer.
0---Signal indicates that
result buffers are occupied and the device rejects data.
New result0.5Bit0->1: New result
1->0: New result
0---The toggle bit indicates
whether a new result is
present.
Reserved0.6Bit0---Free
Waiting for
acknowledgment
0.7Bit0: Base state
1: Control waiting
for acknowledge-
0---This signal represents
the internal state of the
control.
ment from the
master
10.4.6
Result data
length
Data3..108x
1UN-
SIGNED16
UNSIGNED8
0-655350---Data length of the ac-
tual result information.
0-FFh0---Result information with
a length of consistently
8bytes.
Input data length: 3bytes consistently + 8bytes of result information
Module22–Result data 2
PROFINET-IO module identifier
• Module ID: 1022
• Submodule ID:1
NOTICE
Ä Modules 21…28 can only be used one at a time, not simultaneously.
Ä If the result information (result plus additional information, such as the code quality) does not
fit in the selected module width, the information is shortened.
The transmitted result data length is an indication of shortening of the result information.
Description
The module defines the transfer of the result data. The result data comes from the Formatter currently selected. The Formatter can be selected and configured in the webConfig tool (see chapter 9.3 "webConfig
tool").
sult from the Formatter
and answer from the
Cmd interpreter.
Makes the distinction
easy for the user.
Further results in the
buffer
Buffer overflow
0.3Bit0: No
1: Yes
0.4Bit0: No
1: Yes
0---Signal indicates
whether further results
are in the buffer.
0---Signal indicates that
result buffer is occupied and the device rejects data.
New result0.5Bit0->1: New result
1->0: New result
0---The toggle bit indicates
whether a new result is
present.
Reserved0.6Bit0---Free
Waiting for
acknowledgment
0.7Bit0: Base state
1: Control waiting
for acknowledge-
0---This signal represents
the internal state of the
control.
ment from the
master
10.4.7
Result data
length
Data3..1816x
1UN-
SIGNED16
UNSIGNED8
0-655350---Data length of the ac-
tual result information.
0-FFh0---Result information with
a length of consistently
16bytes.
Input data length: 3bytes consistently + 16bytes of result information
Module23–Result data 3
PROFINET-IO module identifier
• Module ID: 1023
• Submodule ID:1
NOTICE
Ä Modules 21…28 can only be used one at a time, not simultaneously.
Ä If the result information (result plus additional information, such as the code quality) does not
fit in the selected module width, the information is shortened.
The transmitted result data length is an indication of shortening of the result information.
Description
The module defines the transfer of the result data. The result data comes from the Formatter currently selected. The Formatter can be selected and configured in the webConfig tool (see chapter 9.3 "webConfig
tool").
sult from the Formatter
and answer from the
Cmd interpreter.
Makes the distinction
easy for the user.
Further results in the
buffer
Buffer overflow
0.3Bit0: No
1: Yes
0.4Bit0: No
1: Yes
0---Signal indicates
whether further results
are in the buffer.
0---Signal indicates that
result buffer is occupied and the device rejects data.
New result0.5Bit0->1: New result
1->0: New result
0---The toggle bit indicates
whether a new result is
present.
Reserved0.6Bit0---Free
Waiting for
acknowledgment
0.7Bit0: Base state
1: Control waiting
for acknowledge-
0---This signal represents
the internal state of the
control.
ment from the
master
10.4.8
Result data
length
Data3..3432x
1UN-
SIGNED16
UNSIGNED8
0-655350---Data length of the ac-
tual result information.
0-FFh0---Result information with
a length of consistently
32bytes.
Input data length: 3bytes consistently + 32bytes of result information
Module24–Result data 4
PROFINET-IO module identifier
• Module ID: 1024
• Submodule ID:1
NOTICE
Ä Modules 21…28 can only be used one at a time, not simultaneously.
Ä If the result information (result plus additional information, such as the code quality) does not
fit in the selected module width, the information is shortened.
The transmitted result data length is an indication of shortening of the result information.
Description
The module defines the transfer of the result data. The result data comes from the Formatter currently selected. The Formatter can be selected and configured in the webConfig tool (see chapter 9.3 "webConfig
tool").
sult from the Formatter
and answer from the
Cmd interpreter.
Makes the distinction
easy for the user.
Further results in the
buffer
Buffer overflow
0.3Bit0: No
1: Yes
0.4Bit0: No
1: Yes
0---Signal indicates
whether further results
are in the buffer.
0---Signal indicates that
result buffer is occupied and the device rejects data.
New result0.5Bit0->1: New result
1->0: New result
0---The toggle bit indicates
whether a new result is
present.
Reserved0.6Bit0---Free
Waiting for
acknowledgment
0.7Bit0: Base state
1: Control waiting
for acknowledge-
0---This signal represents
the internal state of the
control.
ment from the
master
10.4.9
Result data
length
Data3..5048x
1UN-
SIGNED16
UNSIGNED8
0-655350---Data length of the ac-
tual result information.
0-FFh0---Result information with
a length of consistently
48bytes.
Input data length: 3bytes consistently + 48bytes of result information
Module25–Result data 5
PROFINET-IO module identifier
• Module ID: 1025
• Submodule ID:1
NOTICE
Ä Modules 21…28 can only be used one at a time, not simultaneously.
Ä If the result information (result plus additional information, such as the code quality) does not
fit in the selected module width, the information is shortened.
The transmitted result data length is an indication of shortening of the result information.
Description
The module defines the transfer of the result data. The result data comes from the Formatter currently selected. The Formatter can be selected and configured in the webConfig tool (see chapter 9.3 "webConfig
tool").
sult from the Formatter
and answer from the
Cmd interpreter.
Makes the distinction
easy for the user.
Further results in the
buffer
Buffer overflow
0.3Bit0: No
1: Yes
0.4Bit0: No
1: Yes
0---Signal indicates
whether further results
are in the buffer.
0---Signal indicates that
result buffer is occupied and the device rejects data.
New result0.5Bit0->1: New result
1->0: New result
0---The toggle bit indicates
whether a new result is
present.
Reserved0.6Bit0---Free
Waiting for
acknowledgment
0.7Bit0: Base state
1: Control waiting
for acknowledge-
0---This signal represents
the internal state of the
control.
ment from the
master
10.4.10
Result data
length
Data3..6664x
1UN-
SIGNED16
UNSIGNED8
0-655350---Data length of the ac-
tual result information.
0-FFh0---Result information with
a length of consistently
64bytes.
Input data length: 3bytes consistently + 64bytes of result information
Module26–Result data 6
PROFINET-IO module identifier
• Module ID: 1026
• Submodule ID:1
NOTICE
Ä Modules 21…28 can only be used one at a time, not simultaneously.
Ä If the result information (result plus additional information, such as the code quality) does not
fit in the selected module width, the information is shortened.
The transmitted result data length is an indication of shortening of the result information.
Description
The module defines the transfer of the result data. The result data comes from the Formatter currently selected. The Formatter can be selected and configured in the webConfig tool (see chapter 9.3 "webConfig
tool").
sult from the Formatter
and answer from the
Cmd interpreter.
Makes the distinction
easy for the user.
Further results in the
buffer
Buffer overflow
0.3Bit0: No
1: Yes
0.4Bit0: No
1: Yes
0---Signal indicates
whether further results
are in the buffer.
0---Signal indicates that
result buffer is occupied and the device rejects data.
New result0.5Bit0->1: New result
1->0: New result
0---The toggle bit indicates
whether a new result is
present.
Reserved0.6Bit0---Free
Waiting for
acknowledgment
0.7Bit0: Base state
1: Control waiting
for acknowledge-
0---This signal represents
the internal state of the
control.
ment from the
master
10.4.11
Result data
length
Data3..9896x
1UN-
SIGNED16
UNSIGNED8
0-655350---Data length of the ac-
tual result information.
0-FFh0---Result information with
a length of consistently
96bytes.
Input data length: 3bytes consistently + 96bytes of result information
Module27–Result data 7
PROFINET-IO module identifier
• Module ID: 1027
• Submodule ID:1
NOTICE
Ä Modules 21…28 can only be used one at a time, not simultaneously.
Ä If the result information (result plus additional information, such as the code quality) does not
fit in the selected module width, the information is shortened.
The transmitted result data length is an indication of shortening of the result information.
Description
The module defines the transfer of the result data. The result data comes from the Formatter currently selected. The Formatter can be selected and configured in the webConfig tool (see chapter 9.3 "webConfig
tool").
sult from the Formatter
and answer from the
Cmd interpreter.
Makes the distinction
easy for the user.
Further results in the
buffer
Buffer overflow
0.3Bit0: No
1: Yes
0.4Bit0: No
1: Yes
0---Signal indicates
whether further results
are in the buffer.
0---Signal indicates that
result buffer is occupied and the device rejects data.
New result0.5Bit0->1: New result
1->0: New result
0---The toggle bit indicates
whether a new result is
present.
Reserved0.6Bit0---Free
Waiting for
acknowledgment
0.7Bit0: Base state
1: Control waiting
for acknowledge-
0---This signal represents
the internal state of the
control.
ment from the
master
10.4.12
Result data
length
Data3..130128x
1UN-
SIGNED16
UNSIGNED8
0-655350---Data length of the ac-
tual result information.
0-FFh0---Result information with
a length of consistently
128bytes.
Input data length: 3bytes consistently + 128bytes of result information
Module28–Result data 8
PROFINET-IO module identifier
• Module ID: 1028
• Submodule ID:1
NOTICE
Ä Modules 21…28 can only be used one at a time, not simultaneously.
Ä If the result information (result plus additional information, such as the code quality) does not
fit in the selected module width, the information is shortened.
The transmitted result data length is an indication of shortening of the result information.
Description
The module defines the transfer of the result data. The result data comes from the Formatter currently selected. The Formatter can be selected and configured in the webConfig tool (see chapter 9.3 "webConfig
tool").
sult from the Formatter
and answer from the
Cmd interpreter.
Makes the distinction
easy for the user.
Further results in the
buffer
Buffer overflow
0.3Bit0: No
1: Yes
0.4Bit0: No
1: Yes
0---Signal indicates
whether further results
are in the buffer.
0---Signal indicates that
result buffer is occupied and the device rejects data.
New result0.5Bit0->1: New result
1->0: New result
0---The toggle bit indicates
whether a new result is
present.
Reserved0.6Bit0---Free
Waiting for
acknowledgment
0.7Bit0: Base state
1: Control waiting
for acknowledge-
0---This signal represents
the internal state of the
control.
ment from the
master
10.4.13
Result data
length
Data3..258256x
1UN-
SIGNED16
UNSIGNED8
0-655350---Data length of the ac-
tual result information.
0-FFh0---Result information with
a length of consistently
256bytes.
Input data length: 3bytes consistently + 256bytes of result information
Module101–Entry data1
PROFINET-IO module identifier
• Module ID: 1101
• Submodule ID:1
NOTICE
Ä Data reset does not affect the output data toggle bits
Ä If fragmentation is used, the application must set the output data of the entry data fragmen-
tation module for each fragment that is to be transmitted before the toggle bit is toggled in
the entry data module (see chapter 10.4.4 "Module16–Fragmented entry").
Description
The module defines the transfer of entry data to a command interpreter (Cmd interpreter) in the device.
Output data length: 3bytes consistently + 8 bytes of result information
Leuze electronicDCR 248i72
PROFINET
10.4.14
Module102–Entry data2
PROFINET-IO module identifier
• Module ID: 1102
• Submodule ID:1
NOTICE
Ä Data reset does not affect the output data toggle bits
Ä If fragmentation is used, the application must set the output data of the entry data fragmen-
tation module for each fragment that is to be transmitted before the toggle bit is toggled in
the entry data module (see chapter 10.4.4 "Module16–Fragmented entry").
Description
The module defines the transfer of entry data to a command interpreter (Cmd interpreter) in the device.
Output data length: 3bytes consistently + 16 bytes of result information
Module103–Entry data3
PROFINET-IO module identifier
• Module ID: 1103
• Submodule ID:1
NOTICE
Ä Data reset does not affect the output data toggle bits
Ä If fragmentation is used, the application must set the output data of the entry data fragmen-
tation module for each fragment that is to be transmitted before the toggle bit is toggled in
the entry data module (see chapter 10.4.4 "Module16–Fragmented entry").
Description
The module defines the transfer of entry data to a command interpreter (Cmd interpreter) in the device.
Output data length: 3bytes consistently + 32 bytes of result information
Module104–Entry data4
PROFINET-IO module identifier
• Module ID: 1104
• Submodule ID:1
NOTICE
Ä Data reset does not affect the output data toggle bits
Ä If fragmentation is used, the application must set the output data of the entry data fragmen-
tation module for each fragment that is to be transmitted before the toggle bit is toggled in
the entry data module (see chapter 10.4.4 "Module16–Fragmented entry").
Description
The module defines the transfer of entry data to a command interpreter (Cmd interpreter) in the device.
Output data length: 3bytes consistently + 48 bytes of result information
Leuze electronicDCR 248i76
PROFINET
10.4.17
Module105–Entry data5
PROFINET-IO module identifier
• Module ID: 1105
• Submodule ID:1
NOTICE
Ä Data reset does not affect the output data toggle bits
Ä If fragmentation is used, the application must set the output data of the entry data fragmen-
tation module for each fragment that is to be transmitted before the toggle bit is toggled in
the entry data module (see chapter 10.4.4 "Module16–Fragmented entry").
Description
The module defines the transfer of entry data to a command interpreter (Cmd interpreter) in the device.
Output data length: 3bytes consistently + 64 bytes of result information
Module106–Entry data6
PROFINET-IO module identifier
• Module ID: 1106
• Submodule ID:1
NOTICE
Ä Data reset does not affect the output data toggle bits
Ä If fragmentation is used, the application must set the output data of the entry data fragmen-
tation module for each fragment that is to be transmitted before the toggle bit is toggled in
the entry data module (see chapter 10.4.4 "Module16–Fragmented entry").
Description
The module defines the transfer of entry data to a command interpreter (Cmd interpreter) in the device.
Output data length: 3bytes consistently + 96 bytes of result information
Module107–Entry data7
PROFINET-IO module identifier
• Module ID: 1107
• Submodule ID:1
NOTICE
Ä Data reset does not affect the output data toggle bits
Ä If fragmentation is used, the application must set the output data of the entry data fragmen-
tation module for each fragment that is to be transmitted before the toggle bit is toggled in
the entry data module (see chapter 10.4.4 "Module16–Fragmented entry").
Description
The module defines the transfer of entry data to a command interpreter (Cmd interpreter) in the device.
Output data length: 3bytes consistently + 128 bytes of result information
Leuze electronicDCR 248i80
PROFINET
10.4.20
Module108–Entry data8
PROFINET-IO module identifier
• Module ID: 1108
• Submodule ID:1
NOTICE
Ä Data reset does not affect the output data toggle bits
Ä If fragmentation is used, the application must set the output data of the entry data fragmen-
tation module for each fragment that is to be transmitted before the toggle bit is toggled in
the entry data module (see chapter 10.4.4 "Module16–Fragmented entry").
Description
The module defines the transfer of entry data to a command interpreter (Cmd interpreter) in the device.
firms and deletes errors or warnings that
may be present in the
system.
It acts like a toggle bit.
Reserved0.2-0.5Bit0---Free
System reset 0.6Bit0: Run
0->1: Reset
0---The control bit triggers
a system reset if the
level changes from 0 to
1.
Standby0.7Bit0: Standby off
1: Standby on
0---Activates the standby
function
Output data length: 1 byte
Leuze electronicDCR 248i82
PROFINET
10.4.22
Module61-Device application status and control
PROFINET-IO module identifier
• Module ID: 1061
• Submodule ID:1
Description
From the viewpoint of the communication, the module contains generic status and control information
which can be interpreted for each device in the GSDML file and in the device application.
of the activation function [AF] for switching
output 2 back to zero.
0---Sets the event counter
of the activation function [AF] for switching
output 3 back to zero.
0---Sets the event counter
of the activation function [AF] for switching
output 4 back to zero.
Leuze electronicDCR 248i86
11Interfaces – Communication
Commands can be used to send commands directly to the code reader for control and configuration. The
following transmission options are available for the commands:
• Online commands via the Ethernet or RS232/RS422 interface (see chapter 11.1 "Online commands")
• XML-based communication via the Ethernet interface (see chapter 11.2 "XML-based communication")
11.1Online commands
Interfaces – Communication
11.1.1
Overview of commands and parameters
Online commands can be used to send commands directly to the code reader for control and configuration.
For this, the code reader has to be connected to a computer (host) via the serial interface or the Ethernet
interface (see chapter 8.3.4 "Ethernet host communication").
Online commands offer the following options for controlling and configuring the code reader:
• Control/decode the reading gate
• Read/write/copy parameters
• Carry out an automatic configuration
• Teach-in/set reference codes
• Call up error messages
• Query statistical device information
• Perform a software RESET and re-initialize the code reader
Syntax
Online commands consist of one or two ASCII characters followed by command parameters.
No separation characters may be entered between the command and the command parameter(s). Both
small and capitalized letters can be used.
Example:
Command ’CA’:Auto setup function
Parameter ’+’:Activation
11.1.2
Transmitted is:’CA+’
Notation
Commands, parameters and returned data are enclosed between single quotation marks ’’ in the text of
this manual.
Most online commands are acknowledged by the device and any requested data returned. For commands
that are not acknowledged, command execution can be observed or monitored directly on the device.
The first line contains the device type of the code reader, followed by the device version number and version date. The data which is actually displayed may vary from
the values given here.
Leuze electronicDCR 248i87
Interfaces – Communication
NOTICE
You can use this command to check whether the communication between PC and code reader
is functional.
Ä If you do not receive an acknowledgment, please check the interface connections or the pro-
tocol.
Software reset
Command’H’
DescriptionCarries out a software reset. The device is restarted and reinitialized, leaving it in the
same state as when the operating voltage is switched on.
ParameterNone
Acknowledgment’S’ (start signal)
Auto-setup
Command’CA’
DescriptionActivates the Auto setup function:
• Determine optimum illumination settings.
• Decode present code.
• Permanently store found code types and number of digits in the decoder table.
This is performed if a configuration code is present!
Parameter’+’Activates Auto setup
Acknowledgment’CS=x’
xStatus
’00’Valid ’CA’ command
’01’Invalid command
’02’‘Auto setup' could not be activated
Leuze electronicDCR 248i88
Command’CA’
Answer’xx yyyy zzzzzz’
xxCode type of the read code
Interfaces – Communication
’01’2/5Interleaved
’02’Code 39
’06’UPC (A, E)
’07’EAN
’08’Code128, EAN128
’09’Pharmacode
’10’EAN Addendum
’11’Codabar
’12’Code93
’13’GS1 DataBar Omni
’14’GS1 DataBar Limited
’15’GS1 DataBar Expanded
’20’GS1 DataBar Truncated
’32’DataMatrix ECC200
’33’QRcode
’34’Aztec
’48’PDF417
’52’GS1 DataBar Stacked
’53’GS1 DataBar Stacked Omni
’54’GS1 DataBar Stacked Expanded
yyyyNumber of digits of the read code
zzzzzzContents of the decoded label.
Alignment mode
Command’JP’
DescriptionActivates or deactivates the alignment mode for simple mounting alignment of the
device.
After activating the function with JP+, the code reader constantly outputs status information on the serial and Ethernet interface.
With the online command, the code reader is set so that it constantly outputs the
floating average value of the last 10image acquisitions in [%] and the decoding result.
These values can be used to determine the reading quality or decoding quality.
The values are also output on the bar graph display of the device (SIGNALQUALITY).
Parameter’+’activates the alignment mode
’-’deactivates the alignment mode
Acknowledgment’yyyzzzzzz’
yyyReading quality in [%].
zzzzzzCode information
Leuze electronicDCR 248i89
Interfaces – Communication
Manual definition of the reference code
Command’RS’
DescriptionThis command can be used to define a new reference code in the code reader by
means of direct input via the serial interface or the Ethernet interface.
Parameter’RSyvxxzzzzzzzz’
y, v, x and z are placeholders (variables) for the actual input.
yDef. reference code no.
’1’(Code1)
vStorage location for reference code:
’3’RAM only
xxDefined code type (see command 'CA')
zDefined code information (1…244 characters)
Acknowledgment’RS=x’
xStatus
’00’ Valid ’Rx’ command
’01’ Invalid command
’02’ Insufficient memory for reference code
’03’ Reference code has not been saved
’04’ Reference code invalid
ExampleEntry = ’RS133211032010’
Code1 (1), RAM(03)+EEPROM(0), DataMatrix ECC200 (32), code information
Teach-in
Command’RT’
DescriptionThis command enables a reference code to be defined quickly by reading an exam-
ple label.
Parameter’RTy’
yFunction
’1’Defines reference code1
AcknowledgmentThe code reader responds with command ’RS’ and corresponding status (see com-
mand ’RS’). After a code has been read, it sends the result in the following format:
’RCyvxxzzzzz’
y, v, x and z are placeholders (variables) for the actual input.
yDef. reference code no.
’1’(Code1)
vStorage location for reference code:
’3’RAM only
xxDefined code type (see command 'CA')
zDefined code information (1…244 characters)
NOTICE
With this function, only code types are recognized that are identified using the Auto setup function or which were set in the setup.
Leuze electronicDCR 248i90
Interfaces – Communication
Reading a reference code
Command’RR’
DescriptionThe command reads out the reference code defined in the code reader. If no param-
eters are specified, all defined codes are output.
Parameter<reference code number>
’1’Reference code1
AcknowledgmentOutput in the following format:
’RCyvxxzzzz’
If no reference codes are defined, nothing is entered for zzzz.
y, v, x and z are placeholders (variables) for the actual input.
yDef. reference code no.
’1’(Code1)
vStorage location for reference code:
’3’RAM only
xx’00’ is always output
zDefinedcodeinformation (1…244 characters)
Device status
Command’SST?’
DescriptionThe command queries the device status. If the command is sent via the host
interface (Ethernet, RS232/RS422), acknowledgment is only given in the
Process operating mode. The host interface is blocked in the Service operating
mode.
ParameterNone
Acknowledgment’SST=xxxxxxxx’
x stands for a single bit (value ’1’ or ’0’)
Bit7 is at the far left, bit0 is at the far right
0Ready for testing
’1’The code reader is ready to receive a trigger and start a
check program.
’0’The code reader does not respond to an incoming trigger
signal.
1Operating mode
’1’Process operating mode
’0’Service operating mode
2Device error
’1’Device error, no inspection possible
’0’No device error, ready
3…7No function, value is always ’0’
Alternatively, the following acknowledgment is output: