Copying or reproductions in any form require the written consent of the manufacturer.
Product names are used without a guarantee of free usage.
Changes reflecting technical improvements may be made.
Table of contents
1General Information .........................................................................5
The symbols used in this operating manual are explained below.
Attention!
Pay attention to passages marked with this symbol. Failure to heed this information can lead
to injuries to personnel or damage to the equipment.
Attention Laser!
This symbol warns of possible danger through hazardous laser radiation.
Notice!
This symbol indicates text passages containing important information.
1.2Declaration of Conformity
The bar code reader BCL 21/22 SB and the connector units MA … have been developed
and produced in accordance with the applicable European standards and directives.
The bar code reader BCL 21/22 SB also fulfills the UL requirements (Underwriters
Laboratory Inc.) for the USA and Canada.
General Information
Notice!
You can find the Declaration of Conformity of the devices in the appendix on page 86.
The manufacturer of the product, Leuze electronic GmbH & Co KG in D-73277 Owen,
possesses a certified quality assurance system in accordance with ISO 9001.
The bar code readers BCL 21/22 and the connector units MA … have been developed,
produced and tested subject to the applicable safety standards. They correspond to the
state of the art.
2.2Intended Use
Attention!
This product may only be used by qualified personnel and must only be used for the approved
purpose. This sensor is not a safety sensor and is not to be used for the protection of persons.
The protection of personnel and the device cannot be guaranteed if the device is operated
in a manner not corresponding to its intended use.
Bar code readers of the type BCL 21/22 are conceived as stationary, high-speed scanners
with integrated decoders for all current bar codes used for automatic object recognition.
The connector and interface units MA … are intended for the easy connection of bar code
readers of type BCL 21/22.
In particular, unauthorized uses include:
• rooms with explosive atmospheres
• operation for medical purposes
Areas of application
The bar code readers BCL 21/22 with optional connector unit MA … are conceived
particularly for the following fields of application:
• labeling and packaging machines
• automatic analyzers
• storage and conveying technologies, in particular for object identification on fastmoving conveyor belts
Access to or changes on the device, except where expressly described in this operating
manual, is not authorized.
Safety regulations
Observe the locally applicable legal regulations and the rules of the employer's liability
insurance association.
Qualified personnel
Mounting, commissioning and maintenance of the device must only be carried out by
qualified personnel.
Electrical work must be carried out by a certified electrician.
Attention Laser Radiation!
WARNING: The bar code reader BCL 21/22 SB operates with a blue light laser of class 2
acc. to EN 60825-1. If you look into the beam path over a longer time period, the retina
of your eye may be damaged!
Never look directly into the beam path!
Do not point the laser beam of the BCL 21/22 SB at persons!
Safety Notices
When mounting and aligning the BCL 21/22 SB, take care to avoid reflections of the
laser beam off reflective surfaces!
Heed the laser safety regulations according to DIN EN 60825-1 in their most current
version! The output power of the laser beam at the reading window is at most 1.8mW
acc. to (DIN) EN 60825-1.
The BCL 21/22 SB uses a laser diode with low power in the visible blue light range with
an emitted wavelength of 405 nm.
CAUTION - the use of operating and adjusting devices other than those specified here
or carrying out of differing procedures may lead to dangerous exposure to radiation!
Two mounting threads M3 each
(4mm thread depth) on the rear
and bottom side of the device
Cable with 15-pin Sub-D
connector or with panel
connectors for connection
to MA …
Mounting slider
BCL 21/22 device construction
Figure 3.1:BCL 21/22 device construction
3.1The bar code readers BCL 21/22
The bar code readers BCL 21/22 are high-speed scanners with integrated decoder for all
bar codes currently in use, e.g. 2/5 Interleaved, EAN etc.
The many possible configurations allow the adaptation of the device to a multitude of
reading tasks. Due to the small dimensions, the BCL 21/22 may also be used in highly
constrained spaces. The low weight permits the installation into machines that were not
designed for heavy components. The various beam exits (perpendicular/front side) extend
the area of application of the BCL 21/22 and help it to adapt.
The connector units MA … offer simple electrical installation in conjunction with the BCL 21.
Information on technical data and characteristics can be found in chapter 4.
BCL 22 "stand alone"
The bar code reader BCL 22 is operated as a "stand-alone" device on the RS 232 interface.
The BCL features a cable for the electrical connection of the supply voltage, the interface,
and the switching inputs.
BCL 21 with MA2/MA 4…
If several BCLs are to be networked, the use of a connector unit MA 2/MA 4… is recommended for each BCL 21 with RS 485 interface. Electrical connection, commissioning, and
service can be comfortably carried out in a short period of time. BCL 21 and MA 2/MA 4…
are arranged separately. The two devices are connected by a cable.
Up to 30 scanners can be networked via the connector unit MA 2 and a bus master MA 30/31.
For this, every BCL 21 is assigned its own hardware address in the corresponding MA 2. The
devices are networked by connecting the individual RS 485 interfaces in parallel.
multiNet plus
In the Leuze multiNet plus, the individual network devices sequentially transfer their data to
the network master MA 30/31 when requested. In addition, every bus node declared a slave
receives a device address which is adjusted in the corresponding MA 2/MA 4… via a coding
switch. The device address remains in the MA 2/MA 4… when the scanner is replaced.
The master then transmits the data of all network devices via its host interface to a primary
PLC control system or a computer, i.e. it "collects" the scanner data in the network and
transmits them to an interface on the host computer. This reduces interface costs (CPs) and
time spent programming the software.
Networking via multiNet plus
Figure 3.2:Networking possibilities using the multiNet plus (BCL 21)
The Leuze multiNet plus is optimized for fast transmission of scanner data to a primary host
computer. The multiNet plus consists physically of a two-wire RS 485 interface through
which the multiNet plus software protocol is controlled. This makes wiring the network easy
and inexpensive as slaves are connected to one another in parallel.
Interface modules
Shielded, twisted pair conductors should be used for the multiNet. This allows a total
network length of up to 1200 m. Connection of the network to the primary computer is made
via the host interface of the MA 30/31 which can be equipped with 4 different physical
interface modules. The available options are modules for RS 422, RS 232, TTY or RS 485.
Fieldbus connection
The MA 2xxi connector unit (see chapter 5.1 "Accessories") is available for connecting the
BCL 22 to all common fieldbus systems.
BCL 22: 2 switching outputs, 2 switching inputs
Operating voltage10 … 30V DC (PELV)
Power consumption3.2W
Safety classIII
Mechanical data
Protection classIP 54 acc. to IEC 60529
Weight180g/260g with cable
Dimensions (WxHxD)82mm x 68mm x 28mm
Housingplastic ABS / PC
Optical windowglass
Environmental conditions
Ambient temperature 0°C … +40°C/-20 °C … +60°C (operation/storage)
Air humiditymax. 90% rel. humidity, non-condensing
VibrationIEC 60068-2-6, test FC
ShockIEC 60068-2-27, test Ea
Electromagnetic compatibility EN 61000-6-2:2005, EN 61000-6-3:2007
ConformityCE, UL, FCC class B
1) For UL applications: use is permitted exclusively in Class 2 circuits according to NEC
2 = LP (circuit board connector to MA 2/MA 4…/MA 2xxi)
3 = SUB-D 15-pin
Resolution / operating range:
B = Medium Density up to 220mm
Reading characteristics:
S = single line scanner
Host interface:
21 = RS 485
22 = RS 232
Notice!
Please note that the size of the bar code module influences the maximum reading distance
and the width of the reading field. Therefore, when selecting a mounting location and/or the
bar code label, take into account the different reading characteristics of the scanner with
various bar code modules.
For different reading tasks, the BCL 21/22 SB is available in various versions. Please refer
to the following table or the respective scanning curves for ratings.
Type overview BCL 21 with RS 485 interface and integrated decoder
TypePart no.RangeScan rate
(scans/s)
BCL 21 S B 30050114706220 mm800Line scanner
BCL 21 S B 30250114707220 mm800Line scanner
BCL 21 S B 20050117069220 mm800Line scanner
BCL 21 S B 20250117070220 mm800Line scanner
Modular connector units and accessories see chapter 5.1
Table 4.3:Overview of the BCL 21 types
Reading characteristics
Type overview BCL 22 with RS 232 interface and integrated decoder
TypePart no.RangeScan rate
(scans/s)
BCL 22 S B 30050114714220 mm800Line scanner
BCL 22 S B 30250114715220 mm800Line scanner
BCL 22 S B 20050117071220 mm800Line scanner
BCL 22 S B 20250117072220 mm800Line scanner
Modular connector units and accessories see chapter 5.1
Reference code for determining the reading curves:
2/5 Interleaved, Ratio 1:2.5, Grade <A>
The BCL 21/22 SB is available with an optical variant
(see chapter 4.1 "General Specifications BCL 21/22 SB").
• B optics: optimized for codes from 167 μm.
The following reading curve provides information about the operating ranges of the
BCL 21/22 SB.
Notice!
Please notice that the real scanning curves are also influenced by factors such as labeling
material, printing quality, scanning angle, printing contrast etc., and may thus deviate from
the scanning curves specified here.
Scanning curves BCL 21/22 with B optics
90
80
70
60
50
40
30
20
10
0
-10
-20
-30
-40
-50
-60
-70
-80
-90
0 204060240
100
80
120140
m = 0.2 mm
m = 0.165 mm
160180200220
Specifications
m = 0.165 mm
m = 0.2 mm
m = 0.3 mm
m = 0.3 mm
TNT 35/7-24V
Figure 4.3:Reading field of the B-optics version optimized for codes from 167μm
Products from Leuze electronic GmbH & Co KG can be ordered from any of the sales and
service offices listed on the back of the cover page of this operating manual.
General accessories BCL 21 and BCL 22
AccessoriesPart no.InterfaceVoltageFunction
BCL-Config50031298––
BT 2050060503––
BT 2150037473––Stainless steel mounting device for BCL 21/22
The mounting device BT 20/21 (stainless steel) is available for mounting the BCL 21/22. It
permits both rod mounting and installation via sheet metal clamp.
When transporting, package the device so that it is protected against collision and humidity.
Optimal protection is achieved when using the original packaging. Heed the required
environmental conditions specified in the technical data.
Unpacking
Check the packaging 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 nameplate
• accessories
• operating manual
The name plate provides information as to what BCL type your device is. For specific
information, please refer to chapter 4.4.1.
Name plates, BCL-models
Installation
Figure 6.1:Device name plate BCL 21/22
Save the original packaging for later storage or shipping.
If you have any questions concerning your shipment, please contact your supplier or your
local Leuze electronic sales office.
Observe the applicable local regulations when disposing of the packaging materials.
Cleaning
Clean the glass window of the BCL 21/22 with a soft cloth be fore mounting. Remove all
packaging remains, e.g. carton fibers or Styrofoam balls.
Attention!
Do not use aggressive cleaning agents such as thinner or acetone for cleaning the device.
Follow the safety notices in chapter 2.3 on page 7!
Mounting devices are available which have to be ordered separately as accessory at Leuze
electronic. For order numbers, see chapter 5.
The mounting device BT 20 is suitable both for rod mounting (d = 12mm) and for mounting using
a sheet metal clamp if the sheet metal is 1.5 … -3mm thick. Otherwise, the mounting threads
at the back and bottom side of the device are suitable for installation of the BCL 21/22 according
to its area of application.
You can mount the connector units MA 2/MA 4…/MA 2xxi individually through the holes
Ø 5mm located on the mounting plate (see figure 5.2 and figure 5.4).
Then connect the BCL 21/22 with the connector unit MA 2/MA 4…/MA 2xxi as described
in chapter 6.3.2.
Attention!
Only operate the device in a permanently mounted fitting position. Take appropriate
measures to protect the device from physical shocks and mechanical damage.
6.2.1Device Arrangement
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 BCL 21/22 in relation to the bar code module width
• the resulting minimum and maximum reading distance from the respective reading
field
For specific information, please refer to chapter 4.4.
Notice!
The best reading results are obtained when
• the bar code is moved along the reading window at an angle of approx. 9 … 15°.
• the reading distance lies in the middle area of the reading field.
• you do not use high-gloss labels.
Application examples
Installation
Figure 6.3:Applications with perpendicular and front side beam exit
Mounting location
When selecting a mounting location, pay attention to
• maintaining the required environmental conditions (temperature, humidity).
• possible soiling of the reading window due to liquids, abrasion by boxes, or packaging
material residues.
• lowest possible chance of damage to the scanner by mechanical collision, vibrations
or jammed parts.
Do not open the device yourself under any circumstances! There is otherwise a risk of
uncontrolled emission of laser radiation from the device. The housing of the BCL 21/22
contains no parts that need to be adjusted or maintained by the user.
Before connecting the device, be sure that the supply voltage agrees with the value printed
on the nameplate.
Connection of the device and maintenance work while under voltage must only be carried
out by a qualified electrician.
The power supply unit for the generation of the supply voltage for the BCL 21/22 and the
MA 2/MA 4…/MA 2xxi must have a secure electrical insulation through double insulation
and safety transformers according to EN 60742/IEC 60742 (functional low voltage).
Be sure that the earthing conductor is connected correctly. Error-free operation is only
guaranteed when the device is properly earthed.
If faults cannot be corrected, the device should be removed from operation and protected
against possible use.
Connection of the BCL is considerably easier when using the MA 2/MA 4…. The BCL 21 is
alternately equipped with flat connectors which enable connection to the MA 2/MA 4…
connector unit.
BCL 21/22 JST system pin assignments
10-pol. (ZHR10)
1
2
3
4
5
6
7
8
9
10
ws-br/WH-BN
1
ws-rt/WH-RD
2
ws-or/WH-OG
3
ws-ge/WH-YE
4
ws-gn/WH-GN
5
ws-sw/WH-BK
6
ColorPIN
br/BN
rt/RD
or/OG
ge/YE
gn/GN
bl/BU
vi/VI
gr/GY
ws/WH
SH
ZHR10
ZHR6
6-pol. (ZHR6)
BCL 21BCL 22
SignalSignal
RS 485 GND
RS 485 A
RS 485 B
RxD_Serv
TxD_Serv
/Serv
SWIN1
VIN
GNDIN
FE
Unscrew the four screws on the front side of the MA 2/MA 4… and carefully lift off the
lid of the housing. Now you have proper access to all components within the connector
unit.
Notice!
All electrical connections can be carried out on the terminal strip quickly and without
screwing down or soldering. Wires with ferruled ends can be inserted directly into the
terminal without depressing the clamping lever.
Attention!
The electrical connection of the BCL and corresponding MA… must only be made while in
a de-energized state.
Terminals 1 to 6 as well as 23 and 24 in the MA 2 are assigned as described below. For
wiring through, the RS 485 interface at the MA 2 is implemented twice:
In the connector unit MA 2, the connections for the voltage supply are implemented twice.
This permits wiring through or the voltage supply of additional components.
Table 6.4:Terminal assignment voltage supply
Notice!
It is imperative that the functional earth FE also is wired through to avoid electromagnetic
interference.
Switching inputs 1 and 2
The MA 2 connector unit is equipped with two switching inputs SE 1 and SE 2 (SE 2 can
only be activated with BCL 22).
Table 6.5:Terminal assignment switching inputs
TerminalSignalFunction
17V_INOperating voltage 10 … 30 VDC
18V_INOperating voltage 10 … 30 VDC
19GND_INOperating voltage 0 VDC
20GND_INOperating voltage 0 VDC
21FEFunctional earth
22FEFunctional earth
The MA 2 is equipped with 2 switching outputs SA1 and SA2 (SA 2 can only be activated
with BCL 22) which can be programmed for various switching functions using the
"BCLConfig" software.
• Output voltage corresponds to operating voltage
• Output current: I
The switching voltage for the output is generated by the operating voltage V_IN:
• VDD_SA = VDD_IN
•GND_SA = GND_IN
TerminalSignalFunction
13SA2Switching output 2
14SA1Switching output 1
16GND_SAExternal supply voltage for switching output 0VDC
A Setting of the device address F Terminal strip
B Setting of the device address G Connection BCL
C Service/operation switch H Service interface
D Attached label with terminal assign. for RS232
Terminals 1 to 6 as well as 23 and 24 in the MA 4/MA 4D are assigned as described below.
For wiring through, the RS 485 interface at the MA 4/MA 4D is implemented twice:
Table 6.7:Terminal assignment MA 4/MA 4D
Voltage supply
In the connector unit MA 4/MA 4D, the connections for the voltage supply are implemented
twice. This permits wiring through or the voltage supply of additional components.
Table 6.8:Terminal assignment voltage supply
TerminalSignal
1RS 485 A
2RS 485 A
3RS 485 B
4RS 485 B
5GND 485
6GND 485
23RXD (service)
24TXD (service)
TerminalSignalFunction
17V_INOperating voltage 10 … 30 VDC
18V_INOperating voltage 10 … 30 VDC
19GND_INOperating voltage 0 VDC
20GND_INOperating voltage 0 VDC
21FEFunctional earth
22FEFunctional earth
Notice!
It is imperative that the functional earth FE also is wired through to avoid electromagnetic
interference.
The MA 4/MA 4D is equipped with two switching outputs (SA1 and SA2) which can be
programmed for various switching functions using the "BCLConfig" software.
• Output voltage corresponds to operating voltage
• Output current: I
The switching voltage for the output is generated by the operating voltage V_IN:
• VDD_SA = VDD_IN
•GND_SA = GND_IN
TerminalSignalFunction
13SA2Switching output 2 (with BCL 22 only)
14SA1Switching output 1
16GND_SAExternal supply voltage for switching output 0V DC
Position of the connectors in the MA 4 1xx/MA 4 D 1xx
A
B
C
D
E
F
G
H
J
RS485
485A
1
485A
2
485B
3
485B
4
GN
D
5
G
N
D
6
RS232
RXD
1
T
XD
2
C
T
S
3
R
T
S
4
- 5G
ND
6
TTY
T
X+ 1TX- 2
RX+ 3
RX- 4
- 5
GND 6
pas.
TX
akt.
pas.
RX
akt.
RS422
T
X
+
1
T
X-
2
RX+ 3
RX-
4
-
5
GND 6
MA 4x 100MA 4x 110MA 4x 120MA 4x 130
A Setting of the device address 0-15 or 16-31F Service interface
B Setting of the device address G Service/operation switch
C Interface moduleH Connection BCL
D Terminal stripJ Jumper TTY active/passive
(MA 4x 120 … only)
E Attached label with terminal designation
Installation
Figure 6.10: Connector unit MA 4 1xx/MA 4 D 1xx
Wiring description
Terminals 1 to 6 in the MA 4 1xx/MA 4 D 1xx are assigned as described below. For wiring
through, the RS 485 interface at the MA 4 100/MA 4 D 100 is implemented twice:
The operating mode active/passive is selected via the two jumpers on the TTY interface
module (MA 4 120/MA 4 D 120).
Voltage supply
In the connector unit MA 4 1xx/MA 4 D 1xx, the connections for the voltage supply are implemented twice. This permits wiring through or the voltage supply of additional components.
Table 6.12:Terminal assignment voltage supply
Notice!
It is imperative that the functional earth FE also is wired through to avoid electromagnetic
interference.
Switching inputs 1 and 2
The connector unit MA 4 1xx/MA 4 D 1xx has two switching inputs SE 1 and SE 2.
TerminalSignalFunction
17V_INOperating voltage 10 … 30 VDC
18V_INOperating voltage 10 … 30 VDC
19GND_INOperating voltage 0 VDC
20GND_INOperating voltage 0 VDC
21FEFunctional earth
22FEFunctional earth
The MA 4 1xx/MA 4 D 1xx is equipped with two switching outputs (SA1 and SA2) which can
be programmed for various switching functions using the "BCLConfig" software.
• Output voltage corresponds to operating voltage
• Output current: I
The switching voltage for the output is generated by the operating voltage V+:
•VDD_SA = V_IN
•GND_SA = GND_IN
TerminalSignalFunction
13SA2Switching output 2
14SA1Switching output 1
16GND_SAExternal supply voltage for switching output 0V DC
6.3.3Connection of the BCL 22 with connector unit/gateway MA 2xxi
The MA 2xxi connector units/gateways are equipped with an internal RS 232 device
interface which is accessible after the device is opened.
The device interface is prepared for the circuit-board system plugs (JST ZHR10 and ZHR6)
of types BCL22SB2xx, see connections X31 and X32 in figure 6.12.
Figure 6.12: RS 232 device interface
Opening MA 2xxi housing
Unscrew the four screws on the front side of the MA 2xxi and carefully lift off the lid of
the housing. Now you have proper access to all components within the connector unit.
For later re-use, the device is to be packed so that it is protected against shocks and
dampness. Optimal protection is achieved when using the original packaging.
Installation
meshing
flexible leads as twisted pairs
Notice!
Electrical scrap is a special waste product! Observe the locally applicable regulations
regarding disposal of the product.
Operating mode switch:
Switch in upper pos.:
operation
Switch in lower pos.:
service
Jumper for setting the
device address range:
Jumper above:
addr. 0 … 15
Jumper below:
addr. 16 … 31
7Commissioning
Attention Laser Radiation!
Follow the safety notices in chapter 2.3 on page 7!
7.1Measures to be performed prior to the initial commissioning
Before commissioning, familiarize yourself with the operation and configuration of the
device(s)!
Before switching on, recheck all connections and ensure that they have been properly
made.
Configuration elements using the example of the MA 2
Figure 7.1:Configuration elements in the MA 2
Setting the device address
The device address is set in the MA 2/MA 4… using a rotary code switch. The setting is
carried out as follows:
Set the device address to
• 0, if the combined BCL 21 / MA 2/MA 4… unit will not be operated in a network,
• 1…30, if several BCL 21 / MA 2/MA 4… units will be operated in a network. Each
Notice!
Address 31 is used for resetting the parameters.
multiNet plus network device must have a different device address assigned to it. If
the MA 2/MA 4… is connected to the multiNet Master, the device combination BCL 21
with MA 2/MA 4… automatically turns into a multiNet plus slave device.
From the hardware address, the BCL 21 detects that networking is required. With the
BCL 21/22, it is possible to perform a reset using the software and the online commands.
In addition, it is possible to perform a reset by switching off the supply voltage. The parameters are not lost as a result of the reset. For information on the reset commands, see
chapter 9. The LED remains dark during a reset; the green LED illuminates when the device
is ready for operation.
7.2Function Test
"Power On" test
After connecting the operating voltage, the devices carry out an automatic "Power On"
function test. The LED on the front side of the MA 2/MA 4…/MA 2xxi lights up. In the case
of factory settings, the green LED flashes. In the additional service mode, the orange LED
lights up.
Interface
Proper function of the interface can be tested easiest in service operation using the service
interface with the "BCLConfig" programming software and a notebook computer. For order
numbers, see chapter 5.
"Online commands"
Using the "Online" commands, important device functions can be checked, e.g. proper
functioning of the laser.
Commissioning
Problems
Should problems occur during device commissioning, refer first to chapter 8.2. Should a
problem persist after checking all electrical connections and settings on the devices and
host, please contact a Leuze service office near you (see the back page of this operating
manual).
In the device combination BCL 21/22 with MA 2/MA 4…, two different parameter sets are
managed:
•factory default parameter set
• current parameter set
Before a parameter set is loaded into the BCL 21/22 processor memory, the validity of the
parameter set is checked using checksums.
Factory default parameter set
This parameter set contains the default settings made ex works for all BCL 21/22 parameters. It is permanently stored in the ROM of the BCL 21/22. The parameter set with the
default settings is loaded into the memory of the BCL 21/22,
• the first time the device is commissioned after delivery
• following the command "Factory Default" in the parameterization program
• if the checksums of the current parameter set are invalid.
Current parameter set
In this parameter set, the current settings for all device parameters are stored. When the
BCL 21/22 is in operation, the parameter set is stored in the EEPROM of the BCL 21/22.
The current set can be stored:
• by copying a valid parameter set from the host computer
• by means of an off-line setup with the PC setup program BCLConfig
The current parameter set is loaded into the memory of the BCL 21/22,
• each time the supply voltage is connected
• following a software reset
7.3.1Service operating mode
Setting the required parameters is carried out easiest in the 'Service' operating mode.
Service interface
By switching the operating mode switch in the MA 2/MA 4…/MA 2xxi from operation (switch
in upper pos.) to service (switch in lower pos.), the connection to the host computer is
interrupted and the RS 232 interface is activated. At the BCL 22, the interface is activated
via a bridge between the pins 7 and 15 on the 15-pin sub-D connector.
The connector unit MA 2/MA 4…/MA 2xxi offers a service interface for commissioning the
reading stations in a network. This interface can be accessed by removing the housing
cover. It has a 9-pin Sub-D connector (see figure 7.1).
A PC or terminal can be connected to the MA 2/MA 4…/MA 2xxi via the RS 232/V.serial
interface and used to set the parameters of the BCL 21/22. The connection is made using
a crossed RS 232 connection cable that establishes the RxD, TxD and GND connections.
A hardware handshake via RTS, CTS is not supported at the service interface.
Service Operating Mode
Figure 7.2:Connecting the MA … service interface to a PC or terminal
Notice!
The service interface contains a predefined transmission protocol with the following
parameters:
Follow the safety notices in chapter 2.3 on page 7!
8.1Display Elements
A LED labeled "SWO" is located on top of the MA 2/MA 4…. It indicates the state of the
switching output 1. On the BCL 21/22, you can find LEDs that indicate different states. For
detailed information regarding the state displays of the LEDs please refer to chapter 4.2.
8.2Error Handling
Errors are indicated on the BCL 21/22 via the ERR LED. Additional error, warning and status
messages are transmitted via the Host interface.
Types of errors
Errors are divided up into the following types:
•Warnings
• Serious errors
Warnings
Warnings indicate temporary operating faults which do not affect the proper functioning of
the device.
Serious errors
Serious errors impair the proper functioning of the device. The device must be reinitialized.
Troubleshooting
Isolated warnings can be ignored, since the BCL 21/22 will continue to function properly.
Following a serious error, you should re-initialize the BCL 21/22. It will then usually again
function properly. If a hardware problem is present, the BCL 21/22 will not reinitialize.
Warnings and errors which occur frequently can be corrected easiest using the BCLConfig
software.
If you cannot correct faults and errors with the software, please contact a Leuze electronic
sales office or service facility. For addresses, please refer to the back page of this operating
manual.
Device parameters can be set using the automatic configuration "autoConfig", via
commands at the serial interface or using the easy-to-use "BCLConfig" control software.
9.1Installing the "BCLConfig"-software
Place the installation CD in your CD/DVD drive or load the download the program to your
PC from the download area of www.leuze.com
Call up the installation file (e.g. Setup.exe)
The following window appears:
Installation window
Communicating with the Device
.
Figure 9.1:Installation window
Confirm the following license agreement and select the installation path in the following
window:
types which are to actually be read with the corresponding element numbers.
Important: Code 1 must always be selected. If multiple code types are to be used, set in
sequential order: Code 1, Code 2, …
An area is represented by a dashed line: e.g. 4-40 digits.
With 2 or 3 different element entries
by a comma: e.g: 8,13 digits
The combination is also possible,
but the range must be specified first: e.g.: 4-10,20 digits
settings, such as the check digit, can be selected.
Here, the number of the bar codes to be decoded within a read cycle (one reading gate) is
set.
TNT 35/7-24V
Important Parameters
10.1.1 Properties of the Code menu
Figure 10.2: Standard setting of the properties of the Code menu
Quiet zone sizeQuiet zone: the area to the left and right of the bar code
Module: width of the narrowest line in the bar code or narrowest gap in the bar code
According to the code specifications, each bar code must have a quiet zone which
is 10 times as wide as the module of the bar code.
Ex: for a code having a module of 0.5mm, 5 mm blank space must be present at both
the left and right of the code.
By default, the scanner checks a quiet zone which is 7 times greater than the module.
This means that 7 times or greater is o.k.
Reading security
(equal scans)
No time correlationIf this parameter is set, a gap between two identical labels is ignored and they are
No position correlation If this parameter is set, then the position of a bar code label in the reading beam is
Notice!
In general, the remaining parameters must not be changed. In the worst case, this could
corrupt the reading result!
Specifies how often a code must be decoded before the result is valid and output.
Increasing this value increases the reading reliability, though does so at the expense
of the decoding time (more scans with the same content are necessary).
treated as a single label.
not taken into account. Identical labels are treated as a single label
10.2Output menu
Figure 10.3: Output menu
Output headerSelect from the options listed below. The output header is sent in a separate
Label headerThe Label header is set directly before the code data.
Important Parameters
message before the read result.
Label footerThe label footer is appended directly to the code data.
Message modeSelects whether the bar codes read are sent in concatenation or separately as
individual strings.
Notice!
The structure of this message string is depicted symbolically in the preview window.
No read stringThis character is set for each unrecognized bar code. Multiple characters (=string)
may be entered here. Up to 20 characters are possible.
PropertiesSet the desired formatting modes and formatting characters as necessary.
In this mode, the scanner reads via an internal trigger signal with maximum
performance. Attention: Up to 100 codes per second may be transmitted.
can be changed only via the tree structure.
the scanner automatically reactivates itself following a reading gate end.
Deactivation
Important Parameters
Switching input 1
function
Reading security
reached
(equal scans)
Command character The standard online character for the trigger end is the ´-´ character.
TimeFor test purposes.
Scans without infoFollowing a successful read, the scanner waits for this number of scans (sequential
10.4Communication
See menu "switching input"
If this item is activated, the read result is output immediately after the bar code is
decoded.
If the item is deactivated, the read result is sent only after the trigger signal is returned
(=end of reading gate).
This character can be changed only via the tree structure.
If the scanner is activated, the reading gate is automatically closed by the scanner
after this preset time has elapsed.
scans with no read result) before it automatically deactivates itself.
Figure 10.5: Standard setting of the communication menu
Select the desired baud rate, the stop bits, the data bits and the parity here. In addition,
several different handshake modes and protocols can be set here.
The RK512/3964 protocol can also be selected here. The individual parameters for this
protocol can be found in the tree-structure configuration: Communication -> Customer
Interface -> 3964 / RK 512 Protocol
Attention!
If the BCL 21 is operated in a network ("Leuze multiNet"), no changes may be made here.
The scanner automatically sets itself to the multiNet protocol!
10.4.1 Communication properties
Figure 10.6: Standard setting of the property menu
Here, the frame format (prefix/postfix), the address mode as well as a BCC mode can be set.
Attention!
If the BCL 21 is operated in a network ("Leuze multiNet"), no changes may be made here.
A reference code is bar code information which is stored in the memory of the scanner.
This reference code can be compared with the current decoded bar code in various modes
and, thus, the switching output be set appropriately. To do this, the switching output must
still be set to "By comparison of reference code X" in the "Switch" menu.
One way to store the reference code is to enter it manually in this menu. You can find further
options of the reference code teach-in in the chapter on online commands.
Important Parameters
Typ eSelect the code type.
InfoContents of the reference code
Compare modeSelect here how the internally stored reference code is to be compared with the
decoded result.
-> For additional comparison possibilities, please select the "Properties" menu
Online commands can be used to send commands directly to the device for control and
configuration.
For this the BCL 21/22 with MA … must be connected to a host or service computer via the
serial interface. The commands described can be sent either via the host or the service
interface.
Online commands
With the commands, you can
• control/decode.
• read/write/copy parameters.
• carry out an automatic configuration.
• call up error messages.
• call up statistical device information.
• carry out a software reset in order to reinitialize the device.
Syntax
"Online" commands consist of one or two ASCII characters followed by command
parameters.
No separation characters may be entered between the command and the command
parameter(s). Both small and capitalized letters can be used.
Example:
Command ’CA’: autoConfig function
Parameter ’+’:Activation
Transmitted is:’CA+’
Notation
Commands, command parameters and returned data are enclosed between single
quotation marks ’ ’ in the text of this manual.
Most online commands are acknowledged by the BCL 21/22 and any requested data
returned. For commands that are not acknowledged, command execution can be observed
or monitored directly on the device.
CA+ / -Automatic configuration of the reading task
CC+ / -Automatic code recognition
DMYesEngine diagnosis
DUV-Supply voltage diagnosis
DSYesDiagnosis status
ER-Request complete error buffer
H-Restart the device
JLA+ / -Adjustment of the laser-beam reading field start
JLD+ / -Adjustment of the laser-beam reading field end
JLE-Exit laser beam adjustment mode without saving
JLS-Exit laser beam adjustment mode with saving
JP+ / -Alignment mode
OA1 / 2Activate switching output
OD1 / 2Deactivate switching output
PCYesCopy parameter set (e.g.: PC20 -> factory setting)
PRYesRequest parameters from the BCL
PSYesAcknowledge parameter status
PTYesTransfer parameters
RR1...9Read out defined reference codes
RSYesManual definition of the reference code
RTYesReference code - teach-in
V-Output the device version
SS-Set system to standby (motor and laser off)
SA-Reactivate system (motor on, laser still off)
Command’V’
DescriptionRequests device version information
ParameterNo
Acknowledgement 'BCL 2x V 04.07 12.04.2011'
The device type appears in the first line followed by the device's version number and
date. (The data which are actually displayed may vary from the values given here.)
Notice!
Using this command, you can check whether the connected host or service computer is
properly connected and configured. If you do not receive an acknowledgement, please
check interface connections, protocol and service switches.
Software reset
Command’H’
DescriptionCarries out a software reset. The device is restarted and reinitialized, leaving it in the
same state as when the supply voltage is switched on.
DescriptionActivates or deactivates the 'autoConfig' function. Certain label reading parameters are
Parameter’+’ activates ’autoConfig’
Acknowledgement ’CSx’
Description’xx yy zzzzzz’
programmed automatically in the setup by the labels which are read while the
'autoConfig' function is active.
’/’ rejects the last code read
’-’ deactivates ’autoConfig’ and stores the decoded data in the current parameter set
x: Status
’0’ valid ’CA’ command
’1’ invalid command
’2’ autoConfig could not be activated
’3’ autoConfig could not be deactivated
’4’ result could not be deleted
xx: no. of digits of the read code
yy Code type of the read code
’01’ 2/5 Interleaved
’02’ Code 39
’03’ Code 32
’06’ UPC (A, E)
’07’ EAN
’08’ Code 128, EAN 128
’09’ Pharmacode
’10’ EAN Addendum
’11’ Codabar
’12’ Code 93
zzzzzz Contents of the decoded label. T he ↑ appears if the label was not correctly read.
DescriptionThis command is used for the easy mounting and alignment of the BCL 21/22. After
the function has been activated by ’JP+’, the scanner continuously supplies status
information via the serial interfaces.
With this online command, the scanner is set to terminate the decoding after
100 successfully decoded labels and output the status information. Subsequently, the
read process is reactivated automatically.
As status, the output returns the following values:
scans which contain the valid label information on the basis of 100 scans,
the decoding result.
These values can be used to determine the decoding quality.
In addition to the output of the status information, the laser beam is used to display
the reading quality. Depending on how many labels were able be extracted, the duration of the laser's "off" time increases.
If the reading quality is high, the laser beam flashes in brief, regular intervals. The
worse the decoder decodes, the longer the pauses become during which the laser is
switched off. The flashing intervals become more and more irregula r because the laser
may, in total, be active for longer to extract more labels. The duration of the pauses
has been stepped in such a way that they can be distinguished by the eye.
Parameter’+’: starts the adjustment mode.
’-’: ends the adjustment mode.
Acknowledgement ’xxxxx_yyyyy’
xxxxx: "Scans since reading gate release" (scans_with info):
Number of scans that contain valid label information. The maximum value is 100. It
indicates for how many of 100 scans valid label information could be ascertained.
yyyyy:Bar code information.
CommandRS
DescriptionThis command can be used to define a new reference code in the BCL 21/22 by means
Parameter’RSyvxxzzzzzzzz’
Acknowledgement ’RSx’
ExampleInput = ’RS130678654331’ (Code 1) (1), RAM only (3), UPC (06), code information
of direct input via the serial interface. The data are sa ved in the parameter set according
to their input under reference code 1 through 9 and stored in the working buffer for
direct further processing.
y, v, x and z are placeholders (variables) for the actual input.
y: def. reference code no.
’1’ (Code 1)
’2’ (Code 2) ...
’9’ (Code 9)
v Storage location for reference code:
’0’ RAM+EEPROM,
’3’ RAM only
xx def. Code type (see command ’CA’)
z def. Code information (1 … 63 characters)
x: status
’0’ valid ’Rx’ command
’1’ invalid command
’2’ insufficient memory for reference code
’3’ reference code has not been saved
’4’ reference code invalid
DescriptionThis command enables a reference code to be defined quickly by reading an example
Parameter’RTy’
Acknowledgement The BCL first responds with the command ’RS’ and corresponding status (see com-
label.
y: Function
’1’ defines reference code 1
’2’ defines reference code 2 …
’9’ defines reference code 9
’+’ activates the definition of reference code 1 up to the value of Parameter
no_of_labels
’-’ exit the Teach-In process
mand RS). After a bar code has been read, it sends the result in the following format:
’RCyvxxzzzzz’
y, v, x and z are placeholders (variables) for the actual input.
y: def. reference code no.
’1’ (Code 1) …
’9’ (Code 9)
v: storage location for reference code
’0’ RAM+EEPROM,
’3’ RAM only
xx def. Code type (see command ’CA’)
z def. Code information (1 … 63 characters)
Notice!
With this function, only code types are recognized that are identified using the autoConfig
function or which were set in the set-up.
After each reading via an ’RTx’ command, explicitly switch off the function again since
failure to do so will interfere with other commands as well as prevent execution of a new
’RTx’ command.
Command’RR’
DescriptionThe command reads out the reference code defined in the BCL. If no parameters are
Parameter<Reference code number>
Acknowledgement If no reference codes are defined, the BCL responds with the ’RS’ command and
Copy parameter set
Command’PC’
DescriptionThe command copies complete parameter sets.
Parameter’03’ copy parameters from the EEPROM into the RAM and initialize all associated
Acknowledgement ’PSx’
ExampleInput: PC20 –> all parameters are reset to default values.
specified, all defined codes are output.
’1’ ... ’9’ value range of reference codes 1 to 9
corresponding status (see command RS). For valid codes, the output corresponds to
the following format:
RCyvxxzzzzzz
y, v, x and z are placeholders (variables) for the actual input.
y: def. reference code No.
’1’ (Code 1) …
’9’ (Code 9)
v: Storage location for reference code
’0’ RAM+EEPROM,
’3’ RAM only
xx def. Code type (see command ’CA’)
z def. Code information (1 … 63 characters)
functions
'20' copy standard parameters from the FLASH into the EEPROM and RAM and initialize
all relevant functions
’30’ copy parameters from the RAM into the EEPROM
x: status
'0' valid transmission
'1' invalid message
'2' invalid length of message
'3' invalid block check type
'4' invalid block check checksum
'5' invalid data length
'6' invalid message data
'7' invalid start address
'8' invalid parameter set
'9' invalid parameter set type
DescriptionQueries the supply voltage with which the bar code reader is supplied.
ParameterNo
Acknowledgement ’DUVxx.x’
xx.x: voltage value, for example 28.2 for 28.2Volt.
Diagnosis motor
Command’DM’
DescriptionThe command requests the operational data of the motor. In addition, the motor can
be switched on and off.
Parameter’S’ Request rotary frequency of the motor. (Message from host)
’Cxxxxx’ Transmission of the motor RPM as a decimal number with 5 digits. (Message
to host)
Acknowledgement ’Sxxxxx’
Descriptionxxxxx is the current rotary frequency of the motor in revolutions per minute.
In case of malfunction, the BCL responds with the command ’DS’ and the corresponding status. (See command ’DS’)
Status message for diagnosis commands
Online commands
Command’DS’
DescriptionThe command serves as an acknowledgement message to the host. The command
contains as a two-digit decimal number an acknowledgement status which provides
information about the processing of the requested diagnosis function.
Parameter’0’ valid processing
’1’ invalid diagnostic message
’2’ message too long
’3’ invalid message parameter of the laser diagnosis command
’4’ invalid length of the laser diagnosis message
’5’ invalid message parameter of the motor diagnosis command
’6’ invalid length of the motor diagnosis message
11.1.4 ’Online’ command for querying error messages
Query memory error messages
Command’ER’
DescriptionThe command queries the buffer memory of the error messages.
ParameterNo
Acknowledgement 1st line: new: cc
2nd through 11th lines:
’- 00.000’ if no error has occurred
’F tt.fff’ if a fatal error has occurred
’E tt.fff’ if an error has occurred
’C tt.fff’ if a critical warning has occurred
’W tt.fff’ if a warning has occurred
Descriptioncc: number of (new) errors in the error buffer
tt: task/ function number
fff: error number
Upon output, the counter for the number of errors in the error buffer is deleted, but not
the buffer itself!
Notice!
If an error occurs, note the error number and contact your local Leuze service organization.
The addresses can be found on the back page of this operating manual.
Setting the laser beam at the start of the reading field
Command'JLA'
DescriptionCommand for setting the laser beam at the start of the reading field.
It is not possible for the reading field start position to overlap the end position. There
is always a small distance between the start and end.
Parameter'+' reading field start position is increased by one percent.
'-' reading field start position is decreased by one percent.
Acknowledgement The BCL does not return a response.
Setting the laser beam at the end of the reading field
Command'JLD'
DescriptionCommand for setting the laser beam at the end of the reading field.
It is not possible for the reading field start position to overlap the end position. There
is always a small distance between the start and end.
Parameter'+' reading field end position is increased by one percent.
'-' reading field end position is decreased by one percent.
Acknowledgement The BCL does not return a response.
Exiting laser beam adjustment mode WITHOUT saving
Online commands
Command'JLE'
DescriptionCommand for exiting the entire laser beam adjustment mode without saving the pre-
viously set parameters with the commands listed above in the EEPROM. (Parameters
do however remain in RAM memory).
If everything is to be rejected, the scanner must be reset.
ParameterNo
Acknowledgement The BCL does not return a response.
Exiting laser beam adjustment mode WITH saving
Command'JLS'
DescriptionCommand for exiting the complete laser beam adjustment mode.
The previously set parameters with the commands listed above are saved in the
EEPROM.
ParameterNo
Acknowledgement The BCL does not return a response.
'0' Current parameter set (non-volatile memory)
'1' Reserved
'2' Default parameter set (fixed memory)
<Start address> Parameter address (3-digits)
<Data length> Number of bytes to be read out (3-digits)
The maximum data length is 123 bytes. If the HOST would like to read out more than
123 bytes, it must divide the transmission into multiple requests.
Acknowledgement 'PSx'
x: acknowledgment
'1' not a valid 'Px' command
'2' impermissible command length
'3' impermissible value for checksum type
'5' impermissible number of parameters requested
'6' requested data does not (any longer) fit in the transmission buffer
'7' impermissible address value
'8' read access after end of parameter set
'9' impermissible parameter set type
AdditionsProtocol:
The HOST asks the BCL to send parameter data. If the request is valid, the BCL
responds with the PT command (ParameterblockTransmit) and sends the corresponding parameters.
If the HOST does not receive any valid data, it must itself ensure that these data are
requested again. The HOST always receives the status '0' for no further message.
If an error occurs during the request, the HOST receives a negative message acknowledgment from the PS command (see the PS command).
'3' Operating values (RAM memory, lost following a reset)
DescriptionThe PS command (Parameter Status) acknowledges the received message and trans-
mits an acknowledgment status which indicates whether the message was valid or
invalid.
Parameter'PSx'
x: acknowledgment
'0' valid transmission
'1' invalid message
'2' invalid length of message
'3' invalid block check type
'4' invalid block check checksum
'5' invalid data length
'6' invalid message data
'7' invalid start address
'8' invalid parameter set
'9' invalid parameter set type
AdditionsProtocol:
The HOST sends parameter data and then waits for an acknowledgment message from
the BCL.
All faulty messages of the parameter transmissions are also acknowledged with this
command.
the defined address and stores them in an intermediate buffer.
If the status indicates that further messages follow, these are also stored in the intermediate buffer before they are then stored under the correspond ing parameter set type
in the EEPROM.
The transmission can optionally occur with a block check test of the message data.
[... <Para122L>] [ ; <Start address> <Para0H> ...] [<BCC>]
<BCC type>Check-digit function during transfer
'0' current parameter set (non-volatile memory)
'1' reserved
'2' cefault parameter set (fixed memory)
'3' operating values (RAM memory, lost following a reset)
<Mode>Parameter processing mode
'0' does not perform a reset following the write operation,
no additional parameters follow.
'1' does not perform a reset following the write operation,
additional parameters follow.
'2' performs the next reset,
no additional parameters follow.
<Start address> Parameter address (3-digits)
<Data length> Number of bytes to be read out (3-digits)
The maximum data length is 123 bytes. If the HOST would like to write more than
123 bytes, it must divide the transmission into multiple messages.
Acknowledgement 'PSx'
x: acknowledgment
'0' transmission valid and saved successfully
'1' not a valid 'Px'
'2' impermissible command length
'3' impermissible value for checksum type
'4' invalid received checksum
'5' impermissible data length
The HOST sends its parameters and then waits for positive acknowledgment by the
BCL. If acknowledgment is negative, the process is to be repeated by the host.
12Maintenance
12.1General Maintenance Information
The bar code reader BCL 21/22 and the connector unit MA 2/MA 4…/MA 2xxi normally
should not require any maintenance by the user.
Cleaning
Should it become soiled, clean the glass window of the BCL 21/22 with a soft cloth.
Notice!
Do not use aggressive cleaning agents such as thinner or acetone for cleaning the device.
12.2Repairs, Servicing
Repairs to the device must only be carried out by the manufacturer.
Contact your Leuze distributor or service organization should repairs be required. For
addresses, please refer to the back page of this operating manual.