background image

Appendix

Leuze electronic

DCR 248i

114

18.5

Communication examples

Reading and transmitting three bar codes

Module configuration:

• Module 10 – Activation: mode=1 (with ack.)

• Module 21 – Result data 1: data length 16 bytes

Reading and transmitting two bar codes in fragmented mode

Module configuration:

• Module 10 – Activation: mode=1 (with ack.)

• Module 13 – Fragmented result: fragment length = 4

• Module 21 – Result data 1: data length 16 bytes

Summary of Contents for DCR 248i

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 08 50135643 We reserve the right to make technical changes DCR 248i Camera based code reader...

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 Leuze electronic DCR 248i 2...

Page 3: ...ng gate control 17 4 1 3 Burst mode 17 4 1 4 Presentation mode 18 4 1 5 Continuous mode 18 4 2 Reference code comparison 18 4 3 Code quality 19 4 4 Leuze webConfig tool 20 5 Applications 21 5 1 Readin...

Page 4: ...and processing the read data 46 8 6 2 Control of the decoding 46 8 6 3 Activating camera operating mode 47 8 6 4 Control of the switching outputs 47 8 6 5 Optimizing reading performance 47 8 6 6 Tran...

Page 5: ...nds 87 11 1 3 Online commands for system control 92 11 2 XML based communication 92 12 Care maintenance and disposal 93 13 Diagnostics and troubleshooting 94 14 Service and support 95 14 1 What to do...

Page 6: ...ons Tab 1 3 Terms and abbreviations CMOS Semiconductor process for implementing integrated circuits Complementary Metal Oxide Semiconductor DCR Camera based code reader Dual Code Reader EMC Electromag...

Page 7: ...ode reader Region of In terest PLC Programmable Logic Control corresponds to Programmable Logic Controller PLC TCP IP Internet protocol family Transmission Control Pro tocol Internet Protocol UDP Netw...

Page 8: ...Knowledge of the oper ating instructions is an element of proper use NOTICE Integrated illumination The code readers of the DCR 200i series correspond to the following classification with respect to t...

Page 9: ...by 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 10: ...ernet star topology Information on technical data and characteristics see chapter 15 Technical data 3 1 2 Performance characteristics Decoding of 1D stacked and 2D codes Maximum depth of field and rea...

Page 11: ...grated linear polarisation filter avoids additional interfering reflections Diffusor foil that can be affixed to housing hoods with plastic or glass screen The diffusor foil reduces interfering reflec...

Page 12: ...uction 2 3 3 1 8 5 7 6 4 1 Lens 2 Control panel with indicator LEDs control buttons bar graph display 3 LEDs for illumination red light 4 M4 mounting thread 5 Device housing 6 Housing hood 7 M12 conne...

Page 13: ...ons see chapter 16 4 Cables accessories NOTICE Shielding connection The shielding is connected via the M12 connector housing 3 4 Indicators and operational controls The device is equipped with the fol...

Page 14: ...ization phase Code reading not possible Operating voltage applied Self test running ON continuous light Device ok Code reading possible Self test successfully finished Device monitoring active Orange...

Page 15: ...display only for Ethernet and PROFINET communication The NET indicator refers only to the Ethernet or PROFINET communication not to the RS 232 RS 422 LINK LED Tab 3 3 LINK indicators Color State Desc...

Page 16: ...Service operating mode which is set using the webConfig tool the code reader cannot be operated using the control buttons Navigation button Scroll through the functions in the bar graph display from...

Page 17: ...camera operating mode makes fast decoding possible 4 1 2 Reading gate control The Reading gate control camera operating mode is activated upon shipment from the factory The read ing gate control open...

Page 18: ...required Image frequency You can limit the maximum number of images per second A reduction in image frequency is recom mended for slow applications where the object with the code moves slowly past the...

Page 19: ...compliance with ISO IEC 15416 and ISO IEC 15415 NOTICE Activating the Code quality function increases the decoding time The code quality is given as follows A F A High quality F Low quality The follo...

