background image

Command protocol

Leuze electronic

DCR 50

69

9.2

Barcode decoding

The figure shows the command sequence for activating the scan engine for decoding ‑ for a single scan or
for continuous scanning.

Fig. 9.2: 

Command sequence for decoding

• The host device sends a start decoding command to the device ‑ for single decode or for continuous

decoding

• The device sends the corresponding acknowledgement back to the host device.

• The barcode decoder takes over and sends the barcode result to the host device. The barcode result is

sent in clear ASCII text, that is, without the framing protocol.

• The host device sends a stop decoding command to the device.

• The device sends the corresponding acknowledgement back to the host device.

Summary of Contents for DCR 50

Page 1: ...O r i g i n a l o p e r a t i n g i n s t r u c t i o n s EN 2017 05 50136789 We reserve the right to make technical changes DCR 50 Scan Engine...

Page 2: ...2017 Leuze electronic GmbH Co KG In der Braike 1 D 73277 Owen Germany Phone 49 7021 573 0 Fax 49 7021 573 199 http www leuze com info leuze de Leuze electronic DCR 50 2...

Page 3: ...terminal connection 13 5 5 Cable lengths and shielding 13 6 Configuration and diagnostics software Sensor Studio 14 6 1 System requirements 14 6 2 Installing Sensor Studio configuration software 15 6...

Page 4: ...barcode format 57 8 3 Motion detection 58 8 4 Data formatting 59 9 Command protocol 61 9 1 General commands 61 9 1 1 Command packet 61 9 1 2 Device acknowledgement 63 9 1 3 Response packet 64 9 1 4 Ho...

Page 5: ...results Text passages with this symbol describe the result of the preceding action Tab 1 3 Terms and abbreviations BCL Bar code reader CMOS Semiconductor process for implementing integrated circuits...

Page 6: ...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 ating instructions is an element of...

Page 7: ...y 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...

Page 8: ...ation on technical data and characteristics see chapter 12 Technical data 3 1 2 Stand alone operation The scan engine is operated as a single stand alone device It is equipped with a 6 pin Molex conne...

Page 9: ...for illumination red light 2 One integrated target LED blue light 3 Center of optical axis 4 Connector Molex 53261 0671 6 pin 5 Mounting tabs M2 5 through hole 6 Inserts for M1 8 self tapping screws...

Page 10: ...t possible chance of damage to the scanner by mechanical collision or jammed parts Possible extraneous light influence no direct sunlight The best read results are obtained when the reading distance l...

Page 11: ...h spring terminals Molex connector and D SUB 9 pin socket is available as an accessory see chapter 13 2 Accessories With the MA CR Modular adapter unit the 6 pin connector of the scan engine can be co...

Page 12: ...e trigger input 5 3 2 Switching output The NPN switching output connection between switching output pin 4 and GND pin 2 switches if a code is detected against GND 5 V DC OUT GND GND 5 V DC max 20 mA R...

Page 13: ...ng the 6 pin plug connector to D SUB 9 pin see chapter 13 2 Acces sories 1 2 10 11 3 4 8 9 5 6 7 1 RS 232 connection 2 CR 50 or DCR 80 connection 3 DCR 50 DCR 85 CR 100 CR 55 connection 4 Molex Micro...

Page 14: ...er DTM The individual DTM configurations of a project can be called up via the frame application of the Field Device Tool FDT Communication DTM for scan engines LeCommInterface Device DTM for scan eng...

Page 15: ...can install the communication DTM and the device DTM in the existing FDT frame Com munication DTM and device DTM are included in the LeAnalysisCollectionSetup installation package Start the PC Downloa...

Page 16: ...nal strip 6 3 Starting the Sensor Studio configuration software Prerequisites The device has been mounted see chapter 4 Mounting and connected see chapter 5 Electrical connection correctly The device...

Page 17: ...he menus of the Sensor Studio device manager DTM can be used to change or read out the config uration of the connected device The user interface of the Sensor Studio device manager DTM is largely self...

Page 18: ...e FDT frame menu and on the functions in the device manager DTM can be found in the online help system The device manager DTM of the Sensor Studio configuration software offers the following configura...

Page 19: ...ngle codes Targeting Switch the blue targeting LED on and off DECODE OUTPUT OPTIONS Output Result with AIM ID Allows for the output of the AIM symbology identifier with the decode result Barcode Prefi...

