CR 50/ CR 55: Programming Guide
CR 50/ CR 55: Programming Guide
CR 50/ CR 55: Programming Guide
Programming Guide
make technical changes
EN 2014/05 - 50126232
We reserve the right to
Leuze electronic CR 50 / CR 55 3
Factory Default Table
Leuze electronic CR 50 / CR 55 4
Factory Default Table
Leuze electronic CR 50 / CR 55 5
Factory Default Table
Barcode
Barcode Parameter Function
Value
System Parameter
Leuze electronic CR 50 / CR 55 6
Factory Default Table
Barcode
Barcode Parameter Function
Value
RS-232 Parameter
Baud Rate
Data Bit
Parity Bit
Leuze electronic CR 50 / CR 55 7
Factory Default Table
Barcode
Barcode Parameter Function
Value
Stop Bit
Message Terminator
Handshaking
GO02 ACK/NAK
GO03 Xon/Xoff
Leuze electronic CR 50 / CR 55 8
Factory Default Table
Barcode
Barcode Parameter Function
Value
RTS/CTS Handshaking.(Invert RTS polarity)
GO05
( -12V=active ,+12V=active)
Message RTS/CTS.
GO11 Activate RTS before sending the first character and leave it active
until after the last character has been transmitted.
Beeper on BEL Parameter
Leuze electronic CR 50 / CR 55 9
Factory Default Table
Barcode
Barcode Parameter Function
Value
Keyboard Language
Leuze electronic CR 50 / CR 55 10
Factory Default Table
Barcode
Barcode Parameter Function
Value
Message Terminator
Leuze electronic CR 50 / CR 55 11
Factory Default Table
Barcode
Barcode Parameter Function
Value
Momentary mode. The scanner will light up only when the trigger
RL06 switch is pressed. The scanner will turn off when the trigger
switch is release.
Reading Mode
Inverse Code
Leuze electronic CR 50 / CR 55 12
Factory Default Table
Barcode
Barcode Parameter Function
Value
Leuze electronic CR 50 / CR 55 13
Factory Default Table
Barcode
Barcode Parameter Function
Value
Leuze electronic CR 50 / CR 55 14
Factory Default Table
Barcode
Barcode Parameter Function
Value
Leuze electronic CR 50 / CR 55 15
Factory Default Table
Barcode
Barcode Parameter Function
Value
UPC/EAN Parameter
Leuze electronic CR 50 / CR 55 16
Factory Default Table
Barcode
Barcode Parameter Function
Value
Leuze electronic CR 50 / CR 55 17
Factory Default Table
Barcode
Barcode Parameter Function
Value
Leuze electronic CR 50 / CR 55 18
Factory Default Table
Barcode
Barcode Parameter Function
Value
Leuze electronic CR 50 / CR 55 19
Factory Default Table
Barcode
Barcode Parameter Function
Value
Code 39 Parameter
Leuze electronic CR 50 / CR 55 20
Factory Default Table
Barcode
Barcode Parameter Function
Value
Leuze electronic CR 50 / CR 55 21
Factory Default Table
Barcode
Barcode Parameter Function
Value
Code 93 Parameter
Code 11 Parameter
Leuze electronic CR 50 / CR 55 22
Factory Default Table
Barcode
Barcode Parameter Function
Value
Save setting to confirm (for need to reading full ASCII Table
SET
confirm use)
Leuze electronic CR 50 / CR 55 23
Factory Default Table
Barcode
Barcode Parameter Function
Value
Save setting to confirm (for need to reading full ASCII Table
SET
confirm use)
Codabar Parameter
Leuze electronic CR 50 / CR 55 24
Factory Default Table
Barcode
Barcode Parameter Function
Value
ITF 2 of 5 Parameter
Leuze electronic CR 50 / CR 55 25
Factory Default Table
Barcode
Barcode Parameter Function
Value
Standard 2 of 5 Parameter
Matrix 2 of 5 Parameter
Leuze electronic CR 50 / CR 55 26
Factory Default Table
Barcode
Barcode Parameter Function
Value
C055 Matrix 2/5 code check digit calculate but not transmit
Industrial 2 of 5 Parameter
Leuze electronic CR 50 / CR 55 27
Factory Default Table
Barcode
Barcode Parameter Function
Value
RY05 Chinese postal code check digit calculate but without transmit
MSI/Plessey Parameter
Leuze electronic CR 50 / CR 55 28
Factory Default Table
Barcode
Barcode Parameter Function
Value
Save setting to confirm (for need to reading full ASCII Table
SET
confirm use)
Leuze electronic CR 50 / CR 55 29
Factory Default Table
Barcode
Barcode Parameter Function
Value
Leuze electronic CR 50 / CR 55 30
Factory Default Table
Barcode
Barcode Parameter Function
Value
Leuze electronic CR 50 / CR 55 31
Factory Default Table
Barcode
Barcode Parameter Function
Value
Leuze electronic CR 50 / CR 55 32
Factory Default Table
Barcode
Barcode Parameter Function
Value
Leuze electronic CR 50 / CR 55 33
Factory Default Table
Barcode
Barcode Parameter Function
Value
Add Postfix character
GS02
<Data><Postfix>
Leuze electronic CR 50 / CR 55 34
Factory Default Table
Leuze electronic CR 50 / CR 55 35
Factory Default Table
Leuze electronic CR 50 / CR 55 36
Factory Default Table
Leuze electronic CR 50 / CR 55 37
Modified History
Modified History
Version Date Comment
Leuze electronic CR 50 / CR 55 38
I. Introduction
I. Introduction
This document will describe the protocol of communication for CR 50, User can be programmed by
sending software instructions from the host PC to the scanner via the RS232 connection. The serial
commands configuration can be used in place of the programming bar codes. Both the serial
commands and the programming bar codes will program the engine.
Interface
The device must be set to an RS232 interface. All commands sent between the decoder and host
must use as same UART setting .
. Data Bits: 8
. Parity: None
. Stop bits : 1
Example:
It will disable CR 50 / CR 55 if sending “0x0F “command
Note:
If CR 50 / CR 55 is in Low power state, sending the single character, NULL (0x00) wakes up the
decoder. Once the WAKEUP command is sent, it remains awake for at least 3 seconds before re-
entering Low Power mode.
Leuze electronic CR 50 / CR 55 39
II. Protocol of communication
Edge Trigger scan_A0 <ESC>A2.mm<CR> Scanner received this command will activate the
LED and decode processing. The LED remains on
and decode processing continues until a Time-out
is reached.
Edge Trigger scan_A2 <ESC>A0.mm<CR> Scanner received this command will activate the
LED and decode processing. The LED remains on
and decode processing continues until a valid
decode or Time-out is reached.
<STX>-<CR><LF>
Note:
Examples:
Host Sending_” 0x1B 0x41 0x30 0x0D” command string to CR 50 / CR 55 will active the Level Trigger
scan_A0 mode.
Host Sending_”0x1B 0x41 0x30 0x2E 0x33 0x30 0x0D”command string to CR 50 / CR 55 will active
the Edge Trigger scan_A0 mode with 30 seconds time-out.
Leuze electronic CR 50 / CR 55 40
II. Protocol of communication
Format Description:
Example:
Checksum
Length of packet
Prefix ID
Leuze electronic CR 50 / CR 55 41
II. Protocol of communication
0xBA 0x13 $CME 0x06 0x00 HR01 $CDEAB 0x00 0xFE 0xA0
Checksum
Add “AB” character as Code 39 identifier
Enable identifier code
Code39 minimum length 6 character
Length of packet
Prefix ID
Note:
1,When decoder receive a Command, will execute it and send an ACK(0x06) to host. If the
command is not supported or wrong, the decoder responds with NAK(0x15).
2,The checksum is a 2 byte checksum and must be sent as HIGH BYTE followed by LOW BYTE.
3,The maximum number of bytes per packet allow packet buffer can contain about 255
(253 bytes+2 byte checksum). If your programming string goes over this value, you must split it
into separate groups and send each group after a delay of at least 3 seconds to give the reader
time to empty the buffer and interpret the commands.
Leuze electronic CR 50 / CR 55 42
II. Protocol of communication
Command
Description
Parameter
RS-232 parameter
Data Bit
Leuze electronic CR 50 / CR 55 43
II. Protocol of communication
Command
Description
Parameter
Parity Bit
Stop Bit
Message Terminator
Handshaking
GO02 ACK/NAK
GO03 Xon/Xoff
Leuze electronic CR 50 / CR 55 44
II. Protocol of communication
Command
Description
Parameter
Message RTS/CTS.
GO11
Activate RTS before sending the first character and leave it active until after the last
character has been transmitted.
Leuze electronic CR 50 / CR 55 45
II. Protocol of communication
Command
Description
Parameter
Leuze electronic CR 50 / CR 55 46
II. Protocol of communication
Scan Operation
Command
Description
Parameter
Leuze electronic CR 50 / CR 55 47
II. Protocol of communication
Reading Mode
Command
Description
Parameter
Inverse Code
Leuze electronic CR 50 / CR 55 48
II. Protocol of communication
Command
Description
Parameter
Beeper Control
Leuze electronic CR 50 / CR 55 49
II. Protocol of communication
Command
Description
Parameter
Leuze electronic CR 50 / CR 55 50
II. Protocol of communication
UPC/EAN Parameter
Command
Description
Parameter
Leuze electronic CR 50 / CR 55 51
II. Protocol of communication
Command
Description
Parameter
Leuze electronic CR 50 / CR 55 52
II. Protocol of communication
Command
Description
Parameter
Leuze electronic CR 50 / CR 55 53
II. Protocol of communication
Command
Description
Parameter
Code 39 Parameter
Leuze electronic CR 50 / CR 55 54
II. Protocol of communication
Command
Description
Parameter
Note:
Code 93 Parameter
Note:
Leuze electronic CR 50 / CR 55 55
II. Protocol of communication
Code 11 Parameter
Command
Description
Parameter
Note:
Leuze electronic CR 50 / CR 55 56
II. Protocol of communication
Command
Description
Parameter
Note:
Codabar Parameter
Leuze electronic CR 50 / CR 55 57
II. Protocol of communication
Command
Description
Parameter
Note:
ITF 2 of 5 Parameter
Note:
Leuze electronic CR 50 / CR 55 58
II. Protocol of communication
Straight 2 of 5 Parameter
Command
Description
Parameter
Note:
Matrix 2 of 5 Parameter
C055 Matrix 2/5 code check digit calculate but not transmit
Note:
Industrial 2 of 5 Parameter
Leuze electronic CR 50 / CR 55 59
II. Protocol of communication
Command
Description
Parameter
Note:
RY05 Chinese postal code check digit calculate but without transmit
Note:
Leuze electronic CR 50 / CR 55 60
II. Protocol of communication
MSI/Plessey Parameter
Command
Description
Parameter
LR05 MSI/Plessey double check digit calculate but only first digit transmit
Note:
Leuze electronic CR 50 / CR 55 61
II. Protocol of communication
Command
Description
Parameter
Leuze electronic CR 50 / CR 55 62
II. Protocol of communication
Command
Description
Parameter
Leuze electronic CR 50 / CR 55 63
II. Protocol of communication
Command
Description
Parameter
Note:
The scanner can transmit Max. 2 bytes character identifier for different types of barcode:
a = NULL (0x00)
Leuze electronic CR 50 / CR 55 64
II. Protocol of communication
Command
Description
Parameter
Note:
The scanner can transmit Max. 10 bytes character of prefix or postfix to scan data.
a = NULL (0x00)
Leuze electronic CR 50 / CR 55 65
Type IV: Get Setting Status Command
Command Format:
<Length><register Data><Checksum><ACK>
Length of packet.
Length 1 Byte.
(not including checksum and ACK).
Register Data See Table 1-4 on page 70 Variable.
2's complement sum of message contents
Checksum 2 Bytes.
excluding checksum.(not including ACK)
ACK 0x06 1 Byte
Leuze electronic CR 50 / CR 55 66
Type IV: Get Setting Status Command
Example:
The host requests the decoder’s current values for EAN-13 and EAN-8
Checksum
Null (end of index)
Get EAN-8 current parameter vale
Get EAN-13 current parameter vale
Command ID
Length of packet
Prefix ID
Decoder Response:
Length of packet
Leuze electronic CR 50 / CR 55 67
Type IV: Get Setting Status Command
Leuze electronic CR 50 / CR 55 68
Type IV: Get Setting Status Command
Leuze electronic CR 50 / CR 55 69
Type IV: Get Setting Status Command
AddonEnable_reg(0x02):
Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7
EAN/UPC
EAN/UPC
addendum
addendum 2
reserved 5 reserved
0:Disabled 0:Disabled
1:Enabled 1:Enabled
Bit 8 Bit 9 Bit 10 Bit 11 Bit 12 Bit 13 Bit 14 Bit 15
EAN/UPC EAN/UPC
EAN/UPC
EAN/UPC addendum addendum
addendum
addendum mandatory mandatory
Format with
Mandatory reserved for 978/977 for 491 reserved
separator
bookland bookland
0:Disabled 0:Disabled 0:Disabled 0:Disabled
1:Enabled 1:Enabled 1:Enabled 1:Enabled
EAN13_reg(0x03):
Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7
Digit Check Transmit Redundant Check
Reserved 0: Disabled 0: 0 time 2: 2 times reserved
1: Enabled 1: 1 time 3: 3 times
Bit 8 Bit 9 Bit 10 Bit 11 Bit 12 Bit 13 Bit 14 Bit 15
Force
decoding as EAN-13 First EAN
UPC-A if the '0' is convert to
EAN -13first transmitted ISSN/ISBN Reserved
byte is '0'
0:Disabled 0:Disabled 0:Disabled
1:Enabled 1:Enabled 1:Enabled
Leuze electronic CR 50 / CR 55 70
Type IV: Get Setting Status Command
EAN8_reg(0x04):
Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7
Digit Check Transmit Redundant Check
Reserved 0: Disabled 0: 0 time 2: 2 times reserved
1: Enabled 1: 1 time 3: 3 times
Bit 8 Bit 9 Bit 10 Bit 11 Bit 12 Bit 13 Bit 14 Bit 15
Force EAN8
to EAN13
Reserved
0:Disabled
1:Enabled
UPCA_reg(0x05):
Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7
Digit Check Transmit Redundant Check reserved
reserved 0: Disabled 0: 0 time 2: 2 times
1: Enabled 1: 1 time 3: 3 times
Bit 8 Bit 9 Bit 10 Bit 11 Bit 12 Bit 13 Bit 14 Bit 15
Transmit
Force UPCA UPCA
reserved reserved reserved reserved reserved reserved
to EAN13 leading
character
0:Disabled 0:Disabled
1:Enabled 1:Enabled
UPCE_reg(0x06):
Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6
Digit Check Transmit Redundant Check
reserved 0: Disabled 0: 0 time 2: 2 times
1: Enabled 1: 1 time 3: 3 times
Bit 8 Bit 9 Bit 10 Bit 11 Bit 12 Bit 13 Bit 14
Transmit
Force UPCE to
UPCE leading
UPCA
character reserved
0:Disabled 0:Disabled
1:Enabled 1:Enabled
Leuze electronic CR 50 / CR 55 71
Type IV: Get Setting Status Command
Code39_reg(0x07):
Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7
Digit Check Digit Check Transmit Redundant Check
Code128_reg(0x08):
Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7
Digit Check Digit Check Transmit Redundant Check
0: Disabled 0: Disabled 0: 0 time 2: 2 times reserved
1: Enabled 1: Enabled 1: 1 time 3: 3 times
Bit 8 Bit 9 Bit 10 Bit 11 Bit 12 Bit 13 Bit 14 Bit 15
EAN128
Code128
Read EAN128 FNC1 Code 128
FNC2
Standard 128 Enabled character SP
concatenation reserved
transmitted
0: Disabled 0: Disabled 0: Disabled 0: Disabled 0: Disabled
1: Enabled 1: Enabled 1: Enabled 1: Enabled 1: Enabled
CodaBar_reg(0x09):
Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7
Digit Check Digit Check Transmit Redundant Check
0: Disabled 0: Disabled 0: 0 time 2: 2 times reserved
1: Enabled 1: Enabled 1: 1 time 3: 3 times
Bit 8 Bit 9 Bit 10 Bit 11 Bit 12 Bit 13 Bit 14 Bit 15
0:Disabled reserved
1:Enabled 0: Disabled
2: DC1~DC4 1: Enabled
3: a/t,b/n,c/*,d/e
Leuze electronic CR 50 / CR 55 72
Type IV: Get Setting Status Command
Code93_reg(0x0A):
Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7
Digit Check Digit Check Transmit Redundant Check
reserved
MSI_reg (0x0B):
Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7
Digit Check Digit Check Transmit Redundant Check
0: Disabled
0: Disabled 0: 0 time 2: 2 times reserved
1: Signal Digit Check
1: Enabled 1: 1 time 3: 3 times
2:Double Digit Check
Bit 8 Bit 9 Bit 10 Bit 11 Bit 12 Bit 13 Bit 14 Bit 15
reserved
Leuze electronic CR 50 / CR 55 73
Type IV: Get Setting Status Command
GS1 DataBar_Expanded_reg(0x0D):
Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7
Digit Check Digit Check Transmit
reserved
0: Disabled 0: Disabled
1: Enabled 1: Enabled
Bit 8 Bit 9 Bit 10 Bit 11 Bit 12 Bit 13 Bit 14 Bit 15
Transmit EAN128
Expanded Stack
Application ID Emulation reserved
0: Disabled 0: Disabled 0: Disabled
1: Enabled 1: Enabled 1: Enabled
Industrial2of5_reg(0x0F):
Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7
Digit Check Digit Check Transmit
Straight 2of5_reg(0x10):
Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7
Digit Check Digit Check Transmit
Leuze electronic CR 50 / CR 55 74
Type IV: Get Setting Status Command
ITF2of5_reg(0x11):
Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7
Digit Check Digit Check Transmit Redundant Check
Matrix2of5_reg (0X12):
Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7
Digit Check Digit Check Transmit
Reserved_reg(0x13):
Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7
reserved
Bit 8 Bit 9 Bit 10 Bit 11 Bit 12 Bit 13 Bit 14 Bit 15
reserved
Code11_reg(0x14):
Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7
Digit Check Digit Check Transmit
0: Disabled
0: Disabled
1: One Digit Check
1: Send One Digit reserved
2: Two Digit Check
Check
3: Auto Digit Check. If length greater than 10,
2: Send Both Digit
doing Two Digit Check. One Digit Check for
Check
others.
TELEPEN_reg(0x15):
Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7
reserved
Bit 8 Bit 9 Bit 10 Bit 11 Bit 12 Bit 13 Bit 14 Bit 15
Mode Select
0: Numeric Mode reserved
1: AIM Mode
Leuze electronic CR 50 / CR 55 75
Type IV: Get Setting Status Command
Truncate_reg (0x19):
Byte 1 Byte 2
Truncate data header
Truncate data trailer number
number
Leuze electronic CR 50 / CR 55 76