Page 20: ...uality If multiple codes are decoded the minimum quality is output via the switching output for the first found code only 4 4 Leuze webConfig tool The webConfig configuration tool offers a graphical u...

Page 21: ...Applications Leuze electronic DCR 248i 21 5 Applications 5 1 Reading of 1D codes Fig 5 1 Reading of 1D codes...

Page 22: ...er 1 2 1 Code reading without polarization filter 2 Code reading with polarization filter Fig 5 3 Using the polarization filter By using the linear polarization filter integrated in the housing hood y...

Page 23: ...ading without diffusor foil 2 Code reading with diffusor foil Fig 5 4 Using the diffusor foil The diffusor foil reduces interfering reflections by increasing the scatter of the integrated LED illumina...

Page 24: ...ible chance of damage to the code reader through mechanical colli sion or jammed parts Avoid possible ambient light influence no direct sunlight Take the following factors into account when selecting...

Page 25: ...ination Fig 6 1 Mounting with tilt angle or angle of inclination 6 1 3 Determining the reading distance In general the read field of the code reader becomes larger with increasing reading distance Thi...

Page 26: ...or code reader with M1 optics NOTICE Please note that the actual reading distances are also influenced by factors such as labeling material printing quality reading angle printing contrast etc and may...

Page 27: ...20 mil 0 19 mm 7 5 mil 0 25 mm 10 mil 0 35 mm 14 mil 0 5 mm 20 mil 1 1 Reading distance mm Fig 6 4 Typical reading distances for 1D and 2D codes with various modulus sizes of the codes Relationship be...

Page 28: ...e on the system with M4 fastening screws not included in delivery contents Max tightening torque of the fastening screws 1 4 Nm Location and thread depth of the mounting thread see chapter 15 3 Dimens...

Page 29: ...f the mounting thread see chapter 15 3 Dimensioned drawings Mount the mounting bracket on the rod with the clamp profile system side 6 3 Replace housing hood In individual cases you can exchange the h...

Page 30: ...rization filter The diffusor foil is not suitable for use in combination with the polarization filter NOTICE Only attach diffusor foil to dust and grease free surface Before attaching the foil make ce...

Page 31: ...Mounting Leuze electronic DCR 248i 31 NOTICE Avoid air bubbles when attaching the diffusor foil When attaching the diffusor foil take care to prevent bubbles from forming under the film...

Page 32: ...ly If faults cannot be rectified take the device out of operation Protect the device from acci dentally being started NOTICE Shielding connection The shielding is connected via the M12 connector housi...

Page 33: ...d at the PWR SWIO M12 plug The RS 232 RS 422 interface on the PWR SWIO M12 plug is directly connected to the host To connect to other fieldbus systems e g PROFIBUS PROFINET EtherCAT etc Leuze electron...

Page 34: ...ut No read 12 SWIO4 Red blue Digital switching input output 4 configurable default switching output Device ready Thread M12 plug FE functional earth Connection cable shield The shield of the connectio...

Page 35: ...tching input to controller Fig 7 3 Switching input SWIO3 and SWIO4 connection NOTICE Maximum input current The input current of the respective switching input is maximum 8 mA Function as switching out...

Page 36: ...inal Designation Assignment 1 TD Transmit Data 2 RD Receive Data 3 TD Transmit Data 4 RD Receive Data Thread M12 socket FE functional earth Connection cable shield The shield of the connection cable i...

Page 37: ...control Fig 7 6 Ethernet star topology Ethernet cable assignment 2 1 3 4 1 8 Fig 7 7 HOST to RJ 45 cable assignments Designed as shielded cable max 100 m Pin M12 Designation Pin core color RJ45 1 TD...

Page 38: ...essary 7 6 Connecting code reader to fieldbus The code reader can be connected to the following fieldbuses via the MA 2xxi modular connection units CANopen MA 235i EtherCAT MA 238i EtherNet IP MA 258i...

Page 39: ...R 200i code reader 2 External illumination e g 50132511 3 MA 150 modular connection unit 4 Sensor photoelectric sensor diffuse sensor 5 Cable M12 connector RJ45 4 pin 2 m e g 50109880 6 Cable M12 conn...

Page 40: ...Connect the 18 V 30 V DC operating voltage After applying the operating voltage the device operates with the factory settings Activation of the reading gate via SWI1 The integrated illumination becom...

Page 41: ...eaders DCR 248i IP address 192 168 060 101 Subnet mask 255 255 255 0 Setting the IP address via PC laptop Set the network address on the PC example for Windows7 Log in as administrator Select Start Sy...

Page 42: ...for the device on the Downloads tab Open the DCR Configurator smartphone app Select the Assign IP address configuration menu item and enter the desired IP address The DCR Configurator generates a con...

Page 43: ...ction oriented TCP IP protocol can also be used to transfer commands from the host to the device With this connection the data is backed up by the TCP IP protocol itself If you would like to use the T...

Page 44: ...stop bit 8 3 6 FTP client To transfer images and log files you can configure process data output via an FTP server You can set the IP address and the port number of the FTP server with which communic...

Page 45: ...ve to the device NOTICE AUTO function not for Pharmacode The AUTO function cannot be used for Pharmacode codes ADJ Adjustment function for aligning the device The reading quality is visually displayed...

Page 46: ...Configuration Decoder Control buttons AUTO function 8 6 2 Control of the decoding In general decoding is controlled via the configurable switching inputs outputs The corresponding connec tion to the...

Page 47: ...the state of the device Device ready not ready Data transmission active not active Active standby Error no error Connect the required switching outputs see chapter 7 Electrical connection Configure th...

Page 48: ...ration Device Image transfer Search mode Select the Optimized search mode for fast decoding This search mode can only be used for 2D codes The adjustment options can be found in the webConfig tool Con...

Page 49: ...olution 1280 x 800 pixels or higher Internet browser Internet Explorer version 9 0 or higher Firefox version 30 or higher Chrome version 40 or higher NOTICE Regularly update the operating system and t...

Page 50: ...with different firmware were connected to the webConfig tool Delete cookies and temporary Internet and website data from browser history before starting the web Config tool Example for Internet Explor...

Page 51: ...terrupted The switching inputs outputs are deactivated The configuration can be changed NOTICE Configuration changes only in the Service operating mode Changes made using the CONFIGURATION function ca...

Page 52: ...the configuration file Update firmware Setting system time system clock Managing user guidance 9 3 3 CONFIGURATION menu NOTICE Configuration changes only in the Service operating mode Changes made usi...

Page 53: ...wizard With the configuration wizard you can set up your application in just a few steps Fig 9 4 Configuration wizard Select CONFIGURATION Start Wizard Make the settings using the configuration steps...

Page 54: ...file do not support any configuration of the device functionality Configuration is performed via other mechanisms e g the webConfig tool or online XML commands see chapter 9 Com missioning Leuze elect...

Page 55: ...either If parameters are changed in the project tool for example these changes are stored by the control in the project not in the GSDML file NOTICE GSDML file name structure The file name of the GSDM...

Page 56: ...ce with the webConfig tool see chap ter 9 Commissioning Leuze electronic webConfig tool HOME INSTALLATION GSDML file The GSDML file stored in the device is always compatible with the firmware version...

Page 57: ...he naming of the device as the creation of a name based relationship for a PROFINET device Set the device name The PROFINET device has a unique MAC address that is part of the factory settings The MAC...

Page 58: ...ired a router address and assign this data to the named participant device name 1 2 3 1 Ethernet participant 2 Set IP configuration 3 Device name Fig 10 3 MAC address IP address individual device name...

Page 59: ...ate This is the case for example if the control is switched to the STOP mode For exam ple an activated device or an output is then deactivated In the event of a connection interruption the device beha...

Page 60: ...y data 4 Entry information 48 bytes max 0 1 51 M105 see chapter 10 4 17 Entry data 5 Entry data 5 Entry information 64 bytes max 0 1 67 M106 see chapter 10 4 18 Entry data 6 Entry data 6 Entry informa...

Page 61: ...1 byte Tab 10 2 Input data structure module 10 Input data Address Data type Value range Default Unit Explanation Number of results 0 UN SIGNED8 0 255 0 Number of not yet re trieved complete re sults D...

Page 62: ...results direction from device to control To occupy few i o data the results may be split into several fragments with this module The fragments can then be transmit ted one after another with a handsha...

Page 63: ...s Data type Value range Default Unit Explanation Fragment number 0 Byte 0 255 0 Current fragment num ber Remaining fragments 1 Byte 0 255 0 Number of fragments which still have to be transmitted for a...

Page 64: ...aiting for acknowledg ment 0 7 Bit 0 Base state 1 Control waiting for acknowledge ment from the master 0 This signal represents the internal state of the control Result data length 1 UN SIGNED 16 0 65...

Page 65: ...ting for acknowledg ment 0 7 Bit 0 Base state 1 Control waiting for acknowledge ment from the master 0 This signal represents the internal state of the control Result data length 1 UN SIGNED 16 0 6553...

Page 66: ...ting for acknowledg ment 0 7 Bit 0 Base state 1 Control waiting for acknowledge ment from the master 0 This signal represents the internal state of the control Result data length 1 UN SIGNED 16 0 6553...

Page 67: ...ting for acknowledg ment 0 7 Bit 0 Base state 1 Control waiting for acknowledge ment from the master 0 This signal represents the internal state of the control Result data length 1 UN SIGNED 16 0 6553...

Page 68: ...ting for acknowledg ment 0 7 Bit 0 Base state 1 Control waiting for acknowledge ment from the master 0 This signal represents the internal state of the control Result data length 1 UN SIGNED 16 0 6553...

Page 69: ...ting for acknowledg ment 0 7 Bit 0 Base state 1 Control waiting for acknowledge ment from the master 0 This signal represents the internal state of the control Result data length 1 UN SIGNED 16 0 6553...

Page 70: ...ng for acknowledg ment 0 7 Bit 0 Base state 1 Control waiting for acknowledge ment from the master 0 This signal represents the internal state of the control Result data length 1 UN SIGNED 16 0 65535...

Page 71: ...er a new result is present Reserved 0 6 Bit 0 Free Waiting for acknowledg ment 0 7 Bit 0 Base state 1 Control waiting for acknowledge ment from the master 0 This signal represents the internal state o...

Page 72: ...error 1 Receive buffer overflow 2 Sequence er ror 3 Invalid length entry 4 Invalid frag ment length entry 5 Length change in a sequence 0 Cause of error for re jection of the fragment Input data leng...

Page 73: ...lue range Default Unit Explanation Data accep tance toggle bit 0 0 Bit 0 1 Data have been accepted 1 0 Data have been accepted 0 The signal shows that the device has ac cepted the data or the data fra...

Page 74: ...tion is used the application must set the output data of the entry data fragmen tation module for each fragment that is to be transmitted before the toggle bit is toggled in the entry data module see...

Page 75: ...is present Reserved 0 6 Bit 0 Free 0 7 Bit 0 Free Entry data length 1 UN SIGNED16 0 65535 0 Data length of the ac tual information Data 3 34 32x UN SIGNED8 0 FFh 0 Information with a length of consist...

Page 76: ...error 1 Receive buffer overflow 2 Sequence er ror 3 Invalid length entry 4 Invalid frag ment length entry 5 Length change in a sequence 0 Cause of error for re jection of the fragment Input data lengt...

Page 77: ...lue range Default Unit Explanation Data accep tance toggle bit 0 0 Bit 0 1 Data have been accepted 1 0 Data have been accepted 0 The signal shows that the device has ac cepted the data or the data fra...

Page 78: ...tion is used the application must set the output data of the entry data fragmen tation module for each fragment that is to be transmitted before the toggle bit is toggled in the entry data module see...

Page 79: ...is present Reserved 0 6 Bit 0 Free 0 7 Bit 0 Free Entry data length 1 UN SIGNED16 0 65535 0 Data length of the ac tual information Data 3 98 96x UN SIGNED8 0 FFh 0 Information with a length of consist...

Page 80: ...ror 1 Receive buffer overflow 2 Sequence er ror 3 Invalid length entry 4 Invalid frag ment length entry 5 Length change in a sequence 0 Cause of error for re jection of the fragment Input data length...

Page 81: ...lue range Default Unit Explanation Data accep tance toggle bit 0 0 Bit 0 1 Data have been accepted 1 0 Data have been accepted 0 The signal shows that the device has ac cepted the data or the data fra...

Page 82: ...ering a reset or putting the device into standby mode Tab 10 32 Input data structure module 60 Input data Address Data type Value range Default Unit Explanation Device status 0 UN SIGNED 8 10 Standby...

Page 83: ...ref comparison 1 3 Bit 0 1 0 Negative reference code comparison Reserved 1 4 1 7 Bits 0 Reserved Input data length 2 bytes Tab 10 35 Output data structure module 61 Output data Address Data type Valu...

Page 84: ...ime the event counter is ex ceeded The bit is reset to the initial value by resetting the event counter Comparison state switch ing output 2 Event Counter 1 2 Bit 0 Not exceeded 1 Exceeded 0 Indicates...

Page 85: ...counter ex ceeded again 0 If SWOUT switches several times was con figured as comparison mode this bit is tog gled each time the event counter is ex ceeded The bit is reset to the initial value by res...

Page 86: ...ion func tion AF for switching output 2 back to zero Reset Event Counter Switching output 3 0 6 Bit 0 1 Perform reset 1 0 No func tion 0 Sets the event counter of the activation func tion AF for switc...

Page 87: ...Teach in set reference codes Call up error messages Query statistical device information Perform a software RESET and re initialize the code reader Syntax Online commands consist of one or two ASCII c...

Page 88: ...estarted and reinitialized leaving it in the same state as when the operating voltage is switched on Parameter None Acknowledgment S start signal Auto setup Command CA Description Activates the Auto s...

Page 89: ...label Alignment mode Command JP Description Activates or deactivates the alignment mode for simple mounting alignment of the device After activating the function with JP the code reader constantly ou...

Page 90: ...not been saved 04 Reference code invalid Example Entry RS133211032010 Code 1 1 RAM 03 EEPROM 0 DataMatrix ECC 200 32 code information Teach in Command RT Description This command enables a reference c...

Page 91: ...and SST Description The command queries the device status If the command is sent via the host interface Ethernet RS 232 RS 422 acknowledgment is only given in the Process operating mode The host inter...

Page 92: ...ommunication You can send commands for control and configuration directly to the code reader via XML based communi cation The code reader must be connected to a computer host via the Ethernet interfac...

Page 93: ...ng NOTICE Do not use aggressive cleaning agents Do not use aggressive cleaning agents such as thinner or acetone for cleaning the device Maintenance Repairs to the device must only be carried out by t...

Page 94: ...ntact Leuze electronic customer service see chapter 14 Service and support Red flashing Warning set Temporary operating fault Query diagnostic data and carry out the result ing measures NET LED Off No...

Page 95: ...rs Service center Leuze electronic GmbH Co KG In der Braike 1 D 73277 Owen Germany 14 1 What to do should servicing be required NOTICE Please use this chapter as a master copy should servicing be requ...

Page 96: ...Mbit s PROFINET IO RS 232 with adjustable data format Default 9600 Bd 8 data bits no parity 1 stop bit STX data CR LF Tab 15 2 Operating and display elements Keyboard 2 control buttons not on devices...

Page 97: ...umber of pixels 1280 x 960 pixels Optics models Resolution High Density N 0 127 mm 5 mil 0 25 mm 10 mil Medium Density M 0 19 mm 7 5 mil 0 33 mm 13 mil Low Density F 0 25 mm 10 mil 0 5 mm 20 mil Elect...

Page 98: ...R 248i 98 15 3 Dimensioned drawings all dimensions in mm A Optical axis Fig 15 1 DCR 200i dimensioned drawing 15 4 Dimensioned drawings Accessories all dimensions in mm Fig 15 2 Dimensioned drawing of...

Page 99: ...Technical data Leuze electronic DCR 248i 99 all dimensions in mm Fig 15 3 Dimensioned drawing of the BT 320M mounting bracket...

Page 100: ...Technical data Leuze electronic DCR 248i 100 all dimensions in mm Fig 15 4 Dimensioned drawing of the BTU 320M D12 RL70 mounting bracket for ring light...

Page 101: ...30109 5 SWIO4 PWR PWR SWIO IDENT SWO2 SWI1 HOST 39 33 55 75 95 C 4 5 B E A A F 4 5 31 D all dimensions in mm A Earthing strap B Green LED PWR C White LED SWI1 D White LED SWO2 E White LED SWIO3 F Whit...

Page 102: ...ve screen Plastic G Glass P Polarization filter V Stainless steel housing NOTICE A list with all available device types can be found on the Leuze electronic website at www leuze com 16 2 Type overview...

Page 103: ...0 PWR connection cable length 10 m M12 socket 12 pin A coded angled connector open cable end shielded UL 50134943 KD S M12 CW P1 050 PWR connection cable length 5 m Tab 16 5 Accessories PWR connection...

Page 104: ...A BUS OUT connection cable length 5 m 50106901 KB ET 10000 SSA BUS OUT connection cable length 10 m 50106902 KB ET 15000 SSA BUS OUT connection cable length 15 m 50106905 KB ET 30000 SSA BUS OUT conne...

Page 105: ...et 50114157 MA 258i Modular fieldbus connection for field use interfaces RS 232 Ethernet IP 50132488 KB JST M12A 12P 50 Interconnection cable for DCR 200i to MA 2xxi modu lar fieldbus connection Tab 1...

Page 106: ...Conformity Leuze electronic DCR 248i 106 17 EC Declaration of Conformity The code readers of the DCR 200i series have been developed and manufactured in accordance with the applicable European standar...

Page 107: ...6 10 20 DATA LINK ESCAPE Data link escape DC1 17 11 21 DEVICE CONTROL 1 Device control character 1 DC2 18 12 22 DEVICE CONTROL 2 Device control character 2 DC3 19 13 23 DEVICE CONTROL 3 Device control...

Page 108: ...53 35 65 5 Number 6 54 36 66 6 Number 7 55 37 67 7 Number 8 56 38 70 8 Number 9 57 39 71 9 Number 58 3A 72 COLON Colon 59 3B 73 SEMICOLON Semicolon 60 3C 74 LESS THAN Less than 61 3D 75 EQUALS Equals...

Page 109: ...6 CIRCUMFLEX Circumflex _ 95 5F 137 UNDERSCORE Underscore 96 60 140 GRAVE ACCENT Grave accent a 97 61 141 a Lower case letter b 98 62 142 b Lower case letter c 99 63 143 c Lower case letter d 100 64 1...

Page 110: ...172 z Lower case letter 123 7B 173 OPENING BRACE Opening brace 124 7C 174 VERTICAL LINE Vertical line 125 7D 175 CLOSING BRACE Closing brace 126 7E 176 TILDE Tilde DEL 127 7F 177 DELETE RUBOUT Delete...

Page 111: ...6 Code type UPC A SC 3 Fig 18 7 Code type EAN 8 SC 0 S Fig 18 8 Code type EAN 13 add on DCR 200i Fig 18 9 Code type DataMatrix ECC200 DCR 200i Fig 18 10 Code type QR Code Test symbol Fig 18 11 Code ty...

Page 112: ...onnect the code reader to the operating voltage and activate the AUTO function on the control panel Hold the configuration code at the correct distance in front of the optics of the code reader NOTICE...

Page 113: ...of continuous mode Fig 18 21 Configuration code Continuous mode activation 18 4 License terms This product contains software components that are licensed by the copyright holders as free software or...

Page 114: ...odule configuration Module 10 Activation mode 1 with ack Module 21 Result data 1 data length 16 bytes Reading and transmitting two bar codes in fragmented mode Module configuration Module 10 Activatio...

Page 115: ...Appendix Leuze electronic DCR 248i 115...

Reviews: