Leuze electronic GmbH + Co. KG
MA 238
i
62
16.3 Bar code reader BCL 22 (S4 switch position 2)
Specifications for the serial interface
Specifications for Command mode
To activate the Command mode, bit 0 must be set to 1 in control byte 0.
For further information, see chapter 11.1.3 "Command Mode", Figure 11.2.
Recommended settings
• Input data: dependent on the number of digits of the bar code that is to be read.
With an 18-digit bar code (+ 2 bytes of status bytes), for example, it is advisable to use the 24-byte
setting.
• Output data: 8 bytes
Standard Parameter
BCL 22
Baud rate
9600
Data mode
8N1
Handshake
No
Protocol
Framing protocol without acknowledgment
Frame
<STX> <Data> <CR> <LF>
Control bit Meaning
Corresponds to serial
command (ASCII)
0
Version query
v
1
Activation / deactivation reading gate
+ / -
2
Reference-code 1 teach-in
RT1
3
Reference-code 2 teach-in
RT2
4
Automatic configuration of reading task activation / deactivation CA+ / CA-
5
Switching output 1 activation
OA1
6
Switching output 2 activation
OA2
7
Switching output 1 deactivation
OD1
8
Switching output 2 deactivation
OD2
9
10
11
Output version of the boot kernel with check sum
VB
12
Output version of the decoder program with check sum
VK
13
Reset parameters to default values
PC20
14
Device restart
H
15