Leuze BCL 248i Operating Instructions

Original operating instructions
BCL 248i
Bar code reader
We reserve the right to make technical changes
EN • 2020-08-26 • 50144275
© 2020 Leuze electronic GmbH + Co. KG
Leuze electronic GmbH + Co. KG BCL 248i 2
1 About this document ............................................................................................7
2 Safety .....................................................................................................................9
2.1 Intended use ...........................................................................................................................9
2.2 Foreseeable misuse ............................................................................................................... 9
2.3 Competent persons .............................................................................................................. 10
2.4 Disclaimer .............................................................................................................................10
2.5 Laser safety notices.............................................................................................................. 10
3 Fast commissioning ........................................................................................... 11
3.1 Mounting ...............................................................................................................................11
3.2 Selecting a mounting location............................................................................................... 11
3.3 Electrical connection............................................................................................................. 11
3.4 Preparatory settings.............................................................................................................. 12
3.4.1 Commissioning the BCL 248i on the PROFINET-IO.........................................................12
3.4.2 Prepare the control............................................................................................................12
3.4.3 Installing GSD file..............................................................................................................13
3.4.4 Configuration .....................................................................................................................13
3.4.5 Transmit the configuration to the IO controller .................................................................. 13
3.4.6 Setting the device name – device naming......................................................................... 14
3.4.7 Check device name...........................................................................................................15
3.5 Further settings..................................................................................................................... 15
3.6 Starting the device ................................................................................................................16
3.7 Bar code reading .................................................................................................................. 17
Table of contents
4 Device description ..............................................................................................18
4.1 Device overview.................................................................................................................... 18
4.2 Performance characteristics .................................................................................................18
4.3 Device construction .............................................................................................................. 20
4.4 Display elements .................................................................................................................. 20
4.5 Reading techniques ..............................................................................................................22
4.5.1 Line scanner (single line) ..................................................................................................22
4.5.2 Raster scanner (raster line)...............................................................................................23
4.6 Fieldbus systems ..................................................................................................................24
4.6.1 PROFINET-IO ...................................................................................................................24
4.6.2 PROFINET-IO – star topology........................................................................................... 26
4.7 autoReflAct ...........................................................................................................................26
4.8 Reference codes................................................................................................................... 27
4.9 autoConfig ............................................................................................................................27
5 Mounting..............................................................................................................28
5.1 Transport and storage .......................................................................................................... 28
5.2 Mounting ...............................................................................................................................28
5.2.1 Mounting with M4 fastening screws ..................................................................................28
5.2.2 Mounting with BT56 or BT56-1 mounting device ............................................................29
5.2.3 Mounting with BT300-1 mounting device ......................................................................... 29
5.2.4 Mounting with the BT300W mounting bracket................................................................. 29
5.3 Selecting a mounting location............................................................................................... 29
5.4 Cleaning................................................................................................................................ 31
6 Electrical connection..........................................................................................32
6.1 PWR/SWIO (supply voltage, switching input and switching output) ..................................... 33
Leuze electronic GmbH + Co. KG BCL 248i 3
6.2 HOST (PROFINET, cable assignments)............................................................................... 35
6.3 PROFINET-IO topologies .....................................................................................................36
6.4 Cable lengths and shielding.................................................................................................. 36
7 Starting up the device – Leuze webConfig tool ............................................... 37
7.1 System requirements............................................................................................................ 37
7.2 Start webConfig tool ............................................................................................................. 37
7.3 Short description of the webConfigtool ................................................................................38
7.3.1 CONFIGURATION menu ..................................................................................................38
8 Starting up the device - Configuration..............................................................40
8.1 PROFINET-IO....................................................................................................................... 40
8.2 Starting the device ................................................................................................................40
8.3 Configuration steps for a Siemens SimaticS7 control.......................................................... 41
8.3.1 Step 1 – Prepare the control .............................................................................................41
8.3.2 Step 2 – Installing GSD file ...............................................................................................41
8.3.3 Step 3 – Hardware configuration of the S7 PLC: Configuration ........................................42
8.3.4 Step 4 – Transmit the configuration to the IO controller....................................................42
8.3.5 Step 5 – Set device name – device naming ......................................................................43
8.3.6 Step 6 – Check device name ............................................................................................44
8.3.7 Manually setting the IP address ........................................................................................ 44
8.3.8 MAC address..................................................................................................................... 45
8.3.9 Ethernet host communication............................................................................................46
8.3.10 TCP/IP...............................................................................................................................46
8.3.11 UDP...................................................................................................................................47
8.4 Commissioning via the PROFINET-IO.................................................................................. 47
8.4.1 General information...........................................................................................................47
8.4.2 Permanently defined parameters/device parameters........................................................ 48
8.5 Overview of the project modules .......................................................................................... 52
8.6 Decoder modules.................................................................................................................. 56
8.6.1 Modules 1-4 – Code table extensions 1 to 4 .....................................................................56
8.6.2 Module 5 – Code type features (symbology)..................................................................... 57
8.6.3 Module 7 – Code reconstruction technology .....................................................................59
8.7 Control modules.................................................................................................................... 60
8.7.1 Module 10 – Activations ....................................................................................................60
8.7.2 Module 11 – Reading gate control ....................................................................................61
8.7.3 Module 12 – Multi-label .....................................................................................................63
8.7.4 Module 13 – Fragmented read result ................................................................................ 64
8.7.5 Module 14 – Interlinked read result ...................................................................................64
8.8 Result format......................................................................................................................... 65
8.8.1 Module 20 – Decoder state ...............................................................................................65
8.8.2 Modules 21-29 – Decoding result...................................................................................... 67
8.8.3 Module 30 – Data formatting .............................................................................................69
8.8.4 Module 31 – Reading gate number ...................................................................................70
8.8.5 Module 32 – Reading gate time ........................................................................................70
8.8.6 Module 33 – Code position................................................................................................ 71
8.8.7 Module 34 – Reading reliability (equal scans)................................................................... 71
8.8.8 Module 35 – Bar code length ............................................................................................72
8.8.9 Module 36 – Scans with information .................................................................................72
8.8.10 Module 37 – Decoding quality ...........................................................................................73
8.8.11 Module 38 – Code direction ..............................................................................................73
8.8.12 Module 39 – Number of digits ...........................................................................................74
8.8.13 Module 40 – Code type (symbology)................................................................................. 74
8.9 Data Processing ................................................................................................................... 75
8.9.1 Module 50 – Characteristics filter ......................................................................................75
8.9.2 Module 51 – Data filtering .................................................................................................76
8.10 Identifier ................................................................................................................................77
Leuze electronic GmbH + Co. KG BCL 248i 4
8.10.1 Module 52 – Segmentation acc. to the EAN process........................................................77
8.10.2 Module 53 – Segmentation via fixed positions ..................................................................79
8.10.3 Module 54 – Segmentation according to identifier and separator .....................................81
8.10.4 Module 55 – String handling parameters ..........................................................................83
8.11 Device functions ................................................................................................................... 83
8.11.1 Module60–Device status ................................................................................................83
8.11.2 Module 61 – Laser control.................................................................................................85
8.11.3 Module 63 – Alignment...................................................................................................... 85
8.12 Switching inputs/outputs SWIO1/2 ...................................................................................... 86
8.12.1 Parameters for operating as an output..............................................................................86
8.12.2 Parameters for operating as an input ................................................................................88
8.12.3 Switch-on and switch-off functions for operation as an output ..........................................89
8.12.4 Input functions for operation as an input ........................................................................... 89
8.12.5 Module 70 – Switching input SWI1.................................................................................... 90
8.12.6 Module 71 – Switching output SWO2................................................................................ 91
8.12.7 Module 74 – SWIO status and control............................................................................... 92
8.13 Data output ...........................................................................................................................93
8.13.1 Module 80 – Sorting ..........................................................................................................93
8.14 Reference code comparison................................................................................................. 95
8.14.1 Module 81 – Reference code comparator1 ......................................................................95
8.14.2 Module 82 – Reference code comparator2 ......................................................................97
8.14.3 Module 83 – Reference code comparison pattern1 .........................................................99
8.14.4 Module 84 – Reference code comparison pattern2 .......................................................100
8.15 Special functions................................................................................................................. 102
8.15.1 Module90–Status and control....................................................................................... 102
8.15.2 Module 91 – AutoReflAct (automatic reflector activation) ...............................................102
8.15.3 Module 92 – AutoControl................................................................................................. 103
8.15.4 Module 100 – multiScan master......................................................................................104
8.15.5 Module 101 – multiScan slave addresses1....................................................................106
8.15.6 Module 102 – multiScan slave addresses2....................................................................107
8.16 Example configuration: Indirect activation via the PLC....................................................... 107
8.16.1 Task................................................................................................................................. 107
8.16.2 Procedure........................................................................................................................108
8.17 Example configuration: Direct activation via the switching input ........................................ 109
8.17.1 Task................................................................................................................................. 109
8.17.2 Procedure........................................................................................................................109
9 Online commands.............................................................................................111
9.1 Overview of commands and parameters ............................................................................ 111
9.2 General online commands.................................................................................................. 111
9.3 Online commands for system control ................................................................................. 117
9.4 Online commands for configuration of switching inputs/outputs......................................... 118
9.5 Online commands for the parameter set operations........................................................... 119
10 Care, maintenance and disposal .....................................................................124
11 Diagnostics and troubleshooting ....................................................................125
11.1 Error signaling via LED .......................................................................................................125
11.2 Interface error .....................................................................................................................126
12 Service and support .........................................................................................127
13 Technical data ...................................................................................................128
13.1 General specifications ........................................................................................................ 128
13.2 Reading fields .....................................................................................................................130
13.2.1 Bar code characteristics ..................................................................................................130
13.2.2 Raster scanner ................................................................................................................130
Leuze electronic GmbH + Co. KG BCL 248i 5
13.2.3 Reading field curves........................................................................................................131
13.3 Dimensioned drawings ....................................................................................................... 133
14 Order guide and accessories...........................................................................134
14.1 Part number code ...............................................................................................................134
14.2 Type overview..................................................................................................................... 134
14.3 Accessories – connection technology................................................................................. 134
14.4 Accessories – mounting systems ....................................................................................... 135
14.5 Accessories – Reflectors and reflective tapes .................................................................... 135
15 EC Declaration of Conformity ..........................................................................136
16 Appendix............................................................................................................137
16.1 ASCII character set............................................................................................................. 137
16.2 Bar code sample................................................................................................................. 141
Leuze electronic GmbH + Co. KG BCL 248i 6
About this document
1 About this document
Used symbols and signal words
Tab.1.1: Warning symbols and signal words
NOTE Signal word for property damage
CAUTION Signal word for minor injuries
WARNING Signal word for serious injury
Symbol indicating dangers to persons
Symbol indicating possible property damage
Indicates dangers that may result in property damage if the measures for dan­ger avoidance are not followed.
Indicates dangers that may result in minor injury if the measures for danger avoidance are not followed.
Indicates dangers that may result in severe or fatal injury if the measures for danger avoidance are not followed.
DANGER Signal word for life-threatening danger
Tab.1.2: Other symbols
Indicates dangers with which serious or fatal injury is imminent if the measures for danger avoidance are not followed.
Symbol for tips
Text passages with this symbol provide you with further information.
Symbol for action steps
Text passages with this symbol instruct you to perform actions.
Symbol for action results
Text passages with this symbol describe the result of the preceding action.
Leuze electronic GmbH + Co. KG BCL 248i 7
About this document
Terms and abbreviations
Tab.1.3: Terms and abbreviations
AutoConfig Function for easily configuring a code type or number of digits
AutoReflAct Function for activation without additional sensors (Automatic Reflector Activa-
BCL Bar code reader
CRT Code reconstruction technology
EMC Electromagnetic compatibility
EN European standard
FE Functional earth
GSDML Generic Station Description Markup Language
IO controller Control that initiates the IO data communication
IO device Decentral PROFINET fieldbus device
IP address Network address, which is based on the Internet Protocol (IP)
MAC address Media Access Control Address; hardware address of a device in the network
tion)
PELV Protective Extra-Low Voltage; protective extra-low voltage with reliable discon-
nection
PLC Programmable Logic Controller
SWI1 Digital switching input (Switching Input)
SWO2 Digital switching output (Switching Output)
TCP/IP Transmission Control Protocol/Internet Protocol; Internet protocol family
UL Underwriters Laboratories
Leuze electronic GmbH + Co. KG BCL 248i 8
Safety
2 Safety
The barcode readers of the BCL200iseries were developed, manufactured and tested in accordance with the applicable safety standards. They correspond to the state of the art.
2.1 Intended use
Barcode readers of the BCL200i series are conceived as stationary, high-speed scanners with integrated decoders for all current barcodes used for automatic object detection.
Areas of application
The bar code readers of the BCL200i series are especially designed for the following areas of application:
• Storage and conveying technologies, in particular for object identification on fast-moving conveyor belts
• Pallet transport systems
• Automobile sector
Observe intended use!
The protection of personnel and the device cannot be guaranteed if the device is operated in a manner not complying with its intended use.
Ä Only operate the device in accordance with its intended use. Ä LeuzeelectronicGmbH+Co.KG is not liable for damages caused by improper use. Ä Read these operating instructions before commissioning the device. Knowledge of the oper-
CAUTION
ating instructions is an element of proper use.
NOTICE
Comply with conditions and regulations!
Ä Observe the locally applicable legal regulations and the rules of the employer's liability insur-
ance association.
2.2 Foreseeable misuse
Any use other than that defined under "Intended use" or which goes beyond that use is considered im­proper use.
In particular, use of the device is not permitted in the following cases:
• in rooms with explosive atmospheres
• in circuits which are relevant to safety
• for medical purposes
NOTICE
Do not modify or otherwise interfere with the device!
Ä Do not carry out modifications or otherwise interfere with the device. The device must not be
tampered with and must not be changed in any way.
Ä The device must not be opened. There are no user-serviceable parts inside. Ä Repairs must only be performed by Leuze electronic GmbH + Co. KG.
Leuze electronic GmbH + Co. KG BCL 248i 9
Safety
2.3 Competent persons
Connection, mounting, commissioning and adjustment of the device must only be carried out by competent persons.
Prerequisites for competent persons:
• They have a suitable technical education.
• They are familiar with the rules and regulations for occupational safety and safety at work.
• They are familiar with the operating instructions for the device.
• They have been instructed by the responsible person on the mounting and operation of the device.
Certified electricians
Electrical work must be carried out by a certified electrician.
Due to their technical training, knowledge and experience as well as their familiarity with relevant standards and regulations, certified electricians are able to perform work on electrical systems and independently de­tect possible dangers.
In Germany, certified electricians must fulfill the requirements of accident-prevention regulations DGUV (German Social Accident Insurance) provision 3 (e.g. electrician foreman). In other countries, there are re­spective regulations that must be observed.
2.4 Disclaimer
LeuzeelectronicGmbH+Co.KG is not liable in the following cases:
• The device is not being used properly.
• Reasonably foreseeable misuse is not taken into account.
• Mounting and electrical connection are not properly performed.
• Changes (e.g., constructional) are made to the device.
2.5 Laser safety notices
ATTENTION
LASER RADIATION – CLASS 1 LASER PRODUCT
The device satisfies the requirements of IEC/EN 60825-1:2014 safety regulations for a product of laser class1 and complies with 21 CFR 1040.10 except for conformance with IEC 60825-1 Ed. 3., as described in Laser Notice No. 56, dated May 8, 2019.
Ä Observe the applicable statutory and local laser protection regulations. Ä The device must not be tampered with and must not be changed in any way.
There are no user-serviceable parts inside the device. Repairs must only be performed by Leuze electronic GmbH + Co. KG.
CAUTION
Laser radiation
Opening the device can lead to dangerous exposure to radiation.
Leuze electronic GmbH + Co. KG BCL 248i 10
Fast commissioning
3 Fast commissioning
Below you will find a short description for the initial commissioning of the BCL248i. Detailed explanations for all listed points can be found throughout these operating instructions.
3.1 Mounting
The bar code reader can be mounted in the following ways:
• Mounting with four M4x5 screws on the rear side of the housing.
• Mounting with mounting devices on the fastening groove on one side of the housing.
3.2 Selecting a mounting location
In order to select the right mounting location, several factors must be considered:
• Size, orientation, and position tolerance of the bar codes on the objects to be scanned.
• The reading field of the bar code reader in relation to the bar code module width.
• The resulting minimum and maximum reading distance from the respective reading field with the re­spective module width (see chapter 13.2 "Reading fields").
• alignment of the bar code reader for avoiding reflections.
• Distance between bar code reader and host system with respect to the interface.
• The correct time for data output. The bar code reader should be positioned 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 display elements such as LEDs should be highly visible.
• For configuring and commissioning with the webConfig tool, the HOST interface should be easily ac­cessible.
For further information, see see chapter 5 "Mounting" and see chapter 6 "Electrical connection".
The best read results are obtained if the following prerequisites are fulfilled:
• The reading distance lies in the middle area of the reading field.
• There is no direct sunlight and protect against ambient light effects.
• The bar code labels are of good print quality and have good contrast ratios.
• You are not using high-glossy labels.
• The bar code is moved past with an angle of inclination of ±10°…15° to vertical.
NOTICE
Avoid direct reflection of the laser beam!
The beam on the bar code reader is emitted at 105° to the housing base. An angle of incidence of 15° of the laser to the label has already been integrated in the deflecting mirror so that the bar code reader can be installed parallel to the bar code (rear housing wall).
3.3 Electrical connection
The bar code reader is equipped with two connection cables, each with an M12 connector.
• PWR/SWIO: M12 connection for supply voltage and switching input/output, 5-pin, A-coded, cable length 0.9m (unshielded)
• HOST: M12 connection for Ethernet/PROFINET, 4-pin, D-coded, cable length 0.7m (shielded)
Leuze electronic GmbH + Co. KG BCL 248i 11
Fast commissioning
1
2
2
3
1
4
5
1
32
4
1 PWR/SWIO
2 HOST
1 PWR/SWIO, M12 connector, 5-pin, A-coded 2 HOST, M12 socket, 4-pin, D-coded
Fig.3.1: Electrical connections
NOTICE
The shielding is connected using the M12 connector of the Ethernet cable.
Details on the connectors see chapter 6 "Electrical connection".
3.4 Preparatory settings
Ä Connect the +18…30 VDC supply voltage (typically +24VDC). ð The bar code reader starts up.
First, you need to assign its individual device name to the BCL248i. The PLC must communicate this de­vice name to the participant during the "device naming". Further information may be found below and in see chapter 8.3.5 "Step 5 – Set device name – device naming".
3.4.1
3.4.2
Commissioning the BCL 248i on the PROFINET-IO
Ä Complete the necessary steps for commissioning a Siemens-S7 control as described below.
Further information regarding the individual commissioning steps is provided in see chapter 8.3 "Configura­tion steps for a Siemens SimaticS7 control".
Prepare the control
Ä In the first step, assign an IP address to the IO controller (S7 PLC) and prepare the control for a consis-
tent data transmission.
NOTICE
Ä With the S7 control, make sure that at least Simatic Manager Version5.4 + Service Pack5
(V5.4+SP5) is used.
Leuze electronic GmbH + Co. KG BCL 248i 12
Fast commissioning
3.4.3
3.4.4
Installing GSD file
For the subsequent configuration of the IOdevices, e.g., BCL248i, the corresponding GSD file must be loaded first. In this file, all data necessary for operating the BCL248i is described in modules. These are in­put and output data and device parameters for the functioning of the BCL248i and the definition of the con­trol and status bits.
Ä Install the GSD file associated with the BCL248i in the PROFINET-IO Manager of your control.
Configuration
Ä Configure the PROFINET-IO system with the HW Config of the SIMATIC Manager by inserting the
BCL248i into your project.
ð Here, an IP address is assigned to a unique "device name".
Fig.3.2: Assignment of the device names to IP addresses
3.4.5
Transmit the configuration to the IO controller
Ä Transmit the PROFINET-IO configuration to the IO controller (S7 PLC).
After correct transmission to the IO controller (S7 PLC), the PLC automatically carries out the following ac­tivities:
• Check of device names
• Assignment of the IP addresses that were configured in the HW Config to the IOdevices
• Establishment of a connection between the IOController and configured IOdevices
• Cyclical data exchange
NOTICE
Participants that have not been "named" cannot be contacted yet at this point in time.
Leuze electronic GmbH + Co. KG BCL 248i 13
Fast commissioning
3.4.6
Setting the device name – device naming
PROFINET-IO defines the "naming of the device" as the creation of a name-based relationship for a PROFINET-IO device.
Assigning the device name to the configured IO devices
Ä Select the respective BCL248i bar code reader for the "device naming" based on its MAC address. ð This participant is assigned the unique "device name." This must match the device name in the HW
config and must not be longer than 255 characters.
Fig.3.3: Assigning the device names to the configured IOdevices
NOTICE
Multiple BCL248i can be distinguished by the MAC addresses displayed. The MAC address may be found on the name plate of the respective bar code reader.
Assignment of MAC address – IP address – individual device name
Ä Assign an IP address (suggested by the PLC), a subnet mask and, if required, a router address, and
assign this data to the named participant ("device name").
ð From now on, and when programming, only the unique "device name" is used.
Leuze electronic GmbH + Co. KG BCL 248i 14
Fast commissioning
Fig.3.4: MAC address – IP address – individual device name
3.4.7
Check device name
Ä After completing the configuration phase, recheck the "device names" that have been assigned. Ensure
that these are unique and that all participants are located in the same subnet.
3.5 Further settings
Carry out further settings, such as the control of the decoding and processing of the read data and the con­figuration of the connected switching inputs and outputs.
Decoding and processing the read data
Ä Define at least one code type with the desired settings.
In the webConfig tool:
Configuration > Decoder
Control of the decoding
Configure the connected switching inputs according to your requirements.
Ä First set the I/O mode to input. Ä Then configure the switching behavior.
In the webConfig tool:
Configuration > Device > Switching inputs/outputs
Control of the switching outputs
Configure the connected switching outputs according to your requirements.
Ä First set the I/O mode to output. Ä Then configure the switching behavior.
In the webConfig tool:
Configuration > Device > Switching inputs/outputs
Carry out further settings via the PROFINET-IOController, such as the control of the decoding and pro­cessing of the read data and the configuration of the connected switching inputs and outputs, using the pa­rameters provided by the GSD file.
Ä Activate the desired modules (at least module10 and one of the modules 21…29).
Leuze electronic GmbH + Co. KG BCL 248i 15
Fast commissioning
192.168.060.101
3.6 Starting the device
Ä Connect the +18…30 VDC supply voltage (typically +24VDC). ð The BCL248i starts up, the PWR, NET and LINK LEDs indicate the operating state.
Tab.3.1: Display of operating state
LED Color State Description
PWR Green Flashing Device ok, initialization
Continuous light Power On, device OK
Briefly off - on Good read, reading successful
Green - red Green off – briefly
red – green on
Yellow Continuous light Service mode
Red Flashing Warning
Continuous light Error, device error
NET Green Flashing Initialization
Continuous light Network mode ok
Orange Flashing Topology error
Red Flashing Communication error
Continuous light Network error
LINK Green Continuous light Ethernet connected (LINK)
Yellow Flashing Data communication (ACT)
During the initialization phase (power on), the laser is switched on for approx. 2seconds. A configuration code can be read in during this time.
NOTICE
Setting the IP address to the Leuze default address
By reading in the configuration code during the initialization phase, the IP address and the sub­net mask are set to the Leuze default.
IP address: 192.168.60.101
Subnet mask: 255.255.255.0
No Read, reading not successful
Operating the bar code reader
After connecting a supply voltage of +18…30VDC to the switching input, a read process is activated. In the standard setting, all common code types for decoding are released. Only the 2/5Interleaved code type is limited to 10 digits of code content.
If a code is moved through the reading field, the code content is decoded and forwarded to the superior system (PLC/PC) via PROFINET-IO.
Leuze electronic GmbH + Co. KG BCL 248i 16
Fast commissioning
Modul 0,5
6677889900
3.7 Bar code reading
Ä Test the device with the following bar code in format 2/5 Interleaved. The bar code module here is 0.5.
The PWR LED goes off briefly and then turns green again. Simultaneously, the read information is for­warded to the superior system (PLC/PC) via the PROFINET-IO.
Ä Check the incoming data of the bar code information.
Alternatively, you can use a switching input for read activation (switching signal of a photoelectric sensor or 24 V DC switching signal).
Leuze electronic GmbH + Co. KG BCL 248i 17
Device description
4 Device description
4.1 Device overview
Barcode readers of the BCL200i series are high-speed scanners with integrated decoder for all commonly used barcodes, e.g. 2/5Interleaved, Code39, Code128, EAN8/13 etc., as well as codes from the GS1DataBar family.
Bar code readers of the BCL200i series are available in various models as line/raster scanners with de­flecting mirror.
The interfaces integrated in the various device models offer an optimum connection to the superior host system:
• Ethernet TCP/IP UDP
• Ethernet/IP
• PROFINETIO
4.2 Performance characteristics
• Integrated fieldbus connectivity, Plug-and-Play fieldbus coupling and easy networking
• Numerous interface variants facilitate connection to the superior systems
• PROFINETIO
• Ethernet
• Integrated code reconstruction technology (CRT) enables the identification of soiled or damaged bar codes
• Maximum depth of field and reading distances from 40mm to 255mm
• Large optical opening angle and, thus, large reading field width
• High scanning rate with 1000scans/s for fast reading tasks
• Adjustment of all device parameters with a web browser
• Easy alignment and diagnostics functions
• Two freely programmable switching inputs/outputs for the activation or signaling of states
• Automatic monitoring of the read quality with autoControl
• Automatic recognition and setting of the bar code type using autoConfig
• Reference code comparison
• Heavy-duty housing of degree of protection IP65
NOTICE
Information on technical data and characteristics: see chapter 13 "Technical data"
Integrated fieldbus connectivity
The integrated fieldbus connectivity contained in the bar code readers of the BCL200i series facilitates the use of identification systems which function without connection unit or gateways. The integrated fieldbus in­terface considerably simplifies handling. The Plug-and-Play concept enables easy networking and very simple commissioning: Directly connect the respective fieldbus and all configuration is performed with no additional software.
Leuze electronic GmbH + Co. KG BCL 248i 18
Device description
CRT decoder
For decoding bar codes, the bar code readers of the BCL200i series make available the proven CRT de­coder with code reconstruction technology.
The proven code reconstruction technology (CRT) enables bar code readers of the BCL200i series to read bar codes with a small bar height, as well as bar codes with a damaged or soiled print image.
With the aid of the CRT decoder, bar codes can also be read without problem in other demanding situa­tions, such as with a large tilt angle (azimuth angle or even angle of rotation).
Fig.4.1: Possible bar code orientation
Configuration
With the BCL248i, configuration is generally performed with the aid of the GSD file.
The bar code reader needs a suitable activation to start a read process as soon as an object is in the read­ing field. This opens a time window ("reading gate") in the bar code reader for the read process during which the bar code reader has time to detect and decode a bar code.
In the basic setting, triggering takes place through an external reading cycle signal or via PROFINETIO. An alternative option for activation is the autoReflAct function.
Through the read operation, the bar code reader collects additional useful pieces of data for diagnostics which can also be transmitted to the host. The quality of the read operation can be inspected using the alignment mode which is integrated in the webConfig tool.
Leuze electronic GmbH + Co. KG BCL 248i 19
Device description
1
2
3
4
5
4.3 Device construction
1 Reading window 2 Indicator LEDs 3 M4 mounting threads on the rear of the device 4 Connection cable 5 Dovetail mounting
Fig.4.2: Device construction BCL248i – Line scanner with deflecting mirror
4.4 Display elements
Located on the front side of the housing are three multicolor indicator LEDs: PWR, NET, LINK.
Fig.4.3: LED indicators
Leuze electronic GmbH + Co. KG BCL 248i 20
Device description
PWR LED
Tab.4.1: PWR indicators
Color State Description
--- OFF Device off
Green Flashing Device ok
No supply voltage
• Initialization phase
• Bar code reading not possible
• Supply voltage applied
• Self test running
Continuous light Device ok
• Bar code reading possible
• Self test successfully finished
• Device monitoring active
Briefly off - on Good Read
• Bar code reading successful
Green briefly off – briefly red – green on
No read
• Bar code reading not successful
Orange Continuous light Service mode
• Bar code reading possible
• No data on the host interface
Red Flashing Device ok, warning set
• Bar code reading possible
• Temporary operating fault
Continuous light Device error/parameter enable
• Bar code reading not possible
Leuze electronic GmbH + Co. KG BCL 248i 21
Device description
NET LED
Tab.4.2: NET indicators
Color State Description
--- OFF No supply voltage
Green Flashing Initialization of the device
Orange Flashing Topology error
Red Flashing Communication error
• No communication possible
• PROFINET-IO communication not initialized or inactive
Establishing communication
Continuous light Operation ok
• Network mode ok
• Connection and communication to IOController (PLC) estab­lished ("data exchange")
• Deviating target/actual topology detected
• Parameterization or configuration failed ("parameter failure")
• IO error
• No data exchange
Continuous light Network error
LINK LED
Tab.4.3: LINK indicators
Color State Description
Green Continuous light Ethernet connected (LINK)
Yellow Flashing Data communication (ACT)
4.5 Reading techniques
4.5.1
Line scanner (single line)
The scan line scans the label. Due to the optical opening angle, the reading field width is dependent on the read distance. Through the movement of the object, the entire bar code is automatically transported through the scan line.
The integrated code reconstruction technology permits twisting of the bar code (tilt angle) within certain lim­its. These are dependent on the transport speed, the scanning rate of the scanner and the bar code proper­ties.
Areas of application of the line scanner
• With the bars of the bar code arranged lengthwise with respect to the conveying direction ("ladder ar­rangement")
• With bar codes having very short bar lengths
• When the ladder code is turned out of the vertical position (tilt angle)
• No connection established
• No communication possible
Leuze electronic GmbH + Co. KG BCL 248i 22
Device description
4.5.2
Fig.4.4: Deflection principle for the line scanner
Raster scanner (raster line)
Multiple scan lines scan the label. Due to the optical opening angle, the reading field width is dependent on the read distance. Provided the code is located in the reading field, it can be read during standstill. If the code moves through the reading field, it is scanned by multiple scan lines.
The integrated code reconstruction technology permits twisting of the bar code (tilt angle) within certain lim­its. These are dependent on the transport speed, the scanning rate of the scanner and the bar code proper­ties. In most cases, everywhere a line scanner is used, a raster scanner can be used.
Areas of application of the raster scanner
• With the bars of the bar code arranged perpendicular with respect to the conveying direction ("picket fence arrangement")
• With bar codes with low height displacement
• With very glossy bar codes
NOTICE
There may not be two or more bar codes in the raster detection range simultaneously.
Leuze electronic GmbH + Co. KG BCL 248i 23
Device description
Fig.4.5: Deflection principle for the raster scanner
4.6 Fieldbus systems
Various product variants of the BCL200i series are available for connecting to different fieldbus systems such as PROFINET, Ethernet, and EtherNet/IP.
4.6.1
PROFINET-IO
Performance characteristics of the PROFINET-IO interface
• GSDML file for the device description
• Certified as a PROFINET-IO device according to V2.34
• PROFINET-IO with real-time (RT) communication
• Standard Fast Ethernet (100 Mbit/s) connections (M12 technology)
• Auto-crossover and auto-negotiation
• Cyclical data exchange
• 4-pin, M12 connectors with D-coding are used for the electrical connection
• Identification & maintenance function (I&M) IM0-IM4
• The IP address – or name assignment – is set using, e.g., TIA portal or comparable tools
• Cycle time: maximum 2ms (MinDeviceInterval=64)
• Function range acc. to Conformance ClassB
• Network load classI
The functionality of the device is defined via parameter sets which are clustered in modules. These mod­ules are contained in a GSDML file.
On delivery, each BCL248i comes with a unique MAC-ID. This information is used to assign a unique, plant-specific device name ("NameOfStation") to the device via the "Discovery and Configuration Proto­col" (DCP).
Leuze electronic GmbH + Co. KG BCL 248i 24
Device description
When configuring a PROFINET-IO system, the assignment of the device names to the configured IOde­vices creates a name-based relationship for the participating IOdevices ("device naming"). Further infor­mation see chapter 8.3.5 "Step 5 – Set device name – device naming".
Identification & Maintenance functions
The BCL248i supports the base record I&M0:
Tab.4.4: Base record I&M0
Index Contents Data type Description Value
0 Header 10bytes Manufacturer specific
10 MANUFACTURER_ID UNSIGNED16 Leuze manufacturer ID (Leuze
338
PNO manufacturer ID)
12 ORDER_ID ASCII string 20
Leuze order no.
bytes
32 SERIAL_NUMBER ASCII string 16
bytes
48 HARDWARE_REVISION UNSIGNED16 Hardware revision number, e.g.,
50 SOFTWARE_REVISION 1x CHAR,
3x UNSIGNED8
54 REVISION_COUNTER UNSIGNED16 Is incremented when updating
Unique device serial number Device-de-
pendent
Device-de-
0…65535
Software version number, e.g., V130 corresponds to V1.3.0
pendent
Device-de­pendent
0 individual modules. This function is not supported.
56 PROFILE_ID UNSIGNED16 PROFIBUS application profile
number
58 PROFILE_SPE-
CIFIC_TYPE
UNSIGNED16 Information about subchannels
and submodules, not relevant
0x0000 (Non
Profile)
0x0003 (I/O
Module)
60 IM_VERSION 2x UNSIGNED8 Implemented I&M version V1.1 0x01, 0x01
62 IM_SUPPORTED Bit[16] Optional I&M records available 0
The BCL248i supports further protocols and services for communication:
• TCP/IP (Client / Server)
• UDP
• DCP
• ARP
• PING
Further information on commissioning: see chapter 7 "Starting up the device – Leuze webConfig tool"
Leuze electronic GmbH + Co. KG BCL 248i 25
Device description
1
2
3
4
4.6.2
PROFINET-IO – star topology
The BCL248i can be operated as a single device (stand-alone) with an individual device name in a star topology. The PLC must communicate this device name to the participant during the "device naming".
1 Ethernet switch 2 Bar code reader of the BCL200i series 3 Other network participants 4 Host interface - PC/control
Fig.4.6: PROFINET-IO in a star topology
4.7 autoReflAct
autoReflAct stands for automatic Reflector Activation and permits an activation without additional sensors. This is achieved by directing the scanner with reduced scanning beam towards a reflector mounted behind the conveyor path.
NOTICE
Suitable reflectors are available, see chapter 14.5 "Accessories – Reflectors and reflective tapes".
As long as the scanner is targeted at the reflector, the reading gate remains closed. If, however, the reflec­tor is blocked by an object such as a container with a bar code label, the scanner activates the read proce­dure, and the label on the container is read. When the path from the scanner to the reflector has cleared, the read procedure has completed and the scanning beam is reduced and again directed onto the reflector. The reading gate is closed.
Leuze electronic GmbH + Co. KG BCL 248i 26
Device description
Fig.4.7: Reflector arrangement for autoReflAct
The autoReflAct function uses the scanning beam to simulate a photoelectric sensor and thus permits an activation without additional sensors.
4.8 Reference codes
The bar code reader offers the possibility of storing one or two reference codes.
It is possible to store the reference codes via the webConfigtool, via online commands or via PROFINET­IO.
The bar code reader can compare read bar codes with one and/or both reference codes and execute user­configurable functions depending on the comparison result.
4.9 autoConfig
With the autoConfig function, the bar code reader offers an extremely simple and convenient configuration option to users who only want to read one code type (symbology) with one number of digits at a time.
After starting the autoConfig function via the switching input or from a superior control, it is sufficient to po­sition a bar code label with the desired code type and number of digits in the reading field of the bar code reader.
Afterward, bar codes with the same code type and number of digits are recognized and decoded.
NOTICE
The settings made via the webConfig configuration tool only temporarily push the parameters set in the PROFINET-IO into the background. The settings are overwritten during integration into the PROFINET-IO or after deactivation of service mode of the PROFINET master with those settings made via the GSD file.
Device settings for operating the BCL248i on the PROFINET-IO are managed and configured exclusively by the PROFINET-IO controller (PLC).
Ä Make permanent changes in the PROFINET-IO controller.
For further information, see chapter 8 "Starting up the device - Configuration".
Leuze electronic GmbH + Co. KG BCL 248i 27
Mounting
5 Mounting
5.1 Transport and storage
NOTICE
Ä Package the device for transport and storage in such a way that is protected against shock
and humidity. Optimum protection is achieved when using the original packaging.
Ä Ensure compliance with the approved environmental conditions listed in the specifications.
Unpacking
Ä Check the packaging content for any damage. If damage is found, notify the post office or shipping
agent as well as the supplier.
Ä Check the delivery contents using your order and the delivery papers:
• Delivered quantity
• Device type and model as indicated on the nameplate
• Package insert
The name plate on the bottom of the device provides information as to what BCL type your device is, see chapter 13 "Technical data".
Ä Save the original packaging for later storage or shipping. Ä If you have questions, please contact your supplier or Leuze customer service, see chapter 12 "Service
and support".
Ä Observe the applicable local regulations when disposing of the packaging materials.
5.2 Mounting
The bar code reader can be mounted in the following ways:
• Mounting with four M4x5 screws on the rear side of the housing.
• Mounting with mounting devices on the fastening groove on one side of the housing.
5.2.1
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: 2.5Nm ð Location and thread depth of the mounting thread: see chapter 13.3 "Dimensioned drawings"
NOTICE
Ä When mounting, ensure that the scanning beam is not reflected directly back to the scanner
by the label which is being read. For further information, see the notes in see chapter 5.3 "Selecting a mounting location".
Ä Please refer to see chapter 13.2 "Reading fields" for the permissible minimum and maximum
distances between the bar code reader and the labels to be read.
Leuze electronic GmbH + Co. KG BCL 248i 28
Mounting
5.2.2
5.2.3
5.2.4
Mounting with BT56 or BT56-1 mounting device
Mounting with the mounting device is intended for rod mounting.
Order guide: see chapter 14.4 "Accessories – mounting systems"
Ä Mount the mounting device on the rod with the clamp profile (system-side). Ä Mount the device on the mounting device using the fastening grooves.
ð Max. tightening torque of the fastening screws: 1.4Nm
Mounting with BT300-1 mounting device
Mounting with the mounting device is intended for rod mounting (10–16mm).
Order guide: see chapter 14.4 "Accessories – mounting systems"
Ä Mount the mounting device on the rod with the clamp profile (system-side). Ä Mount the device on the mounting device (included with delivery) using the fastening screws.
ð Max. tightening torque of the fastening screws: 2.5Nm
Mounting with the BT300W mounting bracket
Mounting with the BT300W mounting bracket is intended for wall mounting.
Order guide: see chapter 14.4 "Accessories – mounting systems"
Ä Mount the mounting bracket on the system side with M4 fastening screws (not included in delivery con-
tents).
Ä Mount the device to the mounting bracket (included in delivery) with M4 fastening screws.
ð Max. tightening torque of the fastening screws: 2.5Nm
5.3 Selecting a mounting location
NOTICE
The size of the bar code module influences the maximum reading distance and the width of the reading field.
Ä When selecting a mounting location and/or the bar code label, take into account the different
reading characteristics of the bar code reader with various bar code modules.
NOTICE
Observe when choosing the mounting location!
Ä Maintain the permissible environmental conditions (humidity, temperature). Ä Avoid possible soiling of the reading window due to liquids, abrasion by boxes, or packaging
material residues.
Ä Ensure that there is the lowest possible chance of damage to the bar code reader by me-
chanical collision or jammed parts.
Ä Avoid possible ambient light influence (no direct sunlight).
In order to select the right mounting location, several factors must be considered:
• Size, orientation, and position tolerance of the bar codes on the objects to be scanned.
• The reading field of the bar code reader in relation to the bar code module width.
• The resulting minimum and maximum reading distance from the respective reading field with the re­spective module width (see chapter 13.2 "Reading fields").
• alignment of the bar code reader for avoiding reflections.
• Distance between bar code reader and host system with respect to the interface.
• The correct time for data output. The bar code reader should be positioned 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 display elements such as LEDs should be highly visible.
• For configuring and commissioning with the webConfig tool, the HOST interface should be easily ac­cessible.
Leuze electronic GmbH + Co. KG BCL 248i 29
Mounting
15°
1
2
3
The best read results are obtained if the following prerequisites are fulfilled:
• The reading distance lies in the middle area of the reading field.
• There is no direct sunlight and protect against ambient light effects.
• The bar code labels are of good print quality and have good contrast ratios.
• You are not using high-glossy labels.
• The bar code is moved past with an angle of inclination of ±10°…15° to vertical.
NOTICE
Avoid direct reflection of the laser beam!
The beam on the bar code reader is emitted at 105° to the housing base. An angle of incidence of 15° of the laser to the label has already been integrated in the deflecting mirror so that the bar code reader can be installed parallel to the bar code (rear housing wall).
Ä Mount the bar code reader with deflecting mirror parallel to the bar code.
1 Zero position 2 Bar code 3 Distance acc. to reading field curves
Fig.5.1: Total reflection – line scanner
Leuze electronic GmbH + Co. KG BCL 248i 30
Mounting
Reading angle between bar code reader and bar code
The optimum alignment of the bar code reader is accomplished when the scan line scans the bar code bars almost at a right angle (90°). All reading angles that are possible between the scan line and bar code must be taken account.
α Azimuth angle (tilt) β Angle of inclination (Pitch) γ Angle of rotation (skew)
Fig.5.2: Reading angle for the line scanner
In order to avoid total reflection, the γ angle of rotation (skew) should be greater than 10°.
5.4 Cleaning
Ä Clean the glass window of the bar code reader with a soft cloth after mounting. Ä Remove all packaging remains, e.g. carton fibers or Styrofoam balls. Ä In doing so, avoid leaving fingerprints on the front screen of the bar code reader.
NOTICE
Do not use aggressive cleaning agents!
Ä Do not use aggressive cleaning agents such as thinner or acetone for cleaning the device.
Leuze electronic GmbH + Co. KG BCL 248i 31
Electrical connection
6 Electrical connection
CAUTION
Safety notices!
Ä The bar code reader is completely sealed and must not be opened. Ä Do not try to open the device under any circumstances, as this avoids both degree of pro-
tection IP65 and the warranty.
Ä Before connecting the device, be sure that the supply voltage agrees with the value printed
on the name plate.
Ä Connection of the device and maintenance work while under voltage must only be carried
out by a qualified electrician.
Ä Ensure that the functional earth (FE) is connected correctly. Unimpaired operation is only
guaranteed when the functional earth is connected properly.
Ä If faults cannot be rectified, take the device out of operation and protect it from accidentally
being started.
CAUTION
UL applications!
For UL applications, use is only permitted in Class 2 circuits in accordance with the NEC (Na­tional Electric Code).
NOTICE
Protective Extra Low Voltage (PELV)!
The device is designed in accordance with protection classIII for supply with PELV (Protective Extra-Low Voltage).
NOTICE
Degree of protection IP65
Degree of protection IP65 is achieved only if the connectors are screwed into place and caps in­stalled.
The bar code reader is equipped with two connection cables, each with an M12 connector.
• PWR/SWIO: M12 connection for supply voltage and switching input/output, 5-pin, A-coded, cable length 0.9m (unshielded)
• HOST: M12 connection for Ethernet/PROFINET, 4-pin, D-coded, cable length 0.7m (shielded)
Leuze electronic GmbH + Co. KG BCL 248i 32
Electrical connection
1
2
2
3
1
4
5
1
32
4
1 PWR/SWIO
2 HOST
2
3
1
4
5
1 PWR/SWIO, M12 connector, 5-pin, A-coded 2 HOST, M12 socket, 4-pin, D-coded
Fig.6.1: Electrical connections
6.1 PWR/SWIO (supply voltage, switching input and switching output)
Fig.6.2: M12 connector, 5-pin, A-coded
Tab.6.1: PWR/SWIO pin assignment
Pin Designation Assignment
1 VIN Positive supply voltage +18…+30 V DC
2 SWI1 Configurable switching input1
3 GNDIN Negative supply voltage 0VDC
4 SWO2 Configurable switching output2
5 FE Functional earth
Supply voltage
CAUTION
UL applications!
For UL applications, use is only permitted in Class 2 circuits in accordance with the NEC (Na­tional Electric Code).
NOTICE
Protective Extra Low Voltage (PELV)!
The device is designed in accordance with protection classIII for supply with PELV (Protective Extra-Low Voltage).
Leuze electronic GmbH + Co. KG BCL 248i 33
Electrical connection
18-30 V DC
max. 8 mA
VIN (Pin 1)
SWI (Pin 2)
GNDIN (Pin 3)
1
2
NOTICE
Connections of the functional earth FE
Ensure that the functional earth (FE) is connected correctly. Unimpaired operation is only guar­anteed when the functional earth is connected properly. All electrical disturbances (EMC cou­plings) are discharged via the functional earth connection.
Switching input / switching output
The bar code readers of the BCL200i series are equipped with
• 1 fixed, programmable, opto-decoupled switching input SWI1
• 1 fixed, programmable, opto-decoupled switching output SWO2
The switching input can be used to activate various internal functions of the bar code reader (decoding, au­toConfig, …). The switching output can be used to signal the state of the bar code reader and to implement external functions independent of the superior control.
The switching input/output is configured as follows by default:
• SWI1: Switching input reading gate start/stop (default)
• SWO2: GOODREAD switching output (default)
NOTICE
You can configure the respective function with the help of the webConfig tool.
The external wiring as switching input and switching output is described in the following. The respective function assignment to the switching inputs/outputs can be found in see chapter 8 "Starting up the device ­Configuration".
Function as switching input
1 Switching input 2 Switching input to controller
Fig.6.3: Connection diagram for switching input SWI1
NOTICE
The maximum input current must not exceed 8mA.
Leuze electronic GmbH + Co. KG BCL 248i 34
Electrical connection
18-30 V DC
max. 60 mA
VIN (Pin 1)
VIN
SWO (Pin 4)
GNDIN (Pin 3)
1
2
1
32
4
2
1
3
4
1
8
BCL 248i HOST RJ-45
Function as switching output
1 Switching output 2 Switching output from controller
Fig.6.4: Connection diagram for switching output SWO2
NOTICE
Each configured switching output is short-circuit proof! Do not load the respective switching out­put of the bar code reader with more than 60mA at +18…+30VDC in normal operation.
6.2 HOST (PROFINET, cable assignments)
The BCL248i makes the PROFINET-IO interface available as host interface.
Fig.6.5: M12 socket, 4-pin, D-coded
Tab.6.2: HOST pin assignment
Pin Designation Assignment
1 TDO+ Transmit Data +
2 RDO+ Receive Data +
3 TDO- Transmit Data -
4 RDO- Receive Data -
Thread FE Functional earth (housing)
PROFINET-IO cable assignments
Leuze electronic GmbH + Co. KG BCL 248i 35
Fig.6.6: HOST to RJ-45 cable assignments
Electrical connection
1
2
3
4
6.3 PROFINET-IO topologies
The BCL248i can be operated as a single device (stand-alone) with individual device name in a PROFINET‑IO star topology. The PLC must communicate this device name to the participant during the "device naming" (see chapter 8.3.5 "Step 5 – Set device name – device naming").
1 Ethernet switch 2 Bar code reader of the BCL200i series 3 Other network participants 4 Host interface - PC/control
Fig.6.7: PROFINET-IO in a star topology
PROFINET-IOwiring
A Cat.5 Ethernet cable should be used for wiring.
6.4 Cable lengths and shielding
Ä Observe the maximum cable lengths and shielding:
Tab.6.3: Cable lengths and shielding
Connection Interface Max. cable length Shielding
BCL – host PROFINET-IO RT 100m Required
BCL – power supply unit 30m Not necessary
Switching input 10m Not necessary
Switching output 10m Not necessary
Leuze electronic GmbH + Co. KG BCL 248i 36
Starting up the device – Leuze webConfig tool
7 Starting up the device – Leuze webConfig tool
With the webConfig tool, an operating-system independent, web-technology based, graphical user interface is available for configuring bar code readers of the BCL200i series.
7.1 System requirements
NOTICE
Ä Regularly update the operating system and the Internet browser. Ä Install the current Windows Service Packs.
Tab.7.1: System requirements for the webConfig tool
Monitor Min. resolution: 1280x800 pixels or higher
Internet browser Recommended is a current version of:
Mozilla Firefox
Google Chrome
Microsoft Edge
NOTICE
Other Internet browsers are possible but have not been tested with the current device firmware.
7.2 Start webConfig tool
Ä 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 Leuze IP address for communication with bar code readers of the
BCL200i series.
The following start page appears on your PC:
Fig.7.1: webConfig tool – start page
The user interface of the webConfigtool is largely self-explanatory.
Leuze electronic GmbH + Co. KG BCL 248i 37
Starting up the device – Leuze webConfig tool
NOTICE
The webConfig tool is completely contained in the firmware of the device. The pages and func­tions of the webConfig tool may appear and be displayed differently depending on the firmware version.
7.3 Short description of the webConfigtool
The webConfigtool has five main menus:
• PROCESS
• Information on the current result
• ALIGNMENT
• Alignment of the bar code reader
• Manually starting of read processes. The results of the read processes are displayed immediately. As a result, this menu item can be used to determine the optimum installation location.
• CONFIGURATION
• Configuring decoding
• Configuring data formatting and data output
• Configuring the switching inputs/outputs
• Configuring communication parameters and interfaces
• DIAGNOSIS
• Event logging of warnings and errors
• MAINTENANCE
• Update firmware
7.3.1
CONFIGURATION menu
The adjustable parameters of the bar code reader are clustered in modules in the CONFIGURATION menu.
Fig.7.2: webConfig tool – CONFIGURATION menu
Leuze electronic GmbH + Co. KG BCL 248i 38
Starting up the device – Leuze webConfig tool
Overview of the configurable modules
• Overview
• The individual modules and their relationships to one another are graphically displayed in the mod­ule overview. The display is context sensitive, i.e. click a module to directly access the correspond­ing submenu.
• Decoder
• Configuration of the decoder table, such as code type, number of digits, etc.
• Data
• Configuration of code content, such as filtering, segmentation of bar code data, etc.
• Control
• Configuration of activation and deactivation, e.g. auto-activation, AutoReflAct, etc.
• Output
• Configuration of data output, header, trailer, reference code, etc.
• Communication
• Configuration of the host interface and the service interface
• Device
• Configuration of the switching inputs and outputs
NOTICE
A description containing notes and explanations for all called-up functions can be found at the right-hand edge of the screen.
The language that is used can be selected in the webConfig tool via the language selection list.
The webConfigtool is available for all bar code readers of the BCL200i series. Because configuration of the BCL248i PROFINET-IO device is performed via the PROFINET-IO controller, the module overview shown in the webConfigtool is, in this case, used only for displaying and checking the configured parame­ters.
The current configuration of your bar code reader is loaded upon startup of the webConfigtool. If you change the configuration via the control while the webConfigtool is running, you can use the [Load param­eter from device] button after making the changes to update the display in the webConfigtool. This button appears in the upper left in the center window area in all submenus of the CONFIGURATION main menu.
Leuze electronic GmbH + Co. KG BCL 248i 39
Starting up the device - Configuration
8 Starting up the device - Configuration
ATTENTION
LASER
Ä Observe the safety notices in see chapter 2.5 "Laser safety notices".
8.1 PROFINET-IO
The PROFINET-IO communication profile defines how participants serially transmit their data via the trans­mission medium.
The PROFINET‑IO communicationprofile is designed for efficient data exchange on the field level. Data exchange with the devices occurs primarily cyclically. For configuration, operation, observation and alarm handling, acyclic communication services are, however, used as well.
Depending on the communication requirements, PROFINET-IO offers suitable protocols and transfer meth­ods:
Real Time communication (RT) via prioritized Ethernet frames for
• Cyclical process data (I/O data stored in the I/O area of the control)
• Alarms
• Clock synchronization
• Neighborhood information
• Address assignment/address resolution via DCP
TCP/UDP/IP communication via standard Ethernet TCP/UDP/IP frames for
• Establishing communication
• Acyclic data exchange, and also for the transfer of various information types such as:
• Parameters for the module configuration while communication is being established
• I&M data (Identification & Maintenance functions)
• Reading diagnostic information
• Reading I/O data
• Writing device data
8.2 Starting the device
NOTICE
Before commissioning, familiarize yourself with the operation and configuration of the BCL248i.
Before connecting the supply voltage, recheck all connections and ensure that they have been properly made.
Ä Connect the +18…30 VDC supply voltage (typically +24VDC). ð The BCL248i starts up, the PWR, NET and LINK LEDs indicate the operating state.
First, you need to assign its individual device name to the BCL248i.
Leuze electronic GmbH + Co. KG BCL 248i 40
Starting up the device - Configuration
8.3 Configuration steps for a Siemens SimaticS7 control
The following steps are necessary for commissioning with a Siemens S7 control:
1. Preparation of the control system S7 PLC
2. Installation of the GSD file
3. Hardware configuration of the S7 PLC
4. Transmission of the PROFINET-IO configuration to the IO controller (S7 PLC)
5. Device naming
• Configuration of the device name
• Device naming
• Assigning the device names to the configured IOdevices
• Assignment of MAC address – IP address – individual device names
6. Check device name
8.3.1
8.3.2
Step 1 – Prepare the control
The first step involves the assignment of an IP address to the IO controller (S7 PLC) and the preparation of the control for consistent data transmission.
NOTICE
Ä With the S7 control, make sure that at least Simatic Manager Version5.4 + Service Pack5
(V5.4+SP5) is used.
Step 2 – Installing GSD file
For the subsequent configuration of the IOdevices, e.g., BCL248i, the corresponding GSD file must be loaded first. In this file, all data necessary for operating the BCL248i is described in modules. These are in­put and output data and device parameters for the functioning of the BCL248i and the definition of the con­trol and status bits.
GSD files
The term GSD stands for the textual description of a PROFINET-IO device model. For this purpose, the XML-based GSDML (Generic Station Description Markup Language) was introduced. In the following, the terms "GSD" or "GSD file" always refer to the GSDML-based format.
The GSDML file can support an arbitrary number of languages in one file. Every GSDML file contains a version of the BCL248i device model. This is also reflected in the file name.
File name structure
The file name of the GSD file is constructed according to the following rule:
GSDML-[GSDML-schema version]-Leuze-BCL248i-[Date].xml
Explanation:
• GSDML schema version: Version identifier of the GSDML schema version used, e.g., V2.2
• Date: Release date of the GSD file in the format yyyymmdd. This date also stands for the release date of the file.
Example:
GSDML-V2.2-Leuze-BCL248i-20090503.xml
The GSD file is located directly in the product area under Downloads, i.e., for the BCL248i:
www.leuze.com > Products > Identification > Bar code identification > Stationary bar code readers > BCL200i > BCL248i… > Downloads > Software/Driver
If parameters are changed in the project tool, for example, these changes are stored by the PLC in the project, not in the GSD file. The GSD file is a certified and integral part of the device and must not be changed. The file is not changed by the system either.
Leuze electronic GmbH + Co. KG BCL 248i 41
Starting up the device - Configuration
The functionality of the BCL248i is defined via parameter sets. The parameters and their functions are structured in the GSD file using 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. During operation of the BCL248i on the PROFINET-IO, all parameters are set to default values. If these parame­ters are not changed by the user, the device functions with the default settings delivered by Leuze.
For the default settings of the BCL248i, please refer to the following module descriptions.
8.3.3
Step 3 – Hardware configuration of the S7 PLC: Configuration
Ä Configure the PROFINET-IO system with the HW Config of the SIMATIC Manager by inserting the
BCL248i into your project.
ð Here, an IP address is assigned to a unique "device name".
Fig.8.1: Assignment of the device names to IP addresses
8.3.4
Step 4 – Transmit the configuration to the IO controller
Ä Transmit the PROFINET-IO configuration to the IO controller (S7 PLC).
After correct transmission to the IO controller (S7 PLC), the PLC automatically carries out the following ac­tivities:
• Check of device names
• Assignment of the IP addresses that were configured in the HW Config to the IOdevices
• Establishment of a connection between the IOController and configured IOdevices
• Cyclical data exchange
NOTICE
Participants that have not been "named" cannot be contacted yet at this point in time.
Leuze electronic GmbH + Co. KG BCL 248i 42
Starting up the device - Configuration
8.3.5
Step 5 – Set device name – device naming
The PROFINET-IO device has a unique MAC address that is part of the factory settings. You can find this on the name plate of the bar code reader.
This information is used to assign a unique, plant-specific device name ("NameOfStation") to the device via the "Discovery and Configuration Protocol" (DCP).
The PROFINET-IO also uses the "Discovery and Configuration Protocol" (DCP) for the IP address assign­ment during each system boot-up if the IO device is located in the same subnet.
NOTICE
All BCL248i participants in a PROFINET-IO network must be located in the same subnet.
Device naming
PROFINET-IO defines the "naming of the device" as the creation of a name-based relationship for a PROFINET-IO device.
Assigning the device name to the configured IO devices
Ä Select the respective BCL248i bar code reader for the "device naming" based on its MAC address. ð This participant is assigned the unique "device name." This must match the device name in the HW
config and must not be longer than 255 characters.
Fig.8.2: Assigning the device names to the configured IOdevices
NOTICE
Multiple BCL248i can be distinguished by the MAC addresses displayed. The MAC address may be found on the name plate of the respective bar code reader.
Leuze electronic GmbH + Co. KG BCL 248i 43
Starting up the device - Configuration
Assignment of MAC address – IP address – individual device name
Ä Assign an IP address (suggested by the PLC), a subnet mask and, if required, a router address, and
assign this data to the named participant ("device name").
ð From now on, and when programming, only the unique "device name" is used.
8.3.6
8.3.7
Fig.8.3: MAC address – IP address – individual device name
Step 6 – Check device name
Ä After completing the configuration phase, recheck the "device names" that have been assigned. Ensure
that these are unique and that all participants are located in the same subnet.
Manually setting the IP address
If you would like to directly access webConfig, the IP address must be set manually.
On delivery, the device has the following network address:
• IP address: 192.168.60.101
• Subnet mask: 255.255.255.0
Setting the IP address via PC/laptop
Setting the network address on the PC (example for Windows7):
Ä 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 sensor.
Example:
• IP address of the sensor: 192.168.60.101
• IP address of the PC: 192.168.60.110
Ä Set the subnet mask of the PC to the same value as on the sensor.
Leuze electronic GmbH + Co. KG BCL 248i 44
Starting up the device - Configuration
IP
0
0:15:7B:20:00:15
DDLS 508i MAC
Name
BCL 248i
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.60.101.
NOTICE
If the IP address is incorrect, the device cannot be accessed.
Ä Make certain that the correct IP address is entered. The device can otherwise no longer be
accessed.
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 sensors of the BCL200i series that are available in the network. Ä Select your sensor from the list of sensors of the BCL200i series. Ä Change the IP address of the sensor to the desired IP address.
8.3.8
MAC address
The MAC address (Media Access Control address) of the device may be found on the name plate.
Address Link Label
The "Address Link Label" is an additional stick-on label that is affixed to the device.
Fig.8.4: Example: "Address Link Label"
• 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 dia­grams 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 ad­dresses of every device that is installed in the system.
Leuze electronic GmbH + Co. KG BCL 248i 45
Starting up the device - Configuration
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.
Ä Remove the "Address Link Label" from the device. Ä If necessary, add the IP address and the device name to the "Address Link Label". Ä Affix the "Address Link Label" in the documents, e.g., in the installation diagram, according to the posi-
tion of the device.
8.3.9
8.3.10
Ethernet host communication
This chapter is only of interest if an additional IP address independent of the device name is to be estab­lished for an additional communication channel, e.g. TCP/IP.
The control generally also assigns an IP address to the actual device name. The Ethernet host communica­tion enables the configuration of connections to an external host system. Both UDP as well as TCP/IP (in either client or server mode) can be used. 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 in your application, you must also define whether the BCL248i is to operate as a TCP client or as a TCP server. Both protocols can be activated simultaneously and used in parallel.
Ä Contact your network administrator to determine which communication protocol is used.
TCP/IP
Ä Activate the TCP/IP protocol. Ä Set the TCP/IP mode of the bar code reader.
TCP client mode
In TCP client mode, the bar code reader actively establishes the connection to the superior host system (PC/PLC as server). The bar code reader 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 bar code reader determines when and with whom a connection is established.
Ä With a bar code reader as TCP client, set the following values:
• IP address of the TCP server (normally the PLC/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
TCP server mode
In TCP server mode, the superior host system (PC/PLC) actively establishes the connection and the con­nected bar code reader 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 bar code reader (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 estab­lished by the superior host system (PC/PLC as client), the bar code reader (in server mode) accepts the connection. Data can then be sent and received.
Ä With a bar code reader as TCP server, set the following values:
• Port number for the communication of the bar code reader with the TCP clients
The corresponding adjustment options can be found in the webConfig tool under Configuration > Com- munication > Host communication.
Leuze electronic GmbH + Co. KG BCL 248i 46
Starting up the device - Configuration
8.3.11
UDP
The bar code reader requires from the user the IP address and the port number of the communication part­ner. In the same way, the host system (PC/PLC) also requires the set IP address of the bar code reader 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 under Configuration > Com- munication > Host communication.
All other parameters required for the reading task, such as setting the code type and number of digits, etc., are set using the engineering tool of the PLC with the aid of the various available modules (see chapter 8.4 "Commissioning via the PROFINET-IO").
8.4 Commissioning via the PROFINET-IO
8.4.1
General information
The BCL248i is designed as a modular field device. The PROFINET-IO functionality of the device is de­fined via parameter sets that are combined in modules (slots) and sub-modules (sub-slots). The further ad­dressing within subslots is then accomplished via an index. The modules are included in a XML-based GSD file, which is supplied as an integral part of the device. By using a user-specific configuration tool, such as, e.g.SIMATIC Manager for the Siemens PLC, the required modules are integrated into a project during commissioning and its settings and parameters are configured accordingly. These modules are pro­vided by the GSD file.
NOTICE
All input and output modules described in this documentation are described from the viewpoint of the control (IO controller):
- Input data arrives at the control.
- Output data is sent out by the control.
Detailed information on how to prepare the control and the GSD file see chapter 8.3 "Configuration steps for a Siemens SimaticS7 control".
For the default settings of the BCL248i, please refer to the following module descriptions.
NOTICE
Ä Please note that the set data is overwritten by the PLC. Some controls make available a so-
called "universal module". This module must not be activated for the BCL248i.
From the perspective of the device, a distinction is made between PROFINET‑IO parameters and internal parameters. PROFINET-IO parameters are all parameters that can be changed via the PROFINET-IO and are described in the following modules. Internal parameters, on the other hand, can only be changed via a service interface and retain their value even following a PROFINET-IO configuration.
During the configuration process, the BCL receives parameter telegrams from the IO controller (PLC). Be­fore this is evaluated and the respective parameter values are set, all PROFINET‑IO parameters are reset to default values. This ensures that the parameters of modules that are not selected are set to the default values.
Leuze electronic GmbH + Co. KG BCL 248i 47
Starting up the device - Configuration
8.4.2
Permanently defined parameters/device parameters
On the PROFINET-IO, parameters may be stored in modules or may be defined permanently in a PROFINET-IO participant.
Depending on the configuration tool, the permanently defined parameters are called "common" parameters or device-specific parameters.
These parameters must always be present. They are defined outside configuration modules and are thus connected to the base module (DAP: Device Access Point) that is addressed via Slot0/Subslot0
In SIMATIC Manager, the permanently defined parameters are set via object properties of the device. The module parameters are configured via the module list of the selected device. By selecting the project prop­erties of a module, the respective parameters may be set if required.
The following list contains the device parameters that are permanently defined in the BCL248i (DAP Slot0/ Subslot0) but are configurable. These parameters always exist and are available independent of the mod­ules.
Tab.8.1: Device parameters
Parameter Description Address Data type Value range Default
Profile num­ber
Number of the activated pro­file, for BCL248i constant
0 UNSIGNED8 0…255 0
with the value 0.
Code type 1 Released code type; no code
means that all subsequent code tables are also deacti­vated.
The valid number of digits also depends on the code type.
1.0…1.5 BitArea 0: No code
1: 2/5 Interleaved
2: Code39
3: Code32
6: UPC, UPCE
7: EAN8, EAN13
1
8: Code128
10: EAN Addendum
11: Codabar
12: Code93
13: GS1 DataBar OMNIDIRECTIONAL
14: GS1 DataBar LIMITED
15: GS1 DataBar EX­PANDED
Number of digits mode
Number of digits 1
Interpretation of the number of digits
Decodable number of digits; in the case of a range, this
2.6 Bit 0: Enumeration
0
1 : Range
2.0…2.5 UNSIGNED8 0…63 10
number defines the lower limit.
Specifying a 0 for the num­ber of digits means that this entry is ignored for the de­vice.
Number of digits 2
Decodable number of digits; in the case of a range, this
3 UNSIGNED8 0…63 0
number defines the upper limit.
Number of digits 3
Leuze electronic GmbH + Co. KG BCL 248i 48
Decodable number of digits in the enumeration mode.
4 UNSIGNED8 0…63 0
Starting up the device - Configuration
Parameter Description Address Data type Value range Default
Number of digits 4
Number of digits 5
Reading reli­ability
Check digit method
Check digit output
Decodable number of digits
5 UNSIGNED8 0…63 0
in the enumeration mode.
Decodable number of digits
6 UNSIGNED8 0…63 0
in the enumeration mode.
Min. reading reliability to be
7 UNSIGNED8 1…100 4 achieved in order to output a read code.
Used check digit procedure 8.0…8.6 BitArea 0: Standard check
digit evaluation
1: No check digit ver­ification
2: MOD10 Weight3
3: MOD10 Weight2
4: MOD10 Weight 4…9
5: MOD11 Cont
6: MOD43
7: MOD16
Turns the check digit output on or off.
8.7 Bit Check digit output
0: Standard
1: Not standard
0
0
Code type 2 See code type 1 9.0…9.5 BitArea See code type 1 0
Number of digits mode 2
Number of digits 2.1
Specifies how the subse­quent numbers of digits are to be interpreted.
Decodable number of digits; in the case of a range, this
10.6 Bit 0: Enumeration
1 : Range
10.0…1
UNSIGNED8 0…63 0
0.5 number defines the lower limit.
Number of digits 2.2
Decodable number of digits; in the case of a range, this
11 UNSIGNED8 0…63 0
number defines the upper limit.
Number of digits 2.3
Number of digits 2.4
Number of digits 2.5
Reading reli­ability 2
Decodable number of digits in the enumeration mode.
Decodable number of digits in the enumeration mode.
Decodable number of digits in the enumeration mode.
Min. reading reliability to be achieved in order to output a
12 UNSIGNED8 0…63 0
13 UNSIGNED8 0…63 0
14 UNSIGNED8 0…63 0
15 UNSIGNED8 1…100 4
read code.
0
Leuze electronic GmbH + Co. KG BCL 248i 49
Starting up the device - Configuration
Parameter Description Address Data type Value range Default
Check digit method 2
Check digit output 2
Used check digit procedure 16.0…1
6.6
Turns the check digit output
16.7 Bit Check digit output on or off.
Code type 3 See code type 1 17.0…1
7.5
Number of digits mode 3
Specifies how the subse­quent numbers of digits are
18.6 Bit 0: Enumeration
to be interpreted.
Number of digits 3.1
Decodable number of digits; in the case of a range, this
18.0…1
8.5 number defines the lower limit.
BitArea 0: Standard check
digit evaluation
1: No check digit ver­ification
2: MOD10 Weight3
3: MOD10 Weight2
4: MOD10 Weight 4…9
5: MOD11 Cont
6: MOD43
7: MOD16
0: Standard
1: Not standard
BitArea See code type 1 0
1 : Range
UNSIGNED8 0…63 0
0
0
0
Number of digits 3.2
Number of digits 3.3
Number of digits 3.4
Number of digits 3.5
Reading reli­ability 3
Check digit method 3
Decodable number of digits;
19 UNSIGNED8 0…63 0 in the case of a range, this number defines the upper limit.
Decodable number of digits
20 UNSIGNED8 0…63 0 in the enumeration mode.
Decodable number of digits
21 UNSIGNED8 0…63 0 in the enumeration mode.
Decodable number of digits
22 UNSIGNED8 0…63 0 in the enumeration mode.
Min. reading reliability to be
23 UNSIGNED8 1…100 4 achieved in order to output a read code.
Used check digit procedure 24.0…2
4.6
BitArea 0: Standard check
digit evaluation
1: No check digit ver­ification
2: MOD10 Weight3
3: MOD10 Weight2
4: MOD10 Weight 4…9
5: MOD11 Cont
6: MOD43
7: MOD16
0
Leuze electronic GmbH + Co. KG BCL 248i 50
Starting up the device - Configuration
Parameter Description Address Data type Value range Default
Check digit output 3
Turns the check digit output on or off.
24.7 Bit Check digit output
Code type 4 See code type 1 25.0…2
5.5
Number of digits mode 4
Specifies how the subse­quent numbers of digits are
26.6 Bit 0: Enumeration
to be interpreted.
Number of digits 4.1
Decodable number of digits; in the case of a range, this
26.0…2
6.5 number defines the lower limit.
Number of digits 4.2
Decodable number of digits; in the case of a range, this
27 UNSIGNED8 0…63 0
number defines the upper limit.
Number of digits 4.3
Number of digits4.4
Number of digits4.5
Decodable number of digits in the enumeration mode.
Decodable number of digits in the enumeration mode.
Decodable number of digits in the enumeration mode.
28 UNSIGNED8 0…63 0
29 UNSIGNED8 0…63 0
30 UNSIGNED8 0…63 0
0
0: Standard
1: Not standard
BitArea See code type 1 0
0
1 : Range
UNSIGNED8 0…63 0
Reading reli­ability 4
Min. reading reliability to be achieved in order to output a read code.
Check digit
Used check digit procedure 32.0…3
method 4
Check digit output 4
Turns the check digit output on or off.
Parameter length: 33bytes
Input data
None
31 UNSIGNED8 1…100 4
BitArea 0: Standard check
2.6
digit evaluation
1: No check digit ver­ification
2: MOD10 Weight3
3: MOD10 Weight2
4: MOD10 Weight 4…9
5: MOD11 Cont
6: MOD43
7: MOD16
32.7 Bit Check digit output
0: Standard
1: Not standard
0
0
Output data
None
Leuze electronic GmbH + Co. KG BCL 248i 51
Starting up the device - Configuration
NOTICE
Note on number of digits
If 0 is specified in a field for the number of digits, the corresponding parameter is ignored by the device firmware.
Example:
For a code table entry x, the two code lengths 10 and 12 are to be enabled. For this purpose, the following number of digit entries are necessary:
Number of digits mode x = 0 (enumeration)
Number of digits x.1 = 10
Number of digits x.2 = 12
Number of digits x.3 = 0
Number of digits x.4 = 0
Number of digits x.5 = 0
8.5 Overview of the project modules
When using PROFINET-IO modules, the parameters are assembled dynamically, i.e., only the parameters that were selected by the activated modules are changed.
The BCL has parameters (device parameters) that must always be present. These parameters are defined outside of modules and are thus linked to the base module (DAP).
In the current version, a total of 58modules are available for use. A device module (DAP, see chapter 8.4.2 "Permanently defined parameters/device parameters") is used for basic configuration of the BCL248i and is permanently integrated into the project. Further modules may be included into the project according to requirements and application.
The modules fall into the following categories:
• Parameter module for configuring the BCL248i.
• Status or control modules that influence the input/output data.
• Modules that may include both parameters and control or status information.
A PROFINET-IO module defines the existence and meaning of the input and output data. In addition, it de­fines the necessary parameters. The arrangement of the data within a module is defined.
The composition of the input/output data is defined via the module list.
The BCL248i interprets the incoming output data and triggers the appropriate reactions in the BCL248i. The interpreter for processing the data is adapted to the module structure during initialization.
The same applies for the input data. Using the module list and the defined module properties, the input data string is formatted and referenced to the internal data.
During cyclic operation, the input data is then passed on to the IO controller.
During the startup or initialization phase, the BCL248i sets the input data to an initial value (usually = 0).
NOTICE
The modules can be grouped together in any order in the engineering tool. Note, however, that many BCL248i modules contain linked data (e.g., the decoding result modules 20-41). It is im­portant to maintain the consistency of these data.
The BCL248i offers 58different modules. Each of these modules may only be selected once; otherwise, the BCL248i ignores the configuration.
The BCL248i checks its max. permissible number of modules. The control also reports an error if the input and output data across all selected modules exceed a total length of 1024bytes.
The specific limits of the individual modules of the BCL248i can be found in the GSD file.
The following module overview shows the characteristics of the individual modules:
Leuze electronic GmbH + Co. KG BCL 248i 52
Starting up the device - Configuration
Tab.8.2: Module overview
Module Description Module
identifier
Submod­ule iden-
Parame­ter
Output data
tifier
Device parame­ters
Interface PN-IO Ethernet interface descrip-
Module independent device parameters
1 0 33 0 0
1 1 0 0 0
tion
Port 1 Ethernet Port1 1 2 0 0 0
Decoder
Code table ex­tension 1
Code table ex­tension 2
Code table ex­tension 3
Code table ex­tension 4
Code type prop­erties
Extension of the existing code table
Extension of the existing code table
Extension of the existing code table
Extension of the existing code table
The module permits chang­ing the muted zones as well
1001 1 8 0 0
1002 1 8 0 0
1003 1 8 0 0
1004 1 8 0 0
1005 1 6 0 0
as the line-gap ratios.
Input data
Code reconstruc­tion technology
Support of code reconstruc­tion technology
1007 1 4 0 0
Control
Activation Control bits for the standard
1010 1 1 0 1
reading operation
Reading gate control
Multi-label Output of several bar codes
Extended control of the read­ing gate
1011 1 6 0 0
1012 1 2 1 0
per reading gate
Fragmented read result
Interlinked read result
Transmission of the read re­sults in the fragmented mode
Interlinking of the individual read results within one read-
1013 1 1 2 0
1014 1 1 0 0
ing gate
Result format
Decoder state Status display – decoding 1020 1 0 1 0
Decoding result 1 Bar code information 4bytes
1021 1 0 6 0
max.
Decoding result 2 Bar code information 8bytes
1022 1 0 10 0
max.
Decoding result 3 Bar code information
1023 1 0 14 0
12bytes max.
Decoding result 4 Bar code information
1024 1 0 18 0
16bytes max.
Decoding result 5 Bar code information
1025 1 0 22 0
20bytes max.
Decoding result 6 Bar code information
1026 1 0 26 0
24bytes max.
Leuze electronic GmbH + Co. KG BCL 248i 53
Starting up the device - Configuration
Module Description Module
identifier
Decoding result 7 Bar code information
1027 1 0 30 0
28bytes max.
Decoding result 8 Bar code information
1028 1 0 66 0
64bytes max.
Decoding result 9 Bar code information
1029 1 0 130 0
128bytes max.
Data formatting Specification for formatting
1030 1 23 0 0
the data output
Reading gate number
Reading gate time
Code position Relative position of the bar
Number of the reading gate since system start-up
Time between opening and closing
1031 1 0 2 0
1032 1 0 2 0
1033 1 0 2 0 code label in the scanning beam
Reading reliabil­ity
Scans per bar code
Calculated reading reliability for the transmitted bar code
Number of scans between the first and the last time of
1034 1 0 2 0
1035 1 0 2 0
detecting the bar code
Submod­ule iden­tifier
Parame­ter
Output data
Input data
Scans with infor­mation
Number of scans with pro­cessed information
1036 1 0 2 0
Decoding quality Quality of the read result 1037 1 0 1 0
Code direction Orientation of the bar code 1038 1 0 1 0
Number of digits Number of digits in the bar
1039 1 0 1 0 code
Code type Bar code type 1040 1 0 1 0
Data Processing
Characteristics filter
Configuration of the charac­teristics filter
1050 1
Data filtering Configuration of data filtering 1051 1 60 0 0
Segmentation acc. to the EAN process
Segmentation via fixed positions
Activation and configuration of the segmentation acc. to the EAN process
Activation and configuration of the segmentation via fixed
1052 1 27 0 0
1053 1 37 0 0
positions
Segmentation acc. to identifier and separator
Activation and configuration of the segmentation acc. to identifier and separator
1054 1 29 0 0
String handling parameter
Definition of placeholder characters for bar code seg-
1055 1 3 0 0
mentation, filtering, comple­tion and reference code pro­cessing
Device functions
Leuze electronic GmbH + Co. KG BCL 248i 54
Starting up the device - Configuration
Module Description Module
identifier
Submod­ule iden-
Parame­ter
Output data
tifier
Device status Display of the device status
1060 1 0 1 1 as well as control bits for re­set and standby
Laser control Switch-on and switch-off po-
1061 1 4 0 0 sitions of the laser
Alignment Alignment mode 1063 1 0 1 1
Switching inputs/ outputs SWIO or Device‑IO
SWI1 switching
Parameter settings SWI1 1070 1 23 0 0
input
Switching output
Parameter settings SWO2 1071 1 23 0 0
SWO2
SWIO status and control
Handling of switching input and switching output signals
1074 1 0 2 2
Data output
Sorting Sorting support 1080 1 3 0 0
Reference code comparator 1
Definition of the operation mode of reference code
1081 1 8 0 0
comparator 1
Input data
Reference code comparator 2
Definition of the operation mode of reference code
1082 1 8 0 0
comparator 2
Reference code comparison pat-
Definition of the 1st compari­son pattern
1083 1 31 0 0
tern 1
Reference code comparison pat-
Definition of the 2nd compar­ison pattern
1084 1 31 0 0
tern 2
Special functions
Status and con­trol
Grouping of multiple status and control bits
1090 1 0 1 0
AutoReflAct Automatic reflector activation 1091 1 2 0 0
AutoControl Automatic monitoring of the
1092 1 3 1 0 reading properties
multiScan over PROFINET
multiScan master Definition of the mode of op-
1100 1 10 0 0 eration of the multiScan master function
multiScan slave addresses 1
Configuration of the slave addresses for slaves 11-20
1101 1
multiScan slave addresses 2
Configuration of the slave addresses for slaves 21-32
1102 2
NOTICE
For the standard case, at least module10 (activation) and one of the modules21…27 (decod­ing result 1…7) should be integrated.
Leuze electronic GmbH + Co. KG BCL 248i 55
Starting up the device - Configuration
8.6 Decoder modules
8.6.1
Modules 1-4 – Code table extensions 1 to 4
PROFINET-IO module identifier
Module ID: 1001…1004
Submodule ID:1
Description
The modules extend the code type tables of the device parameters and permit the additional definition of further 4 code types together with the respective number of digits.
Parameter
Tab.8.3: Parameters for modules 1-4
Parameter Description Rel.
Data type Value range Default
addr.
Code type Released code type; no code
means that all subsequent code tables are also deacti­vated.
The valid number of digits also depends on the code type.
0.0…0.5 BitArea 0: No code
1: 2/5 Interleaved
2: Code39
3: Code32
6: UPC, UPCE
7: EAN8, EAN13
0
8: Code128
10: EAN Addendum
11: Codabar
12: Code93
13: GS1 DataBar OMNIDIRECTIONAL
14: GS1 DataBar LIMITED
15: GS1 DataBar EX­PANDED
Number of digits mode
Number of digits 1
Interpretation of the number of digits
Decodable number of digits; in the case of a range, this
1.6 Bit 0: Enumeration
1 : Range
1.0…1.5 UNSIGNED8 0…63 0
0
number defines the lower limit.
Specifying a 0 for the num­ber of digits means that this entry is ignored for the de­vice.
Number of digits 2
Decodable number of digits; in the case of a range, this
2 UNSIGNED8 0…63 0
number defines the upper limit.
Number of digits 3
Number of digits 4
Number of digits 5
Leuze electronic GmbH + Co. KG BCL 248i 56
Decodable number of digits in the enumeration mode.
Decodable number of digits in the enumeration mode.
Decodable number of digits in the enumeration mode.
3 UNSIGNED8 0…63 0
4 UNSIGNED8 0…63 0
5 UNSIGNED8 0…63 0
Starting up the device - Configuration
Parameter Description Rel.
addr.
Reading reli­ability
Min. reading reliability to be achieved in order to output a
6 UNSIGNED8 1…100 4
read code.
Check digit
Used check digit procedure 7.0…7.6 BitArea 0: Standard check
method
Check digit output
Turns the check digit output on or off.
7.7 Bit Check digit output
Standard means that the check digit is transmitted ac­cording to the applicable standard for the selected code type. If no check digit transmission is intended for the selected code type, then "Standard" means that the check digit is not transmitted and "Not Standard" means that the check digit is trans­mitted anyway.
Data type Value range Default
0
digit evaluation
1: No check digit ver­ification
2: MOD10 Weight3
3: MOD10 Weight2
4: MOD10 Weight 4…9
5: MOD11 Cont
6: MOD43
7: MOD16
0
0: Standard
1: Not standard
8.6.2
Refer to the notice on the number of digits in see chapter 8.4.2 "Permanently defined parameters/device parameters".
Parameter length
8bytes
Input data
None
Output data
None
Module 5 – Code type features (symbology)
PROFINET-IO module identifier
Module ID: 1005
Submodule ID:1
Description
The module defines extended features for various code types.
Leuze electronic GmbH + Co. KG BCL 248i 57
Starting up the device - Configuration
Parameter
Tab.8.4: Parameters for module 5
Parameter Description Addr.Data type Value range Default
Maximum width de­viation
Max. permitted width deviation of a character in percent of the directly adjacent character
Code39 max. ele­ment ratio
Permissible ratio between maxi­mum and minimum element of Code39.
Code39 character gap
Permissible ratio for the gap be­tween two characters for Code39.
Codabar max. ele­ment ratio
Permissible ratio between maxi­mum and minimum element of the Codabar code.
Codabar character gap
Permissible ratio for the gap be­tween two characters for the Codabar code.
Codabar Monarch Mode
The decoding of a Monarch bar code as Codabar bar code can be switched on or off.
Codabar start/stop character
Switches the transmission of a start and stop character for the Codabar code on and off.
UPC-E extension Switches the extension of a
UPC-E code to a UPC-A result on and off.
0 UN-
0…100% 15%
SIGNED8
1 UN-
0…255 8
SIGNED8
2 UN-
0…255 3
SIGNED8
3 UN-
0…255 8
SIGNED8
4 UN-
0…255 3
SIGNED8
5.0 Bit 0: Off
1: On
5.1 Bit 0: Off
1: On
5.4 Bit 0: Off
1: On
0
0
0
Code128: activate EAN header
Switches the output of the EAN header on and off.
Code39 conversion Defines the conversion method
used for Code39.
Parameter length
6bytes
Input data
None
Output data
None
5.5 Bit 0: Off
1: On
5.6 …5. 7
BitArea 0: Standard (usual
conversion method)
1: Standard ASCII (combination of standard method and ASCII method)
2: ASCII (This conversion method uses the entire ASCII char­acter set)
1
0
Leuze electronic GmbH + Co. KG BCL 248i 58
Starting up the device - Configuration
8.6.3
Module 7 – Code reconstruction technology
PROFINET-IO module identifier
Module ID: 1007
Submodule ID:1
Description
Module for supporting the code reconstruction technology
Parameter
Tab.8.5: Parameters for module 7
Parameter Description Addr.Data type Value
range
Maximum width ratio
The maximum width ratio is used to deter­mine the light zones. The light zones iden-
0 UNSIGNED8 0…255 13
tify the beginning or end of patterns.
Minimum num­ber of elements
A pattern must have at least this minimum number of duo-elements, i.e. no patterns
1…2UN-
SIGNED16
2…400 6
which have fewer duo-elements.
Code fragment mode
This parameter can be used to switch CRT mode on and off.
3.0 Bit 0: Switched off
1: Switched on
Default
1
Processing end at end of label
Parameter length
4bytes
Input data
None
Output data
None
NOTICE
Processing end at end of label
If this parameter is set, a decoded bar code is only completely decoded after the scanning beam has exited the entire bar code. This mode is useful if the quality of the bar code is to be as­sessed, since more scans are now available for the quality evaluation of the bar code.
This parameter should be set if the AutoControl function is activated (see chapter 8.15.3 "Mod­ule 92 – AutoControl"). If the parameter is not set, the bar code is immediately decoded and pro­cessed further as soon as all necessary bar code elements are available
If this parameter is set, a decoded bar code is only completely decoded after the scanning beam has exited the entire bar code.
3.2 Bit 0: Switched off
1: Switched on
0
Leuze electronic GmbH + Co. KG BCL 248i 59
Starting up the device - Configuration
8.7 Control modules
8.7.1
Module 10 – Activations
PROFINET-IO module identifier
Module ID: 1010
Submodule ID:1
Description
The module defines the control signals for the reading operation of the bar code reader. It is possible to se­lect between standard reading operation and handshake operation.
In handshake operation, the control must acknowledge the data reception via the ACK bit before the new data is written into the input area.
After acknowledging the last decoding result, the input data is reset (filled with zeros).
Parameter
Tab.8.6: Parameters for module 10
Parameter Description Addr. Data type Value
Default
range
Mode The parameter defines the mode in which
the activation module is operated.
0 UNSIGNED8 0: Without
ACK
0
1: With ACK
Parameter length
1byte
Input data
None
Output data
Tab.8.7: Output data for module 10
Output data Description Addr. Data
Value range Initial
type
Reading gate Signal for activating the reading gate 0.0 Bit 1 > 0: Reading
gate off
0 > 1: Reading gate active
Free 0.1 Bit 0
Free 0.2 Bit 0
Free 0.3 Bit 0
Data ac­knowledg­ment
This control bit signals that the transmitted data have been processed by the master. Only relevant in handshake mode (with ACK).
0.4 Bit 0 > 1: Data has been processed by the master
1 > 0: Data has been processed by the master
value
0
0
Data reset Deletes decoding results that may have
0.5 Bit 0 > 1: Data reset 0
been stored and resets the input data of all modules.
Free 0.6 Bit
Free 0.7 Bit
Leuze electronic GmbH + Co. KG BCL 248i 60
Starting up the device - Configuration
Output data length
1byte consistent
NOTICE
If several bar codes are decoded in sequence without the acknowledge mode having been acti­vated, the input data of the result modules are overwritten with the respective most recently read decoding result.
If a data loss in the control is to be avoided in such a case, mode 1 (with ACK) should be acti­vated.
If multiple decoding results occur within one reading gate, it is possible - dependent on the cycle time - that only the last decoding result is visible on the bus. In this case, the acknowledge mode MUST be used. There is otherwise a risk of data loss.
Multiple, individual decoding results may occur within one reading gate if module12 – Multi-la­bel (see chapter 8.7.3 "Module 12 – Multi-label") or one of the identifier modules (see chapter
8.10 "Identifier") is used.
Data reset behavior
If the data reset control bit is activated, the following actions are carried out:
1. Deletion of decoding results that may still be stored.
2. Reset of module13 – Fragmented read result (see chapter 8.7.4 "Module 13 – Fragmented read re­sult"), i.e., even a partially transmitted read result is deleted.
3. Deletion of the input data areas of all modules. Exception: The input data of module60 – device status (see chapter 8.11.1 "Module60–Device sta­tus") is not deleted. For the status byte of decoding result modules20…27 (see chapter 8.8.2 "Mod­ules 21-29 – Decoding result"), the two toggle bytes and the reading gate status remain unchanged.
8.7.2
See also
2 Module 20 – Decoder state [}65]
Module 11 – Reading gate control
PROFINET-IO module identifier
Module ID: 1011
Submodule ID
Description
With the module, the reading gate control of the bar code reader can be adapted to the application. With different parameters from the bar code reader, a time-controlled reading gate may be created. In addition, it defines the internal criteria for the reading gate end and the completeness inspection.
Parameter
Tab.8.8: Parameters for module 11
Parameter Description Addr. Data type Value range Default
Automatic read­ing gate repeat
The parameter defines the automatic repeat of reading gates.
0 Byte 0: No
1: Yes
0
Leuze electronic GmbH + Co. KG BCL 248i 61
Starting up the device - Configuration
Parameter Description Addr. Data type Value range Default
Reading gate end mode/com­pleteness mode
This parameter can be used to configure the complete­ness inspection.
1 Byte 0: Independent of de-
coding, i.e., the reading gate is not terminated prematurely.
1: Dependent on decod­ing, i.e, the reading gate is terminated if the con­figured number of bar codes to be decoded has been reached. 1)
2: DigitRef table-depen­dent, i.e., the reading gate is terminated if each bar code stored in the code type table has been decoded. 2)
3: Ident list dependent, i.e., the reading gate is terminated if each iden­tifier stored in a list could be segmented via a respective bar code segmentation. 3)
4: Reference code com­parison, i.e., the reading gate is terminated if a positive reference code comparison has taken place. 4)
1
Restart delay The parameter specifies a
time after which a reading
2 UN-
SIGNED16
0…65535 ms 0ms
gate is restarted. The BCL248i generates its own periodic reading gate. The configured time is active only if the automatic reading gate repeat is switched on.
Max. reading gate time when scanning
The parameter switches off the reading gate after the set time has elapsed, thus limit­ing the reading gate to the
4 UN-
SIGNED16
1…65535ms
0: Reading gate activa­tion is switched off
0ms
set period.
1) see chapter 8.7.3 "Module 12 – Multi-label"
2) Corresponds to the settings carried out via the device module (see chapter 8.4.2 "Permanently defined parameters/device parameters") or module1-4 – Code table extensions 1 to 4.
3) see chapter 8.10 "Identifier", modules 52-54 "identifier filter string"
4) see chapter 8.14.3 "Module 83 – Reference code comparison pattern1" and see chapter 8.14.4 "Module 84 – Reference code comparison pattern2"
Parameter length
6bytes
Input data
None
Output data
None
Leuze electronic GmbH + Co. KG BCL 248i 62
Starting up the device - Configuration
8.7.3
Module 12 – Multi-label
PROFINET-IO module identifier
Module ID: 1012
Submodule ID:1
Description
The module permits the definition of multiple bar codes with a different number of digits and/or code types in the reading gate and provides the necessary input data.
Parameter
Tab.8.9: Parameters for module 12
Parameter Description Addr. Data type Value
Default
range
Minimum num­ber of bar codes
Maximum num­ber of bar codes
Minimum number of different bar codes scanned for per reading gate.
Maximum number of different bar codes scanned for per reading gate. Only if this
0 UNSIGNED8 0…64 1
1 UNSIGNED8 0…64 1
number of bar codes has been reached, the reading gate is terminated prema­turely.
Parameter length
2bytes
Input data
Tab.8.10: Input data for module 12
Input data Description Addr. Data type Value
range
Number of de­coding results
Number of decoding results which have not been fetched.
0 UNSIGNED8 0…256 0
Initial value
Input data length
1byte
Output data
None
This module is used to set the maximum and minimum number of bar codes which are to be decoded within a reading gate.
If parameter "minimum number of bar codes" = 0, it is not taken into account at the decoder control. If it is not equal to 0, this means that the bar code reader expects a number of labels within the set range.
If the number of decoded bar codes is within the set limits, no additional "No Reads" are output.
NOTICE
When using this module, the ACK mode should be activated (see chapter 8.7.1 "Module 10 – Activations", "Mode" parameter). Otherwise there is a risk of losing decoding results if the con­trol is not fast enough.
Leuze electronic GmbH + Co. KG BCL 248i 63
Starting up the device - Configuration
8.7.4
Module 13 – Fragmented read result
PROFINET-IO module identifier
Module ID: 1013
Submodule ID:1
Description
The module defines the transfer of fragmented reading results. To occupy few I/O data, the read results may be split into several fragments with this module. The fragments can then be transmitted one after an­other with a handshake.
Parameter
Tab.8.11: Parameters for module 13
Parameter Description Addr. Data type Value
Default
range
Fragment length The parameter defines the maximum length
of the bar code information per fragment.
0 UN-
SIGNED8
1…128 0
Parameter length
1byte
Input data
8.7.5
Tab.8.12: Input data for module 13
Input data Description Addr. Data type Value
range
Fragment num-
Current fragment number 0.0…0.3BitArea 0…15 0
ber
Remaining frag­ments
Fragment size Fragment length, always corresponds to the
Number of fragments which still have to be read for a complete result.
configured fragment length, except for the
0.4…0.7BitArea 0…15 0
1 UN-
0…128 0
SIGNED8
last fragment.
Input data length
2byte consistent
Output data
None
Module 14 – Interlinked read result
PROFINET-IO module identifier
Module ID: 1014
Submodule ID:1
Initial value
Description
This module is used to switch to a mode in which all decoding results within one reading gate are combined into a single read result.
Leuze electronic GmbH + Co. KG BCL 248i 64
Starting up the device - Configuration
Parameter
Tab.8.13: Parameters for module 14
Parameter Description Addr. Data type Value range Default
Separator char­acter
Parameter length
1byte
Input data
None
Output data
None
NOTICE
An interlinked read result also requires module 12 – Multi-label. In this mode, the additional in­formation transmitted in modules 31ff relates to the last decoding result in the chain.
8.8 Result format
In the following, various modules for the output of decoding results are listed. They have the same structure but different output lengths. The PROFINET-IO module concept does not cater for modules of variable data length.
This parameter is used to define a delimiter that is inserted between two individual decoding results.
0 UNSIGNED8 1…255
0: No delimiter is used.
';'
8.8.1
NOTICE
Modules 20…27 are to be regarded as alternatives and should not be used in parallel.
Modules 30…41 can be combined freely with the decoding result modules.
Module 20 – Decoder state
PROFINET-IO module identifier
Module ID: 1020
Submodule ID:1
Description
The module indicates the state of the decoding and of the automatic decoder configuration.
Parameter
None
Input data
Tab.8.14: Input data for module 20
Input data Description Addr. Data
Value range Initial
type
value
Reading gate state
The signal indicates the current state of the reading gate.
0.0 Bit 0: Off
1: On
0
Attention: This does not necessarily cor­respond to the state at the time the bar code is scanned.
Leuze electronic GmbH + Co. KG BCL 248i 65
Starting up the device - Configuration
Input data Description Addr. Data
type
New result The signal indicates whether a new de-
0.1 Bit 0: No
coding has occurred.
Result state The signal indicates whether the bar code
0.2 Bit 0: Successful
has been read successfully.
Further results in the buffer
Buffer overflow The signal indicates that result buffers are
The signal indicates whether further re­sults are in the buffer.
0.3 Bit 0: No
0.4 Bit 0: No
occupied and the decoder rejects data.
New decoding Toggle bit indicates whether decoding has
0.5 Bit 0>1: New re-
occurred.
Result state Toggle bit indicates that the bar code has
0.6 Bit 0>1:
not been read.
Waiting for ac­knowledgment
This signal represents the internal state of the control.
0.7 Bit 0: Base state
Value range Initial
value
0
1: Yes
0
reading
1: NOREAD
0
1: Yes
0
1: Yes
0
sult
1>0: New re­sult
0
NOREAD
1>0: NOREAD
0
1: Control wait­ing for ac­knowledgment from the IOcontroller
Input data length
1byte
Output data
None
Comments
The following bits are constantly updated, i.e. they are updated immediately after the respective event oc­curs:
Reading gate state
• Further results in the buffer
• Buffer overflow
• Waiting for acknowledgment
All other flags refer to the currently output decoding result.
If the input data is reset to the initial value (see chapter 8.8.3 "Module 30 – Data formatting"), the following bits are deleted:
• New result
• Result state
All others remain unchanged.
Data reset behavior
Upon data reset (see chapter 8.7.1 "Module 10 – Activations") the input data is deleted, except for the reading gate status and the two toggle bits.
Leuze electronic GmbH + Co. KG BCL 248i 66
Starting up the device - Configuration
8.8.2
Modules 21-29 – Decoding result
PROFINET-IO module identifier
Module ID: 1021…1029
Submodule ID:1
Description
The module defines the transfer of the actually decoded reading results. The data is transmitted consis­tently over the entire range.
Parameter
None
Input data
Tab.8.15: Input data for modules 21…27
Module no.
21…29 Reading gate
Input data Description Addr.Data
type
state
The signal indicates the current state of the reading gate.
0.0 Bit 0: Off
Value range
1: On
Initial value
0
Attention: This does not neces­sarily correspond to the state at the time the bar code is scanned.
21…29 New result Signal indicates whether a new
decoding result is present.
21…29 Result state Signal indicates whether the bar
code has been read successfully.
21…29 Further results in
the buffer
Signal indicates whether further results are in the buffer.
21…29 Buffer overflow Signal indicates that result buffers
are occupied and the decoder re­jects data.
21…29 New result Toggle bit indicates that a new de-
coding result is present.
21…29 Result state Toggle bit indicates that the bar
code has not been read.
21…29 Waiting for ac-
knowledgment
This signal represents the internal state of the control.
0.1 Bit 0: No
1: Yes
0.2 Bit 0: Success­ful reading
1: NOREAD
0.3 Bit 0: No
1: Yes
0.4 Bit 0: No
1: Yes
0.5 Bit 0>1: New result
1>0: New result
0.6 Bit 0>1: NOREAD
1>0: NOREAD
0.7 Bit 0: Base state
1: Control waiting for acknowl­edgment from the IO controller
0
0
0
0
0
0
=
Leuze electronic GmbH + Co. KG BCL 248i 67
Starting up the device - Configuration
Module
Input data Description Addr.Data
no.
21…29 Bar code data
length
Data length of the actual bar code information.
If the bar code information (bar code and, possibly, other items such as the check sum) fits in the selected module width, this value reflects the length of the transmit­ted data. A value larger than the module width indicates a loss of information caused by a module width which has been selected too small.
21 Data Bar code information with a length
of consistently 4bytes.
22 Data Bar code information with a length
of consistently 8bytes.
23 Data Bar code information with a length
of consistently 12bytes.
type
1 UN-
SIGNED 8
2.. 4x UN-
SIGNED 8
2.. 8x UN-
SIGNED 8
2.. 12x UN-
SIGNED 8
Value range
0-48 0
0-FFh 0
0-FFh 0
0-FFh 0
Initial value
24 Data Bar code information with a length
of consistently 16bytes.
2.. 16x UN-
SIGNED 8
25 Data Bar code information with a length
of consistently 20bytes.
2.. 20x UN-
SIGNED 8
26 Data Bar code information with a length
of consistently 24bytes.
2.. 24x UN-
SIGNED 8
27 Data Bar code information with a length
of consistently 28bytes.
2.. 28x UN-
SIGNED 8
28 Data Bar code information with a length
of consistently 64bytes.
2.. 64x UN-
SIGNED 8
29 Data Bar code information with a length
of consistently 128bytes.
2.. 128x
UN­SIGNED 8
Input data
2 bytes consistently + 4..128 bytes of bar code information depending on the module
0-FFh 0
0-FFh 0
0-FFh 0
0-FFh 0
0-FFh 0
0-FFh 0
Output data
None
Comments
The remarks for module 20 – decoder state, apply in an analogous manner.
In addition, all bytes beginning with address 1 are reset to the initial value.
Leuze electronic GmbH + Co. KG BCL 248i 68
Starting up the device - Configuration
NOTICE
Shortening decoding results that are too long: If the bar code information (bar code possibly in­cluding supplementary information such as the check sum) does not fit in the selected module width, the decoding results are shortened. This shortening is either from the left or the right de­pending on the setting in module 30 – Data formatting.
Shortening is indicated by the passed bar code data length.
8.8.3
Module 30 – Data formatting
PROFINET-IO module identifier
Module ID:1030
Submodule ID:1
Description
The module defines the output string for the case that the BCL248i could not read a bar code. In addition, the initialization of the data fields and the definition of unused data ranges may be set.
Parameter
Tab.8.16: Parameters for module 30
Parameter Description Addr. Data type Value range Default
Text in the case of misreading
The parameter defines the output characters if no bar code could be read.
0 STRING
20characters null termi-
1…20 bytes of ASCII characters
63 („?“)
nated
Decoding result at reading gate start
The parameter defines the state of the data at the start of the read­ing gate.
20.5 Bit 0: Input data re­main on the old value
0
1: Input data is reset to the initial value
Data alignment The parameter defines the align-
ment of the data in the result field and thus also controls possible
21.0 Bit 0: Left-justified
1: Right-justified
0
shortening of a decoding result that is too large.
Fill mode The parameter defines the fill
mode for the not assigned data ranges.
21.4
…21. 7
BitArea 0: No fill up
3: Fill up to the transmission
3
length
Fill character The parameter defines the char-
22 UNSIGNED8 0…FFh 0 acter which is used for filling up the data ranges.
Parameter length
23bytes
Input data
None
Output data
None
Remark
The decoding result at reading gate start parameter is only taken into account if the Without ACK mode is set (see chapter 8.7.1 "Module 10 – Activations").
Leuze electronic GmbH + Co. KG BCL 248i 69
Starting up the device - Configuration
NOTICE
The text for erroneous readings does not permit the use of ASCII characters that cannot be dis­played (<0x20h).
8.8.4
Module 31 – Reading gate number
PROFINET-IO module identifier
Module ID: 1031
Submodule ID:1
Description
The module defines input data for the communication of the number of reading gates since system start.
Parameter
None
Input data
Tab.8.17: Input data for module 31
Input data Description Addr. Data type Value
range
Reading gate number
The BCL248i transmits the current read­ing gate number. The reading gate num-
0…1 UN-
SIGNED16
0…655350
Initial value
ber is initialized with the system start and is then incremented continuously. At 65535, an overflow occurs and the counter starts again from 0.
8.8.5
Input data length
2byte consistent
Output data
None
Module 32 – Reading gate time
PROFINET-IO module identifier
Module ID: 1032
Submodule ID:1
Description
This module returns the time between opening and closing of the last reading gate.
Parameter
None
Input data
Tab.8.18: Input data for module 32
Input data Description Addr. Data type Value range Initial
value
Opening dura­tion of the read­ing gate
Opening duration of the last reading gate in ms.
0…1 UN-
SIGNED16
0…65535 ms
If the range is ex­ceeded, the value re-
0ms
mains at 65535
Leuze electronic GmbH + Co. KG BCL 248i 70
Starting up the device - Configuration
Input data length
2byte consistent
Output data
None
8.8.6
Module 33 – Code position
PROFINET-IO module identifier
Module ID: 1033
Submodule ID:1
Description
The module defines input data for the communication of the relative bar code position in the laser beam.
Parameter
None
Input data
Tab.8.19: Input data for module 33
Input data Description Addr. Data type Value range Initial value
Code position Relative position of the bar
code in the scanner beam.
0…1 SIGNED16 ±450 [1/10de-
grees]
0 [1/10 de-
grees] The position is normalized to the zero position (middle posi­tion). Specified in 1/10de­grees.
Input data length
2byte consistent
8.8.7
Output data
None
Module 34 – Reading reliability (equal scans)
PROFINET-IO module identifier
Module ID: 1034
Submodule ID:1
Description
The module defines the input data for the communication of the calculated reading reliability. The value refers to the currently output bar code.
Parameter
None
Input data
Tab.8.20: Input data for module 34
Input data Description Addr. Data type Value range Initial
value
Reading reliabil­ity (equal scans)
Calculated reading reliability for the transmitted bar code.
0…1 UN-
SIGNED16
0…65535 0
Input data length
2byte consistent
Leuze electronic GmbH + Co. KG BCL 248i 71
Starting up the device - Configuration
Output data
None
8.8.8
Module 35 – Bar code length
PROFINET-IO module identifier
Module ID: 1035
Submodule ID:1
Description
The module defines input data for the communication of the length of the currently output bar code.
Parameter
None
Input data
Tab.8.21: Input data for module 35
Input data Description Addr. Data type Value
Initial value
range
Bar code length Length/duration of the currently output
bar code, beginning with the code po­sition specified in module 35 in 1/10
0…1 UN-
SIGNED16
1…900 [1/10 de­grees]
1 [1/10 de-
grees]
degrees.
Input data length
2byte consistent
8.8.9
Output data
None
Module 36 – Scans with information
PROFINET-IO module identifier
Module ID: 1036
Submodule ID:1
Description
The module defines input data for the communication of the calculated number of scans which provided in­formation contributing to the result of the bar code.
Parameter
None
Input data
Tab.8.22: Input data for module 36
Input data Description Addr. Data type Value range Initial
value
Scans with information per bar code
See above 0…1 UN-
SIGNED16
0,,,65535 0
Input data length
2byte consistent
Output data
None
Leuze electronic GmbH + Co. KG BCL 248i 72
Starting up the device - Configuration
8.8.10
Module 37 – Decoding quality
PROFINET-IO module identifier
Module ID: 1037
Submodule ID:1
Description
The module defines input data for the communication of the calculated decoding quality of the currently transmitted bar code.
Parameter
None
Input data
Tab.8.23: Input data for module 37
Input data Description Addr. Data type Value range Initial
value
Decoding quality Decoding quality of the transmitted
0 UNSIGNED8 0…100% 0%
bar code in %.
Input data length
1byte consistent
8.8.11
Output data
None
Module 38 – Code direction
PROFINET-IO module identifier
Module ID: 1038
Submodule ID:1
Description
The module defines input data for the communication of the detected code direction of the currently trans­mitted bar code.
Parameter
None
Input data
Tab.8.24: Input data for module 38
Input data Description Addr. Data type Value range Initial
value
Code direction Code direction of the transmitted bar
code
0 UNSIGNED8 0: Normal
1: Inverted
0
2: Unknown
Input data length
1byte
Output data
None
Leuze electronic GmbH + Co. KG BCL 248i 73
Starting up the device - Configuration
NOTICE
A decoding result of type "No Read" has as code direction the value 2 = unknown.
8.8.12
Module 39 – Number of digits
PROFINET-IO module identifier
Module ID: 1039
Submodule ID:1
Description
The module defines input data for the communication of the number of digits of the currently transmitted bar code.
Parameter
None
Input data
Tab.8.25: Input data for module 39
Input data Description Addr. Data type Value range Initial
value
Number of digits Number of digits of the transmitted
0 UNSIGNED8 0…48 0
bar code
Input data length
1byte
8.8.13
Output data
None
Module 40 – Code type (symbology)
PROFINET-IO module identifier
Module ID: 1040
Submodule ID:1
Description
The module defines input data for the communication of the code type of the currently transmitted bar code.
Parameter
None
Leuze electronic GmbH + Co. KG BCL 248i 74
Starting up the device - Configuration
Input data
Tab.8.26: Input data for module 40
Input data Description Addr. Data type Value range Initial
value
Code type (symbology)
Input data length
1byte
Output data
None
Code type of the transmit­ted bar code
0 UNSIGNED8 0: No code
1: 2/5 Interleaved
2: Code39
6: UPC, UPCE
7: EAN8, EAN13
8: Code128, EAN128
10: EAN Addendum
11: Codabar
12: Code93
13: GS1 DataBar Omni­directional
14: GS1 DataBar Limited
15: GS1 DataBar Ex­panded
0
8.9 Data Processing
8.9.1
Module 50 – Characteristics filter
PROFINET-IO module identifier
Module ID: 1050
Submodule ID:1
Description
Configuration of the characteristics filter.
This filter can be used to set how bar codes with identical content are handled and what criteria are to be taken into account in determining the likeness.
Parameter
Tab.8.27: Parameters for module 50
Parameter Description Addr. Data type Value range Default
Handling of identical bar code informa­tion
Determines how bar codes with the same content are to be man­aged.
0 UNSIGNED8 0: All bar codes
are stored and output.
1: Only non-iden­tical bar code contents are out­put.
1
Comparison pa­rameter code type
If this criterion has been activated, the bar code type is used to deter­mine whether the bar codes are
1.0 Bit 0: Deactivated
1: Activated
1
identical.
Leuze electronic GmbH + Co. KG BCL 248i 75
Starting up the device - Configuration
Parameter Description Addr. Data type Value range Default
Comparison pa­rameter bar code content
Comparison pa­rameter bar code direction
Comparison pa­rameter scan position
Comparison pa­rameter scan­ning time info
If this criterion has been activated, the bar code content is used to determine whether the bar codes are identical.
If this criterion has been activated, the bar code direction is used to determine whether the bar codes are identical.
If this parameter is not equal to 0, the bar code position in the scan­ning beam is used to determine whether identical bar codes have already been decoded. In this case, a +/- bandwidth must be specified in 1/10degrees, within which the same bar code is per­mitted to be in the scanning beam.
If this parameter is not equal to 0, the decoding time (time at which the bar code was decoded) is used to determine whether identi­cal bar codes have already been detected. For this purpose, a time difference in milliseconds is speci­fied. It ensures that identical bar codes can only occur within this time.
1.1 Bit 0: Deactivated
1: Activated
1.2 Bit 0: Deactivated
1: Activated
2…3 UN-
SIGNED16
6…7 UN-
0…450 [1/10degrees]
0…65535 ms 0ms
SIGNED16
1
1
0 [1/10 degrees]
8.9.2
Parameter length
8bytes
Input data
None
Output data
None
All comparison criteria are AND linked; this means all active comparisons must be fulfilled before the just­decoded bar code can be identified as already decoded and then deleted.
Module 51 – Data filtering
PROFINET-IO module identifier
Module ID: 1051
Submodule ID:1
Description
Configuration of the data filter.
Parameter
Tab.8.28: Parameters for module 51
Parameter Description Addr. Data type Value range Default
Bar code filter string 1
Leuze electronic GmbH + Co. KG BCL 248i 76
Filter expression10 STRING
30 characters null terminated
1…30 bytes of ASCII characters
\00
Starting up the device - Configuration
Parameter Description Addr. Data type Value range Default
Bar code filter string 2
Filter expression230 STRING
30 characters null terminated
1…30 bytes of ASCII characters
\00
Parameter length
60bytes
Input data
None
Output data
None
Filter string
The filter string is used to define passthrough filters for bar codes.
Any number of '?' is permitted as placeholders for an arbitrary character at exactly this position. Also per­mitted are '*' as placeholders for a character sequence of arbitrary length, and an 'x' if the character at the respective position is to be deleted.
NOTICE
ASCII characters that cannot be displayed (<0x20h) must not be used.
8.10 Identifier
The following modules can be used to specify the segmentation process to be used when extracting identi­fiers from the bar code data.
When a module is configured, the associated segmentation process is activated. If none of the modules is configured, no segmentation takes place.
Therefore, the modules can only be used one at a time and not simultaneously.
8.10.1
Module 52 – Segmentation acc. to the EAN process
PROFINET-IO module identifier
Module ID: 1052
Submodule ID:1
Description
The module activates the segmentation according to the EAN process. The parameters specify the identi­fiers to be searched for and the output mode.
NOTICE
When using one of the following modules, multiple results may occur within a reading gate.
If there are multiple results, acknowledge mode must be used; data may otherwise be lost (see chapter 8.7.1 "Module 10 – Activations").
Parameter
Tab.8.29: Parameters for module 52
Parameter Description Addr. Data type Value range Default
Identifier list
Leuze electronic GmbH + Co. KG BCL 248i 77
Starting up the device - Configuration
Parameter Description Addr. Data type Value range Default
Identifier 1 The identifier string is used for
the identifier list and the filter­ing according to the segmen­tation.
0 STRING
5characters null terminated
Identifier 2 See identifier 1 5 STRING
5characters null terminated
Identifier 3 See identifier 1 10 STRING
5characters null terminated
Identifier 4 See identifier 1 15 STRING
5characters null terminated
Identifier 5 See identifier 1 20 STRING
5characters null terminated
Identifier output
Output with identifier
If this switch is not set, the output of the identifiers is sup-
25.0 Bit 0: Output of the
pressed. Only the data values that belong to the identifiers are displayed in this case.
1…5 bytes of ASCII characters
1…5 bytes of ASCII characters
1…5 bytes of ASCII characters
1…5 bytes of ASCII characters
1…5 bytes of ASCII characters
identifiers is sup­pressed.
1: Identifiers are output.
'*'
\0
\0
\0
\0
1
Output delimiter This delimiter, if not equal to
26 UNSIGNED8 0…127 0 0, is inserted between the identifier and the associated data value in the output.
Parameter length
27bytes
Input data
None
Output data
None
Identifier string n (n = 1…5)
The identifier string defines both the identifier list for the segmentation and the passthrough filter for the subsequent filtering.
The string may contain wildcards. Any number of '?' is permitted as placeholders for an arbitrary character at exactly that defined position.
Also permitted are '*' as placeholders for a character sequence of arbitrary length, and an 'x' if the charac­ter at the respective position is to be deleted. There are a total of five identifier strings.
An identifier with less than 5 characters must be null terminated. However, if the identifier string consists of exactly 5 characters, it does not have to be terminated.
NOTICE
ASCII characters that cannot be displayed (<0x20h) must not be used in the identifier strings.
Leuze electronic GmbH + Co. KG BCL 248i 78
Starting up the device - Configuration
8.10.2
Module 53 – Segmentation via fixed positions
PROFINET-IO module identifier
Module ID: 1053
Submodule ID:1
Description
The module activates the segmentation via fixed positions. The parameters specify the identifiers to be searched for, the output mode, and the positions.
Parameter
Tab.8.30: Parameters for module 53
Parameter Description Addr. Data type Value range Default
Identifier list
Identifier 1 The identifier string is used for the
identifier list and the filtering ac­cording to the segmentation.
0 STRING
5characters null termi-
1…5 bytes of ASCII characters
'*'
nated
Identifier 2 See identifier 1 5 STRING
5characters
1…5 bytes of ASCII characters
\0
null termi­nated
Identifier 3 See identifier 1 10 STRING
5characters null termi­nated
Identifier 4 See identifier 1 15 STRING
5characters null termi­nated
Identifier 5 See identifier 1 20 STRING
5characters null termi­nated
Identifier output
Output with identifier
If this switch is not set, the output of the identifiers is suppressed.
25.0 Bit 0: Output of the
Only the data values that belong to the identifiers are displayed in this case.
Output delimiter This delimiter, if not equal to 0, is
26 UNSIGNED8 0…127 0 inserted between the identifier and the associated data value in the output.
1…5 bytes of ASCII characters
1…5 bytes of ASCII characters
1…5 bytes of ASCII characters
identifiers is sup­pressed.
1: Identifiers are output.
\0
\0
\0
1
Fixed positions
Start position of the 1st identifier
Specifies the position of the first character of the first identifier in
27 UNSIGNED8 0…127 0
the data string of the bar code. The first character in the bar code has position 1. If the parameter is = 0, it is deactivated.
Leuze electronic GmbH + Co. KG BCL 248i 79
Starting up the device - Configuration
Parameter Description Addr. Data type Value range Default
Start position of the 1st data value
Start position of the 2nd identi­fier
Start position of the 2nd data value
Start position of the 3rd identifier
Specifies the position of the first character of the first data value in the data string of the bar code. The first character in the bar code has position 1. If the parameter is = 0, it is deactivated.
Specifies the position of the first character of the second identifier in the data string of the bar code. The first character in the bar code has position 1. If the parameter is = 0, it is deactivated.
Specifies the position of the first character of the second data value in the data string of the bar code. The first character in the bar code has position 1. If the param­eter is = 0, it is deactivated.
Specifies the position of the first character of the third identifier in the data string of the bar code. The first character in the bar code has position 1. If the parameter is = 0, it is deactivated.
28 UNSIGNED8 0…127 0
29 UNSIGNED8 0…127 0
30 UNSIGNED8 0…127 0
31 UNSIGNED8 0…127 0
Start position of the 3rd data value
Start position of the 4th identifier
Start position of the 4th data value
Start position of the 5th identifier
Specifies the position of the first character of the third data value in the data string of the bar code. The first character in the bar code has position 1. If the parameter is = 0, it is deactivated.
Specifies the position of the first character of the fourth identifier in the data string of the bar code. The first character in the bar code has position 1. If the parameter is = 0, it is deactivated.
Specifies the position of the first character of the fourth data value in the data string of the bar code. The first character in the bar code has position 1. If the parameter is = 0, it is deactivated.
Specifies the position of the first character of the fifth identifier in the data string of the bar code. The first character in the bar code has position 1. If the parameter is = 0, it is deactivated.
32 UNSIGNED8 0…127 0
33 UNSIGNED8 0…127 0
34 UNSIGNED8 0…127 0
35 UNSIGNED8 0…127 0
Start position of the 5th data value
Specifies the position of the first character of the fifth data value in the data string of the bar code.
36 UNSIGNED8 0…127 0
The first character in the bar code has position 1. If the parameter is = 0, it is deactivated.
Leuze electronic GmbH + Co. KG BCL 248i 80
Starting up the device - Configuration
Parameter length
37bytes
Input data
None
Output data
None
Identifier string n (n = 1…5)
The identifier string defines both the identifier list for the segmentation and the passthrough filter for the subsequent filtering.
The string may contain wildcards. Any number of '?' is permitted as placeholders for an arbitrary character at exactly that defined position.
Also permitted are '*' as placeholders for a character sequence of arbitrary length, and an 'x' if the charac­ter at the respective position is to be deleted. There are a total of five identifier strings.
An identifier with less than 5 characters must be null terminated. However, if the identifier string consists of exactly 5 characters, it does not have to be terminated.
NOTICE
ASCII characters that cannot be displayed (<0x20h) must not be used in the identifier strings.
8.10.3
Module 54 – Segmentation according to identifier and separator
PROFINET-IO module identifier
Module ID: 1054
Submodule ID:1
Description
This module activates the segmentation according to identifier and separator. The parameters specify the identifiers to be searched for, the output mode, and the parameters for the identifier/separator algorithm.
Parameter
Tab.8.31: Parameters for module 54
Parameter Description Addr. Data type Value range Default
Identifier list
Identifier 1 The identifier string is used for the
identifier list and the filtering ac­cording to the segmentation.
0 STRING
5characters null termi-
1…5 bytes of ASCII characters
'*'
nated
Identifier 2 See identifier 1 5 STRING
5characters
1…5 bytes of ASCII characters
\0
null termi­nated
Identifier 3 See identifier 1 10 STRING
5characters
1…5 bytes of ASCII characters
\0
null termi­nated
Leuze electronic GmbH + Co. KG BCL 248i 81
Starting up the device - Configuration
Parameter Description Addr. Data type Value range Default
Identifier 4 See identifier 1 15 STRING
5characters null termi­nated
Identifier 5 See identifier 1 20 STRING
5characters null termi­nated
Identifier output
Output with identifier
If this switch is not set, the output of the identifiers is suppressed.
25.0 Bit 0: Output of the
Only the data values that belong to the identifiers are displayed in this case.
Output delimiter This delimiter, if not equal to 0, is
26 UNSIGNED8 0…127 0 inserted between the identifier and the associated data value in the output.
Segmentation acc. to identifier and separator
Identifier length Fixed length of all identifiers in the
27 UNSIGNED8 0…256 0 segmentation process. After this length, the text of the identifier ends and the associated data value starts. The end of the data value is determined by the sepa­rator.
1…5 bytes of ASCII characters
1…5 bytes of ASCII characters
identifiers is sup­pressed.
1: Identifiers are output.
\0
\0
1
Delimiter in the identifier /sepa­rator process
The separator terminates the data value that follows its identifier di­rectly after the identifier length. Af-
28 UNSIGNED8 0…127 0
ter the separator, the next identi­fier starts.
Parameter length
29bytes
Input data
None
Output data
None
Identifier string n (n = 1…5)
The identifier string defines both the identifier list for the segmentation and the passthrough filter for the subsequent filtering.
The string may contain wildcards. Any number of '?' is permitted as placeholders for an arbitrary character at exactly that defined position.
Also permitted are '*' as placeholders for a character sequence of arbitrary length, and an 'x' if the charac­ter at the respective position is to be deleted. There are a total of five identifier strings.
An identifier with less than 5 characters must be null terminated. However, if the identifier string consists of exactly 5characters, it does not have to be null terminated.
Leuze electronic GmbH + Co. KG BCL 248i 82
Starting up the device - Configuration
NOTICE
ASCII characters that cannot be displayed (<0x20h) must not be used in the identifier strings.
8.10.4
Module 55 – String handling parameters
PROFINET-IO module identifier
Module ID: 1055
Submodule ID:1
Description
This module is used to configure placeholder characters for the bar code segmentation, filtering, termina­tion, and reference code processing.
Parameter
Tab.8.32: Parameters for module 55
Parameter Description Addr. Data
type
Wildcard char­acter
This parameter is similar to the "don't care character" parameter. The difference be-
0 UN-
SIGNED8
Value range
32…126 '*'
Default
tween this and the "don't care character" is that all subsequent characters, and not only one character at a certain position, are disre­garded until a character pattern is found in the string that follows the wildcard character pattern. This character has the same behav­ior as the wildcard character for the DIR com­mand in the command line interpreter under Windows.
Don't care char­acter
Delete charac­ter
Parameter length
3bytes
Input data
None
Output data
None
8.11 Device functions
8.11.1
Module60–Device status
PROFINET-IO module identifier
Module ID: 1060
Submodule ID:1
Placeholder character. Characters at the po­sition of the placeholder character are not taken into account in a comparison. This per­mits certain areas to be masked.
Delete character for bar code and identifier fil­tering (characters at the position of the delete character are deleted in a comparison. This permits certain areas to be deleted).
1 UN-
SIGNED8
2 UN-
SIGNED8
32…126 '?'
32…126 'x'
Leuze electronic GmbH + Co. KG BCL 248i 83
Starting up the device - Configuration
Description
The module contains the display of the device status as well as control bits for triggering a reset or putting the device into standby mode.
Parameter
None
Input data
Tab.8.33: Input data for module 60
Input data Description Addr. Data type Value range Initial
value
Device status This byte represents the
device status.
0 UNSIGNED8 1: Initialization
10: Standby
0
11: Service
12: Diagnosis
13: Parameter Enabled
15: Device is ready
0x80: Error
0x81: Warning
Input data length
1byte
Output data
Tab.8.34: Output data for module 60
Output data Description Addr. Data type Value range Initial
value
System reset The control bit triggers a
system reset if the level changes from 0 to 1.
0.6 Bit 0: Run
0 > 1: Reset
0
Analogous to command H, activation of this bit trig­gers a restart of all elec­tronics, incl. a restart of the PROFINET-IO stack.
Standby Activates the standby
function
0.7 Bit 0: Standby off
1: Standby on
0
Output data length
1byte
NOTICE
When resetting the data (see chapter 8.7.1 "Module 10 – Activations") the input data of this module is not deleted.
Leuze electronic GmbH + Co. KG BCL 248i 84
Starting up the device - Configuration
8.11.2
Module 61 – Laser control
PROFINET-IO module identifier
Module ID: 1061
Submodule ID:1
Description
The module defines the switch-on and switch-off position of the laser.
Parameter
Tab.8.35: Parameters for module 61
Parameter Description Addr. Data type Value range Default
Laser start posi­tion
This parameter defines the switch-on position of the laser in 1/10° increments within the
0…1 UN-
SIGNED16
-450…+450 [1/10degrees]
-450 [1/10de-
grees] visible range of the laser. The center of the reading field cor­responds to the 0° position.
Laser stop posi­tion
This parameter defines the switch-off position of the laser
2…3 UN-
SIGNED16
-450…+450 [1/10degrees]
+450 [1/10
degrees] in 1/10° increments within the visible range of the laser.
8.11.3
Parameter length
4bytes
Input data
None
Output data
None
Module 63 – Alignment
PROFINET-IO module identifier
Module ID: 1063
Submodule ID:1
Description
The module defines input and output data for the alignment mode of the BCL248i. The alignment mode is used for easy alignment of the BCL248i with the bar code. Using the transmitted decoding quality as a per­centage, the optimum alignment can be easily selected. This module should not be used in connection with module 81 (AutoReflAct) as this may cause malfunctions.
Parameter
None
Input data
Tab.8.36: Input data for module 63
Input data Description Addr. Data type Value range Initial
value
Decoding qual­ity
Transmits the current decoding quality of the bar code located in the scan-
0 Byte 0…100% 0%
ning beam.
Leuze electronic GmbH + Co. KG BCL 248i 85
Starting up the device - Configuration
1
2
3
4
Input data length:
1byte
Output data
Tab.8.37: Output data for module 63
Output data Description Addr. Data type Value range Initial
value
Alignment mode Signal activates and deactivates the
alignment mode for optimum align­ment of the BCL248i with the bar code.
Output data length:
1byte
8.12 Switching inputs/outputs SWIO1/2
These modules define the mode of operation of the two digital switching inputs and outputs (I/Os). They are separated into individual modules for configuring the individual I/Os and a shared module for signaling the status and controlling all I/Os.
8.12.1
Parameters for operating as an output
Start-up delay
With this setting, the output pulse can be delayed by the specified time (in ms).
Switch-on time
Defines the switch-on time period for the switching input. Any activated switch-off function then no longer has any function.
A value of 0 causes the output to be set statically; this means that the selected input function(s) activates the output, and the selected switch-off function(s) deactivates it again.
0.0 Bit 0>1: On
1>0: Off
0
1 Switch-on signal 4 Start-up delay 2 Switch-off signal 3 Output
Fig.8.5: Example1: Start-up delay >0 and switch-on time =0
Leuze electronic GmbH + Co. KG BCL 248i 86
Starting up the device - Configuration
1
2
3
4 5
1
2
3
4
1 Switch-on signal 4 Start-up delay 2 Switch-off signal 5 Switch-on time 3 Output
Fig.8.6: Example2: Start-up delay >0 and switch-on time >0
In example2, the activation duration of the output is only dependent on the selected switch-on time; the switch-off signal has no effect.
1 Switch-on signal 4 Start-up delay 2 Switch-off signal 3 Output
Fig.8.7: Example3: Start-up delay >0 Switch-off signal prior to lapsing of the start-up delay
If the output is again deactivated via the switch-off signal before the start-up delay lapses, only a brief pulse appears at the output following the start-up delay.
Comparison functionality
If, for example, the switching output is to be activated after four invalid read results, the comparative value is set to 4 and the switch-on function is configured to "invalid read result".
The comparison mode parameter can be used to define whether the switching output is activated only once in the case that the event counter and comparative value fulfill the "parity" condition, or if it is activated mul­tiple times, on each successive event after the "parity" condition is met.
The event counter can always be reset with the I/O data in the I/O status and control module; furthermore, the reset mode parameter enables automatic resetting upon reaching the comparative value. Automatic re­setting upon reaching the comparative value always results in the switching output being switched once in­dependent of the comparison mode parameter.
Leuze electronic GmbH + Co. KG BCL 248i 87
Starting up the device - Configuration
1
2
3 4 5
The standard switch-off function at reading gate start is rather unsuited for this module since it causes the event counter to be reset on each reading gate start. Suitable as switch-off function for this example is the valid read result function; otherwise, all switch-off functions are deactivated.
8.12.2
Parameters for operating as an input
Debounce time
Parameter for setting the software debounce time for the switching input. The definition of a debounce time extends the signal transition time accordingly.
If the value of this parameter = 0, no debouncing takes place; otherwise, the configured value represents the duration in milliseconds for which the input signal must be present and stable.
1 Input signal 3 Start-up delay td_on 2 Output signal 4 Switch-on time ton
5 Switch-off delay td_off
Fig.8.8: Start-up behavior in input mode
Start-up delay td_on
If the value of this parameter = 0, no start-up delay occurs for the activation of the input function; otherwise, the configured value represents the time in milliseconds by which the input signal is delayed.
Switch-on time ton
This parameter specifies the min. activation duration for the selected input function in milliseconds.
The actual activation duration is calculated from the switch-on time as well as the switch-off delay.
Switch-off delay td_off
This parameter specifies the duration of the switch-off delay in milliseconds.
Leuze electronic GmbH + Co. KG BCL 248i 88
Starting up the device - Configuration
8.12.3
Switch-on and switch-off functions for operation as an output
The following options are available for switch-on and switch-off functions in the "output" operating mode:
Tab.8.38: Switch-on/switch-off functions
Name Value Comment
No function 0 No functionality
Reading gate start 1
Reading gate end 2
Positive reference code comparison 1
Negative reference code comparison 1
3
4
Valid read result 5
Invalid read result 6
Device ready 7 The device is in a ready state.
Device not ready 8 The device is not yet ready (motor and laser are being acti-
vated).
Data transmission active 9
Data transmission not active 10
AutoControl good quality 13
8.12.4
AutoControl bad quality 14
Reflector detected 15
Reflector not detected 16
External event, pos. edge 17 In the PROFINET case, the external event is generated
with the aid of module74 – "I/O status and control", see chapter 8.12.7 "Module 74 – SWIO status and control".
External event, neg. edge 18 See above
Device active 19 Decoding is currently being performed.
Device in standby mode 20 Motor and laser inactive.
No device error 21 An error was detected.
Device error 22 Device is in an error state.
Positive reference code comparison 2
Negative reference code comparison 2
23
24
Input functions for operation as an input
Tab.8.39: Input functions
Name Value Comment
No function 0 No functionality
Reading gate activation 1
Reading gate deactivation only 2
Reading gate activation only 3
Reference bar code teach-in 4
Start/stop AutoConfiguration mode 5
Leuze electronic GmbH + Co. KG BCL 248i 89
Starting up the device - Configuration
8.12.5
Module 70 – Switching input SWI1
PROFINET-IO module identifier
Module ID: 1070
Submodule ID:1
NOTICE
Module70 functions only as a switching input.
Parameter
Tab.8.40: Parameters for module70
Parameter Description Addr. Data type Value range Default
Inversion The parameter defines the logic
of the incident signal. In case of an inversion, an external HIGH
13.1 Bit 0: Normal
1: Inverted
0
level is interpreted internally as a LOW level.
Reserved Free 13.2
…13. 7
Debounce time The parameter defines a de-
bounce time in ms which is im­plemented in software.
Start-up delay The parameter influences the
time behavior in ms during switch-on.
Minimum switch­on time
The parameter defines a mini­mum time period in ms before the signal is reset.
Switch-off delay The parameter defines a time
delay in ms for the signal during switch-off.
Input function The parameter specifies the
function which is to be activated or deactivated by a status change in the signal.
Parameter length
23bytes
Input data
None
14 UN-
0…1000ms 5ms
SIGNED16
16 UN-
0…65535 ms 0ms
SIGNED16
18 UN-
0…65535 ms 0ms
SIGNED16
20 UN-
0…65535 ms 0ms
SIGNED16
22 UNSIGNED8 see chapter
8.12.4 "Input functions for op­eration as an in­put"
1
Output data
None
Comment
The bias level also defines whether the output is low-active (0) or high-active (1).
Switching on an output means switching to the active state; switching off, on the other hand, results in switching to the inactive or idle state.
Leuze electronic GmbH + Co. KG BCL 248i 90
Starting up the device - Configuration
8.12.6
Module 71 – Switching output SWO2
PROFINET-IO module identifier
Module ID: 1071
Submodule ID:1
NOTICE
Module71 functions only as a switching output.
Parameter
Tab.8.41: Parameters for module71
Parameter Description Addr. Data type Value range Default
Bias level The parameter defines the bias level
of the switching output and, thus, si­multaneously whether the output is low-active (0) or high-active (1).
0.1 Bit 0: LOW (0V)
1: HIGH (+Ub)
0
Reserved Free 0.2…
0.7
Start-up delay With this parameter, the output pulse
may be delayed by a set time period in ms
Switch-on time The parameter defines the switch-on
time period for the switching output in ms. If the value is 0, the signal is static.
Switch-on func­tion 1
Switch-on func­tion 2
This parameter specifies an event which can set the switching output.
This parameter specifies an event which can set the switching output. Switch-on function1 and switch-on function2 are OR linked.
Switch-off func­tion1
This parameter specifies an event which can reset the switching output.
1 UN-
0…65535ms0ms
SIGNED16
3 UN-
0…1300ms 400ms
SIGNED16
5 UNSIGNED8 see chapter
8.12.3 "Switch-on and switch­off functions for operation as an output"
6 UNSIGNED8 see chapter
8.12.3 "Switch-on and switch­off functions for operation as an output"
7 UNSIGNED8 see chapter
8.12.3 "Switch-on and switch­off functions for operation as an output"
5
0
1
Switch-off func­tion2
This parameter specifies an event which can reset the switching output. Switch-off function1 and switch-off function2 are OR linked.
8 UNSIGNED8 see chapter
8.12.3 "Switch-on and switch-
0
off functions for operation as an output"
Leuze electronic GmbH + Co. KG BCL 248i 91
Starting up the device - Configuration
Parameter Description Addr. Data type Value range Default
Comparative value (event counter)
Comparison mode (Event Counter)
Reset mode (Event Counter)
Parameter length
23bytes
Input data
None
If the number of activation events of the selected switch-on function reaches this comparative value, the switching output is activated. A de­activation event of the selected switch-off function resets the counter.
Specifies whether the switching out­put switches only on parity (once) or also in the event of greater or equal to (multiple times) after the compara­tive value is reached.
Specifies whether the counter (Event Counter) is reset only by the reset bit and the selected switch-off function, or if the counter should be automati­cally reset after the comparative value is reached.
9 UN-
0…65535 0
SIGNED16
11 UNSIGNED8 0: SWO
switches once
1: SWO switches sev­eral times
12 UNSIGNED8 0: Reset bit
and switch­off function
1: Compara­tive value reached
0
0
8.12.7
Output data
None
Comment
The bias level also defines whether the output is low-active (0) or high-active (1).
Switching on an I/O configured as an output means switching to the active state; switching off, on the other hand, results in switching to the inactive or idle state.
Module 74 – SWIO status and control
PROFINET-IO module identifier
Module ID: 1074
Submodule ID:1
Description
Module for handling switching input and switching output signals.
Parameter
None
Input data
Tab.8.42: Input data for module74
Input data Description Addr. Data type Value range Initial
value
State1 Signal state of the switching in-
0.0 Bit 0, 1 0
put1
State2 Signal state of the switching out-
0.1 Bit 0, 1 0
put2
Leuze electronic GmbH + Co. KG BCL 248i 92
Starting up the device - Configuration
Input data Description Addr. Data type Value range Initial
Reserved 1.0 Bit
Reserved 1.1 Bit
value
Comparison state switching output 2 (event counter)
Indicates whether the event counter has exceeded the set comparative value. The bit is re-
1.2 Bit 0: Not exceeded
1: Exceeded
0
set to the init. value by resetting the event counter.
Comparison state toggle bit of switching output 2 (event counter)
If "SWO switches several times" was configured as comparison mode, this bit is toggled each time the event counter is ex­ceeded. The bit is reset to the init. value by resetting the event counter.
1.3 Bit 0 > 1: Event counter ex­ceeded
1 > 0: Event counter ex­ceeded again
0
Input data length:
2bytes
Output data
Tab.8.43: Output data for module74
Output data Description Addr. Data type Value range Initial
value
Reserved 0.0 Bit
Switching output2Sets the state of switching out-
put 2
0.1 Bit 0: Switching out­put 0
0
1: Switching out­put 1
Reset event counter switching output 2
Output data length:
2bytes
8.13 Data output
8.13.1
Module 80 – Sorting
PROFINET-IO module identifier
Module ID: 1080
Submodule ID:1
Description
Module to support the sorting of the output data.
Sets the event counter of the ac-
0.5 Bit 0 > 1: Perform
tivation function (AF) for switch­ing output 2 back to zero.
Reserved 1 Byte
reset
1 > 0: No func­tion
Leuze electronic GmbH + Co. KG BCL 248i 93
Starting up the device - Configuration
Parameter
Tab.8.44: Parameters for module 80
Parameter Description Addr. Data
type
Sort criterion 1 Specifies the criterion ac-
cording to which sorting
0.0… 0.6
BitArea 0: No sorting
takes place.
Value range Default
0
1: Sorting according to scan number
2: Sorting according to posi­tion in the scanning beam
4: Sorting according to the decoding quality
5: Sorting according to the bar code length
6: Sorting according to the code type number
7: Sorting according to the decoding direction
8: Sorting according to the bar code content
9: Sorting according to time
10: Sorting according to scanning duration
11: Sorting according to the code list (in which the en­abled bar codes are listed)
12: Sorting according to the identifier list
Sort direction 1 Specifies the sorting di-
rection.
Sort criterion 2 Specifies the criterion ac-
cording to which sorting takes place.
Sort direction 2 Specifies the sorting di-
rection.
Sort criterion 3 Specifies the criterion ac-
cording to which sorting takes place.
Sort direction 3 Specifies the sorting di-
rection.
Parameter length
3bytes
Input data
None
Output data
None
0.7 Bit 0: In ascending order
1: In descending order
1.0…
BitArea See sorting criterion 1 0
1.6
1.7 Bit See sorting direction 1 0
2.0…
BitArea See sorting criterion 1 0
2.6
2.7 Bit See sorting direction 1 0
0
Leuze electronic GmbH + Co. KG BCL 248i 94
Starting up the device - Configuration
8.14 Reference code comparison
The following modules can be used to support reference code comparison.
The reference code function compares the currently decoded read results with one or more stored compari­son patterns. The function is split into two comparison units which can be configured independently of each other.
8.14.1
Module 81 – Reference code comparator1
PROFINET-IO module identifier
Module ID: 1081
Submodule ID:1
Description
The module defines the mode of operation of reference code comparator1.
Parameter
Tab.8.45: Parameters for module81
Parameter Description Addr. Data type Value range Default
Output function after reference bar code compar­ison
This parameter specifies the associated output linkage after a reference bar code comparison.
0 UNSIGNED8 0: No function
1: Comparison function 1
2: Comparison function 2
1
3: Comparison function 1 AND 2
4: Comparison function 1 OR 2
Linking logic for reference code output signal
This parameter specifies the linking logic for the reference code output signal.
1 UNSIGNED8 0: Length and type and
ASCII
1: Length and (type or ASCII)
0
2: (Length or type) and ASCII
3: Length or type or ASCII
Output for refer­ence code com­parison
This parameter specifies whether a bar code length comparison should be carried out.
2 UNSIGNED8 0: Length ignored
1: Comp. o.k., if length unequal
2
2: Comp. o.k., if length equal
Bar code type comparison
This parameter specifies whether a bar code type comparison should be carried out
3 UNSIGNED8 0: Type ignored
1: Comp. o.k., if types unequal
2
2: Comp. o.k., if types equal
Leuze electronic GmbH + Co. KG BCL 248i 95
Starting up the device - Configuration
Parameter Description Addr. Data type Value range Default
Reference code ASCII compari­son
Reference code comparison mode
This parameter specifies how the ASCII compari­son should be carried out.
This parameter deter­mines how and which reference bar codes (RC) are to be used for the bar code compari­son.
4 UNSIGNED8 0: No comparison
1: Bar code not identical to RC
2: Bar code identical to RC
3: Bar code greater than RC
4: Bar code greater than or equal to RC
5: Bar code less than RC
6: Bar code less than or equal to RC
7: RC1 less than or equal to bar code less than or equal to RC2
8: Bar code less than or equal to RC1 or bar code greater than RC2
5 UNSIGNED8 0: Only the first RC is
used for the comparison.
1: Only the second RC is used for the comparison.
2: RC1 and 2 are used for the comparison. Both conditions for RC1 and 2 must be satisfied for a positive comparison.
3: RC1 and 2 are used for the comparison. One of the two conditions for reference bar codes 1 and 2 must be satisfied.
2
0
Bar code com­parison mode
This parameter specifies which decoded bar codes are to be used for the reference bar code comparison.
6 UNSIGNED8 0: Only the first bar code
is used for the compari­son.
1: Only the second bar code is used for the com­parison.
2: All bar codes are used for the comparison. All comparisons must be successful.
3: All bar codes are used for the comparison. One comparison must be suc­cessful.
3
Leuze electronic GmbH + Co. KG BCL 248i 96
Starting up the device - Configuration
Parameter Description Addr. Data type Value range Default
8.14.2
Reference code completeness comparison
If this parameter is set, the basic condition for a positive reference code comparison is that all mandatory bar codes that are to be read within a reading gate were ac­tually read. If this condi­tion is not satisfied, no positive reference code comparison is achieved.
Parameter length
8bytes
Input data
None
Output data
None
Module 82 – Reference code comparator2
PROFINET-IO module identifier
Module ID: 1082
Submodule ID:1
7.0 Bit 0: Completeness com­parison switched off.
1: Completeness com­parison switched on.
0
Description
The module defines the mode of operation of reference code comparator2.
Parameter
Tab.8.46: Parameters for module82
Parameter Description Addr. Data type Value range Default
Output function after reference bar code compar­ison
This parameter specifies the associated output linkage after a reference bar code comparison.
0 UNSIGNED8 0: No function
1: Comparison function 1
2: Comparison function 2
1
3: Comparison function 1 AND 2
4: Comparison function 1 OR 2
Linking logic for reference code output signal
This parameter specifies the linking logic for the reference code output signal.
1 UNSIGNED8 0: Length and type and
ASCII
1: Length and (type or ASCII)
0
2: (Length or type) and ASCII
3: Length or type or ASCII
Output for refer­ence code com­parison
This parameter specifies whether a bar code length comparison should be carried out.
2 UNSIGNED8 0: Length ignored
1: Comp. o.k., if length unequal
2
2: Comp. o.k., if length equal
Leuze electronic GmbH + Co. KG BCL 248i 97
Starting up the device - Configuration
Parameter Description Addr. Data type Value range Default
Bar code type comparison
Reference code ASCII compari­son
This parameter specifies whether a bar code type comparison should be carried out
This parameter specifies how the ASCII compari­son should be carried out.
3 UNSIGNED8 0: Type ignored
1: Comp. o.k., if types unequal
2: Comp. o.k., if types equal
4 UNSIGNED8 0: No comparison
1: Bar code not identical to RC
2: Bar code identical to RC
3: Bar code greater than RC
4: Bar code greater than or equal to RC
5: Bar code less than RC
6: Bar code less than or equal to RC
7: RC1 less than or equal to bar code less than or equal to RC2
8: Bar code less than or equal to RC1 or bar code greater than RC2
2
2
Reference code comparison mode
Bar code com­parison mode
This parameter deter­mines how and which reference bar codes (RC) are to be used for the bar code compari­son.
This parameter specifies which decoded bar codes are to be used for the reference bar code comparison.
5 UNSIGNED8 0: Only the first RC is
used for the comparison.
1: Only the second RC is used for the comparison.
2: RC1 and 2 are used for the comparison. Both conditions for RC1 and 2 must be satisfied for a positive comparison.
3: RC1 and 2 are used for the comparison. One of the two conditions for reference bar codes 1 and 2 must be satisfied.
6 UNSIGNED8 0: Only the first bar code
is used for the compari­son.
1: Only the second bar code is used for the com­parison.
2: All bar codes are used for the comparison. All comparisons must be successful.
3: All bar codes are used for the comparison. One comparison must be suc­cessful.
0
3
Leuze electronic GmbH + Co. KG BCL 248i 98
Starting up the device - Configuration
Parameter Description Addr. Data type Value range Default
8.14.3
Reference code completeness comparison
If this parameter is set, the basic condition for a positive reference code
7.0 Bit 0: Completeness com-
comparison is that all mandatory bar codes that are to be read within a reading gate were ac­tually read. If this condi­tion is not satisfied, no positive reference code comparison is achieved.
Parameter length
8bytes
Input data
None
Output data
None
Module 83 – Reference code comparison pattern1
PROFINET-IO module identifier
Module ID: 1083
Submodule ID:1
0
parison switched off.
1: Completeness com­parison switched on.
Description
This module can be used to define the 1st comparison pattern
Parameter
Parameter Description Addr. Data type Value range Default
Code type com­parison pattern1
Specifies the type of the ref­erence bar code.
0 UNSIGNED8 0: No code
1: 2/5 Interleaved
0
2: Code39
3: Code32
6: UPC, UPCE
7: EAN8, EAN13
8: Code128
10: EAN Addendum
11: Codabar
12: Code93
13: GS1 DataBar Omnidirectional
14: GS1 DataBar Limited
15: GS1 DataBar Omnidirectional Ex­panded
Leuze electronic GmbH + Co. KG BCL 248i 99
Starting up the device - Configuration
Parameter Description Addr. Data type Value range Default
Comparison pat­tern 1
Parameter length
31bytes
Input data
None
Parameter string describing the content of the reference bar code.
Note: You can also use the two placeholder characters that are stored in the "Wild­card character" and "Don't care character" parameters. If the string is empty, no comparison takes place. If the most recently stored character is the wildcard character, the comparison is only carried out up to the character before this wild­card character. In this way it is possible to switch off a comparison according to bar code length.
1 STRING
30characters null termi­nated
1…30 bytes of ASCII characters
\00
8.14.4
Output data
None
NOTICE
The defined comparison pattern affects both reference code comparators (module81 – refer­ence code comparator1 and module82 – reference code comparator2).
ASCII characters that cannot be displayed (<0x20h) must not be used in the comparison pat­tern.
Module 84 – Reference code comparison pattern2
PROFINET-IO module identifier
Module ID: 1084
Submodule ID:1
Description
This module can be used to define the 2nd comparison pattern
Leuze electronic GmbH + Co. KG BCL 248i 100
Loading...