Instruction Manual optoNCDT 1302 ILD1302-20 ILD1302-50 ILD1302-100 ILD1302-200 Intelligent laser optical displacement measurement MICRO-EPSILON MESSTECHNIK GmbH & Co. KG Königbacher Strasse 15 94496 Ortenburg / Germany Tel. 08542/168-0 Fax 08542/168-90 e-mail [email protected] www.micro-epsilon.com Certified acc. to DIN EN ISO 9001: 2008 Contents 1. Safety........................................................................................................................................... 7 1.1 Symbols Used..................................................................................................................................................... 7 1.2Warnings............................................................................................................................................................. 7 1.3 CE Compliance................................................................................................................................................... 8 1.4 Proper Use.......................................................................................................................................................... 8 1.5 Proper Environment............................................................................................................................................ 8 2.Laser Class ................................................................................................................................. 9 3. Functional Principle, Technical Data........................................................................................ 11 3.1 Functional Principle ......................................................................................................................................... 11 3.2Functions........................................................................................................................................................... 12 3.2.1 Fitting the Measurement Range....................................................................................................................... 12 3.2.2 Peak Select....................................................................................................................................................... 12 3.2.3 Trigger, Time-based Measurement Value Output............................................................................................. 12 3.2.4 Error Behavior................................................................................................................................................... 12 3.2.5Averaging.......................................................................................................................................................... 12 3.2.6 Video Signal...................................................................................................................................................... 13 3.2.7 Programmable Search Threshold.................................................................................................................... 13 3.3 Technical Data................................................................................................................................................... 14 3.4 Control and Indicator Elements........................................................................................................................ 15 4.Delivery ..................................................................................................................................... 16 4.1 Scope of Delivery.............................................................................................................................................. 16 4.2Storage ............................................................................................................................................................. 16 5.Installation and Mounting......................................................................................................... 17 5.1 5.2 5.2.1 5.2.2 5.2.3 5.3 Sensor Mounting .............................................................................................................................................. 17 Pin Assignment................................................................................................................................................. 18 Switching off the Laser...................................................................................................................................... 19 Input for Analog Scaling and Triggering........................................................................................................... 19 Error Output...................................................................................................................................................... 20 Pin Assignment for RS422 Interface................................................................................................................. 20 optoNCDT 1302 6.Operation .................................................................................................................................. 21 6.1 Getting Ready for Operation ............................................................................................................................ 21 6.2 Output Scaling.................................................................................................................................................. 22 6.2.1 Output Scaling via the “Select“ Key................................................................................................................. 24 6.2.2 Output Scaling via the Hardware Input............................................................................................................ 25 6.3Average ............................................................................................................................................................ 26 6.3.1 Averaging Number N ....................................................................................................................................... 26 6.3.2 Moving Average (Default Setting) .................................................................................................................... 26 6.3.3Median ............................................................................................................................................................. 27 6.4 Measurement Rate and Output Rate ............................................................................................................... 28 6.5Timing ............................................................................................................................................................... 29 6.6Triggering.......................................................................................................................................................... 30 7. Measurement Value Output...................................................................................................... 31 7.1 7.2 7.3 Current Output.................................................................................................................................................. 31 Digital Value Output ......................................................................................................................................... 32 Digital Error Codes............................................................................................................................................ 33 8. Serial Interface RS422............................................................................................................. 34 8.1 Interface Parameter........................................................................................................................................... 35 8.2 Data Format for Measurement Values and Error Codes ................................................................................. 35 8.2.1 Binary Format ................................................................................................................................................... 35 8.2.2 ASCII Format ................................................................................................................................................... 36 8.3 Data Protocol ................................................................................................................................................... 36 8.3.1 Setup of the Commands................................................................................................................................... 36 8.3.2Overview............................................................................................................................................................ 37 8.3.3 Reading the Sensor Parameters, GET_INFO................................................................................................... 38 8.3.4 Reading the Sensor Settings, GET_SETTINGS.............................................................................................. 40 8.3.5 Average Type and Average Number, SET_AV.................................................................................................. 44 8.3.6 Stopping the Measurement Value Output, DAT_OUT_OFF............................................................................. 45 8.3.7 Starting the Measurement Value Output, DAT_OUT_ON................................................................................. 45 8.3.8 Digital or Analog Data Output , SET_OUTPUT_CHANNEL.............................................................................. 46 8.3.9 Characteristics for Digital or Analog Data Output, SET_OUTPUTMODE ....................................................... 47 8.3.10 Set Output Time, SET_OUTPUTTIME_MS ...................................................................................................... 48 8.3.11 Error Output (Analog output), SET_ANALOG_ERROR_HANDLER ................................................................. 49 8.3.12 Set Baud Rate, SET_BAUDRATE ..................................................................................................................... 50 8.3.13 Input for Scaling and Trigger, SET_EXT_INPUT_MODE ................................................................................. 51 8.3.14 Peak Detection with Video Signal, SET_PEAKSEARCHING ........................................................................... 52 8.3.15 Search Threshold, SET_THRESHOLD............................................................................................................. 53 optoNCDT 1302 8.3.16 8.3.17 8.3.18 8.3.19 8.3.20 8.3.21 8.3.22 8.3.23 9. Switching off the Laser (External), LASER_OFF............................................................................................... 54 Change Data Format, ASCII_OUTPUT............................................................................................................. 55 Key Lock, SET_KEYLOCK ................................................................................................................................ 56 Reset Sensor, RESET_BOOT............................................................................................................................ 57 Set Default Setting, SET_DEFAULT ................................................................................................................. 58 Save Settings in RAM or FLASH, SET_SAVE_SETTINGS_MODE................................................................... 59 Scaling Values for the Analog Output, SET_TEACH_VALUE........................................................................... 60 Reset Scaling Values for the Analog Output, RESET_TEACH_VALUE............................................................ 61 Instructions for Operating ....................................................................................................... 62 9.1 9.2 9.2.1 9.2.2 9.2.3 9.2.4 9.2.5 9.2.6 9.2.7 9.3 9.4 Reflection Factor of the Target Surface............................................................................................................ 62 Error Influences................................................................................................................................................. 62 Light from other Sources ................................................................................................................................. 62 Color Differences.............................................................................................................................................. 63 Temperature Influences ................................................................................................................................... 63 Mechanical Vibrations ...................................................................................................................................... 63 Movement Blurs................................................................................................................................................ 63 Surface Roughness.......................................................................................................................................... 63 Angle Influences .............................................................................................................................................. 63 Optimizing the Measuring Accuracy................................................................................................................. 64 Cleaning the Protective Glasses....................................................................................................................... 65 10. Default Setting........................................................................................................................... 66 11. ILD1302 Tool.............................................................................................................................. 67 12. Software Support with MEDAQLib........................................................................................... 68 13.Warranty .................................................................................................................................... 69 14. Service, Repair ......................................................................................................................... 69 15. Decommissioning, Disposal .................................................................................................... 69 16. Free Space for Optics............................................................................................................... 70 17. Available Cables........................................................................................................................ 71 18. Input /Output Circuit ................................................................................................................ 72 optoNCDT 1302 Appendix A 1 Converter RS422-USB............................................................................................................... 73 optoNCDT 1302 Safety 1. Safety Knowledge of the operating instructions is a prerequisite for sensor operation. 1.1 Symbols Used The following symbols are used in this instruction manual: Indicates a hazardous situation which, if not avoided, may result in minor or moderate injury. Indicates a situation which, if not avoided, may lead to property damage. Indicates an user action. i 1.2 Indicates an user tip. Warnings Avoid unnecessary laser exposure to the human body -- Turn off the sensor for cleaning and maintenance. -- Turn off the sensor for system maintenance and repair if the sensor is integrated into a system. Caution - use of controls or adjustments or performance of procedures other than those specified may cause harm. Connect the power supply and the display/output device in accordance with the safety regulations for electrical equipment. >> Danger of injury, damage to or destruction of the sensor The power supply may not exceed the specified limits. >> Danger of injury, damage to or destruction of the sensor Avoid shock and vibration to the sensor.Damage to or destruction of the sensor Avoid continuous exposure to fluids. >> Damage to or destruction of the sensor optoNCDT 1302 Avoid contact with aggressive materials (washing agent, penetrating liquids or similar). >> Damage to or destruction of the sensor Page 7 Safety 1.3 CE Compliance The following applies to the optoNCDT1302: EMC regulation 2004/108/EC Products which carry the CE mark satisfy the requirements of the EMC regulation 2004/108/EC ‘Electromagnetic Compatibility’ and the European standards (EN) listed therein. The EC declaration of conformity is kept available according to EC regulation, article 10 by the authorities responsible at MICRO-EPSILON Messtechnik GmbH & Co. KG Königbacher Straße 15 D-94496 Ortenburg The sensor is in compliance with the following standards -- EN 61326-1:2006-10 -- DIN EN 55011: 2007-11 (Group 1, Class B) -- EN 61000-6-2: 2006-03 The sensor fulfills the specification of the EMC requirements, if the instructions in the operating manual are followed. 1.4 Proper Use -- The series optoNCDT1302 measuring system is designed for use in industrial areas. -- It is used for measuring displacement, distance, position and thickness for in-process quality control and dimensional testing -- The measuring system may only be operated within the limits specified in the technical data, see Chap. 3.3. The sensor should only be used in such a way that in case of malfunctions or failure personnel or machinery are not endangered. -- Additional precautions for safety and damage prevention must be taken for safety-related applications. 1.5 Proper Environment -- Protection class sensor: IP 67 -- Optical surfaces are excluded from protection class. Contamination of the lenses leads to impairment or failure of the function. optoNCDT 1302 Page 8 Safety -- Operating temperature: 0 to +50 °C (+32 to +122 °F) -- Storage temperature: -20 to +70 °C (-4 to +158 °F) -- Humidity: 5 - 95 % (no condensation) -- Pressure: atmospheric pressure -- EMC: acc. to EN 61326-1:2006-10 DIN EN 55011: 2007-11 (Group 1, Class B) EN 61000-6-2: 2006-03 i 2. The protection class is limited to water (no penetrating liquids or similar)! Laser Class The sensors operate with a semiconductor laser with a wavelength of 670 nm (visible/red). The laser emits a permanent beam. The maximum optical power is ≤ 1 mW. The sensors are classified for Laser Class 2 (II). The laser warning labels for Germany have already been applied. Those for other non German-speaking countries an IEC standard label is included in delivery and the versions applicable to the user’s country must be applied before the equipment is used for the first time. Attach the following warning labels on the sensor housing front side: LASER RADIATION Do not stare into the beam CLASS 2 LASER PRODUCT IEC 60825-1: 2007 P≤1mW; =670 nm IEC label i optoNCDT 1302 Only for USA If both warning labels are disguised in operation mode the user must add additional warning labels. Page 9 Laser Class During operation of the sensor the pertinent regulations acc. to EN 60825-1 on „radiation safety of laser equipment“ must be fully observed at all times. The sensor complies with all applicable laws for the manufacturer of laser devices. Do not look directly into the laser beam! Possible injury of the eyes. Close your eyes or turn away promptly if laser radiation strikes your eyes. teach in laser on state optoNCDT LASER RADIATION Do not stare into the beam CLASS 2 LASER PRODUCT IEC 60825-1: 2007 P≤1mW; =670 nm Laser spot Fig. 1 True reproduction of the sensor with its actual location of the warning labels Laser operation is indicated by LED. Although the laser output is low looking directly into the laser beam must be avoided. Due to the visible light beam eye protection is ensured by the natural blink reflex. The housing of the optical sensors optoNCDT1302 may only be opened by the manufacturer, see Chap. 14.. For repair and service purposes the sensors must always be sent to the manufacturer. optoNCDT 1302 Page 10 Functional Principle, Technical Data 3. Functional Principle, Technical Data 3.1 Functional Principle The sensor uses the principle of optical triangulation, that is a visible, modulated point of light is projected onto the target surface. A LED on the sensor indicates: -- In range -- Out of Range (upper and lower range values), poor target (unfit or no object) -- Mid range The sensor outputs analog or digital values. LASER RADIATION Do not tare into the beam C ASS 2 LASER PRODUCT IEC 60825-1: 2007 P≤1mW; =670 nm SMR The controller calculates the measured value from the CCD-array. An internal closed-loop control enables the sensor to measure against different surfaces. laser on state optoNCDT Measuring range The diffuse element of the reflection of the light spot is imaged by a receiver optical element positioned at a certain angle to the optical axis of the laser beam onto a high-sensitivity resolution element (CCD), in dependency on distance. teach in Current output Digital value 3.75 mA 16372 4 mA (SMR) 40 12 mA (MR) 2048 20 mA (EMR) 4055 3.75 mA 16374 Fig. 2 Definiton of terms, output signal SMR = Start of measuring range | MR = Midrange | EMR = End of measuring range optoNCDT 1302 Page 11 Functional Principle, Technical Data 3.2 Functions 3.2.1 Fitting the Measurement Range The analog measuring range can be reduced with aid of the “Teach“ function, see Chap. 6.2. This enables you to scale only a part of the measuring range to the full scale current output. Thus the resolution of analog evaluation systems like displays or PLCs will be used better. 3.2.2 Peak Select For measurements on mirroring or transparent surfaces like glass plates or plastic layers spurious reflections from the front or rear side can be suppressed by command, see Chap. 8.3.14. 3.2.3 Trigger, Time-based Measurement Value Output Single measurements can be output via the trigger input. You can also output the measurements in a programmable timing period, see Chap. 8.3.10. 3.2.4 Error Behavior The sensor may replace or hold up to 99 consecutive errors by the last valid value. In addition, all error values at the analog output can be replaced by the last valid value. Details about the behavior of the analog output, see Chap. 8.3.11. 3.2.5 Averaging The sensor enables an averaging of the measured values with the median or moving average, before they are output. This does not reduce the measurement rate. optoNCDT 1302 Page 12 Functional Principle, Technical Data 3.2.6 Video Signal Intensity The sensor can use different peaks in the CCD array for displacement measuring. This function is auxiliary, if the sensor measures against glass or transparent targets, see Chap. 8.3.14. CCD array SMR Displacement 1 Displacement 2 Measuring range Fig. 3 Video signal 3.2.7 Programmable Search Threshold Intensity The sensor can use different thresholds to detect a valid peak in the CCD array for displacement measuring. Highest Higher than Standard Standard Lower than Standard CCD array optoNCDT 1302 Parameters, see Chap. 8.3.15 for parameter setting: -- lower than standard -- Standard -- higher than standard -- highest i Changing the threshold from factory default (standard) may influence linearity and resolution. Page 13 Functional Principle, Technical Data 3.3 Technical Data Type ILD1302- 20 50 Measuring principle 100 200 Laseroptical triangulation Measuring range mm (inches) 20 (0.79) 50 (2.0) 100 (3.9) 200 (7.9) Start of measuring range mm (inches) 30 (1.2) 45 (1.8) 50 (2.0) 60 (2.4) Midrange mm (inches) 40 (1.6) 70 (2.8) 100 (3.9) 160 (6.3) End of measuring range mm (inches) 50 (2.0) 95 (3.7) 150 (5.9) 260 (10) µm (mils) 40 (1.57) 100 (3 94) 200 (7 87) 400 (15.74) Linearity % FSO Averaged over 64 values Resolution ±0.2 4 (.16) 10 (.39) 10 (.39) 25 (.98) 20 (0.79) % FSO dynamic at 750 Hz µm (mils) 40 (1.6) 0.02 50 (2.0) % FSO 100 (.39) 0.05 750 Hz Measuring rate Light source Semiconductor laser < 1 mW, 670 nm (red) Laser class 2 (DIN EN 60825-1 2007) SMR, µm (mils) 210 (8.27) 1100 (43.30) 1400 (55.12) 2300 (90.55) Spot diameter MMR, µm (mils) 530 (20.87) 110 (4 33) 130 (5.12) 2200 (86.61) EMR, µm (mils) 830 (32.68) 1100 (43.39) 1400 (55.12) 2100 (82.68) Protection class IP 67 Vibration 15 g/ 10 Hz...1 kHz Shock 15 g / 6 ms (IEC 68-2-29) approximately 83 g, without cable Weight Temperature stability optoNCDT 1302 % FSO/°C 0.03 0.08 Page 14 Functional Principle, Technical Data Type ILD1302- 20 50 100 Operating temperature 0 ... +50 °C (32... to 122 °F) Storage temperature -20 ... +70 °C ( -4 to 158 °F) analog Output digital Power supply 4...20 mA (1...5 V with cable PC 1302-3/U) RS422 11 ... 30 VDC, 24 VDC/ 50 mA Electronics Electromagnetic compatibility (EMC) 200 Integral signal processor EN 61326-1:2006-10 DIN EN 55011: 2007-11 (Group 1, Class B) EN 61000-6-2: 2006-03 SMR = Start of measuring range EMR = End of measuring range MMR = Midrange FSO = Full Scale Output The specified data apply for a diffusely reflecting white ceramic target. 3.4 Control and Indicator Elements LED State Color “Select“ key LED “state“ Measuring object within measurement range green Midrange yellow Error - e.g. poor target or out of range red Laser turned off off The touch key “select” is used to scale the sensor. By factory default this key is only active for the first 5 minutes after the power up. After that it will be automatically locked. Via the software tool the auto lock feature can be disabled. With the select key you spread the analog output over a part of the nominal measuring range. optoNCDT 1302 Page 15 Delivery 4. Delivery 4.1 Scope of Delivery 1 Sensor optoNCDT1302 1 Assembly instructions 5 Sealing screws for connector 1 CD with driver and demo program Optional accessory, packed separately: -- 1 PC1402-x/I cable carriers suitable interface and supply cable for current output, one end of the cable has a molded M12 female connector, the other end has free leads with ferrules. -- 1 PC1402-x/U cable carriers suitable interface and supply cable for voltage output (250 Ohm load, U out = 1 … 5 V), one end of the cable has a molded M12 female connector, the other end has free leads with ferrules. A full list of all available cables, see Chap. 17.. X 45.4 50 ±2 ø15 Twisted screening, covered with head shrink tube, ferrule M12x1 coupling, screened with vibration protection, 12-pin Label, 2 lines printed Cable: Li12YC11Y-OB 5x2x0.25 mm², screened outer casing: PUR color: grey Ferrules wire insulation: TPE Check for completeness and shipping damage immediately after unpacking. In case of damage or missing parts, please contact the manufacturer or supplier. 4.2 optoNCDT 1302 Storage Storage temperature:-20 up to +70 °C (-4 to +158 °F) Humidity : 5 - 95 % (no condensation) Page 16 Installation and Mounting 5. Installation and Mounting The sensor is an optical sensor for measurements with micrometer accuracy. Make sure it is handled carefully when installing and operating. 48 (1.89) Minimum bending radius PC1402-x -- once: 39 mm -- continuous: 78 mm -- cable-ø PC1402-x: 8 mm Rotate the connector: Loosen the 4 screws M2 and rotate the male connector. Fasten the male connector. Use new sealing screws M2. Connector is sealed (IP 67) waiting 12 hours. Fig. 4 Dimensions ILD1302, mm (inches) Possible connector orientation M12x1 Mount the sensor in such a way that the laser beam is directed perpendicularly onto the surface of the target. In case of misalignment it is possible that the measurement results will not always be accurate, see Chap. 9.. 20 (.79) 14 (.55) Mount the sensor via 2 screws M4. optoNCDT 1302 12 (.47) Sensor Mounting 2 Mounting holes ø4.3/5.8 5 (.20) 5.1 65 (2.56) 50 (1.97) 40 (1.57) i Laser beam 57 (2.24) 65 (2.56) 80 (3.15) 16 (.63) 4 (.16) Page 17 Installation and Mounting 5.2 Pin Assignment Pin Description 3 RS422 Rx+ 4 RS422 Rx- 5 RS422 Tx+ 6 RS422 Tx- Color code Specification PC1402-x/I Serial input Serial output green yellow grey pink Internally terminated with 120 Ohm Terminate externally with 120 Ohm 7 +U B red 11 ... 30 VDC, typical 24 VDC / 50 mA 8 Laser off black Laser is active, if pin 8 is connected with GND 9 Teach in violet Connected to GND for at least 30 ms 10 Error Switch output brown Open-Collector (NPN), I max = 100 mA, U max = 30 VDC, short circuit proof, turn off the power supply to reset the short circuit protection 11 I OUT 4 ... 20 mA white R Load = 250 W results UOUT 1 ... 5 V with UB > 11 V R Load = 500 W results UOUT 2 ... 10 V with UB > 17 V 12 GND blue Supply and signal ground 1/2 n.c. Switch input The shield of the cable is connected with the housing of the connector. The supply and output cable PC1402-x/I is cable carriers suitable. One end of the cable has a molded M12 female connector, the other end has free leads with ferrules. 8 optoNCDT 1302 10 12 7 6 Fig. 5 Pin side male cable connector 1 9 3 11 5 2 4 Page 18 Installation and Mounting 5.2.1 Switching off the Laser Connect pin 8 with pin 12 to switch on the laser. If you open this connection -- the laser switches off, -- the error output switches on, -- the “State“ LED switches off. +3.3 V ILD1302 Laser off Pin 8 Teach in Pin 9 Pin 12 330 Ohm GND Fig. 6 Circuit for laser off, analog scaling and trigger input 5.2.2 Input for Analog Scaling and Triggering If pin 9, see Fig. 6, is selected as input to scale the analog output in the sensor configuration, see Chap. 8.3.13 and if pin 9 is connected with pin 12 more than 2 sec, the scaling of the analog output starts, see Chap. 6.2. The minimum pulse duration is 30 ms, see Chap. Fig. 10. This external input can be configured as a trigger input to output the measurements also. If pin 9 is connected with pin 12 measurements are output at the serial or analog output. The maximum trigger frequency is 250 Hz. Trigger conditions: Wiring optoNCDT 1302 connect with ground, for example a relay or open-collector (NPN) Page 19 Installation and Mounting 5.2.3 Error Output The error message is generated by: -- no measuring object or measuring object beyond measuring range -- poor target (reflectivity to small, transparent or mirroring object) or laser off +24 VDC 10 kOhm ILD1302 T max. 100 mA Pin 10 U CE max. = 30 VDC No error: T locked Error: T conductive The error output is low-active and short circuit proof. Fig. 1 External wiring for the error output i 5.3 With a user defined output scaling, see Chap. 6.2, you can use the hysteresis-free error output as a programmable limit switch. Pin Assignment for RS422 Interface The lines have to be crossed for the connection between sensor and PC. Sensor Tx+ (Pin 5) Tx - (Pin 6) Rx+ (Pin 3) Rx - (Pin 4) GND (Pin 12) i optoNCDT 1302 Terminal (USB converter) Rx+ (Pin 3) Rx - (Pin 4) Tx+ (Pin 2) Tx - (Pin 1) GND (Pin 5) Colors PC1402-x/I grey pink green yellow blue Disconnect or connect the D-sub connection between RS422 and USB converter when the sensor is disconnected from power supply only. Page 20 Operation 6. Operation 6.1 Getting Ready for Operation Install and assemble the optoNCDT1302 in accordance with the instructions set out, see Chap. 5.1 and connect it with the indicator or monitoring unit and the power supply, having full regard to the connection instructions set out, see Chap. 5.2. The laser diode in the sensor can only be activated if -- the input “Laser on/off“ (Pin 9) or -- the black wire in the PC1402 sensor cable is connected to GND. Once the operating voltage has been switched on the sensor runs through an initialization sequence. This is indicated by the momentary activation of the “State” LED. If initialization has been finished, the sensor transmits the info string once in ASCII format via the serial interface independent of the selected interface. The initialization including the info string transmission takes up to 5 seconds. Within this period, the sensor neither executes nor replies commands. To be able to produce reproducible measurements the sensor typically requires a start-up time of 15 minutes. Once this has elapsed the sensor will be in measurement mode and, in accordance with the factory settings, only the “State“ LED is illuminated. If the “State“ LED is off, this means that -- either there is no operating voltage or -- the laser has been switched off. Operating Voltage -- Nominal value: 24 VDC (11 ... 30 V, max. 50 mA). -- Use the power supply unit for measurement instruments only, and not for drive units or similar sources of pulse interference at the same time. Switch on the power supply unit, if wiring is done. optoNCDT 1302 Page 21 Operation 6.2 ing Output Scal- The “teaching” scales the analog output (4 to 20 mA) for a part of the measuring range. This allows you to optimize the resolution for the analog measurement range. Only the current and error output will be affected by the 2 point calibration. Therefore you define a new start and end for the measurement range. This “teaching” procedure can be performed live via the select key or via pin 9 of the connector. i You can use the error output with a user defined output scaling, see Chap. 5.2.3, as a programmable limit switch. 20 mA 4 mA 3 mA SMR EMR Measuring range Measuring object Digital value 16372 LED “state” 0 40 4055 Measuring object within range Error 16368 16374 Error Error output 20 mA Analog output User defined characteristic 4 mA 3 mA SMR Digital value 16372 LED “state” Error Error output optoNCDT 1302 Default characteristic Analog output 16380 Teach 1 Teach 2 1229 3073 EMR 16382 16374 Error Measuring object within range Page 22 Operation 20 mA Analog output User defined characteristic 4 mA 3 mA Teach 2 SMR Teach 1 EMR Measuring object Digital value LED “state” 16372 16380 1229 3073 Error Error output 16382 16374 Error Measuring object within range Fig. 7 Reverse user defined characteristic The minimum distance of the teach values 1/2 to one other is 10 % of the measurement range. The teaching process requires a valid measuring signal. The teaching process is terminated at „no target“, „target not evaluated“, „to close to the sensor“ - beyond SMR“ or „to far from the sensor - beyond EMR“. optoNCDT 1302 Page 23 Operation 6.2.1 Output Scaling via the “Select“ Key Start teaching Measuring Key select Position the measuring object to 4 mA Teach-in 1 Position the Teach-in 2 Measuring measuring min. min. object to 20 mA 30 ms 30 ms LED red Green, red, yellow, depends on measuring position t0 5 min t1 2s yellow flashes red approx. 2 Hz t2 30 s t3 t4 flashes green approx. 2 Hz t5 30 s yellow Color according to measuring position t6 t7 t8 Fig. 8 Timing for the output scaling The scaling is also available via the software tool. Measuring Key select Measuring Hold the key LED Green, red, yellow, depends on measuring position red Flashes red approx. 2 Hz yellow Color according to measuring position 200 ms Error t0 5 min t1 2s t2 5s t3 t4 t5-t3=2s t5 Fig. 9 Timing for the reset of the output scaling optoNCDT 1302 Page 24 Operation 6.2.2 Output Scaling via the Hardware Input Start Position the teaching measuring object to 4 mA min. 1 ms Measuring Pin 9 Teach-in 1 Positon the Teach-in 2 Measuring measuring object to 20 mA min. min. 30 ms 30 ms LED red Green, red, yellow, depends on measuring position flashes red approx. 2 Hz yellow flashes green approx. 2 Hz yellow Color according to measuring position Error t0 5 min t1 2s t2 t3 30 s t4 t5 2s t6 30 s t7 t8 2s t9 Fig. 10 Timing for the output scaling The scaling is also available via the software tool. Measuring Pin 9 Measuring LED Green, red, yellow, depends on measuring position red yellow Color according to measuring position flashes red approx. 2 Hz 200 ms Error t0 5 min t1 2s t2 5s t3 t4 t5-t3=2s t5 Fig. 11 Timing for the reset of the output scaling optoNCDT 1302 Page 25 Operation 6.3 Average The optoNCDT1302 is supplied ex factory with the default setting „moving averaging, number of averaging N = 1“ (no averaging activated). Implemented averaging methods in the sensor: -- Moving average -- Median The purpose of averaging is to: -- Improve the resolution -- Eliminate signal spikes -- “Smooth out“ the signal. Averaging has no effect on linearity. A combination of the two averaging methods is not possible. The averaging is recommended for static measurements or slowly changing measurement values. 6.3.1 Averaging Number N In every measurement cycle (at a measurement rate of 750 Hz every 1.3 ms) the internal average is calculated anew. The averaging number N indicates the number of consecutive measurement values to be averaged in the sensor. Averaging does not affect the measurement rate or data rates in digital measurement value output. 6.3.2 Moving Average (Default Setting) The selected number N of successive measurement values (window width) is used to generate the moving average value M gl on the basis of the following formula: N MW (k) M gl = optoNCDT 1302 k=1 N MW = Measuring value, N = Averaging number, k = Running index M gl = Averaging value respectively output value Page 26 Operation Mode: Each new measurement value is added and the first (oldest) measurement value from the averaging process (from the window) taken out again. This results in short transient recovery times for jumps in measurement values. Example: N = 4 ... 0, 1, 2, 2, 1, 3 ... 1, 2, 2, 1, 3, 4 2, 2, 1, 3 = M gl (n) 4 i 2, 1, 3, 4 = M gl (n+1) 4 Measurement values Output The moving average in the optoNCDT1302 can only be generated for up to a maximum of 128 values. 6.3.3 Median The median is generated from a pre-selected number of measurement values. To do so, the incoming measurement values (3, 5, 7 or 9 measurement values) are resorted again after every measurement. The average value is then given as the median. In generating the median in the controller, 3, 5, 7 or 9 measurement values are taken into account, i.e. there is never a median of 1. This permits individual interference pulses to be repressed, but the measurement value curve is not smoothed to any great extent. Example: Average from five measurement values ... 0 1 2 4 5 1 3 Sorted measurement values: 1 2 3 4 5 ... 1 2 4 5 1 3 5 optoNCDT 1302 Sorted measurement values: 1 3 4 5 5 Median (n) = 3 Median (n+1) = 4 Page 27 Operation 6.4 Measurement Rate and Output Rate The measurement rate defines the number of measurements performed by the sensor per second. The measurement rate is 750 Hz. The output rate gives the actual number of measurement values at the sensor output per second. The maximum output rate can never exceed the measurement rate. Output Current Maximum output rate Measurement rate RS422 Output rate £ Measurement rate; Dependent on the transmission rate (baud rate) and data format (ASCII code). The sensor continues to measure internally but holds back the output until the last measurement value has been issued in full. The next measurement value is the last valid value, with other values between being lost. Fig. 2 Output rates for the output types Calculation of the output rate using the RS422 serial interface: Abbreviations used: Output rate = Measuring rate / n n = Partial factor int = Integral part of ( ) b = Byte/measurement value (binary format b=2, ASCII b=6) MR = Measurement rate [Hz] n = int (b * 11 * MR / BR) + 1 BR = Baud rate [Baud] Example: Measurement rate = 750 Hz, ASCII-Format (b=6), Baud rate = 115200 Baud --> n = int (0.43) + 1 = 1 --> Output rate = 750 Hz / 1 = 750 Hz. optoNCDT 1302 Page 28 Operation 6.5 Timing The controller operates internally with real time cycles in a pipeline mode: 1. Exposure: Charging the image detector in the receiver (measurement). 2. Reading: Reading out of the imaging device and converting into digital data. 3. Computation: Measurement computation. 4. Controlling. The output through the analog and digital interface starts with the beginning of every new cycle. The analog value and digital switch outputs are updated immediately and the digital output starts with the start bit. Each cycle takes 1.3 ms at a measuring rate of 750 Hz. The measured value N is available after each cycle with a constant lag of four cycles in respect to the real time event. The delay between the input reaction and the signal output is therefore 2 up to 2.7 ms. The processing of the cycles occurs sequentially in time and parallel in space (pipelining, see Fig. 12). This guarantees a true constant real time data stream. Cycle 1. 2. 3. 4. 5. 6. Time max. 5 s 1.3 ms 2.6 ms 3.9 ms 5.2 ms 6.5 ms 7.8 ms Exposure N Reading N Computation N Controlling N Output N Exposure N+1 Reading N+1 Computation N+1 Controlling N+1 Initialisation Exposure N+2 Reading N+2 Computation N+2 including the output of the First exposure after power up of the sensor Exposure N+3 Reading N+3 info string Exposure N+4 Output N+1 Controlling N+2 ... Computation N+3 ... Reading N+4 ... ... ... Fig. 12 Sensor timing i The sensor needs time until measuring values are available according to the set averaging number N. optoNCDT 1302 Page 29 Operation 6.6 Triggering The ILD1302 measurement output is controllable through an external signal on the trigger input. Therefore the external input “Teach in“ must be configured for triggering, see Chap. 8.3.13. This can be done with the “ILD1302 Tool“ (“Configuration“ > “General Settings“ > “Digital Input: trigger acquisition“) also. Basics, procedure: -- The sensor measures and calculates also, if no trigger pulses are pending. -- The data output starts with a falling edge of the trigger signal. -- Sensor outputs the measurement value with a delay TT of 1.4 up to 2 ms. -- A new trigger pulse can be sent. +5 V Trigger signal Pin 9 t N Non-pulse period t I Pulse interval T T Delay time High +2 V +0.8 V 0V Low t N > 5 µs Output Value 1 T T = 2,7 ... 4 ms Fig. 13 Timing Time tI> TT T T = 2.7 ... 4 ms Value 2 T T = 2,7 … 4 ms true for a measurement rate of 750 Hz and a baud rate of 115.200 Baud Maximum trigger rate: appr. 250 Hz You get a digital measurement value on the output for each trigger signal, see Chap. 8.3.8, see Chap. 8.3.9 (data output). The analog output is actualized with any trigger signal, if you use the analog output. i optoNCDT 1302 An averaging of the measuring values has no effect on the delay time TT. Consider certainly, that the controller needs time for the averaging, until measuring values are available according to the set averaging number N. Page 30 Measurement Value Output 7. Measurement Value Output The optoNCDT1302 can issue the measurement values either via the analog output or the RS422 serial interface. The two different types of output cannot be used concurrently. 7.1 Current Output Max. range 4 mA ... 20 mA Output amplification I OUT16 mA = 100 % Measuring range Error value: 3.75 mA (±10 µA) Proceed as follows to set the sensor into operation after a short circuit on the analog output: Switch off the sensors power supply. 20 mA Default characteristic Analog output 4 mA 3 mA SMR EMR Measuring ange Measuring object Wait appr. 3 s. Digital value 16372 0 40 4055 16368 Switch on the sensors power supply. 16374 Fig. 14 Current signal output Calculation of measurement value x in mm from analog current Reference value SMR x [mm] = (I OUT - 4 mA)* Reference value MMR: MR [mm] 16 [mA] x [mm] = (I OUT - 4 mA)* MR [mm] 16 [mA] - MR/2 Example: Measuring range = 10 mm, I OUT = 12 mA; Result: x = 5 mm or x = 0 mm optoNCDT 1302 Page 31 Measurement Value Output 7.2 Digital Value Output The digital measurement values are issued as unsigned digital values (raw values). Digital value Used for 0 ... 39 SMR back-up 40 ... 4055 Measurement range 4056 ... 4095 EMR back-up 16370 ... 16383 Error codes Calculation of a measurement value in mm from digital output: Reference value Start of Measuring Range: x [mm] = (digital OUT * 1.02 4096 - 0.01) * MR [mm] Reference value Midrange x [mm] = (digital OUT * 1.02 4096 - 0.51) * MR [mm] Example: MR =10 mm, digital value = 2048, measurement value = 5 mm or 0 mm Note: A digital value can be calculated from a measurement value (millimeter) as follows: digital OUT = optoNCDT 1302 x [mm] 4096 + 0.01 * MR [mm] 1.02 Page 32 Measurement Value Output 7.3 Digital Error Codes Digital error codes are issued in the same way as measurement values. Value range for error codes: 16370 ... 16384 (digital OUT) -- 16370 no object detected -- 16372 too close to the sensor -- 16374 too far from the sensor -- 16376 target can not be evaluated -- 16380 target moves towards the sensor -- 16382 target moves away from sensor optoNCDT 1302 Page 33 Serial Interface RS422 8. Serial Interface RS422 PC1402-x/IF2008 ILD1302 IF2008 Fig. 15 System structure to operate the interface card IF2008 Pin 3 Sensor 1 4 12-pol. connector 5 6 Signal Sensor 1/3 TxD+ Sensor 1/3 TxD Sensor 1/3 RxD+ Sensor 1/3 RxD 0 V supply Sensor 1/3 TRG+ When using 3 sensors apply Sensor 1/3 TRG the optional available Y- adapter cable IF2008-Y. Sensor 2/4 TRG+ Sensor 2/4 TRG 7 24 V +24 V supply 1 3 Rx + Sensor 2/4 TxD+ Sensor 2 4 Rx Sensor 2/4 TxD 12-pol. 5 Tx + Sensor 2/4 RxD+ connector 6 Tx Sensor 2/4 RxD 12 GND GND Fig. 16 Pin assignment PC1402-x/IF2008 and IF2008 optoNCDT 1302 Signal Rx + (Input) Rx - (Input) Tx + (Output) Tx - (Output) Pin 2 1 4 3 5 6 7 8 9 10 12 11 14 13 15 PC Required cables and program routines -- IF2008 RS422 interface card, for 1 to 4 laser-optic sensors from the ILD1302 series and 2 encoders, including MEDAQlib programming interface. -- PC1402-x/IF2008 Power supply and output cable, x = length with 3, 6 or 8 m. IF2008, X1 and X2, 15-pol. Sub-D Alternatively, data can be transferred with the demo software (ILD1302 Tool) and a RS422 converter to USB, see Chap. 11.. Page 34 Serial Interface RS422 8.1 Interface Parameter The optoNCDT1302 comes with a RS422 serial interface to enable the sensor to be operated from a standard computer and measurement values and error codes to be transferred. Default settings Baud rate Parity Data bits Start/stop bit 115200 none 8 1 8.2 Data Format for Measurement Values and Error Codes 8.2.1 Binary Format The data word is comprised of two consecutive bytes (H-byte/L-byte). One flag bit in each byte differentiates a high from a low byte. Start 1 7 Bit MSB Stop Start 0 7 Bit LSB Stop Conversion of the binary data format: For conversion purposes the high and low bytes must be identified on the basis of the first bit (flag bit), the flag bits deleted and the remaining 2 x 7 bits compiled into 14 bit data word. Reception: H-Byte 1 D13 D12 D11 D10 D9 D8 D7 L-Byte D6 D5 D4 D3 D2 D1 D0 0 Result of conversion 0 0 0 0 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 Replies with a length of 4 bytes must be swapped according to the following rule: Reception: 0 1 2 3 4567 Conversion: 3 2 1 0 7654 This rule does not apply to values. optoNCDT 1302 D0 Page 35 Serial Interface RS422 8.2.2 ASCII Format Output of 5 characters (digits) in ASCII code for the digital value + 1 tag „CR“ (= 0x0D), i.e. a total of 6 characters. Digital values with just 3 or 4 digits are preceded by blank characters. Example: Digital value 2099 Transfer: “_2099“ (preceded by 1 blank character) „CR“ ASCII code (Hex.) 0x20 0x32 0x30 0x39 0x39 Characters SP 2 0 9 9 i 0x0D CR ASCII characters can be easily shown using a terminal program. 8.3 Data Protocol 8.3.1 Setup of the Commands The commands for the sensors are comprised of command data which are transmitted in full duplex mode. Each command packet is comprised of a whole number multiple of 32 bit words, see Fig. 17. 1 31 24 23 16 15 Header 2 ID 8 7 0 3 Command (16 Bit) Package length (16 Bit) 4 Data 1 5 ... 6 Data (n) Fig. 17 Structure of a command packet Contents Start word Sensor identifier, Command header (2 words) e.g. “ILD1“ Command code Data word quantity n+2 1 st Dats worf (4 Bytes) ... n th Data word (4 Bytes) Since most serial interfaces use an 8 bit data format, 4 consecutive bytes are combined into a 32 bit word. Each command packet has a header consisting of two 32 bit words followed by the command and, if required, other data as well. The top two bits (No. 31 and 30) are always “0“ in the transmitted command. optoNCDT 1302 Page 36 Serial Interface RS422 8.3.2 Overview Information command 0x20490002 Chap. 8.3.3 0x204A0002 Chap. 8.3.4 Average 0x207F0004 Chap. 8.3.5 Measurement value output 0x20760002 Chap. 8.3.6 0x20770002 Chap. 8.3.7 0x20F40003 Chap. 8.3.9 0x20F50003 Chap. 8.3.10 Switch output settings 0x20900003 Chap. 8.3.8 Speed 0x20800003 Chap. 8.3.12 Error output (analog output) 0x20810003 Chap. 8.3.11 GET_INFO GET_SETTINGS Shows sensor data Shows sensor settings SET_AV Sets average type and value DAT_OUT_OFF DAT_OUT_ON SET_OUTPUTMODE SET_OUTPUTTIME_MS Stops measurement value output Permanent measurement value output Output mode Output time in ms SET_OUTPUT_CHANNEL Output: current or RS422 SET_BAUDRATE 115.2 / 57.6 / 38.4 / 19.2 / 9.6 kBaud SET_ANALOG_ERROR_HANDLER Behavior of the analog output in the case of an error External input 0x20F80003 Chap. 8.3.13 SET_EXT_INPUT_MODE Switching off the laser (external) 0x20870002 Chap. 8.3.16 LASER_ON 0x20860002 Chap. 8.3.16 LASER_OFF Measurement value data format 0x20880003 Chap. 8.3.17 ASCII_OUTPUT Key lock 0x20600003 Chap. 8.3.18 SET_KEYLOCK optoNCDT 1302 Scaling, triggering Switches the laser on Switches the laser off Options: ASCII / Binary Key enabled / locked / auto lock Page 37 Serial Interface RS422 Reset 0x20F10002 Chap. 8.3.20 0x20F00002 Chap. 8.3.19 Memory mode 0x20F70003 Chap. 8.3.21 Scaling values 0x20F90004 Chap. 8.3.22 0x20FA0002 Chap. 8.3.23 Search algorithm 0x20FB0003 Chap. 8.3.14 Threshold 0x20FC0003 Chap. 8.3.15 8.3.3 SET_DEFAULT RESET_BOOT Reset to default factory settings Reboot the sensor SET_SAVE_SETTINGS_MODE Volatile / nonvolatile SET_TEACH_VALUE RESET_TEACH_VALUE Sets T1 + T2 0 ... 16368 Sets T1 = 0 / T2 = 16368 SET_PEAKSEARCHING First peak, last peak, global maximum SET_THRESHOLD Lower than standard, standard, higher than standard, highest Reading the Sensor Parameters, GET_INFO Name:GET_INFO Description: Format: 31 optoNCDT 1302 Supplies the info string. This shows all parameters currently stored in the sensor. 24 23 16 15 8 7 0 hex „+“ „+“ „+“ „CR“ 0x2B2B2B0D „l“ „L“ „D“ „1“ 0x494c4431 0x20 0x49 0x00 0x02 0x20490002 Page 38 Serial Interface RS422 Reply: Factory setting: Median off optoNCDT 1302 31 24 23 16 15 „l“ „L“ 0xA0 0x49 ILD 1302: Standard A/N: 4120166 O/N: 000 S/N: 0902003 MR: 50 SoftVer: 1.003.7 BootVer: 1.002.1 Date: 09/07/31 Out Channel: digital Analog Error: error value Filter Type: moving average Filter Number: 1 Scanrate: 750 Hz type of digital output: binary mode of analog/digital output: continuous key status: auto lock mode of save setting: save at each time mode of extern input: as teach in peak searching: global maximum threshold: standard Teach value 1: 0.00 Teach value 2: 16368.00 8 7 „D“ 0x00 0 „1“ 0x81 hex 0x494c4431 0xA049006F Page 39 Serial Interface RS422 8.3.4 Reading the Sensor Settings, GET_SETTINGS Name:GET_SETTINGS Description: Supplies the current sensor settings. Swap the received bytes according, see Chap. 8.2.1. These are as follows: Output channel -- 0 = Current -- 1 = Digital Teach value 1 0.0 … 16368.0 e. g. float: 3027.426 = hexadecimal: 0x453d36d1 Teach value 2 0.0 … 16368.0 e. g. float: 11068.851 = hexadecimal: 0x462cf367 Analog error handler -- 0 = hold last value -- 1 = error output -- 2…99 hold last value for 2…99 images respectively cycles Average type -- 0 = moving average -- 1 = Median Average value -- 1…128 moving average, if average type = 0 -- 2 = 750 Hz -- 3, 5, 7, 9 Median, if average type = 1 optoNCDT 1302 Page 40 Serial Interface RS422 Baud rate -- 0 = 115200 Baud -- 1 = 57600 Baud -- 2 = 38400 Baud -- 3 = 19200 Baud -- 4 = 9600 Baud Digital output type -- 0 = Binary -- 1 = ASCII Analog, digital output mode -- 0 = continuously each measurement, depending on baud rate and the measuring frequency; delay = (Bit quantity / Baud rate) * measuring frequency [Hz] (if delay < 0, delay = delay +1) delay = number of cycles with no serial output -- 1 = time-based, see output time [ms] -- 2 = trigger controlled, see external input mode Output time [ms] 1…65535 Key lock -- 0 = key enabled -- 1 = key locked -- 2 = automatic key lock after 5 min power is on Save settings mode -- 0 = transmitted settings are stored in the RAM and are valid until power off -- 1 = transmitted settings are stored in the FLASH and are valid, even after power off/on External input type -- 0 = external input is used for scaling -- 1 = external input is used as trigger input (trigger controlled output) optoNCDT 1302 Page 41 Serial Interface RS422 Peak searching -- 0 = peak with global maximum -- 1 = first peak, direction pixel 0 up to pixel 127, left to right -- 2 = last peak, direction pixel 0 up to pixel 127, left to right Threshold -- 0 = lower than standard -- 1 = standard -- 2 = higher than standard -- 3 = highest Measuring range [mm] -- XXX X = 1 ...65535 Reserved 1 Reserved 2 Reserved 3 Reserved 4 Format: 31 24 23 „+“ „l“ 0x20 Reply: 31 24 23 „l“ 0xA0 0x00 0xXX optoNCDT 1302 16 15 „+“ „L“ 0x4A 8 7 „+“ „D“ 0x00 16 15 „L“ „D“ 0x4A 0x00 Output channel 0x00 0x00 Teach value 1 0xXX 0xXX 0 hex 0x2B2B2B0D 0x494C4431 0x204A0002 0 „1“ 0x17 hex 0x494C4431 0xA04A0016 0x0X 0x0000000X 0xXX 0xXXXXXXXX 0x0d („CR“) „1“ 0x02 8 7 Page 42 Serial Interface RS422 0xXX 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 optoNCDT 1302 Teach value 2 0xXX 0xXX Analog error handler 0x00 0x00 Average type 0x00 0x00 Average value 0x00 0x00 Measuring rate 0x00 0x00 Baud rate 0x00 0x00 Digital output type 0x00 0x00 Analog digital output mode 0x00 0x00 Output time 0x00 0xXX Key lock 0x00 0x00 Save settings mode 0x00 0x00 External input type 0x00 0xXX Peak searching 0x00 0x00 Threshold 0x00 0x00 Measuring range 0x00 0xXX 0xXX 0xXXXXXXXX 0xXX 0x000000XX 0x0X 0x0000000X 0xXX 0x000000XX 0x0X 0x0000000X 0x0X 0x0000000X 0x0X 0x0000000X 0x0X 0x0000000X 0xXX 0x0000XXXX 0x0X 0x0000000X 0x0X 0x0000000X 0xXX 0x0000XXXX 0x0X 0x0000000X 0x0X 0x0000000X 0xXX 0x0000XXXX Page 43 Serial Interface RS422 Reserved 1 0x00 0x00 0x00 0x0X 0x00000000 0xXX 0xXX 0x00000000 0x00 0x0X 0x00000000 0x00 0x00 Last data word 0x20 0x0D 0x0X 0x00000000 0x0A 0x20200D0A Reserved 2 0x00 0x00 Reserved 3 0x00 0x00 Reserved 4 0x00 0x20 8.3.5 Average Type and Average Number, SET_AV Name:SET_AV Description: Default setting: moving average 1, thus no averaging Sets the average type and the average number N. Parameter: -- Average type X = 0 --> Moving average X = 1 --> Median -- Average number XX = 1 ... 128 --> Moving average, if average type = moving average XX = 3, 5, 7, 9 --> Median, if average type = Median Format: 31 24 23 „+“ „l“ 0x20 0x00 0x00 optoNCDT 1302 16 15 „+“ „L“ 0x7F 0x00 0x00 8 7 „+“ „D“ 0x00 0x00 0x00 0 0x0d („CR“) „1“ 0x04 0x0X 0xXX hex 0x2B2B2B0D 0x494C4431 0x207F0004 0x0000000X 0x000000XX Page 44 Serial Interface RS422 Reply: 31 24 23 „l“ 0xA0 0x20 8.3.6 16 15 „L“ 0x7F 0x20 8 7 „D“ 0x00 0x0D 0 „1“ 0x02 0x0A hex 0x494C4431 0xA07F0002 0x20200D0A Stopping the Measurement Value Output, DAT_OUT_OFF Name:DAT_OUT_OFF Description: Switches off the digital output for the measurement values. This has no effect on communication with the sensor via the digital interface. This command has a higher priority in trigger mode. The command is volatile. Therefore data out is on after power on. Format: 31 24 23 „+“ „l“ 0x20 Reply: 31 24 23 „l“ 0xA0 0x20 8.3.7 16 15 „+“ „L“ 0x76 8 7 „+“ „D“ 0x00 16 15 „L“ 0x76 0x20 0 hex 0x2B2B2B0D 0x494C4431 0x20760002 0 hex 0x494C4431 0xA0760002 0x20200D0A 0x0d („CR“) „1“ 0x02 8 7 „D“ 0x00 0x0D „1“ 0x02 0x0A Starting the Measurement Value Output, DAT_OUT_ON Name:DAT_OUT_ON Description: Switches on the digital data output for the measurement values. The output channel (output type) must also be set to the digital output, otherwise the measurement data cannot be received from the sensor. Format: 31 24 23 „+“ „l“ 0x20 optoNCDT 1302 16 15 „+“ „L“ 0x77 8 7 „+“ „D“ 0x00 0 0x0d („CR“) „1“ 0x02 hex 0x2B2B2B0D 0x494C4431 0x20770002 Page 45 Serial Interface RS422 Reply: 31 24 23 „l“ 0xA0 0x20 8.3.8 16 15 „L“ 0x77 0x20 8 7 „D“ 0x00 0x0D 0 hex 0x494C4431 0xA0770002 0x20200D0A 0 hex 0x2B2B2B0D 0x494C4431 0x20900003 0x0000000X 0 hex 0x494C4431 0xA0900002 0x20200D0A „1“ 0x02 0x0A Digital or Analog Data Output , SET_OUTPUT_CHANNEL Name:SET_OUTPUT_CHANNEL Description: Default setting: analog output Sets the output type for the measurement values. Parameter: -- X = 0 --> Analog output (4 ... 20 mA) -- X = 1 --> Digital output (RS422) Format: 31 24 23 „+“ „l“ 0x20 0x00 Reply: 31 „+“ „L“ 0x90 0x00 24 23 „l“ 0xA0 0x20 optoNCDT 1302 16 15 8 7 „+“ „D“ 0x00 0x00 16 15 „L“ 0x90 0x20 0x0d („CR“) „1“ 0x03 0x0X 8 7 „D“ 0x00 0x0D „1“ 0x02 0x0A Page 46 Serial Interface RS422 8.3.9 Characteristics for Digital or Analog Data Output, SET_OUTPUTMODE Name:SET_OUTPUTMODE Default setting: continuously Description: Sets the output characteristics. -- X = 0 --> continuously each measurement, depending on baud rate; delay = (Bit quantity / Baud rate) * measuring frequency [Hz], if delay < 0, delay = delay +1) delay = number of cycles with no serial output -- X = 1 --> time-based, see Chap. 8.3.10. -- X = 2 --> trigger controlled, see Chap. 8.3.13. Format: 31 24 23 „+“ „l“ 0x20 0x00 Reply: 31 24 23 „l“ 0xA0 0x20 optoNCDT 1302 16 15 „+“ „L“ 0xF4 0x00 8 7 „+“ „D“ 0x00 0x00 16 15 „L“ 0xF4 0x20 8 7 „D“ 0x00 0x0D 0 hex 0x2B2B2B0D 0x494C4431 0x20F40003 0x0000000X 0 hex 0x494C4431 0xA0F40002 0x20200D0A 0x0d („CR“) „1“ 0x03 0x0X „1“ 0x02 0x0A Page 47 Serial Interface RS422 8.3.10 Set Output Time, SET_OUTPUTTIME_MS Name:SET_OUTPUTTIME_MS Description: Default setting: 500 ms Sets the output time for the analog or digital output value to be updated. Will be applicable at time-based measurement value output, see Chap. 8.3.9. Parameter: -- XXXX = 1 … 65535 [ms]. Format: 31 24 23 „+“ „l“ 0x20 0x00 Reply: 31 24 23 „l“ 0xA0 0x20 optoNCDT 1302 16 15 „+“ „L“ 0xF5 0x00 8 7 „+“ „D“ 0x00 0xXX 16 15 „L“ 0xF5 0x20 8 7 „D“ 0x00 0x0D 0 hex 0x2B2B2B0D 0x494c4431 0x20F50003 0x0000XXXX 0 hex 0x494c4431 0xA0F50002 0x20200D0A „CR“ „1“ 0x03 0xXX „1“ 0x02 0x0A Page 48 Serial Interface RS422 8.3.11 Error Output (Analog output), SET_ANALOG_ERROR_HANDLER Name:SET_ANALOG_ERROR_HANDLER Description: Default setting: error value Hold or not hold last measurement value. Parameter: -- X = 0 --> hold last measurement value -- X = 1 --> error value (3.75 mA) -- X = 2 … 99 --> hold last measurement value for 2 … 99 images respectively cycles This command only affects the analog output. If set to X = 0, the last valid measurement value will continue to be issued if an error occurs (no object, invalid object, object outside the measurement range or laser turned off). If set to X = 1, an error signal will be generated for the current output that has an error value of 3.75 mA. If set to X = 2 ... 99, the last valid measurement value will continue to be issued for X measuring cycles before an error signal is generated on the analog output. Format: 31 24 23 16 15 8 7 0 hex „+“ „+“ „+“ 0x0d („CR“) 0x2B2B2B0D „l“ „L“ „D“ „1“ 0x494C4431 0x20 0x81 0x00 0x03 0x20810003 0x00 0x00 0x00 0x0X 0x0000000X Reply: 31 24 23 „l“ 0xA0 0x20 optoNCDT 1302 16 15 „L“ 0x81 0x20 8 7 „D“ 0x00 0x0D 0 „1“ 0x02 0x0A hex 0x494C4431 0xA0810002 0x20200D0A Page 49 Serial Interface RS422 8.3.12 Set Baud Rate, SET_BAUDRATE Name:SET_BAUDRATE Description: Default setting: 115200 Baud Sets the transmission rate. Parameter: -- X = 0 --> 115200 -- X = 1 --> 57600 -- X = 2 --> 38400 -- X = 3 --> 19200 -- X = 4 --> 9600 The sensor still sends the reply with the old baud rate and only switches to the new baud rate once the reply has been sent. The output rate reduces automatically when the baud rate is changed because individual measurement values are skipped. i Do not forget to change your programs baud rate. Format: 31 24 23 „+“ „l“ 0x20 0x00 Reply: 31 „+“ „L“ 0x80 0x00 24 23 „l“ 0xA0 0x20 optoNCDT 1302 16 15 8 7 „+“ „D“ 0x00 0x00 16 15 „L“ 0x80 0x20 hex 0x2B2B2B0D 0x494C4431 0x20800003 0x0000000X 0 hex 0x494C4431 0xA0800002 0x20200D0A 0x0d („CR“) „1“ 0x03 0x0X 8 7 „D“ 0x00 0x0D 0 „1“ 0x02 0x0A Page 50 Serial Interface RS422 8.3.13 Input for Scaling and Trigger, SET_EXT_INPUT_MODE Name:SET_EXT_INPUT_MODE Description: Default setting: Scaling Defines the function of the switching input “Teach in“ (Pin 9 on the sensor connector). Parameter: -- X = 0 --> external input operates as scaling input -- X = 1 --> external input operates as trigger controlled input for the data output Format: 31 24 23 „+“ „l“ 0x20 0x00 Reply: 31 24 23 „l“ 0xA0 0x20 optoNCDT 1302 16 15 „+“ „L“ 0xF8 0x00 8 7 „+“ „D“ 0x00 0x00 16 15 „L“ 0xF8 0x20 8 7 „D“ 0x00 0x0D 0 hex 0x2B2B2B0D 0x494C4431 0x20F80003 0x0000000X 0 hex 0x494C4431 0xA0F80002 0x20200D0A 0x0d („CR“) „1“ 0x03 0x0X „1“ 0x02 0x0A Page 51 Serial Interface RS422 8.3.14 Peak Detection with Video Signal, SET_PEAKSEARCHING Name:SET_PEAKSEARCHING Description: Specifies the search algorithm. Parameter: -- X = 0 --> peak with global maximum -- X = 1 --> first peak, direction pixel 0 up to pixel 127, left to right -- X = 2 --> last peak, direction pixel 0 up to pixel 127, left to right Format: 31 24 23 „+“ „l“ 0x20 0x00 Reply: 31 16 15 „+“ „L“ 0xFB 0x00 24 23 „l“ 0xA0 0x20 8 7 „+“ „D“ 0x00 0x00 16 15 „L“ 0xFB 0x20 8 7 „D“ 0x00 0x0D 0 hex 0x2B2B2B0D 0x494C4431 0x20FB0003 0x0000000X 0 hex 0x494C4431 0xA0FB0002 0x20200D0A 0x0d („CR“) „1“ 0x03 0x0X „1“ 0x02 0x0A A peak inside the video signal is limited by overrun and subsequent shortfall the threshold limit. Several valid peaks are evaluated when measuring glass. Measurements on metal surfaces can also produce multiple peaks. Determine the valid peaks in the software tool (video signal). optoNCDT 1302 Page 52 Serial Interface RS422 8.3.15 Search Threshold, SET_THRESHOLD Name:SET_THRESHOLD Description: Defines the characteristics of the search threshold. Parameter: -- X = 0 --> lower than standard -- X = 1 --> Standard -- X = 2 --> higher than standard -- X = 3 --> highest i Changing the threshold from factory default (standard) may influence linearity and resolution. Modify the sensor only with specific materials as with semitransparent plastics and so educate the sensor recently. Format: 31 24 23 „+“ „l“ 0x20 0x00 Reply: 31 24 23 „l“ 0xA0 0x20 optoNCDT 1302 16 15 „+“ „L“ 0xFC 0x00 8 7 „+“ „D“ 0x00 0x00 16 15 „L“ 0xFC 0x20 8 7 „D“ 0x00 0x0D 0 hex 0x2B2B2B0D 0x494C4431 0x20FC0003 0x0000000X 0 hex 0x494C4431 0xA0FC0002 0x20200D0A 0x0d („CR“) „1“ 0x03 0x0X „1“ 0x02 0x0A Page 53 Serial Interface RS422 8.3.16 Switching off the Laser (External), LASER_OFF Name:LASER_OFF Description: Switches off the laser. This command is volatile e.g. the laser is on after power on. Format: 31 24 23 „+“ „l“ 0x20 Reply: i 31 „+“ „L“ 0x86 24 23 „l“ 0xA0 0x20 16 15 8 7 „+“ „D“ 0x00 16 15 „L“ 0x86 0x20 0 hex 0x2B2B2B0D 0x494C4431 0x20860002 0 hex 0x494C4431 0xA0860002 0x20200D0A 0x0d („CR“) „1“ 0x02 8 7 „D“ 0x00 0x0D „1“ 0x02 0x0A The command LASER_OFF is volatile. This means that the laser is switched on again if the power supply was switched off or the sensor was rebooted by means of the RESET_BOOT command and pin 8 is connected with GND. Name:LASER_ON Description: Format: Switches on the laser 31 24 23 „+“ „l“ 0x20 Reply: optoNCDT 1302 i 31 24 23 „l“ 0xA0 0x20 16 15 „+“ „L“ 0x87 8 7 „+“ „D“ 0x00 16 15 „L“ 0x87 0x20 8 7 „D“ 0x00 0x0D 0 hex 0x2B2B2B0D 0x494C4431 0x20870002 0 hex 0x494C4431 0xA0870002 0x20200D0A 0x0d („CR“) „1“ 0x02 „1“ 0x02 0x0A The command LASER_ON is effective only if pin 8 is connected with GND. Page 54 Serial Interface RS422 8.3.17 Change Data Format, ASCII_OUTPUT Name:ASCII_OUTPUT Description: Switches the data format for the measurement value output via the digital interface. The command replies will remain unaffected. Default setting: Binary format Parameter: -- X = 0 --> Binary output (2 Byte) -- X = 1 --> ASCII output (6 Byte) Format: 31 24 23 „+“ „l“ 0x20 0x00 Reply: 31 „+“ „L“ 0x88 0x00 24 23 „l“ 0xA0 0x20 optoNCDT 1302 16 15 8 7 „+“ „D“ 0x00 0x00 16 15 „L“ 0x88 0x20 hex 0x2B2B2B0D 0x494C4431 0x20880003 0x0000000X 0 hex 0x494C4431 0xA0880002 0x20200D0A 0x0d („CR“) „1“ 0x03 0x0X 8 7 „D“ 0x00 0x0D 0 „1“ 0x02 0x0A Page 55 Serial Interface RS422 8.3.18 Key Lock, SET_KEYLOCK Name:SET_KEYLOCK Description: Default setting: key locked automatically after 5 min power on Locks or enables the key “select“. The set status is not volatile. Parameter: -- X = 0 --> enable key -- X = 1 --> lock key -- X = 2 --> key locked automatically after 5 min power on Format: 31 24 23 „+“ „l“ 0x20 0x00 Reply: 31 24 23 „l“ 0xA0 0x20 optoNCDT 1302 16 15 „+“ „L“ 0x60 0x00 8 7 „+“ „D“ 0x00 0x00 16 15 „L“ 0x60 0x20 8 7 „D“ 0x00 0x0D 0 hex 0x2B2B2B0D 0x494C4431 0x20600003 0x0000000X 0 hex 0x494C4431 0xA0600002 0x20200D0A 0x0d („CR“) „1“ 0x03 0x0X „1“ 0x02 0x0A Page 56 Serial Interface RS422 8.3.19 Reset Sensor, RESET_BOOT Name:RESET_BOOT Description: Starts the sensor’s initialization phase. Duration about 900 ms. Procedure: The sensor replies and then re-boots. The string of the boot message contains “CI140x“, “CR“ “LF“ and the answer of “GET_INFO“. Format: 31 24 23 16 15 8 7 0 hex „+“ „+“ „+“ 0x0d („CR“) 0x2B2B2B0D „l“ „L“ „D“ „1“ 0x494C4431 0x20 0xF0 0x00 0x02 0x20F00002 Reply: 31 24 23 „l“ 0xA0 0x20 optoNCDT 1302 16 15 „L“ 0xF0 0x20 8 7 „D“ 0x00 0x0D 0 „1“ 0x02 0x0A hex 0x494C4431 0xA0F00002 0x20200D0A Page 57 Serial Interface RS422 8.3.20 Set Default Setting, SET_DEFAULT Name:SET_DEFAULT Description: Resets the set parameters to the default settings (factory settings). This concerns: Output channel: 0 --> analog output, Teach value 1 --> 0.0 Teach value 2 --> 16368.0 Analog error handler: 1 --> in the case of an error: 3.75 mA on the analog output, Average type: 0 --> moving average, Average value: 1 --> no averaging, Baud rate: 0 --> 115200 Baud, Digital output type: 0 --> binary, Analog digital output mode: 0 --> continuous, Output time --> 500 ms, Key lock: 2 --> key locked automatically after 5 min power on, Save settings mode: 1 --> transmitted new settings are stored in the FLASH, External input type: 0 --> external input for scaling Procedure: The sensor replies and then re-boots. The string of the boot message contains “CI140x“, “CR“ “LF“ and the answer of “GET_INFO“. Format: 31 24 23 „+“ „l“ 0x20 Reply: 31 24 23 „l“ 0xA0 0x20 optoNCDT 1302 16 15 „+“ „L“ 0xF1 8 7 „+“ „D“ 0x00 16 15 „L“ 0xF1 0x20 8 7 „D“ 0x00 0x0D 0 hex 0x2B2B2B0D 0x494C4431 0x20F10002 0 hex 0x494C4431 0xA0F10002 0x20200D0A 0x0d („CR“) „1“ 0x02 „1“ 0x02 0x0A Page 58 Serial Interface RS422 8.3.21 Save Settings in RAM or FLASH, SET_SAVE_SETTINGS_MODE Name:SET_SAVE_SETTINGS_MODE Description: Default setting: Save in FLASH Saves the transmitted settings into the RAM or the FLASH. Parameter: -- X = 0 --> transmitted new settings are stored in the RAM and valid until power off. -- X = 1 --> transmitted new settings are stored in the FLASH and are thus are generally valid. Format: 31 24 23 „+“ „l“ 0x20 0x00 Reply: 31 „+“ „L“ 0xF7 0x00 24 23 „l“ 0xA0 0x20 optoNCDT 1302 16 15 8 7 „+“ „D“ 0x00 0x00 16 15 „L“ 0xF7 0x20 hex 0x2B2B2B0D 0x494C4431 0x20F70002 0x0000000X 0 hex 0x494C4431 0xA0F70002 0x20200D0A 0x0d („CR“) „1“ 0x03 0x0X 8 7 „D“ 0x00 0x0D 0 „1“ 0x02 0x0A Page 59 Serial Interface RS422 8.3.22 Scaling Values for the Analog Output, SET_TEACH_VALUE Name:SET_TEACH_VALUE Description: Default setting: Teach value 1: 0.0 Teach value 2: 16368.0 Sets the scaling values. Parameter: -- Teach value 1, XXXXXXXX --> 0.0 up to 16368.0 -- Teach value 2, XXXXXXXX --> 0.0 up to 16368.0 Format: 31 24 23 „+“ „l“ 0x20 0xXX 0xXX Reply: 31 16 15 „+“ „L“ 0xF9 0xXX 0xXX 24 23 „l“ 0xA0 0x20 8 7 „+“ „D“ 0x00 0xXX 0xXX 16 15 „L“ 0xF9 0x20 8 7 „D“ 0x00 0x0D 0 hex 0x2B2B2B0D 0x494C4431 0x20F90004 0xXXXXXXXX 0xXXXXXXXX 0 hex 0x494C4431 0xA0F90002 0x20200D0A 0x0d („CR“) „1“ 0x04 0xXX 0xXX „1“ 0x02 0x0A The teaching process requires a valid measuring signal. The teaching process is terminated at „no target“, „target not evaluated“, „to close to the sensor“ - beyond SMR“ or „to far from the sensor - beyond EMR“. optoNCDT 1302 Page 60 Serial Interface RS422 8.3.23 Reset Scaling Values for the Analog Output, RESET_TEACH_VALUE Name:RESET_TEACH_VALUE Description: Resets the scaling values. Format: 31 24 23 „+“ „l“ 0x20 Reply: 31 „+“ „L“ 0xFA 24 23 „l“ 0xA0 0x20 optoNCDT 1302 16 15 8 7 „+“ „D“ 0x00 16 15 „L“ 0xFA 0x20 hex 0x2B2B2B0D 0x494C4431 0x20FA0002 0 hex 0x494C4431 0xA0FA0002 0x20200D0A 0x0d („CR“) „1“ 0x02 8 7 „D“ 0x00 0x0D 0 „1“ 0x02 0x0A Page 61 Instructions for Operating 9. Instructions for Operating 9.1 Reflection Factor of the Target Surface In principle the sensor evaluates the diffuse part of the reflected laser light, see Fig. 18. Laser beam Laser beam Laser beam 2 Ideal diffuse reflection Direct mirror reflecion Real reflecion Fig. 18 Reflection factor of the target surface A statement concerning a minimum reflectance is difficult to make, because even a small diffuse fraction can be evaluated from highly reflecting surfaces. This is done by determining the intensity of the diffuse reflection from the CCD array signal in real time and subsequent compensation for intensity fluctuation, see Chap. 3.2. Dark or shiny objects being measured, e.g. black rubber, may require longer exposure times. The exposure time is dependent on the measurement rate and can only be increased by reducing the sensor’s measurement rate. 9.2 Error Influences 9.2.1 Light from other Sources Thanks to their integrated optical interference filters the optoNCDT1302 sensors offer outstanding performance in suppressing light from other sources. However, this does not preclude the possibility of interference from other light sources if the objects being measured are shiny and if lower measurement frequencies are selected. Should this be the case it is recommended that suitable shields be used to screen the other light sources. This applies in particular to measurement work performed in close proximity to welding equipment. optoNCDT 1302 Page 62 Instructions for Operating 9.2.2 Color Differences Because of intensity compensation, color difference of targets affect the measuring result only slightly. However, such color differences are often combined with different penetration depths of the laser light into the material. Different penetration depths then result in apparent changes of the measuring spot size. Therefore color differences in combination with changes of penetration depth may lead to measuring errors. 9.2.3 Temperature Influences When the sensor is commissioned a warm-up time of at least 20 minutes is required to achieve uniform temperature distribution in the sensor. If measurement is performed in the micron accuracy range, the effect of temperature fluctuations on the sensor holder must be considered. Due to the damping effect of the heat capacity of the sensor sudden temperature changes are only measured with delay. 9.2.4 Mechanical Vibrations If the sensor should be used for resolutions in the μm range, special care must be taken to ensure stable and vibration-free mounting of sensor and target. 9.2.5 Movement Blurs If the objects being measured are fast moving and the measurement rate is low it is possible that movement blurs may result. Always select a high measurement rate for high-speed operations, therefore, in order to prevent errors. 9.2.6 Surface Roughness In case of traversing measurements a surface roughness of 5 μm and more leads to an apparent distance change (also-called surface noise). However, they can be dampened by averaging, see Chap. 6.3. 9.2.7 Angle Influences Tilt angles of the target both around the X and the Y axes of less than 5 ° only have a disturbing effect with surfaces which are highly reflecting. Tilt angles between 5 ° and 15 ° lead to an apparent distance change of approx. 0.12 ... 0.2 % of the measuring range, see Fig. 19. Tilt angles between 15 ° and 30 ° lead to an apparent distance change of approx. 0.5 % of the measuring range. These influences must be considered especially when scanning structured surfaces. In principle the angle behavior in triangulation also depends on the reflectivity of the target. optoNCDT 1302 Page 63 Instructions for Operating teach n laser on state optoNCDT LASER RAD ATION Angle X-axis % Y-axis % ±5 ° typ. 0.12 typ. 0.12 ±15 ° typ. 0.2 typ. 0.2 ±30 ° typ. 0.5 typ. 0.5 Do not ta e i to the beam C ASS 2 LASER PRODUCT EC 6082 - : 2007 P≤1mW; =670 nm Y-axis X-axis tilting < triangulation angle Angle Angle Fig. 19 Measurement errors through tilting with diffuse reflection 9.3 Optimizing the Measuring Accuracy Color strips Direction of motion select In case of rolled or polished metals that are moved past the sensor the sensor plane must be arranged in the direction of the rolling or grinding marks. The same arrangement must be used for color strips, see Fig. 20. sate laser on Grinding or rolling marks optoNCDT 1302 Fig. 20 Sensor arrangement in case of ground or striped surfaces Page 64 Instructions for Operating teach in Correct In case of bore holes, blind holes, and edges in the surface of moving targets the sensor must be arranged in such a way that the edges do not obscure the laser spot, see Fig. 21. laser on state optoNCDT LASER RAD ATION Do n t tare into the beam C ASS 2 LASER PRODUCT IEC 60825-1: 2007 ≤1mW; =670 nm Incorrect (shadow) Fig. 21 Sensor arrangement for holes and ridges 9.4 Cleaning the Protective Glasses A periodically cleaning of the protective housings is recommended. Dry cleaning This requires a suitable optical antistatic brush or blow off the panels with dehumidified, clean and oil free compressed air. Wet cleaning Use a clean, soft, lint-free cloth or lens cleaning paper and pure alcohol (isopropanol) for cleaning the protective housing. Do not use commercial glass cleaner or other cleansing agents. optoNCDT 1302 Page 65 Default Setting 10. -------------- optoNCDT 1302 Default Setting Current output with error value (3.75 mA) Interface: 115.2 kBaud, binary format (no ASCII) Moving average avg =1 (no averaging) Teach value 1: 0.0 Teach value 2: 16368.0 External input for scaling Continuous measurement output Output first measured value after switching on: 500 ms, Key lock after 5 min power on Settings saved into FLASH Measuring range: 100 % FSO: I = 20 mA , digital 4055 0 % FSO: I = 4 mA, digital 40 Maximum output (101 % FSO): 20.16 mA / digital 4095 Minimum output (-1 % FSO): 3.84 mA / digital 0 Set sensor on default settings: Switch off the sensors power supply. Keep the “Select“ key pressed. Switch on the sensors power supply. LED on sensor flashes green. Press again the „Select“ key. LED flashes green three times, approx. 1 Hz. During this time the factory parameters are set. Then the sensor re-boots. Page 66 ILD1302 Tool 11. ILD1302 Tool The ILD1302 Tool is an application to configure the ILD1302 sensor. In addition it supports a 1 channel data acquisition. It is for demonstration purposes only. System requirements: -- Windows 2000 with SP 4 / Windows XP / Windows Vista / Windows 7 -- Pentium III, 256 MB RAM Install the PC based program. Use the corresponding setup.exe supplied from the attached CD. Follow the advices during the installation. You will find the actual drivers respectively program routines under: www.micro-epsilon.com/link/opto/1302 This program part is evidence of acquisition, calculation and data storage of ILD1302. i i optoNCDT 1302 If the sensor‘s analog output is to be used after termination of the ILD1302 tool, it previously has to be definded as output version. Do not forget to save the settings made. Disconnect or connect the D-sub connection between RS422 and USB converter when the sensor is disconnected from power supply only. Page 67 Software Support with MEDAQLib 12. Software Support with MEDAQLib The Micro-Epsilon Data Acquisition Library offers you a high level interface library to access optoNCDT laser sensors from your Windows application in combination with -- RS422/USB converter (optional accessory) and a suitable PC1402-3/D-SUB/9pol cable or -- PC1402-3/USB/IND cable or -- IF2008 PCI interface card and PC1402-3/IF2008 cable into an existing or a customized PC software. You need no knowledge about the sensor protocol to communicate with the individual sensors. The individual commands and parameters for the sensor to be addressed will be set with abstract functions. MEDAQLib translates the abstract functions in comprehensible instructions for the sensor. MEDAQLib -- is a DLL/LIB usable for C, C++, VB, Delphi and many other Windows programming languages, -- supports functions to talk to the sensor, -- hides the details on how to talk to the communication interface (RS232,RS422,USB,TCP), -- hides the details of the sensor protocol, -- converts the incoming data to „expected data values“, -- provides a consistent programming interface for all Micro-Epsilon sensors, -- provides many programming examples many different programming languages. -- the interface is documented in a large *.pdf file. You will find the latest MEDAQLib version at: www.micro-epsilon.com/link/software/medaqlib optoNCDT 1302 Page 68 Warranty 13. Warranty All components of the device have been checked and tested for perfect function in the factory. In the unlikely event that errors should occur despite our thorough quality control, this should be reported immediately to MICRO-EPSILON. The warranty period lasts 12 months following the day of shipment. Defective parts, except wear parts, will be repaired or replaced free of charge within this period if you return the device free of cost to MICRO-EPSILON. This warranty does not apply to damage resulting from abuse of the equipment and devices, from forceful handling or installation of the devices or from repair or modifications performed by third parties. No other claims, except as warranted, are accepted. The terms of the purchasing contract apply in full. MICRO-EPSILON will specifically not be responsible for eventual consequential damages. MICRO-EPSILON always strives to supply the customers with the finest and most advanced equipment. Development and refinement is therefore performed continuously and the right to design changes without prior notice is accordingly reserved. For translations in other languages, the data and statements in the German language operation manual are to be taken as authoritative. 14. Service, Repair In the event of a defect on the sensor or sensor cable, the parts concerned must be sent back for repair or replacement. The opening of the sensor is only subjected to the manufacturer. In the case of faults the cause of which is not clearly identifiable, the whole measuring system must be sent back to 15. MICRO-EPSILON MESSTECHNIK GmbH & Co. KG Königbacher Straße 15 94496 Ortenburg / Germany Tel. 08542/168-0 Fax 08542/168-90 e-mail [email protected] www.micro-epsilon.com Decommissioning, Disposal Disconnect the power supply and output cable on the sensor. optoNCDT 1302 The disposal is done according to the legal regulations. The optoNCDT1302 is produced according to the directive 2011/65/EU („RoHS“). The disposal is done according to the legal regulations (see directive 2002/96/EC). Page 69 Free Space for Optics 16. Free Space for Optics Not to scale. Dimensions in mm (inches). 4 57 (2.24) (.16) A 16 (.63) B ø4 ø6 (.16 dia) (.24 dia) 10 SMR e A B 20 (0.79) 30 (1.18) 27.9 ° 25.8 ° 24.2 (0.95) 18.2 (0.72) 31.2 ° 50 (2.00) 45 (1.77) 25.1 ° 19.6 ° 16.9 ° 28.9 (1.14) 21.1 (0.83) 100 (3.94) 50 (2.00) 23.1 ° 14.4 ° 11.3 ° 30.1 (1.19) 21.3 (0.84) 200 (7.87) 60 (2.36) 20.1 ° 9.4 ° 6.8 ° 30.8 (1.21) 22.0 (0.87) a j MR MR SMR (.39) MR = Measuring range SMR = Start of measuring range optoNCDT 1302 Page 70 Available Cables 17. i Available Cables All cables are cable carriers suitable. Type optoNCDT 1302 Cable length Characteristics PC1402-3/I, PC1402-6/I, PC1402-8/I 3m 6m 8m Interface and supply cable for current output, one end of the cable has a molded M12 female connector, the other end has free leads with ferrules. PC1402-3/U, PC1402-6/U, PC1402-8/U 3m 6m 8m Interface and supply cable for voltage output (250 Ohm load, U out = 1 … 5 V), one end of the cable has a molded M12 female connector, the other end has free leads with ferrules. PC1402-3/USB/IND PC1402-8/USB/IND 3m 8 m Power and output cable, one end of the cable has a molded M12 female connector, the other end a 9 pol D-SUB for RS422/ USB converter and open leads; a RS422/USB converter is not enclosed. Disconnect or connect the D-sub connection between RS422 and USB converter when the sensor is disconnected from the power supply only. PC1402-3/CSP, PC1402-8/CSP, PC1402-10/CSP 3m 8m 10 m Connecting cable with straight connector on both sides to connect an ILD1302 sensor to a CSP2008 PC1402-3/IF2008, PC1402-6/IF2008, PC1402-8/IF2008 3m 6m 8m Connecting cable, one end of the cable has a molded M12 female connector, the other end a D-SUB to connect an ILD1302 sensor to an IF2008 PCI interface card Page 71 Input /Output Circuit 18. Input /Output Circuit 7 ILD1302 3 Rx+ 4 11... 30 VDC Rx- 5 Tx+ 6 12 Tx- 11 Iout C1 100 nF Uout R1 12 +24 V 8/9 10 12 10 k Switching output Switching inputs 1) Components contained in PC 1402-x/U; are required for voltage output. R = 250 W: UOUT 1 ... 5 V with UB > 11 V R = 500 W: UOUT 2 ... 10 V with UB > 17 V optoNCDT 1302 Page 72 Appendix| Converter RS422-USB Appendix i The system ground must be connected with the terminal ground (USB converter, pin 5) before connecting the RX and TX lines. A 1 Converter RS422-USB PC1402-X/I PC1402-X/U ILD1302 PC1402-X/USB/IND S4 OFF S3 OFF S2 ON S1 ON X = Cable length in m Fig. 22 Principle setup Cross the lines for connections between sensor and PC. ILD 1302 Converter Signal Color PC1402-X/I PC1402-X/U Signal Pin RX- Yellow TX- 1 RX+ green TX+ 2 TX+ gray RX+ 3 TX- pink RX- 4 Ground 5 GND (Pin 12) blue Fig. 23 Pin assignment and wiring optoNCDT 1302 i Disconnect or connect the D-sub connection between RS422 and USB converter when the sensor is disconnected from power supply only. Page 73 MICRO-EPSILON MESSTECHNIK GmbH & Co. KG Königbacher Str. 15 · 94496 Ortenburg / Germany Tel. +49 (0) 8542 / 168-0 · Fax +49 (0) 8542 / 168-90 [email protected] · www.micro-epsilon.com X9751212-A101014GBR MICRO-EPSILON MESSTECHNIK *X9751212-A10*
* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project
advertisement