Specifications for Leuze end devices
100
MA 258
i
Leuze electronic
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
• Produced/Consumed data settings:
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 "20 bytes In/4 bytes Out" combination.
Default 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