Page 20: ...n The properties can be individually set for each code type COMMON DECODE PROPER TIES Maximum labels to decode The device processes up to this number of codes per read code event If there are more cod...

Page 21: ...electronic DCR 50 21 6 5 3 Communications tab Fig 6 6 Communications tab Select the desired baud rate the stop bits the data bits the parity and various transmission modes here The desired acknowledg...

Page 22: ...sis Terminal Fig 6 7 Terminal The Terminal tab provides the following functions Send online commands to the scan engine for diagnostic purposes Visualize the output of the scan engine The contents of...

Page 23: ...ed e g reading activation 7 2 3 Problems If a problem occurs that cannot be rectified even after checking all electrical connections and settings on the devices and on the host contact your responsibl...

Page 24: ...ubscript Optional terminals and non terminals crc16nr nr nr subscript Applies to packets sent in non raw mode i e in packet mode 8 1 Configuration command architecture This section describes the forma...

Page 25: ...rs SY ALLS G Returns all Symbology values in a single XML element Example SYALLSG Australian Post Get All Parameter SY AUP O G Returns all Australian post parameter values in an XML element Example SY...

Page 26: ...that has been printed as a mirror image of a standard Aztec Note This setting value is ignored if Aztec decoding is disabled BC412 Get All Param eter SY B412 G Returns all BC412 parameter values in a...

Page 27: ...e SYCBARSCS2 Note This setting value is ignored if Codabar decoding is disabled Codabar Strip Start Stop Characters SY CBA R S P R G SS 0 0 Disable Example SYCBARSSS0 1 Enable Example SYCBARSSS1 Note...

Page 28: ...SY CO3 2 S P R G EN 0 0 Disable Example SYCO32SEN0 1 Enable Example SYCO32SEN1 Code 39 Get All Pa rameter SY CO3 9 G Returns all Code 39 parameter values in an XML element Example SYCO39G Code 39 SY...

Page 29: ...28 S P R G EN 1 0 Disable Example SYC128SEN0 1 Enable Example SYC128SEN1 Composite SY COM P S P R G EN 0 0 Disable Example SYCOMPSEN0 1 Enable Example SYCOMPSEN1 Data Matrix Get All Parameter SY DAT M...

Page 30: ...coding is disabled Grid Matrix Get All Pa rameter SY GDM X G Returns all Grid Matrix parameter values in an XML element Example SYGDMXG Grid Matrix SY GDM X S P R G EN 0 0 Disable Example SYGDMXSEN0 1...

Page 31: ...YGS1DSEX1 GS1 DataBar Expanded Stacked SY GS1 D S P R G ES 1 0 Disable Example SYGS1DSES0 1 Enable Example SYGS1DSES1 GS1 DataBar Limited SY GS1 D S P R G LI 1 0 Disable Example SYGS1DSLI0 1 Enable Ex...

Page 32: ...Interleaved 2 of 5 Checksum Options Off On Strip Checksum Characters SY I2O5 S P R G CO 0 0 Disables checksum checking and output checksum if one exists Example SYI2O5SCO0 1 Enables checksum checking...

Page 33: ...MSIP S P R G EN 0 0 Disable Example SYMSIPSEN0 1 Enable Example SYMSIPSEN1 MSI Plessey Require Checksum SY MSIP S P R G CS 0 0 Disable Example SYMSIPSCS0 1 Enable Example SYMSIPSCS1 2 10 10 Checksum...

Page 34: ...Enable Example SYP417SMI1 Pharma Code Get All Parameter SY PHC O G Returns all Pharma code parameter val ues in an XML element Example SYPHCOG Pharmacode SY PHC O S P R G EN 0 0 Disable Example SYPHCO...

Page 35: ...ding is disabled QR Code Get All Pa rameter SY QRC O G Returns all QR code parameter values in an XML element Example SYQRCOG QR Code SY QRC O S P R G EN 1 0 Disable Example SYQRCOSEN0 1 Enable Exampl...

Page 36: ...SEN1 Telepen Get All Pa rameter SY TELP G Returns all Telepen parameter values in an XML element Example SYTELPG Telepen SY TELP S P R G EN 0 0 Disable Example SYTELPSEN0 1 Enable Example SYTELPSEN1 T...

Page 37: ...l decoding is disabled UPC EAN Get All Pa rameter SY UPC 0 G Returns all UPC EAN parameter values in an XML element Example SYUPC0G UPC EAN SY UPC 0 S P R G EN 1 0 0 Disable Example SYUPC0SEN0 1 Enabl...

Page 38: ...DN1 Note This setting value is ignored if UPC EAN decoding is disabled UPC EAN Transmit UPC A Checksum SY UPC 0 S P R G AC 0 0 Disable Example SYUPC0SAC0 1 Enable Example SYUPC0SAC1 Note This setting...

Page 39: ...0 1 Enable Example SYUPC0S8C1 Note This setting value is ignored if UPC EAN decoding is disabled UPC EAN Send AIM Modifier SY UPC 0 S P R G AM 0 0 Disable Example SYUPC0SAM0 1 Enable Example SYUPC0SAM...

Page 40: ...Retry Timeout s CM GE S P R G CR 5000 If reader disconnects it will try to recon nect after the timeout interval in seconds Valid Range Example CMGESCR5000 RS 232 Interface Get All parameters CM SE G...

Page 41: ...tring of binary code to ensure that the total number of 1 bits in the string is even or odd RS 232 Interface Flow Control CM SE S P R G FC 0 1 0 Example CMSESFC0 1 Example CMSESFC1 Transmit flow contr...

Page 42: ...D S P R G IS 0 In Milliseconds Valid Range Example CMHDSIS4 HID Keyboard Release Delay ms CM HD S P R G RL 0 In Milliseconds Valid Range Example CMHDSRL4 HID Keyboard Control Characters CM HD S P R G...

Page 43: ...1 One endpoint Example CMUKSEN1 2 Two endpoints Example CMUKSEN2 USB Keyboard Declara tion Wait State CM UK S P R G EM 0 0 Declare enumeration when ad dressed Example CMUKSEM0 1 Declare enumeration af...

Page 44: ...ter encoding style 8 2 4 Packet and protocol parameters Code Description Command Format Op tions De fault Notes Examples Packet Get All parameters PK OP G Returns all packet parameter values in an XML...

Page 45: ...le CDOPG Maximum Decodes Per Read CD OP S P R G PR 1 The reader will process up to this num ber of barcodes per read If there are more barcodes in the field of view and target tolerance only the first...

Page 46: ...e result with ISO IEC standard 15424 AIM Example CDOPSPA1 Security Level Decoder P_SECU RITY_LEVEL CD OP S P R G SE See decoder API 1D Barcode Aggressiveness CD OP S P R G SE 0 0 Most Aggressive Examp...

Page 47: ...istance from the cen ter of the image The distance is defined as a percentage of the barcode s smaller dimension For example with a 10 x 20 mm barcode and a setting of 150 the barcode must be within 1...

Page 48: ...DOPSFO6 7 Perform Simple Age verification using configuration string Example CDOPSFO7 8 Perform Simple Age verification without configuration Example CDOPSFO8 9 Perform DL Parsing with config uration...

Page 49: ...er Management Parameters PM PM G Returns all power management parame ter values in an XML element Example PMPMG Standby Mode Timer PM SB S P R G EN 0 0 Disable Standby Mode Timer Example PMSBSEN0 1 En...

Page 50: ...r values in an XML element Example RDRDG Get all Firmware information RD FW G Returns all Firmware parameter values in an XML element Example RDFWG Firmware Version Major RD FW G MJ Returns Firmware M...

Page 51: ...aracters must be set using URL encoded hex value Example RDOFSLE 0D 0A Reader Command Process Barcode Data RD CM X BD data Sends data to the host as barcode data Example RDCMXBD12345 Reader Command Re...

Page 52: ...ense on the reader Copies the contents of the License CRB file starting after the character to use as the URL encoded license string This string must be in quotes in the com mand Example RDLCXLD 23 45...

Page 53: ...ood Read Indication Fre quency Hz FB GR S P R G FQ 2400 Good read beep output frequency Valid Range Example FBGRSFQ2400 Good Read Indication Beep Volume percent FB GR S P R G VO 100 Valid Range 0 to 1...

Page 54: ...p tions De fault Notes Examples Get All AGC Parameters AG AG G Returns all AGC parameters values in an XML element Example AGAGG Max AGC Brightness in Mo tion Detect percent AG CR S P R G MB 100 Sets...

Page 55: ...AGC will use to start adjusting illumination Valid Range Minimum illumination to Maximum illumination Example MDPMSII1 Minimum exposure time s MD PM S P R G NE 1 1 Minimum Value Valid Range 1 to Maxi...

Page 56: ...t these too high the algorithm will not be able to detect indi vidual pixels because the image is washed out Valid Range Minimum lightest pixel value to 255 Example MDPMSXL90 Detection pixel threshold...

Page 57: ...Header Command Trailer SOH Y GS STX 01 59 1D 02 String ETX EOT 03 04 Multiple commands can be included in one configuration command barcode by separating each command with ETX Example Scanning a barc...

Page 58: ...pic ture between light and dark pixels Setting the minimum too low does not produce enough contrast and setting the maximum too high overflows the AGC Thus the gain range helps the AGC to optimize the...

Page 59: ...formatting off 1 Simple data formatting using either prefix and suffix or by setting the format data string di rectly 2 Match String validation 3 GS1 DataBar validation requires a license 4 UDI HIBC...

Page 60: ...b CDOPSPX 09 Enable the application of prefixes and suffixes After defining prefix and or suffix strings the application of prefixes and suffixes must be enabled Command CDOPSFO1 Format case The decod...

Page 61: ...t back to the device 9 1 1 Command packet To send a command to the device a properly formatted packet must be formed Tab 9 1 Command packet format Section Bytes or Range Number of Bytes Description St...

Page 62: ...is value is written as a 2 byte big endian value Transaction Number 0x0000 0x7FFF 2 Represents a transaction number for a com mand This value is tracked by the host de vice and is sent to the device a...

Page 63: ...tes the type of protocol to use when communicating This value is always 0x01 Flags 0x00 Single byte representing a bit field For send ing a command this value is always 0x00 Payload Protocol 0x00 1 Va...

Page 64: ...dgement packet to the de vice This host acknowledgement has the same format as the device acknowledgement see chapter 9 1 2 Device acknowledgement with the following differences The destination addres...

Page 65: ...0x43 0x54 3 Packet Version 0x31 1 Packet Length 0x000F 2 Destination Address 0x40000000 4 Source Address 0x01234567 4 The device returns its unique address Protocol Type 0x01 1 Flags 0x01 Payload Prot...

Page 66: ...tion Address 0x01234567 4 Source Address 0x40000000 4 Protocol Type 0x01 1 Flags 0x01 Payload Protocol 0x00 1 Acknowledgement Num ber 0x8000 2 CRC16 0x2CCE 2 9 1 6 Example 2 Getting information about...

Page 67: ...of Bytes Description Start of Frame 0x01 0x43 0x54 3 Packet Version 0x31 1 Packet Length 0x000F 2 Destination Address 0x40000000 4 Source Address 0x01234567 4 The device returns its unique address Pr...

Page 68: ...accordance with the protocol the host device sends an acknowledgement packet before sending the next command Tab 9 10 Host acknowledgement for example 2 Section Bytes or Range Number of Bytes Descript...

Page 69: ...start decoding command to the device for single decode or for continuous decoding The device sends the corresponding acknowledgement back to the host device The barcode decoder takes over and sends th...

Page 70: ...Do not use aggressive cleaning agents Do not use aggressive cleaning agents such as thinner or acetone for cleaning the device 10 2 Servicing Repairs to the device must only be carried out by the manu...

Page 71: ...ike 1 D 73277 Owen Germany 11 1 What to do should servicing be required NOTICE Please use this chapter as a master copy should servicing be required Enter the contact information and fax the form toge...

Page 72: ...NEC 2 of 5 Pharmacode Plessey Straight 2 of 5 Telepen Trioptic UPC EAN JAN Code type Stacked 1D Codablock F Code 49 GS1 Composite CC A CC B CC C MicroPDF PDF417 Code type 2D Aztec Code Data Matrix Ha...

Page 73: ...umidity 10 90 rel humidity non condensing Ambient light max 100000 Lux Electromagnetic compatibility EN 55022 2006 Class B IEC 62471 2006 Conformity CE FCC RoHS 12 2 Reading fields NOTICE Please note...

Page 74: ...reading distance mm inch Code 39 0 190 mm 7 5 mil 50 2 0 245 9 6 GS1 Data bar 0 267 mm 10 5 mil 35 1 4 225 8 9 UPC 0 330 mm 13 mil 40 1 5 370 14 6 PDF417 0 147 mm 5 8 mil 85 3 3 155 6 1 PDF417 0 170 m...

Page 75: ...for illumination red light B 1 integrated target LED blue light C Center of optical axis D Connector Molex 53261 0671 6 pin Fig 12 2 DCR 50 dimensioned drawing NOTICE It is advisable to use a transpa...

Page 76: ...32 interface Molex 53261 0671 connection 6 pin 13 2 Accessories Tab 13 2 Accessories Part no Part designation Description 50128204 MA CR Modular adapter unit to interface device to host to connect to...

Page 77: ...of Conformity Leuze electronic DCR 50 77 14 EC Declaration of Conformity The scan engines of the DCR 50 series have been developed and manufactured in accordance with the applicable European standards...

Page 78: ...Bar code samples Module 0 3 Fig 15 1 Code type 01 Interleaved 2 of 5 Module 0 3 Fig 15 2 Code type 02 Code 39 Module 0 3 Fig 15 3 Code type 11 Codabar Module 0 3 Fig 15 4 Code 128 Module 0 3 Fig 15 5...

Page 79: ...ig 15 7 Code type 07 EAN 8 Fig 15 8 Example codes 15 2 Configuration via configuration codes The device can also be configured using configuration codes The device parameters in the device are set and...

Page 80: ...maximum brightness to 25 Set motion detect maximum brightness to 50 Set motion detect maximum brightness to 75 Set motion detect maximum brightness to 100 Default Disable Data Formatting Default Prefi...

Page 81: ...Default Suffix Line Feed RS232 Mode Only Erase Suffix Data Convert Barcode Data to Uppercase Convert Barcode Data to Lowercase Intentionally Blank Australian Post On Australian Post Off Default Aztec...

Page 82: ...op Delimiters Default Codablock A On Codablock A Off Default Codablock F On Codablock F Off Default Code 11 Checksum Stripped from Result On Default Code 11 Checksum Stripped from Result Off Default C...

Page 83: ...from Result Off Default Composite On Composite Off Default Data Matrix On Default Data Matrix Off Data Matrix Mirror On Data Matrix Mirror Off Default Data Matrix Inverse and Normal On Default Data Ma...

Page 84: ...Inverse Off Default Hong Kong 2 of 5 On Hong Kong 2 of 5 Off Default Interleaved 2 of 5 On Default Interleaved 2 of 5 Off Interleaved 2 of 5 Checksum On Interleaved 2 of 5 Checksum Off Default Interl...

Page 85: ...DF417 Off Default Micro QR Code On Micro QR Code Off Default Mode 1 QR Code On Mode 1 QR Code Off Default MSI Plessey Checksum On MSI Plessey Checksum Off Default MSI Plessey Checksum Stripped from Re...

Page 86: ...ode On Pharmacode Off Default Pharmacode Normal Barcode Decoding Left to Right Default Pharmacode Reverse Barcode Decoding Right to Left QR Code On Default QR Code Off QR Code Standard Only Default QR...

Page 87: ...ters Remove Trioptic Start and Stop Delimiters Default Straight 2 of 5 On Straight 2 of 5 Off Default UK Royal Mail On UK Royal Mail Off Default UPC EAN On Default UPC EAN Off UPC Supplemental On UPC...

Page 88: ...t EAN 8 to EAN 13 Do Not Convert EAN 8 to EAN 13 Default Transmit UPC E Check Digit Convert Bookland EAN 13 to ISBN Do Not Convert Bookland EAN 13 to ISBN Default Convert Bookland EAN 13 to ISSN Do No...

Page 89: ...n Keyboard Mapping for Windows Keyboard Support French Keyboard Mapping for Windows Keyboard Support French Keyboard Mapping for Apple Keyboard Support German Keyboard Mapping for Apple Keyboard Suppo...

Page 90: ...Mapping for Windows Data Encoding Raw ASCII to Keyboard XML File Lookup Default Data Encoding UTF8 to Unicode Codepoint Alt Sequences for Windows USB Downloader Mode USB Settings USB Keyboard Mode Def...

Page 91: ...2 Interface 2 Stop Bits RS232 Interface Even Parity RS232 Interface No Parity RS232 Interface Odd Parity RS232 Interface Flow Control On RS232 Interface Flow Control Off Default Enable Packet Mode Ena...

Page 92: ...Set Duplicate Scan delay to 1 day Output Reader Configuration Get Reader Parameters Intentionally Blank Reader Modem Command Settings Reset to Factory Defaults Intentionally Blank Intentionally Blank...

Reviews: