Operating Instructions optoNCDT 1900 ILD1900-10 ILD1900-25 ILD1900-50 Intelligent laser optical displacement measurement MICRO-EPSILON MESSTECHNIK GmbH & Co. KG Koenigbacher Str. 15 94496 Ortenburg / Germany Tel. +49 (0) 8542 / 168-0 Fax +49 (0) 8542 / 168-90 e-mail [email protected] www.micro-epsilon.com Contents 1. Safety......................................................................................................................................... 9 1.1 1.2 1.3 1.4 1.5 Symbols Used.................................................................................................................................................. 9 Warnings........................................................................................................................................................... 9 Notes on CE Marking..................................................................................................................................... 10 Intended Use.................................................................................................................................................. 11 Proper Environment........................................................................................................................................ 11 2. Laser Safety............................................................................................................................. 12 3. 3.1 3.2 3.3 4. 4.1 4.2 5. 5.1 5.2 5.3 optoNCDT 1900 Functional Principle, Technical Data...................................................................................... 14 Short Description............................................................................................................................................ 14 Advanced Surface Compensation................................................................................................................. 15 Technical Data................................................................................................................................................ 16 Delivery.................................................................................................................................... 18 Unpacking, Included in Delivery.................................................................................................................... 18 Storage........................................................................................................................................................... 18 Installation............................................................................................................................... 19 Instructions for Installation ............................................................................................................................. 19 5.1.1 Reflection Factor of the Target Surface ........................................................................................ 19 5.1.2 Error Influences ............................................................................................................................ 20 5.1.2.1 Light from other Sources .......................................................................................... 20 5.1.2.2 Color Differences ...................................................................................................... 20 5.1.2.3 Temperature Influences ............................................................................................ 20 5.1.2.4 Mechanical Vibration ................................................................................................ 20 5.1.2.5 Movement Blurs ........................................................................................................ 20 5.1.2.6 Surface Roughness................................................................................................... 21 5.1.2.7 Angle Influences........................................................................................................ 22 5.1.3 Optimizing the Measuring Accuracy ............................................................................................ 23 Mounting, Dimensions.................................................................................................................................... 24 5.2.1 General.......................................................................................................................................... 24 5.2.2 Attachment.................................................................................................................................... 24 Indicator Elements at Sensor......................................................................................................................... 26 5.4 6. 6.1 6.2 6.3 6.4 6.5 7. 7.1 7.2 7.3 7.4 7.5 optoNCDT 1900 Electrical Connections.................................................................................................................................... 27 5.4.1 Connection Possibilities................................................................................................................ 27 5.4.2 Pin Assignment.............................................................................................................................. 29 5.4.3 Supply voltage............................................................................................................................... 30 5.4.4 Laser On........................................................................................................................................ 31 5.4.5 Analog Output............................................................................................................................... 32 5.4.6 Multifunction Input......................................................................................................................... 33 5.4.7 RS422 Connection with USB Converter IF2001/USB................................................................... 33 5.4.8 Digital Output................................................................................................................................. 34 5.4.9 Connector and Sensor Cable....................................................................................................... 35 Operation................................................................................................................................. 36 Getting Ready for Operation.......................................................................................................................... 36 Operation via Web Interface........................................................................................................................... 37 6.2.1 Preconditions................................................................................................................................. 37 6.2.2 Access via Web Interface.............................................................................................................. 38 6.2.3 Measurement Configuration.......................................................................................................... 40 6.2.4 Measurement Presentation via Web Browser............................................................................... 41 6.2.5 Video Signal via Web Browser...................................................................................................... 43 Parametrization via ASCII Commands........................................................................................................... 45 Timing, Measurement Value Flux................................................................................................................... 45 Menu Structure, Operation via Membrane Keys............................................................................................ 46 Setting Sensor Parameters..................................................................................................... 48 Preliminary Remarks about the Setting Possibilities...................................................................................... 48 Overview Parameter........................................................................................................................................ 48 Inputs.............................................................................................................................................................. 49 Synchronization.............................................................................................................................................. 50 7.4.1 Synchronization via Sync +/- Connections.................................................................................. 50 7.4.2 Synchronization via Multi-Function Input...................................................................................... 52 Data Recording............................................................................................................................................... 53 7.5.1 Preliminary Remark....................................................................................................................... 53 7.5.2 Measurement Configuration.......................................................................................................... 53 7.5.3 Measuring Rate............................................................................................................................. 53 7.5.4 Triggering....................................................................................................................................... 54 7.5.4.1 General....................................................................................................................... 54 7.5.4.2 Triggering Data Recording ........................................................................................ 56 7.5.4.3 Triggering Data Output.............................................................................................. 56 7.6 7.7 7.8 8. 8.1 8.2 8.3 optoNCDT 1900 7.5.5 Masking the Evaluation Range, ROI............................................................................................. 57 7.5.6 Exposure Mode............................................................................................................................. 58 7.5.7 Peak Selection............................................................................................................................... 59 7.5.8 Error Processing............................................................................................................................ 59 Signal Processing........................................................................................................................................... 60 7.6.1 Preliminary Remark....................................................................................................................... 60 7.6.2 Averaging....................................................................................................................................... 60 7.6.2.1 General....................................................................................................................... 60 7.6.2.2 Moving average......................................................................................................... 61 7.6.2.3 Recursive average..................................................................................................... 62 7.6.2.4 Median....................................................................................................................... 62 7.6.3 Output Trigger............................................................................................................................... 63 7.6.4 Data Reduction, Output Data Rate................................................................................................ 63 Outputs........................................................................................................................................................... 64 7.7.1 Overview........................................................................................................................................ 64 7.7.2 Digital Output, RS422.................................................................................................................... 66 7.7.2.1 Values, Ranges.......................................................................................................... 66 7.7.2.2 Behavior of the Digital Output.................................................................................... 68 7.7.3 Analog Output............................................................................................................................... 70 7.7.3.1 Output Scaling........................................................................................................... 70 7.7.3.2 Output Scaling with the Select Button....................................................................... 71 7.7.3.3 Output Scaling via Hardware Input........................................................................... 72 7.7.3.4 Calculation of the Measurement Value at the Current Output.................................. 73 7.7.3.5 Calculation of the measurement value from the voltage output............................... 74 7.7.4 Switching Outputs......................................................................................................................... 75 7.7.5 Data Output................................................................................................................................... 76 System Settings.............................................................................................................................................. 77 7.8.1 General.......................................................................................................................................... 77 7.8.2 Unit, Language.............................................................................................................................. 77 7.8.3 Key Lock........................................................................................................................................ 77 7.8.4 Load and Save.............................................................................................................................. 78 7.8.5 Import, Export................................................................................................................................ 80 7.8.6 Access Authorization..................................................................................................................... 81 7.8.7 Reset Sensor................................................................................................................................. 82 Digital Interfaces RS422......................................................................................................... 83 Preliminary Remarks....................................................................................................................................... 83 Measurement Data Format............................................................................................................................. 83 Conversion of the Binary Data Format........................................................................................................... 84 9. Cleaning................................................................................................................................... 85 10. Software Support with MEDAQLib......................................................................................... 85 11. Liability for Material Defects................................................................................................... 86 12. Decommissioning, Disposal................................................................................................... 86 13. Service, Repair........................................................................................................................ 86 Appendix A1 A2 A3 A 3.1 A 3.2 optoNCDT 1900 Optional Accessories...................................................................................................................................... 87 Factory Setting................................................................................................................................................ 89 ASCII Communication with Sensor................................................................................................................ 90 General........................................................................................................................................................... 90 Overview Commands..................................................................................................................................... 92 A 3.2.1 General Commands...................................................................................................................... 95 A 3.2.1.1 HELP.......................................................................................................................... 95 A 3.2.1.2 GETINFO, Sensor information .................................................................................. 96 A 3.2.1.3 LANGUAGE Web interface........................................................................................ 96 A 3.2.1.4 RESET, boot sensor .................................................................................................. 97 A 3.2.1.5 RESETCNT, Reset counter........................................................................................ 97 A 3.2.1.6 ECHO, Switching the Command Reply, ASCII Interface........................................... 97 A 3.2.1.7 PRINT, Sensor settings.............................................................................................. 98 A 3.2.1.8 SYNC.......................................................................................................................... 99 A 3.2.1.9 TERMINATION........................................................................................................... 99 A 3.2.2 User Level.................................................................................................................................... 100 A 3.2.2.1 LOGIN, Change of the User Level........................................................................... 100 A 3.2.2.2 LOGOUT, Change into User Level........................................................................... 100 A 3.2.2.3 GETUSERLEVEL, User Level Request.................................................................... 100 A 3.2.2.4 STDUSER, Set Standard User................................................................................. 100 A 3.2.2.5 PASSWD, Change Password................................................................................... 100 A 3.2.3 Triggering..................................................................................................................................... 101 A 3.2.3.1 TRIGGERLEVEL, Active level triggering.................................................................. 101 A 3.2.3.2 TRIGGERMODE....................................................................................................... 101 A 3.2.3.3 TRIGGERSOURCE, Trigger source......................................................................... 101 A 3.2.3.4 TRIGGERAT, Effect of the Trigger Input................................................................... 101 A 3.2.3.5 MFILEVEL, Input Level Multi-Function Input........................................................... 101 A 3.2.4 A 3.2.5 A 3.2.6 A 3.2.7 A 3.2.8 optoNCDT 1900 A 3.2.3.6 TRIGGERCOUNT, Number of Output Measurement Values................................... 102 A 3.2.3.7 TRIGGERSW, Software Trigger Pulse...................................................................... 102 Interfaces..................................................................................................................................... 103 A 3.2.4.1 BAUDRATE, RS422 ................................................................................................. 103 A 3.2.4.2 ERROROUT1/2, Activate Switching Output............................................................ 103 A 3.2.4.3 ERRORLEVELOUT1/2, Output Level Switching Output.......................................... 103 A 3.2.4.4 ERRORLIMITCOMPARETO1/2................................................................................. 103 A 3.2.4.5 ERRORLIMITVALUES1/2......................................................................................... 104 A 3.2.4.6 ERRORHYSTERESIS............................................................................................... 104 A 3.2.4.7 ERROROUTHOLD ................................................................................................... 104 Handling of Setups...................................................................................................................... 105 A 3.2.5.1 IMPORT.................................................................................................................... 105 A 3.2.5.2 EXPORT................................................................................................................... 105 A 3.2.5.3 MEASSETTINGS, Load / Save Measurement Settings........................................... 106 A 3.2.5.4 BASICSETTINGS, Load / Save Device Settings..................................................... 106 A 3.2.5.5 SETDEFAULT, Factory Settings............................................................................... 106 Analog Output............................................................................................................................. 107 A 3.2.6.1 ANALOGRANGE...................................................................................................... 107 A 3.2.6.2 ANALOGSCALEMODE, Scaling the Analog Output............................................... 107 A 3.2.6.3 ANALOGSCALERANGE, Scaling Limits with Two-Point Scaling............................ 107 A 3.2.6.4 ANALOGSCALESOURCE........................................................................................ 107 Key Function................................................................................................................................ 108 A 3.2.7.1 KEYLOCK, Set Key lock........................................................................................... 108 Measurement............................................................................................................................... 108 A 3.2.8.1 TARGETMODE, Measurement Task........................................................................ 108 A 3.2.8.2 MEASPEAK, Choice of the Peak in the Video Signal.............................................. 108 A 3.2.8.3 MEASRATE, Measuring rate.................................................................................... 108 A 3.2.8.4 SHUTTER, Exposure Time...................................................................................... 109 A 3.2.8.5 SHUTTERMODE...................................................................................................... 109 A 3.2.8.6 EXPOSUREMODE................................................................................................... 109 A 3.2.8.7 LASERPOW, Laser Power........................................................................................ 109 A 3.2.8.8 ROI, Video Signal, Masking the Evaluation Range................................................. 109 A 3.2.8.9 COMP, Averaged Measurements............................................................................. 110 A 3.2.8.10 List of Possible Signals for Mastering...................................................................... 110 A 3.2.8.11 MASTER................................................................................................................... 111 A 3.2.8.12 MASTERSIGNAL...................................................................................................... 111 A 3.2.8.13 MASTERSOURCE.................................................................................................... 111 A 3.2.9 A 3.3 A 3.4 A4 A 4.1 A 4.2 optoNCDT 1900 Data output.................................................................................................................................. 112 A 3.2.9.1 OUTPUT, Selection of Measurement Value Output................................................. 112 A 3.2.9.2 OUTREDUCEDEVICE, Output Reduction of Measurement Value Output.............. 112 A 3.2.9.3 OUTREDUCECOUNT, Data Output Rate................................................................. 112 A 3.2.9.4 OUTHOLD, Error Processing................................................................................... 112 A 3.2.9.5 GETOUTINFO_RS422, Query Selected Data.......................................................... 113 A 3.2.9.6 List of Possible RS422 Signals................................................................................ 113 A 3.2.9.7 OUT_RS422............................................................................................................. 113 Example Command Sequence During Selection of Measurement Value................................................... 114 Error Messages............................................................................................................................................. 114 Control Menu................................................................................................................................................ 117 Tab Home...................................................................................................................................................... 117 Tab Settings.................................................................................................................................................. 117 A 4.2.1 Inputs........................................................................................................................................... 117 A 4.2.2 Data Recording............................................................................................................................ 118 A 4.2.3 Signal Processing........................................................................................................................ 120 A 4.2.4 Outputs........................................................................................................................................ 121 A 4.2.5 System Settings........................................................................................................................... 123 Safety 1. Safety The handling of the sensor assumes knowledge of the operating instructions. 1.1 Symbols Used The following symbols are used in this operating instructions: Indicates a hazardous situation which, if not avoided, may result in minor or moderate injury. Indicates a situation that may result in property damage if not avoided. Indicates a user action. i Indicates a tip for users. Measure Indicates hardware or a software button/menu. 1.2 Warnings Avoid unnecessary laser radiation to be exposed to the human body. Switch off the sensor for cleaning and maintenance. Switch 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. >> Risk of injury >> Damage to or destruction of the sensor optoNCDT 1900 Page 9 Safety Avoid shocks and impacts to the sensor. >> Damage to or destruction of the sensor Mount the sensor only to the existing holes on a flat surface. Clamps of any kind are not permitted >> Damage to or destruction of the sensor The power supply may not exceed the specified limits. >> Damage to or destruction of the sensor Protect the sensor cable against damage. Attach the cable load-free, hold the cable after appr. 25 cm and hold the pigtail on the connector e.g. zip tie. >> Destruction of the sensor >> Failure of the measuring device Avoid continuous exposure to fluids on the sensor. >> Damage to or destruction of the sensor Avoid exposure to aggressive materials (washing agent, penetrating liquids or similar) on the sensor. >> Damage to or destruction of the sensor 1.3 Notes on CE Marking The following apply to the optoNCDT 1900: -- EU directive 2014/30/EU -- EU directive 2011/65/EU Products which carry the CE mark satisfy the requirements of the EU directives cited and the relevant applicable harmonized European standards (EN). The measuring system is designed for use in industrial environments. The EU Declaration of Conformity is available to the responsible authorities according to EU Directive, article 10. optoNCDT 1900 Page 10 Safety 1.4 Intended Use -- The optoNCDT 1900 system is designed for use in industrial and laboratory applications. -- It is used for measuring displacement, distance, position and thickness for in-process quality control and dimensional testing -- The system must only be operated within the limits specified in the technical data, see Chap. 3.3. -- The sensor must be used in such a way that no persons are endangered or machines and other material goods are damaged in the event of malfunction or total failure of the sensor. -- Take additional precautions for safety and damage prevention in case of safety-related applications. 1.5 Proper Environment -- Protection class: IP67 Lenses are excluded from protection class. Contamination of the lenses leads to impairment or failure of the function. -- Temperature range Operation: 0 °C ... 50 °C (+32 ... +104 °F) Storage: -20 °C ... 70 °C (-4 ... +158 °F) -- Humidity: 5 - 95 % (non-condensing) -- Ambient pressure: Atmospheric pressure The protection class is limited to water, no penetrating liquids or similar! i optoNCDT 1900 Page 11 Laser Safety 2. Laser Safety The optoNCDT 1900 sensors operate with a semiconductor laser with a wavelength of 670 nm (visible/red). The sensors fall within Laser Class 2. The laser is operated on a pulsed mode, the maximum optical power is ≤ 1 mW. The pulse frequency depends on the adjusted measuring rate (0.25 ... 10 kHz). The pulse duration of the peaks is regulated depending on the measuring rate and reflectivity of the target and can be 4 ... 3995 µs. Laser radiation. Close your eyes or immediately turn away if the laser beam hits the eye. Irritation or injury of the eyes possible. i Observe the laser protection regulations. Although the laser output is low, directly looking into the laser beam must be avoided. Close your eyes or immediately turn away if the laser beam hits the eye. Lasers of Class 2 are not subject to notification and a laser protection officer is not required. The following warning labels (English / German) are attached to the sensor cable. LASERSTRAHLUNG NICHT IN DEN STRAHL BLICKEN LASER KLASSE 2 nach DIN EN 60825-1: 2015-07 P 1mW; =670nm LASER RADIATION DO NOT STARE INTO BEAM CLASS 2 LASER PRODUCT IEC 60825-1: 2014 P 1mW; =670nm COMPLIES WITH 21 CFR 1040.10 AND 1040.11 EXCEPT FOR CONFORMANCE WITH IEC 60825-1 ED. 3., AS DESCRIBED IN LASER NOTICE NO. 56, DATED MAY 8, 2019. Fig. 1 Laser labels on the sensor cable Fig. 2 Laser warning sign on the sensor housing optoNCDT 1900 Page 12 Laser Safety During operation of the sensor, the pertinent regulations according to IEC 60825-1 on „Safety of laser products“ must be fully observed at all times. The sensor complies with all applicable laws for the manufacturer of laser devices. TION M ADIA TO BEA T C ER R LAS STARE INPRODU OT 14 SER 1 DO NSS 2 LA 25-1: 20 nm 40.1 CLA IEC 608 =670 0 AND 1C060825-1 IE mW; FR 1040E.1WITHIN 19. P 1 , 20 C C ED Y8 21 AN ITH FORM SCRIB D MA SW N DE D ATE PLIE R CO AS , COM PT FO ED . 3., O . 56 E EN EX C OTIC N ER LAS Fig. 3 Sensor cable and sensor with laser sign, ILD 1900 i If both warning labels are covered over when the unit is installed the user must ensure that supplementary labels are applied. Laser operation is indicated by LED, see Chap. 5.3. The housing of the optical sensors may only be opened by the manufacturer, see Chap. 11. For repair and service purposes, the sensors must always be sent to the manufacturer. optoNCDT 1900 Page 13 Functional Principle, Technical Data 3. Functional Principle, Technical Data 3.1 Short Description The optoNCDT 1900 uses the principle of optical triangulation, that is, a visible, modulated point of light is projected onto the target surface. The diffuse part of the reflection of this point of light is displayed depending on distance on a position-resolving element (CMOS) by an receiver optic which is arranged to the optical axis of the laser beam in a defined angle. MR SMR A signal processor in the sensor calculates the distance of the point of light on the measuring object to the sensor by means of the output signal of the CMOS elements. The distance value is linearized and output by means of the analog or RS422 interface. Current Voltage 3 mA 5.2 V / 10.2 V 4 mA (SMR) 0V 12 mA (MMR) 2.5 V / 5 V Digital value 1 262077 98232 131000 20 mA (EMR) 5 V / 10 V 163768 3 mA 5.2 V / 10.2 V 262078 MR = Measuring range SMR = Start of measuring range MMR = Mid of measuring range EMR = End of measuring range Fig. 4 Definition of terms 1) For distance values without zero setting resp. mastering only. optoNCDT 1900 Page 14 Functional Principle, Technical Data 3.2 Advanced Surface Compensation The optoNCDT 1900 is equipped with an intelligent surface control feature. New algorithms generate stable measurement results even on demanding surfaces where changing reflections occur. Furthermore, these new algorithms compensate for ambient light up to 50,000 lux. Therefore, this is the sensor with the highest resistance to ambient light in its class which can even be used in strongly illuminated environments. optoNCDT 1900 Page 15 Functional Principle, Technical Data 3.3 Technical Data Model 10 25 50 Measuring range ILD1900- 10 mm 25 mm 50 mm Start of measuring range 20 mm 25 mm 40 mm Midrange 25 mm 37.5 mm 65 mm End of measuring range 30 mm 50 mm 90 mm Continuously adjustable between 0.25 ... 10 kHz adjustable in 7 steps: 10 kHz / 8 kHz / 4 kHz / 2 kHz / 1.0 kHz / 500 Hz / 250 Hz ≤ ±2 µm ≤ ±5 µm ≤ ±10 µm Measuring rate 1 Linearity 2 Repeatability ≤± 0.02 % FSO 3 Temperature stability < 0.4 µm 4 SMR Spot diameter (± 10 %) 5 MMR EMR smallest Ø Light source Laser safety class Permissible ambient light Power supply Control inputs Digital interface Analog output optoNCDT 1900 < 0.8 µm < 1.6 µm ±0.005 % FSO/K 115 x 150 µm 200 x 265 µm 220 x 300 µm 60 x 65 µm 70 x 75 µm 95 x 110 µm 120 x 140 µm 60 x 65 µm bei 25 mm 220 x 260 µm 65 x 70 µm bei 35 mm Semiconductor laser < 1 mW, 670 nm (red) 260 x 300 µm 85 x 90 µm bei 55 mm Class 2 according to IEC 60825-1 : 2014 50,000 lx 11 ... 30 V DC, 24 V / P < 3 W 1 x HTL/TTL Multifunction input Trigger in / slave in / zero setting / mastering / teach 1x RS422 synchronization input (trigger in, sync in, master/slave, master/slave alternating) RS422 / 18 bit, PROFINET 6, EtherNet/IP 6 4 ... 20 mA / 0 ... 5 V / 0 ... 10 V (16 bit; freely scalable within the measuring range) Page 16 Functional Principle, Technical Data Model ILD1900- Digital output 25 Connection operation storage possible for simultaneous or alternating measurements integrated cable with 3 m length, open ends, min. bending radius 30 mm fixed mounted; or 0.3 m pigtail with 17-pol. M12 connector optional extension on 3 m / 6 m / 9 m / 15 m possible (see accessories for suitable cables) 0 ... +50 °C (+32 ... +122 °F) -20 ... +70 °C (-4 °F ... +158 °F) Shock (DIN-EN 60068-2-27) 15 g / 6 ms Vibration (DIN-EN 60068-2-6) Protection class (DIN-EN 60529) Material 20 g / 20 ... 500 Hz Weight Control and Display Elements 50 2 x switching output (error & limit value): npn, pnp, push pull Synchronization Temperature range 10 IP67 Aluminium housing appr. 185 g (with pigtail), appr. 300 g (with cable) Select & function buttons: interface selection, mastering (zero), teach, presets, quality slider, frequency selection, factory settings Web interface for setup 7: application-specific presets, peak selection, video signal, freely selectable averaging possibilities, data reduction, setup management 2 x color LED for power / state FSO = Full Scale Output, SMR = Start of measuring range, MMR = Mid of measuring range, EMR = End of measuring range The specified data apply to a white, diffuse reflecting surface (Micro-Epsilon reference ceramic for ILD sensors) 1) Factory setting: 4 kHz measuring rate, Median 9; to change the factory setting requires an IF2001/USB converter (see accessories) 2) Based on digital output 3) Characteristic of measurements with 4 kHz and Median 9 4) Based on digital output in midrange 5) Spot diameter determined for punctual laser with Gauß fitting (full 1/e² width) 6) Connection with interfaces (see accessories) 7) Connection to PC via IF2001/USB (see accessories) optoNCDT 1900 Page 17 Delivery 4. Delivery 4.1 Unpacking, Included in Delivery ----- 1 Sensor ILD1900 1 Assembly instruction 1 Calibration protocol Accessories (2 pieces screw M3x40 and 2 pieces centering elements) Carefully remove the components of the measuring system from the packaging and ensure that the goods are forwarded in such a way that no damage can occur. Check the delivery for completeness and shipping damage immediately after unpacking. If there is damage or parts are missing, immediately contact the manufacturer or supplier. Optional accessories are available in the appendix, see Chap. A 1. 4.2 Storage Storage temperature: -20 ... +70 °C (-4 °F ... +158 °F) Humidity: 5 - 95 % (non-condensing) optoNCDT 1900 Page 18 Installation 5. Installation 5.1 Instructions for Installation 5.1.1 Reflection Factor of the Target Surface In principle the sensor evaluates the diffuse part of the reflected laser light. Laser beam Laser beam Laser beam 2 Ideal diffuse reflection Direct mirror reflection Real reflection Fig. 5 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 CMOS signal in real time and subsequent compensation, see Chap. 3.2. Dark or shiny objects being measured, e.g. black rubber, may require longer exposure times. The maximum exposure time is dependent on the measuring rate and can only be increased by reducing the sensor’s measuring rate. optoNCDT 1900 Page 19 Installation 5.1.2 Error Influences 5.1.2.1 Light from other Sources Thanks to their integrated optical interference filters the optoNCDT 1900 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 measuring rates are selected. Should this be the case it is recommended to use suitable shields to screen the other light sources or switch on the background suppression function. This applies in particular to measurement work performed in close proximity to welding equipment. 5.1.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. 5.1.2.3 Temperature Influences When the sensor is commissioned a warm-up time of at least 20 minutes is required to achieve uniform heat 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. 5.1.2.4 Mechanical Vibration If the sensor is to be used for resolutions in the μm to sub-μm range, special care must be taken to ensure stable and vibration-free mounting of sensor and target. 5.1.2.5 Movement Blurs If the objects being measured are fast moving and the measuring rate is low, it is possible that movement blurs may result. Always select a high measuring rate for high-speed operations, therefore, in order to prevent errors. optoNCDT 1900 Page 20 Installation 5.1.2.6 Surface Roughness Laser-optical sensors detect the surface using an extremely small laser spot. They also track slight surface unevenness. In contrast, a tactile, mechanical measurement, e.g. using a caliper, detects a much larger area of the measurement object. In case of traversing measurements, surface roughnesses of 5 μm and more lead to an apparent distance change. Min. Max. Suitable parameters for the averaging number may improve the comparability of optical and mechanical measurements. h > 5 µm Ceramic reference surface Structured surface Recommendation for parameter choice: The averaging number should be selected in such a way that a surface area the size of which is comparable to those with mechanical measurements is averaged. optoNCDT 1900 Page 21 Installation 5.1.2.7 Angle Influences Tilt angles of the target in diffuse reflection both around the X and the Y axis of less than 5 ° only have a disturbing effect with surfaces which are highly reflecting. These influences have to be explicitly considered when scanning profiled surfaces. Basically the angle behavior of triangulation is liable to the reflectivity of the measuring object surface. optoNCDT Y-axis X-axis Angle Fig. 6 Measurement errors through tilting with diffuse reflection optoNCDT 1900 Page 22 Installation 5.1.3 Optimizing the Measuring Accuracy Color strips Direction of movement 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. state output Grinding or rolling marks Fig. 7 Sensor arrangement in case of ground or striped surfaces 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. correct optoNCDT incorrect (Shadow) Fig. 8 Sensor arrangement for holes and ridges optoNCDT 1900 Page 23 Installation 5.2 Mounting, Dimensions 5.2.1 General The optoNCDT 1900 sensor is an optical system for measurements with micrometer accuracy. The laser beam must be directed perpendicularly onto the surface of the target. i Make sure it is handled carefully when installing and operating. Mount the sensor only to the existing holes on a flat surface. Clamps of any kind are not permitted. Do not exceed torques. The bearing surfaces surrounding the fastening holes (through-holes) are slightly raised Fig. 9 Sensor mounting with diffuse reflection 5.2.2 Attachment Depending on the installation position, it is recommended to define the sensor position using centering elements and fitting bores. The cylindrical counterbore ø6H7 is intended for the position-defining centering elements. This allows for the sensor to be mounted in a reproducible and exchangeable way. Bolt connection Direct fastening 0.75 Nm M3 x 40; ISO 4762, A2-70 optoNCDT 1900 2.0 Nm M4; ISO 4762, A2-70 Screw depth min 10 mm min 10 (.04) Page 24 Installation 70 (2.76) i +0.012 6 (.24) 6 (.24) 60 (2.36) 18(.71) 2 (.08) 32 (1.26) Limits for free space 14 (.55) Keep this area free from other light sources and/or their reflections. Y ø6 H7 A A ø4.8 (.19) 60 ±0.1 (2.36) optoNCDT 1900 SMR X Y 10 20 33 14 25 25 33 33 50 40 36 45 MR = Measuring range SMR = Start of measuring range 47.5 Fig. 11 Dimensional drawing male connector sensor cable +0.012 0 0.02 1.6 ±0.05 Dimensions in mm (inches) 2 (.08) MR 14 4x M4 4 (.16) 2x ø6 H7 2x 6 H7 0 45 (1.77) 11 (.43) X MR SMR 6 (.24) 5 (.20) Mount the sensor only to the existing holes on a flat surface. Clamps of any kind are not permitted. M12 +0.012 0 31 (1.22) 0.02 Fig. 10 Dimensional drawing mounting bores Page 25 Installation 5.3 Indicator Elements at Sensor LED State Meaning green Measuring object within sensor range yellow Mid range red no displacement value available - e.g. Poor target or out of range off Laser off LED Output Meaning green RS422 measurement value output on, analog output off yellow The digital outputs are active. The RS422 or the analog output can be switched on. The web interface can also be switched on. red Measurement value output: current with 4 ... 20 mA or voltage with 0 ... 5 V resp. 0 ... 10 V is active off Sensor off, no supply Key Function Meaning Sensor parameterization -- during initialization of sensor: selection of interface and key function (mastering or teaching) -- in measurement mode: selection of the functions Presets, Averaging and Measurement frequency, see Chap. 6.5. Key Select Meaning LED state LED output Function key Select key The web interface or the ASCII commands enable programming of the Select key and setting of the key lock. The keys have a key lock function. By default, the two keys are active for five minutes after having switched on the power supply. Afterwards, they are automatically locked in order to avoid misuse. -- Sensor parameterization -- Teaching or mastering optoNCDT 1900 Page 26 Installation 5.4 Electrical Connections 5.4.1 Connection Possibilities Source Cable/Supply Interface End device PC1900-x/OE PLC PS 2020 PC1900-x/OE PC1900-x/OE IF2030/PNET IF2030/ENETIP IF2001/USB IF2004/USB PC1900-x/IF2008 (IF2008-Y) USB PC1900-x/IF2008 and IF2008-Y adapter cable PC IF2008/PCIE Sensor supply is done by peripheral. USB PC1900-x/C-Box Ethernet C-Box/2A Fig. 12 Connection examples on ILD1900 optoNCDT 1900 Page 27 Installation optoNCDT optoNCDT 0.3 m ILD1900 with pigtail 3m ILD1900 with open ends The different periphery devices, see Fig. 12, can be connected by the illustrated connection cables to the 17-pin sensor male plug resp. to the open ends. Peripheral Sensor channels Power supply for the Power supply sensor is provided converter/modules IF2001/USB, RS422-USB converter one yes IF2030/PNET, IF2030/ENETIP one yes C-Box/2A two yes IF2004/USB four yes four yes IF2008/PCIE, PCI interface card optional available power supply PS2020 Interface RS422 SPS, ILD1900 or the like --- Functional input: trigger Switch, key, PLC or the like --- Switching input laser On/Off Fig. 13 Max. sensor channels on the peripheral devices optoNCDT 1900 Page 28 Installation 5.4.2 Pin Assignment Signal Pin Color sensor cable PC1900-x/OE, Description +UB 5 red GND 14 blue Analog output 1 Coaxial inner conductor, white Specification, Wiring Supply voltage (11 ... 30 VDC) System ground for power supply, switch signals (Laser on/off, Zero, Limits) RB < (UB - 6 V) / 20 mA, Current 4 ... 20 mA see Chap. 5.4.5 Voltage 0 ... 5 VDC Ri = 50 Ohm, Imax = 5 mA Voltage 0 ... 10 VDC 1 11 10 9 16 8 17 12 2 7 15 6 5 Switch output 2 3 13 4 14 Coaxial screen2 Reference potential for analog output ing, black 17-pin connector, M12, pin side Laser is active, if Pin 3 is connected male cable connector pigtail 3 black Switching input with GND, see Chap. 5.4.4 The sensor cable PC1900 is TrigIn, Zero/Master, TeachIn, 13 violet Switching input cable carriers suitable. SlaveIn, see Chap. 5.4.6 Programmable switching character- One end has a molded female 10 brown Error/Limit 1 cable connector, the other end istic: (NPN, PNP, Push-Pull), has free leads with ferrules. 11 white Limit 2 see Chap. 5.4.8 Sync + 17 grey-pink Sync - 12 red-blue Tx + 8 Tx - 15 pink AGND Laser on/off Multifunction input Switch output 1 grey Rx + 9 Rx - 16 yellow green Symmetrical synchron output (Master) or input (Slave) 1 RS422 level, terminating resistor 120 Ohm switchable, input or output selected depending on the synchronization mode RS422 - Output (symmetric) Terminate receiver with 120 Ohm RS422 - Input (symmetric) Internally terminated with 120 Ohm Overall screen Analog output with screen PC1900-x with open ends 1) Used as trigger inputs in mode „Triggering“. optoNCDT 1900 Page 29 Installation 5.4.3 Supply voltage Nominal value: 24 V DC (11 ... 30 V, P < 3 W). Switch on the power supply unit once wiring is completed. Connect the inputs „5“ and „14“ at the sensor with a 24 V voltage supply. 11 ... 30 VDC 5 ILD1900 14 optoNCDT 1900 Sensor Pin PC1900-x/OE Color Supply 5 red +UB 14 blue Ground Use the supply voltage for measurement instruments only and not for drive units or similar sources of pulse interference at the same time. MICRO-EPSILON recommends using an optional available power supply unit PS2020 for the sensor. Fig. 14 Connection of supply voltage Page 30 Installation 5.4.4 Laser On The measuring laser on the sensor is activated via an switch input (HTL or TTL level). This is advantageous if the sensor has to be switched off for maintenance or similar. Switching can be done with a transistor (for example open collector in an optocoupler), a relay contact or a digital TTL/HTL signal. i If pin 3 is not connected electrically with Pin 14, the laser is off. Type 1 Type 2 Type 3 PC1900-x ILD1900 +U H 10k +U B Inputs are not galvanically isolated. 24V level (HTL): Low ≤ 3 V; High ≥ 8 V (max 30 V), 5V level (TTL): Low ≤ 0.8 V; High ≥ 2 V Internal pull-up resistor, an open input is identified as High. 1 black blue 3 GND 14 Max. switching frequency 10 Hz Fig. 15 Electrical wiring for laser on/off There is no external resistor for current limiting required. Connect Pin 3 with Pin 14 for permanent „Laser on“. Reaction Time for Laser-On: After the laser was switched on, correct measuring data are sent by the sensor approximately 10 ms later. optoNCDT 1900 Page 31 Installation 5.4.5 Analog Output The sensor alternatively provides a -- current output with 4 ... 20 mA or a -- voltage output with 0 ... 5 V resp. 0 ... 10 V. i The output may not be continuously operated in short circuit operation without load resistor. The short circuit operation leads to durable thermal overload and thus for automatic overload shutdown of the output. Connect the output 1 (white, coaxial inner conductor) and 2 (black, coaxial screening) on the sensor to a measuring device. Sensor Current output 5 17-pin female Sensor cable connector cable OUT (Pin 1) GND (Pin 2) white 11... 30 VDC ILD1900 1 Iout RB RB < (UB - 6 V) / 20 mA; CI 2 14 RB max. = 250 Ohm at UB = 11 V CI ≤ 33 nF black 5 Ri = 50 Ohm 11... 30 VDC ILD1900 Ri 14 Voltage output 1 Uout 2 Ri = 50 Ohm, I max = 5 mA, RL CU short circuit protection at 7 mA RL > 20 MOhm CU ≤ 100 nF Fig. 16 Wiring for analog output optoNCDT 1900 Page 32 Installation 5.4.6 Multifunction Input The multifunctional input enables the functions Triggering, Zeroing/Mastering and Teaching. The function is dependent on the programing of the input and of the time behavior of the input signal. The inputs are not galvanically isolated, the maximum switching frequency is 10 kHz. 24V level (HTL): Low ≤ 3 V; High ≥ 8 V (max 30 V) Type 1 Type 2 Type 3 PC1900-x ILD1900 +U B 10k +U H 1 13 violet blue 5V level (TTL): Low ≤ 0.8 V; High ≥ 2 V Internal pull-up resistor, an open input is identified as high. Connect the input with GND, to start the function. GND 14 Fig. 17 Electrical wiring for multifunctional input 5.4.7 RS422 Connection with USB Converter IF2001/USB Cross the lines for connections between sensor and PC. i Disconnect or connect the D-sub connection between RS422 and USB converter when the sensor is disconnected from power supply only. Sensor End device (converter) Type IF2001/USB from MICRO-EPSILON Symmetric differential signals acc. to EIA-422, not galvanically isolated from supply voltage. Rx + (Pin 3) Use a shielded cable with twisted cores e.g. PC1900-x/OE. 17-pin male cable connector Tx + (Pin 8) Sensor cable grey Tx -(Pin 15) pink Rx -(Pin 4) Rx + (Pin 9) green Tx + (Pin 1) Rx -(Pin 16) yellow Tx -(Pin 2) GND (Pin 14) blue GND (Pin 9) Fig. 18 Pin assignment IF2001/USB optoNCDT 1900 Page 33 Installation 5.4.8 Digital Output The switching characteristic (NPN, PNP, Push-Pull, Push-Pull negated) of both digital outputs depends on the programing. The NPN output is e.g. suitable for adjustment to TTL logics with an auxiliary voltage UH= +5 V. The digital outputs are protected against reverse polarity, overloading (> 100 mA) and over temperature. +U B +U H Output is not galvanically isolated. +U B 24V level (HTL), RL Imax = 100 mA, 10/11 10/11 NPN 10/11 Usat, low < 1.5 V (output - GND), RL PNP UH, max = 30 V saturation voltage at Imax = 50 mA: Usat, high < 1.5 V (output - +UB) Push-Pull Fig. 19 Electrical wiring digital output Switching characteristic Description Output active (error, limit value) Output passive (no error, no off-limit condition) NPN (Low side) GND appr. +UH PNP (High side) + UB appr. GND Push-Pull + UB GND Push-Pull, negated GND + UB Fig. 20 Switching characteristic digital output The digital outputs are activated when measuring object is missing, measuring object too close/too far, no valid measurement value or with an off-limit condition. optoNCDT 1900 Page 34 Installation 5.4.9 Connector and Sensor Cable i i optoNCDT optoNCDT ILD1900 with pigtail PC1900 with open ends Never fall below the bending radius for the sensor cable of 30 mm (fixed) resp. 75 mm (dynamic). The fixed connected sensor cable is cable carriers suitable. Unused open cable ends must be insulated to protect against short circuits or malfunction of the sensor. MICRO-EPSILON recommends to use the cable carriers suitable standard connection cable PC1900 of the optional accessories, see Chap. A 1. Mount the cable connector if you use a cable carriers suitable sensor cable PC1900. Avoid excessive pulling to the cables. Provide strain relieves near the connectors when cables > 5 m are vertically free hanging. Do not twist the connectors in opposite directions when connected. Connect the cable shield to the potential equalization (PE, protective earth conductor) on the evaluator (control cabinet, PC housing) and avoid ground loops. Never lay signal leads next to or together with power cables or pulse-loaded cables (e.g. for drive units and solenoid valves) in a bundle or in cable ducts. Always use separate ducts. optoNCDT 1900 Page 35 Operation 6. Operation 6.1 Getting Ready for Operation Install and assemble the optoNCDT 1900 in accordance with the instructions set out, see Chap. 5. Connect the sensor with the indicator or monitoring unit and the power supply. The laser diode in the sensor can only be activated if at the input Laser on/off Pin 3 is connected with Pin 14, see Chap. 5.4.4. Once the power supply has been switched on the sensor runs through an initialization sequence. This is indicated by the momentary activation of all the LEDs. Once initialization has been completed, the sensor transmits a „->“ via the RS422 interface. The initialization takes up to 3 seconds. Within this period, only the command reset or the bootloader is executed via the Select key. For reproducible measurements the sensor typically requires a start-up time of 20 minutes. If the LED output is off, this means that there is no supply voltage. If the LED state is off, this means that the laser light source has been switched off. optoNCDT 1900 Page 36 Operation 6.2 Operation via Web Interface 6.2.1 Preconditions In the sensor a webserver is implemented. The web interface contains among other things the current settings of the sensor and the periphery. The operation is only possible as long as an RS422 connection to the sensor exists. The sensor is connected to a PC/notebook via a RS422 converter, supply voltage persist. Start the program SensorTool Vx.x.x. Click the button Sensor. The program searches for connected ILD1900 sensors on available interfaces. You need a web browser compatible with HTML5 on a PC/notebook. Choose the desired sensor. Click on the button Open Website. Fig. 21 Auxiliary program for sensor search and to start web interface optoNCDT 1900 Page 37 Operation 6.2.2 Access via Web Interface Start the web interface of the sensor, see Chap. 6.2.1. Interactive web pages you can use to configure the sensor are now displayed in the web browser. The sensor is active and supplies measurement values. Fig. 22 First interactive website after selection of the web interface The horizontal navigation includes the functions below: -- The search function permits time-saving access to functions and parameters. -- Home. The web interface automatically starts in this view with measurement chart, Configuration and Signal quality. -- Settings. This menu includes all sensor parameters, see Chap. 7. -- Measurement chart. Measurement chart with digital display or overlay of the video signal. -- Info. Includes information about the sensor, such as measuring range, serial number and software status. -- Web interface language selection The appearance of the websites can change dependent of the functions. Dynamic help text with excerpts from the operating instructions supports you during sensor configuration. i Depending on the selected measuring rate and the PC used, measured values may be reduced dynamically in the display. That is, not all measured values are transmitted to the web interface for display and saving. optoNCDT 1900 Page 38 Operation For configuration, you can switch between the video signal and a display of the measured values over time. Averaging Description Balanced Median with 9 values + Moving with 64 values Raw signal, no averaging In the area Signal quality you can switch between four given basic settings (static, balanced, dynamic and no averaging). You can instantly see the reaction in the diagram and system configuration. Static Median with 9 values + Moving with 128 values Dynamic Median, 9 values i If the sensor starts with user defined measurement setting (setup), see Chap. 7.8.4, changing the signal quality is not possible. The area System configuration displays the current settings for measuring rate, averaging and RS422 in blue lettering. Changes to the settings are possible by means of the slide Signal quality or by means of the tab Settings. The area Diagram type enables the change between graphical display of the measurement value or the video signal, each as value time diagram. i After parametrization all the settings are to be stored permanently in a set of parameters. The next time you turn on the sensor they are available again. Therefore use the button Save settings. optoNCDT 1900 Page 39 Operation 6.2.3 Measurement Configuration Common measurement configurations (presets) for various target surfaces are stored on the sensor. Those enable to quickly start the respective measurement task. Choosing a preset suitable to the target surface causes a predefined configuration of the settings which achieves the best results for the chosen material. Standard Ceramics, metal Multi-Surface 1 Printed circuit boards (PCB), hybrid material Light penetration 1 Plastics (Teflon, POM), materials with large penetration depth of the laser 1) Available for ILD1900-10/25/50 sensors optoNCDT 1900 Page 40 Operation 6.2.4 Measurement Presentation via Web Browser Start the measurement value display with the tab Measurement chart in the horizontal navigation bar. 3 4 2 5 6 7 8 1 Fig. 23 Website measurement (distance measurement) 1 The LED visualizes the status of the transmission of measured values: -- green: transmission of measured values is running. -- yellow: waiting for data in trigger mode -- gray: transmission of measured values stopped Data queries are controlled by using the Play/Pause/Stop/Save buttons of the measured values that were transmitted. Stop stops the diagram; data selection and zoom function are still possible. Pause interrupts recording. Save opens the Windows selection dialog for file name and storage location to save the last 10,000 values in a CSV file (separation with semicolon). Click the button (Start), for starting the display of the measurement results. optoNCDT 1900 Page 41 Operation 2 For scaling the measurement value axis (y-axis) of the graphics you can either choose Auto (= autoscaling) or Manual (= manual setting). 3 The search function enables time-saving access to functions and parameters. 4 In the text boxes above the graphics current values for distance, current measuring rate and timestamp are displayed. 5 Mouse over function. When moving the mouse over the graphic in stopped state curve points are marked with a circle symbol and the related values are displayed in text boxes above the graphic. Peak intensity is also updated. 6 Scaling of the x-axis can be defined by means of a input field below the time axis. 7 Scaling of the x-axis: you can enlarge (zoom) the overall signal by means of the left slider during ongoing measurement. If the diagram is stopped, you can also use the right slider. The zoom window can also be moved by means of the mouse in the middle of the zoom window (arrow cross). 8 Choice of a diagram type: measurement or video signal representation. optoNCDT 1900 Page 42 Operation 6.2.5 Video Signal via Web Browser Start the video signal display with the function Video in the area Diagram type. The diagram in the big graphic window on the right displays the video signal of the recipient filed. The video signal in the graphic window displays the intensity distribution above the pixels of the recipient field. 0 % (distance small) on the left and 100 % (distance big) on the right. The related measurement value is marked by means of a vertical line (peak marking). 4 3 2 5 6 7 8 1 9 Fig. 24 Display of video signals optoNCDT 1900 Page 43 Operation 1 The LED visualizes the status of the transmission of measured values: -- green: transmission of measured values is running. -- yellow: waiting for data in trigger mode -- gray: transmission of measured values stopped Data queries are controlled by using the Play/Pause/Stop/Save buttons of the measured values that were transmitted. Stop stops the diagram; data selection and zoom function are still possible. Save opens the Windows selection dialog for file name and storage location to save the video signal in a CSV file. Click the button (Start), for starting the display of the video signal. 2 The video curves to be displayed while or after measurement can be switched on or off. Non active curves are highlighted in gray and can be added by clicking the hook. If you only want to see a single signal, then click on its name. -- Peak marking (vertical blue line), corresponds to the calculated measurement value -- Linearized measuring range (limited by means of gray shading), cannot be changed -- Masked range (limited by means of light blue shading), changeable 3 For scaling the measurement value axis (y-axis) of the graphics you can either choose Auto (= auto scaling) or Manual (= manual setting). 4 The search function enables time-saving access to functions and parameters. 5 i ASCII commands to the sensor can also be sent via the search function. In the text boxes above the graphics current values for distance, exposure time and current measuring rate are displayed. 6 Mouse over function. When moving the mouse over the graphic in stopped state curve points are marked with a circle symbol and the related intensity is displayed. The related x position in % appears above the graphic filed. 7 The linearized range is between the gray shading in the diagram and cannot be changed. Only peaks which centers are within this range can be calculated as measurement value. The masked range can be limited on request and is additionally limited by means of a light blue shading on the right and on the left. The remaining peaks in the resulting range are used for evaluation. optoNCDT 1900 Page 44 Operation 8 Scaling of the x-axis: you can enlarge (zoom) the overall signal by means of the left slider during ongoing measurement. If the diagram is stopped, you can also use the right slider. The zoom window can also be moved by means of the mouse in the middle of the zoom window (arrow cross). 9 Choice of a diagram type: measurement or video signal representation. By displaying the video signal, you can detect effect of the adjustable measurement task (target material), choice of peak and possible interfering signals by means of reflections. There is no linear relationship between the position of the peaks in the video signal and the output measurement value. 6.3 Parametrization via ASCII Commands As an added feature you can parametrize the sensor via an ASCII interface, physically the RS422. This requires, that the sensor must be connected either to a serial RS422 interface via a suitable interface converter, see Chap. A 1, or a plug-in-card to a PC / PLC. Pay attention in the programs used to the correct RS422 default setting. Once connected, you can transmit the commands via the terminal to the sensor, see Chap. A 4. 6.4 Timing, Measurement Value Flux The sensor requires four cycles for measurement and calculation without triggering: Each cycle takes 100 μs at a measuring rate of 10 kHz. The measured value N is available at the output after four cycles. The delay between acquisition and output is therefore 400 µs. As the processing in the cycles occurs parallel, after another 100 µs, the next measured value (N+1) is output. optoNCDT 1900 Page 45 Operation 6.5 Menu Structure, Operation via Membrane Keys Initialization The parameters interface and key function can be changed during function the initialization sequence only. No action during boot sequence LED State flashes green select Call menu basic settings Reset factor settings LED Output green Interface RS422 LED Output yellow select select LED State flashes red Mastern select Voltage 0 ... 5 V select Select key is pressed before power on Voltage 0 ... 10 V LED Output flashes green select Current 4 ... 20 mA select LED Output yellow select Bootloader LED Output red select LED Output green Key function Select key is pressed during boot sequence select i LED Output red Teaching select select None select select To select/change settings, completely scroll through the interface and key function menu levels. select Store and activate settings function A Legend select navigating through options; briefly press key <0.5 sec. select making a selection; press key for approx. 3 sec. optoNCDT 1900 function function --enter/leave menu; press key for approx. 3 sec. Page 46 Operation A Press the key function for a long period to leave the settings menu function Measurement mode function function LED State flashes green Call menu measurement settings Key function Standard select select LED State flashes yellow static select 300 Hz select balanced 625 Hz select i To select/change settings, completely scroll through the presets, averaging and measuring rate menu levels. select LED Output red select dynamic LED Output flashes green select LED Output red select 1.25 kHz select off select select select LED Output yellow select Light penetration select select LED Output green Measuring rate select LED Output yellow select LED State flashes red Multi surfaces after 5 min active (ex factory) LED Output red select LED Output green Averaging Key lock LED Output yellow LED Output grün Presets Mastering / Teaching LED Output flashes green select 2.5 kHz 5 kHz LED Output flashes yellow LED Output flashes red 7.5 kHz select select Store and activate settings optoNCDT 1900 Page 47 Setting Sensor Parameters 7. Setting Sensor Parameters 7.1 Preliminary Remarks about the Setting Possibilities There are different ways to parametrize the optoNCDT 1900: -- using the web browser via the ILD1900 DAQ tool and the sensor web interface -- using the ASCII command set and the terminal program via RS422 i If the parametrization is not permanently stored on the sensor, the settings will be lost after switching off the sensor. 7.2 Overview Parameter The following parameters can be set or changed in the optoNCDT 1900, see tab Settings. Inputs Laser power, Synchronization, Multi-function input, Termination Data recording Measurement task, Measuring rate, Input trigger, Evaluation range, Exposure mode, Peak selection, Error handling Signal processing Averaging 1/2, Zeroing/Mastering, Output trigger, Data reduction Outputs RS422, Analog output, Digital output, Output interface System settings Unit on web interface, Key lock, Load & Save, Import & Export, Access authorization, Reset sensor (factory settings) optoNCDT 1900 Page 48 Setting Sensor Parameters 7.3 Inputs Change to the Input menu in the Settings tab. Laser power Full / Reduced / Off The laser light source is active only, if pin 3 is connected to GND (pin 14). Synchronization Slave / Slave alternating If several sensors measure the same target synchronously, the sensors may be synchronized with each other. The synchronization output of the first sensor (master) controls the sensors connected to the synchronization inputs (slaves). Slave MFI Master / Master alternating inactive Level Multi-function input Defines the input level of both switching inputs Laser on/off and Multi-function. TTL / HTL TTL: Low ≤ 0,8 V; High ≥ 2 V HTL: Low ≤ 3 V; High ≥ 8 V Termination On / Off Grey shaded fields require a selection. optoNCDT 1900 For synchronization, the terminating resistor at 120 Ohm in the last slave must be enabled. Value Fields with dark border require entry of a value. Page 49 Setting Sensor Parameters 7.4 Synchronization 7.4.1 Synchronization via Sync +/- Connections If two sensors measure against the same target, the sensors can be synchronized. The optoNCDT 1900 distinguishes between two types of synchronization. Type Used for Simultaneous Both sensors measure Measurement of differences (thickness, difference in height) on opaque objects. Here, Sensynchronization in the same cycle sor 1 must be programmed as the “Master“ and Sensor 2 as the “Slave“, see Chap. 7.3. Alternating Both sensors measure synchronization alternatively Output rate ≤ measuring rate / 2 Thickness measurements on translucent objects or measurements of difference on closely spaced measurement points. The alternat-ing synchronization requires that the lasers are switched on and off alternately so that the two sensors do not interfere with each other optically. Therefor one sensor is to program as “Master alternating“ and one as “Slave alternating“. There can be only one master to be connected to a slave. Fig. 25 Characteristics of and uses for the different types of synchronization The synchronous connections may not be temporarily connected to the power supply and / or GND. Risk of destruction of the sensor by overloading. Sensor simultaneously synchronizes other sensors + + 17 ILD 1900 Sensor 1 (Master) 12 17 ILD 1900 Sensor 2 (Slave) 120 Ohm - + 17 ILD 1900 Sensor 3 (Slave) 120 Ohm 14 Master - 12 120 Ohm 14 - 12 Slave / Termination 14 The signals Sync-in/out or /Sync-in/ of same polarity are connected in parallel with each other. A sensor is to program as a synchronous master, which supplies the subsequent slave sensors with symmetric synchronous pulses, RS422-level. Only in the last slave sensor in the chain the terminating resistor is activated of 120 Ohm, see Chap. 7.3. The system grounds (pin 14) of the sensors are to connect to each other. Settings in the Inputs > Synchronization menu, see Chap. 7.3. Fig. 26 Sensor 1 synchronizes other sensors optoNCDT 1900 Page 50 Setting Sensor Parameters Sensor alternately synchronizes another sensor + + 17 ILD 1900 Sensor 1 (Master) ILD 1900 Sensor 2 (Slave) 120 Ohm - The signals Sync-in/out or /Sync-in/ of same polarity are connected in parallel with each other. A sensor is to program as a synchronous master, which supplies the subsequent slave sensor with symmetric synchronous pulses, RS422-level. In the slave sensor the terminating resistor is activated of 120 Ohm, see Chap. 7.3. The system grounds (pin 14) of the sensors are to connect to each other. 120 Ohm 14 12 17 Master alternating - 12 Slave alternating / Termination Settings in the Inputs > Synchronization menu, see Chap. 7.3. Fig. 27 Sensor 1 synchronizes another sensor i Do not ever connect two masters with each other. If two masters are connected to one another, the laser diodes switch off. No measurement is possible. Signal Pin Description GND 14 System ground for power supply, switch signals (Laser on/off, Zero, Limits) Sync + 17 Sync - 12 RS422 level, terminating resistor 120 Ohm switchable, Symmetrical synchron outinput or output selected put (Master) or input (Slave) depending on the synchronization mode Color sensor cable PC1900-x blue grey-pink red-blue 1 11 10 8 17 12 2 3 9 16 13 4 14 7 15 6 5 17-pin connector, M12, pin side male cable connector pigtail Fig. 28 Extract pin assignment optoNCDT 1900 Page 51 Setting Sensor Parameters 7.4.2 i Synchronization via Multi-Function Input Do not ever connect two masters with each other. If two masters are connected to one another, the laser diodes switch off. No measurement is possible. TTL/HTL source simultaneously synchronizes other sensors Out+ 13 External signal source (Master) If you synchronize the sensor with an external signal source, the levels of the signal source have to comply with the EIA-422-specificaions, see Chap. 7.3. Select the synchronization frequency in the external signal source according to the desired measuring rate in a range from 250 Hz to 10,000 Hz. Pulse duration and non-pulse period have a ratio of 1:1. 13 ILD 1900 Sensor 1 (Slave) ILD 1900 Sensor 2 (Slave) 14 Slave MFI / TTL / HTL 14 Settings in the Inputs > Synchronization and Level Multi-function input menu, see Chap. 7.3. Fig. 29 Signal source synchronizes sensors Signal Pin Description Color sensor cable PC1900-x 1 GND 14 System ground for power supply, switch signals (Laser on/off, Zero, Limits) 11 10 blue 8 17 12 2 Multi-function input 13 Switching input TrigIn, Zero/Master, TeachIn, SlaveIn, see Chap. 5.4.6 violet 3 9 16 13 4 14 7 15 6 5 17-pin connector, M12, pin side male cable connector pigtail Fig. 30 Extract pin assignment optoNCDT 1900 Page 52 Setting Sensor Parameters 7.5 Data Recording 7.5.1 Preliminary Remark Change to the Data recording menu in the Settings tab . According to the previous setting in the Diagram type area, a diagram is displayed in the right part of the display. The diagram is active and all settings become immediately visible. Notes on the chosen settings are displayed below. In the left area, the menus for the Data recording are displayed. 7.5.2 Measurement Configuration Details can be found in Operation via Web Interface, see Chap. 6.2.3. 7.5.3 Measuring Rate The measuring rate indicates the number of measurements per second. Select the required measuring rate. Measuring rate 250 Hz / 500 Hz / 1 kHz / 2 kHz / 4 kHz / 8 kHz / 10 kHz Free measuring rate Value Use a high measuring rate for bright and mat measurement objects. Use a low measuring rate for dark or shiny measurement objects (e.g. black painted surfaces) to improve the measurement result. At a maximum measuring rate of 10 kHz, the CMOS element is exposed 10,000 times per second. The lower the measuring rate, the longer the maximum exposure time. The measuring rate is factory set to 4 kHz. Grey shaded fields require a selection. optoNCDT 1900 Value Fields with dark border require entry of a value. Page 53 Setting Sensor Parameters 7.5.4 Triggering 7.5.4.1 General The value input and output on the optoNCDT 1900 can be controlled through an external electrical trigger signal or commands. Both analog and digital outputs are affected. The measured value to the trigger point is output delayed, see Chap. 6.4. -- Triggering does not influence the preset measuring rate or the timing so that 4 cycles + 1 cycle (jitter) are between the trigger event (level change) and the output reaction -- Micro-Epsilon does not recommend any data reduction e.g. by subsampling when the trigger is used. -- The multi-function or synchronization inputs are used as external trigger inputs, see Chap. 5.4.6. -- Factory settings: no triggering, the sensor starts transmitting data output as soon as it is switched on. -- “Trigger in” pulse duration is at least 50 μs. The triggering of the measured value recording and output have the same timing. Input trigger Output trigger Multi-function input / Trigger type Synchronization input Trigger level Trigger source Software Edge / Level high rising edge / low falling edge Number of measured values Infinite Number of measured values Infinite Range: 1 ... 16383 Value Range: 1 ... 16383 Button starts data recording Stop triggering Sensor outputs continuous data No triggering fT fM Grey shaded fields require a selection. optoNCDT 1900 Manual selection Value Start triggering Inactive Valid with triggering: f T < f M Manual selection Trigger frequency Measuring rate Value Fields with dark border require entry of a value. Page 54 Setting Sensor Parameters Implemented trigger conditions: Level triggering with High level / Low level. Continuous value input/output for as long as the selected level is active. Then the data recording/output stops. Pulse duration must last for at least one cycle. The subsequent pause must also last for at least one cycle. UI t W t A0 U = Trigger signal t I W = Displacement signal D0 t Fig. 31 Trigger level High (above) with analog output A0 and digital output signal D0 (below). Edge triggering with rising or falling edge. Starts data recording as soon as the selected edge is active to the trigger input. If trigger conditions are met, the sensor outputs a defined number of measurements. Value range between 1 ... 16382. After completion of data output the analog output remains standing at the last value. The duration of the pulse must be at least 50 µs. UI t W t A0 t D0 t Fig. 32 Trigger edge HL (above) with analog output A0 and digital output signal D0 (below). Software triggering. Data recording is caused by the TRIGGERSW SET command. The sensor outputs the previously set number of measured values or initiates a continuous measured value output after the trigger event. Measurement value output can also be stopped via a command. optoNCDT 1900 Page 55 Setting Sensor Parameters 7.5.4.2 Triggering Data Recording The data recording trigger processes measurements which are recorded from the trigger event. Previously acquired measurement values are rejected. The record triggering therefore directly influences the subsequent processing of measured values. In particular, the average calculation only includes values measured from the trigger event. Activating the data recording trigger deactivates the data output trigger. 7.5.4.3 Triggering Data Output Measurement values are calculated continuously and independently of the trigger event. A trigger event simply triggers the value output via a digital or an analog interface. Therefore, any values measured immediately before the trigger event are included in calculating mean values (averages). Activating the data recording trigger deactivates the data recording trigger. optoNCDT 1900 Page 56 Setting Sensor Parameters 7.5.5 Masking the Evaluation Range, ROI Masking limits the evaluating range (ROI - Region of Interest) for the distance calculation in the video signal. This function is used in order to e.g. suppress interfering reflections or ambient light. Masked area Measuring range Fig. 33 Light blue areas limit the evaluation range The exposure control optimizes the peaks in the evaluation range. Therefore, small peaks can be optimally adjusted when a high interference peak is outside the evaluation range. optoNCDT 1900 Page 57 Setting Sensor Parameters 7.5.6 Exposure Mode Automatic mode Standard / Intelligent control / Background suppression 95 Intensity [%] Exposure mode 50 0 0 50 Range [%] 100 Standard: the sensor determines the optimal exposure time in order to achieve the highest possible signal intensity Intelligent control: the intelligent control algorithm is beneficial when measuring moving objects or material transitions. Background suppression: suppresses interferences caused by ambient light which greatly increases the sensor‘s ambient light tolerance. This reduces the sensor‘s output rate by half. Manual mode Grey shaded fields require a selection. optoNCDT 1900 Exposure time in µs Value Value In the manual mode, when the video signal is displayed, the user determines the exposure time Vary the exposure time in order to achieve a signal quality up to a maximum of 95 %. Fields with dark border require entry of a value. Page 58 Setting Sensor Parameters Peak Selection Peak selection First peak / Highest peak / Last peak / Widest peak Defines which signal is used for the evaluation in the line signal. First peak: Nearest peak to sensor. Highest peak: standard, peak with the highest intensity. Last peak: widest peak to sensor. Widest peak: peak with maximum area. 100 Intensity in % 7.5.7 close Sensor Highest peak 50 0 Widest peak First peak 0 faraway Last peak 50 Range in % 100 If a measurement object contains multiple transparent layers, a correct measurement result is determined only for the first peak. 7.5.8 Error Processing The error processing controls the behavior of the analog output and the RS422 interface in the event that an error occurs. Error handling Digital output, no value The analog output supplies 3 mA resp. 5.2 / 10.2 V instead of measurement value. The RS422 interface outputs an error value. Hold last value infinite Analog output and RS422 interface stop at the last valid value. Hold last value 1 ... 1024 Value If no valid reading can be obtained, an error is issued. Should this be a problem for processing, the last valid value can be hold for a certain period of time, and will be issued repeatedly. After this period has expired, an error value is output. 1) Amount of measurement cycles which output the last valid measurement. Then an error value is output. Grey shaded fields require a selection. optoNCDT 1900 Value Fields with dark border require entry of a value. Page 59 Setting Sensor Parameters 7.6 Signal Processing 7.6.1 Preliminary Remark Change to the Signal processing menu in the Settings tab. According to the previous setting in the Diagram type area, a diagram is displayed in the right part of the display. The diagram is active and all settings become immediately visible. Notes on the chosen settings are displayed below. In the left area, the menus for the signal processing area are displayed. 7.6.2 Averaging 7.6.2.1 General Averaging is recommended for static measurements or slowly changing measured values. The function Averaging 1 is done before Averaging 2. Averaging Inactive Measurement values are not averaged. Moving N values 2 / 4 / 8 ... 4096 Value Recursive N values 2 ... 32000 Value Median N values 3/5/7/9 Value Indication of averaging mode. The averaging number N indicates the number of consecutive measurement values to be averaged in the sensor. Measurement averaging is performed after the distance values have been calculated, and before they are issued through the relevant interfaces. Averaging - improves the resolution, - allows masking individual interference points, and - ‘smoothes’ the reading. Linearity is not affected by averaging. The average values are continuously recalculated with each measurement. The desired averaging depth is only achieved after the number of recorded measurement values corresponds at least to the averaging depth. Grey shaded fields require a selection. optoNCDT 1900 Value Fields with dark border require entry of a value. Page 60 Setting Sensor Parameters i The defined type of average value and the averaging number must be stored in the sensor to ensure they are hold after it is switched off. Averaging has no effect on the measuring rate or data rate in case of digital measurement value output. The averaging numbers can also be programmed via the digital interfaces. The optoNCDT 1900 sensor is delivered with “Median 9” as factory settings, i.e. median averaging over 9 measurement values. Depending on the type of average and the number of averaged values, different transition response times result thereof, see Chap. 6.4. 7.6.2.2 Moving average The definable number N for successive measurements (window width) is used to calculate the arithmetic average Mmov according to the following formula: MV N MV (k) M mov = k=1 N Measurement value, N Averaging number, k Running index Mmov Averaging value respectively output value Methods: Each new measured value is added, and the first (oldest) value is removed from the averaging (from the window). This produces short response times for measurement jumps. Example: N = 4 ... 0, 1, 2, 2, 1, 3 2, 2, 1, 3 = Mmov (n) 4 ... 1, 2, 2, 1, 3, 4 2, 1, 3, 4 = Mmov (n+1) 4 Measurement values Output value Special features: Moving average in the optoNCDT 1900 allows only potentials of 2 for N. Range of values for averaging number N is 1 / 2 / 4 / 8 ... 4096. optoNCDT 1900 Page 61 Setting Sensor Parameters 7.6.2.3 Recursive average Formula: Mrek (n) = MV(n) + (N-1) x Mrek (n-1) N Methods: MV Measurement value, N Averaging number, n Measurement value index Mrek Averaging value respectively output value The weighted value of each new measured value MV(n) is added to the sum of the previous average values Mrec (n-1). Special features: Recursive averaging allows for very strong smoothing of the measurements, however it requires long response times for measurement jumps. The recursive average value shows low-pass behavior. Range of values for the averaging number N is 1 ... 32000. 7.6.2.4 Median A median value is formed from a preselected number of measurements. Methods: The incoming measured values (3, 5, 7 or 9 measurement values) are also sorted again after each measurement. Then, the average value is provided as the median value. 3, 5, 7 or 9 measured values are taken into account for the calculation of the median, i.e. there is no median 1. Special features: This averaging type suppresses individual interference pulses. However, smoothing of the measurement curves is not very strong. Example: average value from five readings =3 ... 0 1 2 4 5 1 3 Sorted measurement values: 1 2 3 4 5 Median ... 1 2 4 5 1 3 5 Sorted measurement values: 1 3 4 5 5 Median (n+1) = 4 optoNCDT 1900 (n) Page 62 Setting Sensor Parameters 7.6.3 Output Trigger Details can be found in Triggering, see Chap. 7.5.4. 7.6.4 Data Reduction, Output Data Rate Data reduction Value Indicates the sensor which data is to be excluded from output, thus the data amount to be transmitted is reduced. Reduction relates to RS422 / Analog / Chart Interfaces to be used for undersampling are to be selected via the checkbox. You can reduce the measurement output in the sensor if you set the output of every nth measurement value in the web interface or by command. Data reduction causes only every nth measured value to be output. The other measurement values are rejected. The reduction value n can range from 1 (each measurement value) to 3,000,000. This allows you to adjust slower processes, such as a PLC, to the fast sensor without having to reduce the measuring rate. Grey shaded fields require a selection. optoNCDT 1900 Value Fields with dark border require entry of a value. Page 63 Setting Sensor Parameters 7.7 Outputs 7.7.1 Overview RS422 Analog output Baud rate 9.6 / 115.2 / 230.4 / 460.8 / 691.2 / 921.6 / 2000 / 3000 / 4000 kBps Transmission speed, binary data format Output data Distance / Non-linearized focal point / Intensity / Exposure time / Sensor state / Measuring rate Measurement counter / Time stamp / Video signal Data to be transmitted are to be activated via the checkbox. Output range 0-5 V / 0-10 V / 4-20 mA Select voltage or current output Scaling Standard scale Start of measuring range 0 V oder 4 mA, End of measuring range 5 V/10 V / 20 mA Two-point scale Digital output Configuration 1/2 optoNCDT 1900 Value Maximum Value Start teaching process Select button / Multifunctional input / Inactive Full scale error / Distance is outside the analog range / Distance is out of limit Compare to limit Lower / Upper / Both Switching level Minimum Limit min Value Limit max Value NPN / PNP / PushPull / PushPull negative Always 2 points are taught which mark start and end of the new measuring range. With two point scaling reversal of the output signal is possible. Regulates the switching performance of the digital output (Error), see Chap. 5.4.8. Range limit values: -2 ... +2 x Measuring range The minimum hold time defines how long the output must be active at least. The hysteresis defines a dead band around the selected limit values. Minimum hold time 1 ... 1000 ms Value Hystereses 0 ... 2 x Measuring range Value Page 64 Setting Sensor Parameters Output interface RS422 / Analog output / digital output 1 / digital output 2 Grey shaded fields require a selection. optoNCDT 1900 Value Defines which interface is used for output of measured values. A parallel output of measured values via multiple channels is not possible. RS422 and analog output cannot be operated simultaneously. The switching outputs 1 and 2 can be activated regardless of any other channel. While using the web interface, the output is switched off via RS422. Fields with dark border require entry of a value. Page 65 Setting Sensor Parameters 7.7.2 Digital Output, RS422 7.7.2.1 Values, Ranges The digital measurement values are issued as unsigned digital values (raw values). 16 or 18 bits can be transferred per value. Below you will find a compilation of the output values and the conversion of the digital value. Value Length Variables Value range Distance 18 Bit [0; 230604] x digital value MR Measuring range in mm {10/25/50} d Distance in mm without mastering [-0.01MR; 1.01MR] Formula x - 98232 d= 65536 * MR with mastering [-2MR; 2MR] Exposure time 16 Bit Intensity Sensor state 16 Bit 18 Bit Measured 18 Bit Value Counter optoNCDT 1900 x digital value [1000; 40000] ET Exposure time in µs [100; 4000] x digital value [0; 1023] I Intensity in % [0; 100] x digital value Bit coding [0; 242143] [0; 1] SMR EMR SMR =Start of measuring range EMR = End of measuring range x digital value ET = I= 1 10 100 1023 x x Bit 0 (LSB): peak starts before ROI Bit 1: peak ends after ROI Bit 2: no peak found Bit 5: Distance before SMR (extended) Bit 6: Distance after EMR (extended) Bit 15: Measurement value is triggered Bit 16, 17: Status LED; -- 00 – off 10 – red -- 01 – green 11 – yellow [0; 262143] Page 66 Setting Sensor Parameters Time Stamp Unlinearized center of gravity 2 words, x à 16 Bit y 18 Bit Video signal 16 Bit Measurement frequency 18 Bit digital value Lo [0; 65535] digital value Hi [0; 65535] t time stamp in µs [0; 1h11m34.967s] x digital value [0; 262143] CG center of gravity in % [0; 100] 512 pixels [0; 1023] x digital value [2500; 100000] f frequency in Hz t= 1 1000 US = f= (65536y + x) 100 262143 x x 10 State information transferred in the distance value Distance value Description 262075 Too much data for selected baud rate 262076 There is no peak present 262077 Peak is located in front of the measuring range (MR) 262078 Peak is located after the measuring range (MR) 262080 Measurement value cannot be evaluated 262081 Peak is too wide 262082 Laser is off optoNCDT 1900 Page 67 Setting Sensor Parameters 7.7.2.2 Behavior of the Digital Output Master values based on the zeroing or master function are coded with 18 bits. Master value range: 0 ... 2x measuring range. The examples demonstrate the behavior of the digital value with an ILD1900-100, measuring range 100 mm. Target with 16% of the measuring range 16.00 mm Target with 60% of the measuring range 108718 60.00 mm Target SMR 0% SMR 100 % MR Zero setting (master value = 0 mm) 0.00 mm 0.00 mm 100 % MR 0% 100 % MR 60 % 100 % MR Setting master value 10 mm 10.00 mm 104786 Target EMR 60 % EMR 0% 98232 SMR 137554 SMR Target EMR 16 % 60 % Zero setting (master value = 0 mm) Target 0% 60.00 mm Target EMR 0% 98232 SMR 137554 Target EMR 16 % Target with 60% of the measuring range SMR 100 % MR 0% EMR 60 % 100 % MR -16.00 mm 84.00 mm -60.0 mm 40.00 mm -50.0 mm 50.00 mm 87746 153282 58910 124446 65464 131000 optoNCDT 1900 Page 68 Setting Sensor Parameters Target with 80% of the measuring range (80 mm) Setting master value 200 mm Digital Out 164424 163768 ut Dig. Out rd da an St 131000 tp ou ha c 242411 163768 229304 150661 ic ist ter c ra 131000 176875 98232 97576 Digital Out 98232 Distance in mm 0 MR 0% 50 % 100 % Reserve measuring range Fig. 34 Digital values without zeroing or mastering optoNCDT 1900 50 80 100 Distance after mastering in mm MP 120 SMR‘ 200 220 EMR‘ Fig. 35 Digital values ILD1900-100 after mastering with 200 mm Page 69 Setting Sensor Parameters 7.7.3 Analog Output 7.7.3.1 Output Scaling -- Max. output range: 4 mA ... 20 mA or 0 V ... 5 V / 0 V ... 10 V -- Output amplification DIOUT : 16 mA or DUOUT : 5 V / 10 V; corresponds to 100 % MR -- Error value: 3.0 mA (±10 μA) or 5.2 V or. 10.2 V Teaching scales the analog output. This allows you to optimize the resolution for the analog output. The behavior of the analog and switching outputs will change. In every case, 2 points are taught which characterize the start and the end of the new measuring range. The teaching is performed via the built-in Select button, the multi-function input, ASCII command or via web interface. i In conjunction with a user-specific output characteristic, you can use the switching outputs, see Chap. 5.4.8, as movable limit switches. The target position for Teach 1 and Teach 2 must be different. The teaching process requires a valid measurement signal. In case of -- no object, object cannot be evaluated, -- too close to the sensor - outside the SMR, or -- too far from the sensor - outside the EMR the teaching process is aborted. Fig. 36 Standard characteristic (black), reversed, user-specific characteristic (red) 100 % Analog output Standard characteristic 0% Error value 1 EMR Measuring range 163768 164424 262078 SMR Measuring object Digital value 262077 97576 LED State 98232 Measuring object within range Error Error Switch output 100 % Analog output User defined characteristic 0% Error value SMR Digital value LED State 262077 Teach 2 Teach 1 100000 150000 Error Switch output EMR 262078 Error Measuring object within range 1) With current output 3.0 mA. optoNCDT 1900 Page 70 Setting Sensor Parameters 7.7.3.2 Output Scaling with the Select Button Key Select Measuring Position the Key measuring Select object (Teach 1) min. 30 ms LED State red Green, yellow, depends on measuring position t0 5 min t1 2s yellow flashes red approx. 1 Hz 30 s t2 t3 t4 Preparation -- Deactivate key lock (menu System settings) -- Teaching process with Select button (menu Outputs) Position the Key measuring Select object (Teach 2) min. 30 ms flashes green approx. 1 Hz t5 30 s yellow Color according to measuring position t6 t7 t8 Fig. 37 Flow chart for output scaling Hold the key Select Measuring LED State Green, red, yellow depends on measuring position red flashes red approx. 1 Hz Switch output 1 t0 5 min yellow Color according to measuring position 200 ms t1 2s t2 5 ... < 10 s t3 t4 t5 - t3 = 2 s t5 Fig. 38 Flow chart for resetting the output scaling When the Select button is pressed longer than 10 s or not within the time frame when resetting the output scaling, the State LED will this display as error. The State LED then flashes for two seconds with 8 Hz. optoNCDT 1900 Page 71 Setting Sensor Parameters 7.7.3.3 Output Scaling via Hardware Input Scaling the analog output is possible via a pulse at the multi-function input, at pin 10 pigtail or the white-green wire of the sensor cable or PC1900-x. Measuring Start Position the target teaching (Teach 1) min. 1 ms Pin 10 (white-green) Teach in 1 Position the target min. (Teach 2) 30 ms Preparation: Teach in 2 Teaching process with multifunctional input (menu Outputs) min. 30 ms Switch output 1 t0 2s t1 t2 30 s t3 t4 2 s t5 30 s t6 t7 2 s t8 Fig. 39 Flow chart for output scaling Measuring Pin 10 (white-green) t4 - t2 = 2 s 200 ms Switch output 1 t0 2s t1 5 ... < 10 s t2 t3 t4 Fig. 40 Flow chart for resetting the output scaling optoNCDT 1900 Page 72 Setting Sensor Parameters 7.7.3.4 Calculation of the Measurement Value at the Current Output Current output (without mastering, without teaching) Variables Value range MR Measuring range in mm [3.8; < 4] SMR reserve [4; 20] Measuring range [> 20; 20,2] EMR reserve {10/25/50} d Distance in mm [-0.01MR; 1.01MR] IOUT current in mA Formula d= (IOUT - 4) 16 * MR Current output (with teaching) Variables Value range IOUT current in mA MR Measuring range in mm [3.8; < 4] SMR reserve [4; 20] Measuring range [> 20; 20.2] EMR reserve {10/25/50} m, n Teaching range in mm [0; MR] d Distance in mm [m; n] optoNCDT 1900 Formula d= (IOUT - 4) 16 *|n - m| Page 73 Setting Sensor Parameters 7.7.3.5 Calculation of the measurement value from the voltage output Voltage output (without mastering, without teaching) Variables UOUT Voltage in V Value range Formula [-0.05; < 0] SMR reserve [0; 5] Measuring range [> 5; 5.05] EMR reserve d= [-0.1; < 0] SMR reserve [0; 10] Measuring range [> 10; 10.1] EMR reserve d= MR Measuring range in mm {10/25/50} d Distance in mm [-0.01MR; 1.01MR] U OUT 5 U OUT 10 * MR * MR Voltage output (with teaching) Variables UOUT Voltage in V Value range [-0.05; < 0] SMR reserve [0; 5] Measuring range [> 5; 5.05] EMR reserve d= [-0.1; < 0] SMR reserve [0; 10] Measuring range [> 10; 10.1] EMR reserve d= MR Measuring range in mm {10/25/50} m, n Teaching range in mm [0; MR] d Distance in mm [m; n] optoNCDT 1900 Formula UOUT 5 UOUT 10 *|n - m| *|n - m| Page 74 Setting Sensor Parameters 7.7.4 Switching Outputs The two switching outputs can be used independently of each other for error or limit value monitoring of the output value Distance 1. If the settings are done, enable the digital outputs, see Chap. 7.7.5 Full-scale error Example -- Digital output 1: Distance out of limit, both -- Digital output 2: Full-scale error EMR Max Target outside the measuring range, target is absent or inappropriate target (too dark, metallic polished, insufficient reflection). HV Distance outside analog range If the distance is outside the scaled range, the switching output is activated. Min SMR Distance out of limit If the value exceeds or falls below a defined limit, the switching outputs are activated. If limit value monitoring is chosen with both switching outputs, warning and alarm thresholds can be realized. + The switching outputs are activated depending on the set switching behavior. EMR = End of measuring range HV = Hysteresis value SMR = Start of measuring range optoNCDT 1900 Max = Maximum Min = Minimum HV GND + GND Digital output 1 Digital output 2 Fig. 41 Switching output 1 with limit values (NPN), Switching output 2 with full-scale error (PNP) When exceeding the upper limit value (max), the assigned digital output 1 with NPN switching level is activated (conductive) and is then deactivated again when the next hysteresis value is not reached. The same applies when the lower limit value (minimum) is not reached. Switching output 2 reacts to a measuring range violation, see Fig. 41. Page 75 Setting Sensor Parameters Full-scale error Distance outside the analog range Distance is out of limit Minimum hold time Yes Yes Yes Hysteresis No No Yes Fig. 42 Use of the parameters minimum hold time and hysteresis with the individual monitoring functions The function of the switching outputs is generally independent of the analog output. When active, the respective transistor of a switching output is conductive. The switching outputs are short circuit proof. Resetting the short circuit protection: -- Eliminate the external short circuit, -- Switch the sensor off and on again or -- send software command Reset to the sensor. 7.7.5 Data Output Measurement data output via individual channels can be activated/deactivated in this menu. Please refer to RS422 and Analog output, see Chap. 7.7.2, see Chap. 7.7.3, for the interface settings. optoNCDT 1900 Page 76 Setting Sensor Parameters 7.8 System Settings 7.8.1 General When programming has been completed, store all settings permanently in a set of parameters to ensure that these settings are available when the sensor is switched on the next time. 7.8.2 Unit, Language The web interface promotes the units millimeter (mm) and inch when displaying measuring results. You can choose German or English in the web interface. You can change the language in the menu bar. Fig. 43 Language selection in the menu bar 7.8.3 Key Lock The key lock function for the Function and Select keys, see Chap. 5.3, avoids unauthorized or unintended button operation. The key lock can only be deactivated in the Expert level. Key lock Automatic Countdown 1 ... 60 [min] Value The key lock starts after expiry of the defined time. Clicking the button Refresh extends the interval until key lock starts. Active The keys do not respond in any user level Inactive The keys are active in any user level Grey shaded fields require a selection. optoNCDT 1900 Value Fields with dark border require entry of a value. Page 77 Setting Sensor Parameters 7.8.4 Load and Save All settings on the sensor can be permanently saved in user programs, so-called setups, in the sensor. Fig. 44 Administration of user settings Mange setups in the sensor, possibilities and procedure Store the Settings Activate existing setup Menu New setup Enter the name for the setup into the field e.g. Rubber1_21 and click the button Save. optoNCDT 1900 Menu Load & Save Click on the desired setup with the left mouse button, area A. The dialog Measurement settings opens. Click on the button Load. Save changes in active setup Menu bar Click on the button Define setup after booting Menu Load & Save Click on the desired setup with the left mouse button, area A. The dialog Measurement settings opens. Click on the button Favorite. Page 78 Setting Sensor Parameters Exchange setups with PC/notebook, possibilities Safe setup on PC Menu Load & Save Click on the desired setup with the left mouse button, area A. The dialog measurement settings opens. Click on the button Export. Load setup from PC Menu Load & Save Click on New setup with the left mouse button. The dialog measurement settings opens. Click on the button Search. A Windows dialog for file selections opens. Choose the desired file and click on the button Open. Click on the button Import. optoNCDT 1900 Page 79 Setting Sensor Parameters 7.8.5 Import, Export A parameter set includes the current settings, setup(s) and the initial setup when booting the sensor. The Import & Export menu enables easy exchange of parameter sets with a PC/notebook. Exchange of parameter sets with PC/notebook, possibilities Storing parameter set on PC Loading parameter set from PC Menu Import & Export Menu Import & Export Click on the button Parameter set with the left mouse button. Click on the button Search. A Windows dialog for file selections The dialog Choose export data opens. opens. Compose a parameter set by selecting/deChoose the desired file and click selecting the checkboxes. on the button Open. Click on the button Transmit parameter The dialog Choose import data set. opens. Determine the operations to be A Windows dialog for data transfer opens. performed by selecting/deselecting Acknowledge the dialog with OK. the checkboxes. The operating system files the parameter set Click on the button Transmit in Download. The file name for the adjacent parameter set. example is <...\Downloads\ILD1750_BASICSETTINGS_MEASSETTINGS_... In order to avoid that an already existing setup is overwritten unintentionally during import, an automatic security request is carried out (see adjacent figure). optoNCDT 1900 Page 80 Setting Sensor Parameters 7.8.6 Access Authorization Assigning passwords prevents unauthorized changes to sensor settings. Password protection is not enabled as a factory setting. The sensor works on the Professional level. After the sensor has been configured, you should enable password protection. The standard password for the Professional level is “000”. i A software update will not change the standard password or a custom password. The Professional level password is setup-independent, and is not loaded or stored during setup. User can do the following: Password required Read inputs, signal processing, outputs, system settings Change inputs, signal processing, outputs, system settings Change password Toggling between measurement chart and video signal Scale graphs Restore factory settings User no yes no no no yes no Professional yes yes yes yes yes yes yes Fig. 45 Permissions within the user hierarchy Enter the standard password “000” or a custom password into the Password box, and click Login to confirm. Change to the User level by clicking the Logout button. Fig. 46 Changing to professional level optoNCDT 1900 Page 81 Setting Sensor Parameters The user management enables to define a user-specific password in Expert mode. Password Value User level when User / restarting Professional All passwords are case-sensitive. Numbers are allowed, but special characters are not permitted. The maximum length is 31 characters. Defines the user level that is enabled when the sensor starts the next time. MICRO-EPSILON recommend to select User level. After the sensor has been configured, you should enable password protection. Please write down the password for later use. 7.8.7 Reset Sensor Reset sensor Measurement settings Button The settings for measuring rate, trigger, evaluation range, selection of peak, error handling, averaging, Zeroing/Mastering, reduction of data and setups are deleted. The 1st preset is loaded. Device settings Button The settings baud rate, language, unit, key lock and echo mode are deleted and the default parameters are loaded. Reset all Button By clicking the button the settings for the sensor, measurement settings, access permission, password and setups are deleted. The 1st preset is loaded. Reboot sensor Button By clicking the button the sensor is rebooted with the settings made in the favorite setup, see Chap. 7.8.4. Grey shaded fields require a selection. optoNCDT 1900 Value Fields with dark border require entry of a value. Page 82 Digital Interfaces RS422 8. Digital Interfaces RS422 8.1 Preliminary Remarks The interface RS422 has a maximum baud rate of 4 MBaud. The factory-set baud rate is 921.6 kBaud. Data format: Measurement values in binary format, commands as an ASCII string. Interface parameter: 8 Data bits, no parity, one stop bit (8N1). i Disconnect or connect the D-sub connection between RS422 and USB converter when the sensor is disconnected from power supply only. 8.2 Measurement Data Format 18 bits are transmitted per output value, see Chap. 7.7.2. An output value is divided into three bytes that differ in the two most significant bits. The transmission of additional output values is optional. Output value 1 / additional: L-Byte 0 0 D5 D4 D3 D2 D1 D0 M-Byte 0 1 D11 D10 D9 D8 D7 D6 H-Byte 1 0 D17 D16 D15 D14 D13 D12 1 Output sequence: L-Byte, M-Byte, H-Byte. 1) Bit 7 in the H byte is set to 0 for the last output value. This simultaneously represents the identifier of a new block. With all previous output values in the same block, the 7th is in the H byte 1. Depending on the measuring rate, baud rate and output data rate output all data can be output in one block. If data output is overloaded, an error value is transmitted within the distance value. Use the command GETOUTINFO_RS422 to query for data selection and output sequence. optoNCDT 1900 Page 83 Digital Interfaces RS422 8.3 Conversion of the Binary Data Format For conversion purposes the H-Byte, M-Byte and L-Byte must be identified on the basis of the two first bits (flag bits), the flag bits deleted and the remaining bits compiled into a 18 bit data word. Result of conversion: D17 D16 D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 Conversion must be done in the application program. i The sensor continues to deliver measurement values to the RS422 output even while communicating with the sensor. For the data transmission with a PC the MICRO-EPSILON IF2008/PCIE PCI BUS interface card is suitable. This can be connected to the sensor via the PC1900-x/IF2008 interface cable, which is also available as an option. The IF2008/PCIE combines the three bytes for the data word and saves them in the FIFO. The 18 bits are used for measurement values and error values. As standard, the IF2008 interface card is suitable for connecting two or (via a Y intermediate cable available as an option) up to four sensors plus two additional incremental encoders. For further information, please refer to the descriptions of the IF2008/PCIE interface card and associated MEDAQlib driver program. You will find the latest program routine at: www.micro-epsilon.com/link/software/medaqlib. optoNCDT 1900 Page 84 Cleaning 9. Cleaning Cleaning of the protective screens is recommended periodically. Dry Cleaning Therefore an optics anti-static brush is suitable or bleeding the screen with dehumidified, clean and oil-free compressed air. Wet Cleaning For cleaning the protective screen use a clean, soft, lint-free cloth or lens cleaning paper with pure alcohol (isopropyl). Never use standard glass cleaner or other cleaning agents. 10. Software Support with MEDAQLib MEDAQLib offers you a documented driver DLL. Therewith you embed optoNCDT laser sensors, in combination with -- the 1-way converter IF2001/USB or -- the 4-way converter IF2004/USB and connection cable PC1900-x/IF2008 (IF2008-Y) or -- the PCI interface card IF 2008/PCIE and connection cable PC1900-x/IF2008 and IF2008-Y-adapter cable into an existing or a customized PC software. MEDAQLib -- contains a DLL, which can be imported into C, C++, VB, Delphi and many additional programs, -- makes data conversion for you, -- works independent of the used interface type, -- features by identical functions for the communication (commands), -- provides a consistent transmission format for all MICRO-EPSILON sensors. For C/C++ programmers MEDAQLib contains an additional header file and a library file. You will find the latest driver / program routine at: www.micro-epsilon.com/service/download/ www.micro-epsilon.de/link/software/medaqlib/ optoNCDT 1900 Page 85 Liability for Material Defects 11. Liability for Material Defects All components of the device have been checked and tested for functionality at the factory. However, if defects occur despite our careful quality control, MICRO-EPSILON or your dealer must be notified immediately. The liability for material defects is 12 months from delivery. Within this period, defective parts, except for wearing parts, will be repaired or replaced free of charge, if the device is returned to MICRO-EPSILON with shipping costs prepaid. Any damage that is caused by improper handling, the use of force or by repairs or modifications by third parties is not covered by the liability for material defects. Repairs are carried out exclusively by MICRO-EPSILON. Further claims can not be made. Claims arising from the purchase contract remain unaffected. In particular, MICRO-EPSILON shall not be liable for any consequential, special, indirect or incidental damage. In the interest of further development, MICRO-EPSILON reserves the right to make design changes without notification. For translations into other languages, the German version shall prevail. 12. Decommissioning, Disposal Remove the power supply and output cable on the sensor. Incorrect disposal may cause harm to the environment. Dispose of the device, its components and accessories, as well as the packaging materials in compliance with the applicable countryspecific waste treatment and disposal regulations of the region of use. 13. Service, Repair If the sensor or sensor cable is defective: -- If possible, save the current sensor settings in a parameter, see Chap. 7.8.4, set to reload them into the sensor after the repair. -- Please send us the affected parts for repair or exchange. MICRO-EPSILON Optronic GmbH Lessingstraße 14 01465 Langebrueck / Germany If the cause of a fault cannot be clearly identified, please send the entire measuring system to: Tel. +49 (0) 35201 / 729-0 Fax +49 (0) 35201 / 729-90 [email protected] www.micro-epsilon.com optoNCDT 1900 Page 86 Appendix | Optional Accessories Appendix A1 Optional Accessories IF2001/USB Converter RS422 to USB, type IF2001/USB, useable for cable PC1900-x/OE, inclusive driver, connections: 1× female connector 10-pin (cable clamp) type Würth 691361100010, 1x female connector 6-pin (cable clamp) type Würth 691361100006 IF2004/USB 4 channel converter RS422 to USB useable for cable PC1900-x/IF2008 (IF2008-Y), inclusive driver, connections: 2× Sub-D, 1× terminal block C-Box/2A Computation of two digital input signals, useable for cable PC1900-x/C-Box. D/A conversion of a digital measurements, output through current and voltage output. IF2030/PNET IF2030/ENETIP optoNCDT 1900 Interface module for PROFINET or Ethernet connection of a Micro-Epsilon sensor with RS485 or RS422 interface, suitable for PC1900-x/OE cables, tophat rail housing, incl. GSDML file for software integration in the PLC Seite 87 Appendix | Optional Accessories PS2020 Power supply for mounting on DIN rail, input 230 VAC, output 24 VDC/2.5 A IF2008/PCIE The IF2008/PCIE interface card enables the synchronous capture of 4 digital sensor signals series optoNCDT 1750 or others or 2 encoders. In combination with IF2008E a total of 6 digital signals, 2 encoder, 2 analog signals and 8 I/O signals can be acquired synchronously. IF2008-Y adapter cable Used to connect two sensors with interface cable PC2300-x/IF2008 to a port of the IF2008/PCIE. PC1900-x/OE Supply and output cable, Length x = 3, 6, 9 or 15 m 17-pin molded connector resp. open ends PC1900-x/IF2008 Interface and supply cable Length x = 3, 6, 9 or 15 m 17-pin. molded connector resp. 15-pin Sub-D-connector PC1900-x/C-Box Supply and output cable Length x = 3, 6, 9 or 15 m 15-pin Sub-D connector PC1900-x Supply and output cable, Length x = 3, 6, 9 or 15 m optoNCDT 1900 Seite 88 Appendix | Factory Setting A2 Factory Setting Averaging Median with 9 values RS422 921.6 kBaud Password „000“ Peak selection Highest peak Trigger mode No trigger Measuring rate 4 kHz Output Analog and switching output 1 Language German Measuring range 100 % FSO: I = 20 mA , digital 163768 0 % FSO: I = 4 mA, digital 98232 Error handling Error output, no measurement Supply voltage LED State red green yellow flashes yellow appr. 1 Hz normal operation flashes yellow appr. 8 Hz 10 s Key Select t0 t1 t2 t3 t4 Fig. 47 Flow chart to start a sensor with factory setting t0: t1 ... t3: t2: t4: power supply is on both LEDs signalize the start sequence (red-yellow-green for 1 sec. each) Key Select is pressed during start sequence (t1 ... t3) Key Select is released while the LED State is flashing red Dt = t4 - t2 ; Dt (key press period) must be at least 10 sec., max. 15 sec. Reset to factory setting: Press the Select key after having switched on the sensor while the two LEDs light up „red - yellow - green“. Hold the key pressed. After 10 seconds, the Status LED starts flashing quickly. If you release the key while it flashes quickly, the sensor is reset to factory settings. If you hold the key pressed for longer than 15 seconds, the sensor is not reset to factory settings. If the Select key is kept pressed when switching on the sensor (or with a reset), the sensor switches to the Bootloader mode. optoNCDT 1900 Seite 89 Appendix | ASCII Communication with Sensor A3 ASCII Communication with Sensor A 3.1 General The ASCII commands can be sent to the sensor via the RS422 interface. All commands, inputs and error messages are effected in English. One command always consists of a command name and zero or several parameters, which are separated by blanks and are completed with LF. If blanks are used in parameters, the parameter must be set in quotation marks. Example: Switch on the output via RS422 OUTPUT RS422 Advice: must include LF, but may also be CR LF. Declaration: LF CR Line feed (line feed, hex 0A) Carriage return (carriage return, hex 0D) Enter (depending on the system hex 0A or hex 0D0A) The currently set parameter value is returned, if a command is activated without parameters. The input formats are: <Command name> <Parameter1> [<Parameter2> […]] <Command name> <Parameter1> <Parameter2> ... <Parameter...> or a combination thereof. Parameters in []-brackets are optional and require the input of the parameter standing in front. Sequent parameters without []-brackets are to input compulsory, that is, it must not be omitted a parameter. Alternative inputs of parameter values are displayed separately by „|“, for example the values „a“, „b“ or „c“ can be set for “a|b|c“. Parameter values in <> brackets are selectable from a value range. optoNCDT 1900 Seite 90 Appendix | ASCII Communication with Sensor Declarations on format: „a | b“ Value of the parameter can be set to the value “a“ or “b“. „ P1 P2“ It requires that both parameters “P1“ and “P2“ are set. „ P1 [P2 [P3]]“ The parameters “P1“, “P2“ and “P3“ can be set, whereby “P2“ may only be set, if “P1“ is set and “P3“ only if “P1“ and “P2“ are set. „<a>“ The value of the parameter lies in a value range of “... to …“, see parameter description. Parameter values without peak brackets can only assume discrete values, see parameter description. Parantheses are to be understood as a grouping, that is, for a better articulation „P1 P2 | P3“ is written as „(P1 P2)|P3“. Example without []: „PASSWD <Old password> <New password> <New password>“ -- To change the password, all three parameters are to be input. The output format is: <Command name> <Parameter1> [<Parameter2> […]] The reply can be used again as command for the parameter setting without changes. Optional parameters are only returned, if the returning is necessary. For example, the activated output values are returned by command Data selection additional values. After processing a command always a return and a prompt (“->“) is returned. In the case of an error an error message is before the prompt, that begins with „Exxx“, where xxx is a unique error number. Also warnings („Wxxx“) can be output instead of error messages. These are analogous to the error messages. In case of warnings the command is executed. The replies to the commands GETINFO and PRINT are useful for support requests to the sensor, because they contain sensor settings. optoNCDT 1900 Seite 91 Appendix | ASCII Communication with Sensor A 3.2 Overview Commands Group Chapter General Chap. A 3.2.1.1 Chap. A 3.2.1.2 Chap. A 3.2.1.3 Chap. A 3.2.1.4 Chap. A 3.2.1.5 Chap. A 3.2.1.6 Chap. A 3.2.1.7 Chap. A 3.2.1.8 Chap. A 3.2.1.9 User Level Command Short description HELP GETINFO LANGUAGE RESET RESETCNT ECHO PRINT SYNC TERMINATION Help on commands Request sensor information Determine language of the web interface Reboot sensor Reset counter Switching the command reply, ASCII interface Output of all sensor settings Synchronization Terminating resistor Chap. A 3.2.2.1 LOGIN Change of user level Chap. A 3.2.2.2 LOGOUT Change to user in the user level Chap. A 3.2.2.3 GETUSERLEVEL User level request Chap. A 3.2.2.4 STDUSER Setting the standard user Chap. A 3.2.2.5 PASSWD Change password Triggering Chap. A 3.2.3.1 TRIGGERLEVEL Active level triggering Chap. A 3.2.3.2 TRIGGERMODE Trigger Type Chap. A 3.2.3.3 TRIGGERSOURCE, Select Trigger Source Chap. A 3.2.3.4 TRIGGERAT Effect of the Trigger Input Chap. A 3.2.3.5 MFILEVEL Select level for switching input Chap. A 3.2.3.6 TRIGGERCOUNT Number of measurement values displayed Chap. A 3.2.3.7 TRIGGERSW Software - Trigger Pulse optoNCDT 1900 Seite 92 Appendix | ASCII Communication with Sensor Interfaces Chap. A 3.2.4.1 BAUDRATE Setting transmission rate of RS422 Chap. A 3.2.4.2 ERROROUT1/2 Activating switching outputs Chap. A 3.2.4.3 ERRORLEVELOUT1/2 Output level switching outputs Chap. A 3.2.4.4 ERRORLIMITCOMPARETO1/2 Monitoring function switching outputs Chap. A 3.2.4.5 ERRORLIMITVALUES1/2 Threshold switching output Chap. A 3.2.4.6 ERRORHYSTERESIS Hysteresis value switching outputs Chap. A 3.2.4.7 ERROROUTHOLD Min. switching time of active switching output Handling of setups Chap. A 3.2.5.1 IMPORT Load parameters Chap. A 3.2.5.2 EXPORT Export sensor settings Chap. A 3.2.5.3 MEASSETTINGS Load/save measurement settings Chap. A 3.2.5.4 BASICSETTINGS Load/save device settings Chap. A 3.2.5.5 SETDEFAULT Factory settings Analog output Chap. A 3.2.6.1 ANALOGRANGE Voltage or current output Chap. A 3.2.6.2 ANALOGSCALEMODE Scaling analog output Chap. A 3.2.6.3 ANALOGSCALERANGE Scaling limits analog output Chap. A 3.2.6.4 ANALOGSCALESOURCE Port for teach function Key function Chap. A 3.2.7.1 KEYLOCK optoNCDT 1900 Set key lock Seite 93 Appendix | ASCII Communication with Sensor Measurement Chap. A 3.2.8.1 TARGETMODE Choice of material-dependent measurement algorithm Chap. A 3.2.8.2 MEASPEAK Peak selection, diffuse sensor arrangement Chap. A 3.2.8.3 MEASRATE Select a Measuring Rate Chap. A 3.2.8.4 SHUTTER Exposure time Chap. A 3.2.8.5 SHUTTERMODE Automatic or manual exposure time Chap. A 3.2.8.6 EXPOSUREMODE Behavior for automatic exposure time regulation Chap. A 3.2.8.7 LASERPOW Selection of laser power Chap. A 3.2.8.8 ROI Masking the Evaluation Range Chap. A 3.2.8.9 COMP Selection of measurement averaging Chap. A 3.2.8.10 META_MASTER Possible signals for mastering Chap. A 3.2.8.11 MASTER Start/stop mastering or zeroing Chap. A 3.2.8.12 MASTERSIGNAL Master value Chap. A 3.2.8.13 MASTERSOURCE Choose port for mastering Data output General Chap. A 3.2.9.1 OUTPUT Selection measurement value output Chap. A 3.2.9.2 OUTREDUCEDEVICE Selection measurement value output for reduction Chap. A 3.2.9.3 OUTREDUCECOUNT Reduction of measurement value output Chap. A 3.2.9.4 OUTHOLD Setting of error processing Chap. A 3.2.9.5 GETOUTINFO_RS422 List intended data for RS422 Chap. A 3.2.9.6 META_OUT_RS422 Possible data for RS422 Chap. A 3.2.9.7 OUT_RS422 Measurement data output with RS422 optoNCDT 1900 Seite 94 Appendix | ASCII Communication with Sensor A 3.2.1 General Commands A 3.2.1.1 HELP Issues a help for every command. Command without parameter <Command> // Command is executed. Command with parameter. <Command> // Show current parameter value <Command> <Parameter1> [<Parameter2> [...]] // Set parameters, number of parameters varies <Command> <Parameter1> <Parameter2> ... <Parameter...> // Set parameters, number of parameters is fixed Response to a command -> Cursor, the sensor waits for an entry E<dd> <Msg> Error message, execution refused W<dd> <Msg> Warning <ddd> Three digits <Msg> Message Format () Group [] Optional parameters <> Placeholder | Alternative If spaces are used in parameters, the parameters must be placed in quotation marks. optoNCDT 1900 Seite 95 Appendix | ASCII Communication with Sensor Examples: a|b // Use a or b a b // Both parameters are required a [b [c]] // Indefinite number of parameters: a, a b, or a b c PASSWD <Old password> <New password> <New password> // In order to change the password, all parameters are required. A 3.2.1.2 GETINFO, Sensor information GETINFO Controller data are queried. Output as per example below: ->GETINFO Name: Serial: Option: Article: Cable head: Measuring range: Version: Hardware-rev: Boot version: -> A 3.2.1.3 ILD1900-25 00320030017 001 4120265.001 Pigtail 25.00mm 001.002.001 00 001.000 //Model name sensor, sensor series // Serial number //Option number of sensor // Article number of sensor // Measuring range of the sensor //Software version LANGUAGE Web interface LANGUAGE DE | EN Determines the language for the web interface -- DE: set language to German -- EN: set language to English The web interface is displayed in the selected language. optoNCDT 1900 Seite 96 Appendix | ASCII Communication with Sensor A 3.2.1.4 RESET, boot sensor RESET The sensor is restarted. A 3.2.1.5 RESETCNT, Reset counter RESETCNT [TIMESTAMP] [MEASCNT] Resets the internal counter in the sensor. -- TIMESTAMP: resets the time stamp -- MEASCNT: resets the measured value counter A 3.2.1.6 ECHO, Switching the Command Reply, ASCII Interface ECHO ON|OFF Setting the command reply with an ASCII command: -- ON: command reply on, for example ok (or error message) -> -- OFF: command reply off, e.g. -> optoNCDT 1900 Seite 97 Appendix | ASCII Communication with Sensor A 3.2.1.7 PRINT, Sensor settings PRINT Print serves the output of all sensor settings Example response: GETUSERLEVEL PROFESSIONAL OUTPUT RS422 STDUSER PROFESSIONAL OUTHOLD NONE UNIT MM OUTREDUCEDEVICE RS422 LANGUAGE DE OUTREDUCECOUNT 1000 KEYLOCK AUTO 5 (IS_ACTIVE) OUT_RS422 DIST1 COUNTER BAUDRATE 921600 ANALOGRANGE 0-10V SYNC NONE ANALOGSCALEMODE STANDARD TERMINATION OFF ANALOGSCALERANGE 0.00000 10.00000 MFILEVEL HTL ANALOGSCALESOURCE NONE LASERPOW FULL ERROROUT1 LI1 MEASRATE 1.000 ERROROUT2 DIST TARGETMODE STANDARD ERRORLEVELOUT1 NPN MEASPEAK DIST1 ERRORLEVELOUT2 NPN COMP MEDIAN 9 ERROROUTHOLD 0 TRIGGERSOURCE NONE ERRORLIMITCOMPARETO1 LOWER TRIGGERMODE EDGE ERRORLIMITCOMPARETO2 LOWER TRIGGERLEVEL HIGH ERRORLIMITVALUES1 0.0000 10.0000 TRIGGERAT INPUT ERRORLIMITVALUES2 0.0000 10.0000 TRIGGERCOUNT 1 ERRORHYSTERESIS 0.0000 MASTERSIGNAL SHUTTERMODE MEAS MASTERSIGNAL DIST1 0.000 SHUTTER 100.0 MASTERSOURCE NONE -> optoNCDT 1900 Seite 98 Appendix | ASCII Communication with Sensor A 3.2.1.8 SYNC SYNC NONE | MASTER | MASTER_ALT | SLAVE | SLAVE_ALT | SLAVE_MFI Setting the type of synchronization: -- NONE: No synchronization -- MASTER: The sensor is master, i.e. it transmits synchronization pulses on the output. -- MASTER_ALT: The sensor is master, i.e. it transmits synchronization pulses with every 2nd cycle. Both sensors measure alternately, e.g. thickness measurement using 2 sensor on transparent material -- SLAVE: Sensor is slave and expects synchronization pulses from another optoNCDT 1750. -- SLAVE_ALT: Sensor is slave and expects synchronization pulses from a master sensor. Both sensors measure alternately, e.g. thickness measurement using 2 sensor on transparent material -- SLAVE_MFI: Sensor is slave and expects synchronization pulses from an external source at the multi-function input. Synchronization is performed with rising edge. A 3.2.1.9 TERMINATION TERMINATION OFF | ON Activation of a terminating resistor in synchronization instruction Switches off/on the termination resistor at the Sync/Trig synchronization input in order to avoid reflection. OFF: no terminating resistor ON: with terminating resistor optoNCDT 1900 Seite 99 Appendix | ASCII Communication with Sensor A 3.2.2 User Level A 3.2.2.1 LOGIN, Change of the User Level LOGIN <Password> Enter the password to switch to a different user level. The following user levels exist: -- USER (standard user): “read-only” access to all elements and graphical display of output values of web interface -- PROFESSIONAL (Expert): Read/write access to all elements A 3.2.2.2 LOGOUT, Change into User Level LOGOUT Sets the user level to USER. A 3.2.2.3 GETUSERLEVEL, User Level Request GETUSERLEVEL Request the current user level. A 3.2.2.4 STDUSER, Set Standard User STDUSER USER|PROFESSIONAL Sets the standard user, who is logged in after system start. Standard user does not change with LOGOUT, i.e. login as standard user is done automatically after the command RESET or power supply of sensor is switched on. A 3.2.2.5 PASSWD, Change Password PASSWD <Old Password> <New Password> <New Password> Changes the password for the PROFESSIONAL level. The old password must be entered once, and the new password twice. If the new passwords do not match, an error message is displayed. A password may only contain letters (A to Z) and numbers, but no letters with accents or umlauts. Upper and lower case are distinguished. The maximum length is 31 characters. optoNCDT 1900 Seite 100 Appendix | ASCII Communication with Sensor A 3.2.3 Triggering The multi-function input also serves as trigger input A 3.2.3.1 TRIGGERLEVEL, Active level triggering TRIGGERLEVEL HIGH | LOW -- HIGH: Edge triggering: Rising edge, level triggering: High-active -- LOW: Edge triggering: Falling edge, level triggering: Low-active A 3.2.3.2 TRIGGERMODE TRIGGERMODE EDGE | PULSE Defines the trigger type. -- PULSE: Level triggering -- EDGE: Edge triggering A 3.2.3.3 ----- TRIGGERSOURCE, Trigger source TRIGGERSOURCE NONE | MFI | SYNCIO | SOFTWARE NONE: Triggering is deactivated MFI: Use multi-function input for triggering. SYNCIO: Use synchronization ports for triggering SOFTWARE: Triggering is controlled by the TRIGGERSW command A 3.2.3.4 TRIGGERAT, Effect of the Trigger Input TRIGGERAT INPUT | OUTPUT -- INPUT: Triggering the measured value recording. When calculating the mean, measured values immediately before the trigger event are not included; instead older measurement values are used, which were output in previous trigger events. -- OUTPUT: Triggering the measurement value output. When calculating the mean, measured values immediately before the trigger event are used. A 3.2.3.5 MFILEVEL, Input Level Multi-Function Input MFILEVEL HTL|TTL Selection of switching or trigger level for the multi-function input -- HTL: Input expects HTL level -- TTL: Input expects TTL level optoNCDT 1900 Seite 101 Appendix | ASCII Communication with Sensor A 3.2.3.6 TRIGGERCOUNT, Number of Output Measurement Values TRIGGERCOUNT INFINITE | <n> <1...16382> Number of Output Measurement Values with Triggering -- INFINITE: Start of continuous output after the first trigger event -- <n>: Number of measured values to be output after every trigger event n = 1 …16382. A 3.2.3.7 TRIGGERSW, Software Trigger Pulse TRIGGERSW SET|CLR Generates a software trigger pulse. -- SET: Generates one single trigger pulse when edge triggering (EDGE) is active. Continuously generates trigger pulses with level triggering (PULSE) -- CLR: Stops trigger pulses with level triggering (PULSE). With edge triggering, an ongoing task is aborted. Abortion is also possible when selecting the trigger sources MFI and SyncIO. optoNCDT 1900 Seite 102 Appendix | ASCII Communication with Sensor A 3.2.4 Interfaces A 3.2.4.1 BAUDRATE, RS422 BAUDRATE 9600|115200|230400|460800|691200|921600|2000000|3000000|4000000 Set the baud rate for the RS422 interface. A 3.2.4.2 ERROROUT1/2, Activate Switching Output ERROROUT1 DIST|TEACH|LI1 ERROROUT2 DIST|TEACH|LI1 Choose error signal of the ERROR switching output. -- DIST: no peak found or beyond measuring range (out of range) -- TEACH: Distance is out of scaled analog range -- LI1: Distance is greater than the limit value (ERRORLIMIT) A 3.2.4.3 ERRORLEVELOUT1/2, Output Level Switching Output ERRORLEVELOUT1 NPN|PNP|PUSHPULL|PUSHPULLNEG ERRORLEVELOUT2 NPN|PNP|PUSHPULL|PUSHPULLNEG Choice of output level for ERROROUT1. -- NPN: switching output is active in case of an error -- PNP: switching output is active in case of an error -- PUSHPULL: switching output is high in case of an error -- PUSHPULLNEG: switching output is low in case of an error Wiring of ERROR1 switching output, see Chap. 5.4.8. A 3.2.4.4 ERRORLIMITCOMPARETO1/2 ERRORLIMITCOMPARETO1 [LOWER|UPPER|BOTH] ERRORLIMITCOMPARETO2 [LOWER|UPPER|BOTH] Defines the monitoring function for the switching outputs. -- LOWER: Monitors if the measurement value falls short of the limit value -- UPPER: Monitors if the measurement value exceeds the limit value -- BOTH: Monitors excess/shortfall of limit values. optoNCDT 1900 Seite 103 Appendix | ASCII Communication with Sensor A 3.2.4.5 ERRORLIMITVALUES1/2 ERRORLIMITVALUES1 [<lower limit [mm]> [<upper limit [mm]>]] ERRORLIMITVALUES2 [<lower limit [mm]> [<upper limit [mm]>]] Defines the lower and upper limit value for the switching outputs. Value range: -- <lower limit [mm]> = (-2 ... 2) * measuring range [mm] -- <upper limit [mm]> = (-2 ... 2) * measuring range [mm] A 3.2.4.6 ERRORHYSTERESIS ERRORHYSTERESIS <hysteresis [mm] > Value by which the measured value must fall short of the limit value to deactivate the switching output. Value range: -2 ... +2 * measuring range [mm]. A 3.2.4.7 ERROROUTHOLD ERROROUTHOLD <hold period> Indicates in ms how long the switching output must be active at least when the limit value is exceeded. This time period starts when the limit value is exceeded. Range: 0….1000 [ms]. optoNCDT 1900 Seite 104 Appendix | ASCII Communication with Sensor A 3.2.5 Handling of Setups A 3.2.5.1 IMPORT IMPORT [FORCE] [APPLY] <ImportData> Import of data in JSON format to the sensor. First, the import command returns a prompt (->). Afterwards, data can be sent. After importing a prompt (->) is returned. -- FORCE: Overwriting measurement settings (=MEASSETTINGS) with the same name (otherwise an error message is displayed when the name is the same). When importing all measurement settings or device settings (= BASICSETTINGS) FORCE must always be stated. -- APPLY : Activates the settings after importing / reading the Initial Settings. -- ImportData: Data in JSON format A 3.2.5.2 EXPORT EXPORT (MEASSETTINGS <SettingName>) | BASICSETTINGS | MEASSETTINGS_ALL | ALL Export sensor settings. -- MEASSETTINGS: Only transmits measurement settings with the name <SettingName>. -- BASICSETTINGS: Only transmits device settings. -- MEASSETTINGS_ALL: Transmits all measurement settings. -- ALL: Transmits all device and measurement settings. optoNCDT 1900 Seite 105 Appendix | ASCII Communication with Sensor A 3.2.5.3 MEASSETTINGS, Load / Save Measurement Settings MEASSETTINGS <Subcommands> [<Name>] Settings of the measurement task. Loads proprietary presets and user-specific settings from the sensor or stores user-specific setups in the sensor. Subcommands: PRESETMODE: Returns the currently used Preset mode. PRESETMODE <mode>: Sets a preset mode, <mode> = STATIC|BALANCED|DYNAMIC| NOAVERAGING PRESETLIST: Listing of all existing manufacturer settings. CURRENT: Output of the name of current measurement setting READ <Name>: Loads a setting <Name> of non-volatile memory STORE <Name>: Saves the current setting <Name> in a non-volatile memory. RENAME <NameOld> <NameNew> [FORCE]: Renaming measurement setting. An existing measurement setting can be overwritten with FORCE. DELETE <Name>: Deletes a measurement setting. INITIAL AUTO: Loads the last saved setting when starting the sensor INITIAL <Name>: Loads the setting <Name> when starting the sensor. Presets cannot be indicated. LIST: Lists all saved measurement settings. A 3.2.5.4 BASICSETTINGS, Load / Save Device Settings BASICSETTINGS READ | STORE -- READ: Loads the stored device settings from the sensor. -- STORE : Saves the current device settings in the sensor. A 3.2.5.5 SETDEFAULT, Factory Settings SETDEFAULT ALL | MEASSETTINGS | BASICSETTINGS Resets the sensor to factory settings. -- ALL: Deletes measurement and device settings and loads the standard preset for the measurement settings or the default parameters for the device settings. -- MEASSETTINGS: Loads the measurement settings and deletes the standard presets loaded. -- BASICSETTINGS: Deletes the device settings and loads the default parameters. optoNCDT 1900 Seite 106 Appendix | ASCII Communication with Sensor A 3.2.6 Analog Output A 3.2.6.1 ANALOGRANGE ANALOGRANGE [0-5V|0-10V|4-20mA] Sets the type of the analog output. A 3.2.6.2 ANALOGSCALEMODE, Scaling the Analog Output ANALOGSCALEMODE STANDARD|TWOPOINT Choice of the scaling type of the analog output. -- STANDARD: using the measuring range of the sensor -- TWOPOINT: two-point scaling within the analog range Minimum value: measurement value in mm which is matched to the lower analog value, Maximum value: measurement value in mm which is matched to the upper analog value. i The minimum value (in mm) can be higher than the maximum value (in mm), see Chap. 7.7.3. A 3.2.6.3 ANALOGSCALERANGE, Scaling Limits with Two-Point Scaling ANALOGSCALERANGE <limit 1> <limit 2> Sets the scaling limits of the analog output with two-point scaling. <limit 1> = (-2 ... 2) * measuring range [mm] <limit 2> = (-2 ... 2) * measuring range [mm] The scaling limits must not be identical. A 3.2.6.4 ANALOGSCALESOURCE ANALOGSCALESOURCE NONE | MFI | KEY_SELECT Determination of the port for teaching. -- NONE: No port selected. -- MFI: Switching input triggers teaching function. -- KEY_SELECT: The Select key triggers the teaching function. optoNCDT 1900 Seite 107 Appendix | ASCII Communication with Sensor A 3.2.7 Key Function A 3.2.7.1 KEYLOCK, Set Key lock KEYLOCK NONE | ACTIVE | AUTO [<timeout period>] Key lock configuration -- NONE: Key is active, no key lock -- ACTIVE: Key lock is activated immediately after restart -- AUTO: Key lock is only activated <timeout period>, 1 ... 60 minutes after reboot A 3.2.8 Measurement A 3.2.8.1 TARGETMODE, Measurement Task TARGETMODE STANDARD | MULTISURFACE | PENETRATION Choice of material dependent presets -- STANDARD: suitable for materials, e.g. made of ceramics, metal, plastics or wood -- MULTISURFACE: suitable for materials with changing surfaces, e.g. PCB or hybrid materials -- PENETRATION: suitable for materials with strong penetration depth of the laser light A 3.2.8.2 ----- MEASPEAK, Choice of the Peak in the Video Signal MEASPEAK DISTA | DISTW | DIST1 | DISTL DISTA: output of peak with highest amplitude (standard) DISTW: output of peak with the largest area DIST1: output of first peak DISTL: output of last peak A 3.2.8.3 MEASRATE, Measuring rate MEASRATE <frequency> Specifies the measuring rate in kHz, range 0.25 … 10 kHz. optoNCDT 1900 Seite 108 Appendix | ASCII Communication with Sensor A 3.2.8.4 SHUTTER, Exposure Time SHUTTER <exposure time> Sets the exposure time to a fixed value with manual exposure time. The maximum exposure time is the reciprocal of the measuring rate. Therefore, the manual exposure time is smaller than/equal to the maximum exposure time. The exposure time is indicated in μs. Range: 1 ... 4000 μs, increments of 0.1 µs A 3.2.8.5 SHUTTERMODE SHUTTERMODE MEAS|MANUAL MEAS: Exposure time is controlled automatically MANUAL: Selectable exposure time A 3.2.8.6 EXPOSUREMODE EXPOSUREMODE STANDARD | INTELLIGENT | BACKGROUND The command sets the behavior for automatic exposure time regulation. -- STANDARD: exposure time is set depending on the target reflectivity -- INTELLIGENT: beneficial when measuring moving objects or material transitions -- BACKGROUND: suppresses interferences caused by ambient light, the sensor‘s output rate is reduced by half. A 3.2.8.7 LASERPOW, Laser Power LASERPOW FULL | REDUCED | OFF -- FULL: Laser power is switched to 100% -- REDUCED: Laser power is switched to 50% -- OFF: Laser is switched off. A 3.2.8.8 ROI, Video Signal, Masking the Evaluation Range ROI <Start> <End> Sets the evaluation range for „Region of interest“. Start and end must be between 0 and 511. The “start” value is smaller than the “end” value. optoNCDT 1900 Seite 109 Appendix | ASCII Communication with Sensor A 3.2.8.9 COMP, Averaged Measurements COMP [CH01 [<id>]] COMP CH01 <id> MEDIAN <signal> <median data count> COMP CH01 <id> MOVING <signal> <moving data count> COMP CH01 <id> RECURSIVE <signal> <recursive data count> COMP CH01 <id> NONE -- <id> 1...2 Number of calculation block -- <signal> Measurement signal; query the available signals with the META_COMP command -- <median data count> 3|5|7|9 Averaging depth Median -- <moving data count> 2|4|8|16|32|64| 128|256|512|1024|2048|4096 Averaging depth of moving average -- <recursive data count> 2 ... 32000 Averaging depth of recursive average -- <name> Name of calculation block; min. length 2 characters, max. length 15 characters Permitted characters a-zA-Z0-9, the name must begin with a letter. Command names are not permitted, e.g. GETINFO, MASTER or NONE. The COMP command enables you to create, modify and delete calculation blocks. Functions: -- MEDIAN, MOVING and RECURSIVE: averaging functions -- NONE: deletes a calculation block A 3.2.8.10 List of Possible Signals for Mastering META_MASTER Lists all defined master signals from the MASTERSIGNAL command and can be used with the MASTER command. optoNCDT 1900 Seite 110 Appendix | ASCII Communication with Sensor A 3.2.8.11 MASTER MASTER [DIST1] MASTER ALL|DIST1 SET|RESET The function uses the measurement value (DIST1) in order to generate an offset. This offset is then applied to the following measurement values. Example: Zero is defined as master value, DIST1 currently provides 0.5 mm as measured value. Therefore, -0.5 mm is applied as offset to DIST1. The Reset function resets the offset to zero. The output lists the values and the word ACTIVE when mastering is currently used or the word INACTIVE without mastering. A 3.2.8.12 MASTERSIGNAL MASTERSIGNAL DIST1 MASTERSIGNAL DIST1 <master value> MASTERSIGNAL DIST1 NONE -- <master value>: value in mm, value range -2 ... +2 * Measuring range Displays, changes or deletes the master value. The master value is calculated with the current measurement value when mastering is active. Mastering can be triggered with the command MASTER. If the master value is 0, the mastering function has the same functionality as the zero setting. The output lists signals and the currently used master value. A 3.2.8.13 MASTERSOURCE MASTERSOURCE NONE | MFI | KEY_SELECT Choice of port for mastering. -- NONE: No port (hardware) selected, mastering is possible via command. -- MFI: Use switching input in order to trigger mastering. -- KEY_SELECT: Use Select key in order to trigger mastering. optoNCDT 1900 Seite 111 Appendix | ASCII Communication with Sensor A 3.2.9 Data output A 3.2.9.1 OUTPUT, Selection of Measurement Value Output ----- OUTPUT NONE | ([RS422 | ANALOG] [ERROROUT1 | ERROROUT2 | ERROROUT1 ERROROUT2]) NONE: No measurement value output RS422: Output of measurement values via RS422 ANALOG: Output of measurement values via analog output ERROROUT1/2: Output of an error/status information via the switching outputs. A parallel output of measured values via multiple channels is not possible. RS422 and analog output cannot be operated simultaneously. A 3.2.9.2 OUTREDUCEDEVICE, Output Reduction of Measurement Value Output OUTREDUCEDEVICE NONE|([RS422] [ANALOG]) Selection of interface for data reduction. -- NONE: no data reduction -- RS422: output reduction for RS422 -- ANALOG: output reduction for analog output A 3.2.9.3 OUTREDUCECOUNT, Data Output Rate OUTREDUCECOUNT <n> Reduces the measured value output for all selected interfaces. -- 1: outputs each measurement value -- 2 ... 3000000: output of each n-th measured value A 3.2.9.4 OUTHOLD, Error Processing OUTHOLD NONE|INFINITE|<n> Setting the behavior of the measurement value output in case of error. -- NONE: No holding of the last measured value, output of error value. -- INFINITE: Infinite holding of the last measurement value. -- <n>: Holding the last measured value over a number of measuring cycles n; then an error value is output. n = (1 ... 1024). optoNCDT 1900 Seite 112 Appendix | ASCII Communication with Sensor A 3.2.9.5 GETOUTINFO_RS422, Query Selected Data GETOUTINFO_RS422 The command lists all output data chosen for the RS422 interface. The displayed order corresponds to the output sequence. A 3.2.9.6 List of Possible RS422 Signals META_OUT_RS422 List of possible data for RS422. A 3.2.9.7 OUT_RS422 OUT_RS422 ([DIST1] [SHUTTER] [COUNTER] [TIMESTAMP_LO] [TIMESTAMP_HI] [INTENSITY] [STATE] [UNLIN] [VIDEO] [MEASRATE]) This command is used to choose the signals for measurement data output via the RS422 interface. ----------- DIST1: Calibrated distance value SHUTTER: exposure time COUNTER: measured value counter TIMESTAMP_LO: Time stamp (16 Bit lower word) TIMESTAMP_HI: Time stamp (16 Bit upper word) INTENSITY: intensity STATE: Status word UNLIN: Non-calibrated distance value (raw value) VIDEO: video signal (raw value) MEASRATE: measuring rate (frequency) optoNCDT 1900 Seite 113 Appendix | ASCII Communication with Sensor A 3.3 Example Command Sequence During Selection of Measurement Value Command Content MEASPEAK Peak selection with distance measurement MEASRATE Measuring rate (by taking into consideration reflectivity and movement of the target) COMP Averaged measurements (by taking into consideration reflectivity, structure and movement of the target) OUTPUT Selection of the output channel OUTREDUCEDEVICE OUTREDUCECOUNT Reduction of the output data rate (under consideration of the chosen output channel, its settings and the processing range of the target system) OUTHOLD Output behavior in the event of measuring errors OUT_RS422 Selection of the additional values to be output for RS422 interface BAUDRATE Baud rate setting RS422 interface A 3.4 Error Messages If an error occurs with a command, the error message is listed. Error message Description E100 Internal error Internal error code E104 Timeout Timeout with mastering. E200 I/O operation failed Cannot write data on output channel. E202 Access denied Access denied; requires login as expert. E204 Received unsupported character An unsupported character was received. E210 Unknown command Unknown command (insufficient rights for reading). E214 Entered command is too long to be processed The indicated command with the parameters it too long (larger than 255 bytes). E220 Timeout, command aborted Timeout with mastering. E232 Wrong parameter count Too high or small number of parameters. optoNCDT 1900 Seite 114 Appendix | ASCII Communication with Sensor E234 Wrong or unknown parameter type E236 Value is out of range or the format is invalid A transmitted parameter has a wrong type or a wrong number of parameters were transmitted. The parameter value is outside the range of values. E262 Active signal transfer, please stop before One measurement data output is active. End the measurement data output in order to execute the command. E320 Wrong info-data of the update Only with update: The header of the update data contains an error. E321 Update file is too large Only with update: The update is too large. E322 Error during data transmission of the update Only with update: Error with transmission of update data. E323 Timeout during the update Only with update: Timeout with transmission of update data. E331 Validation of import file failed Import file is invalid E332 Error during import Error with processing import data. E333 No overwrite during import allowed No overwrite of measurement and device settings allowed through import. Setting checkbox. E350 The new passwords are not identical Error with repeated entry of new password. E360 Name already exists or not allowed The measurement setting name already exists or is not allowed. E361 Name begins or ends with spaces or is empty Name for the measurement setting begins or ends with spaces or is empty. E362 Storage region is full Number of storable measurement settings is reached E363 Setting name not found Name of the measurement setting to be loaded not found E364 Setting is invalid Measurement or device setting is invalid E600 ROI begin is greater than ROI end Start of the evaluation range is larger than the end. E602 Master value is out of range The master value is outside the valid range. E616 Software triggering is not active Software trigger is not active. optoNCDT 1900 Seite 115 Appendix | ASCII Communication with Sensor Warning Description W320 The measuring output has been adapted automatically. The measurement value output has been adapted automatically. W570 The input has been adapted automatically to a limited range. The input has been adapted automatically to a limited range. optoNCDT 1900 Seite 116 Appendix | Control Menu A4 Control Menu A 4.1 Tab Home Measurement task Presets Standard Suitable for materials made of ceramics, metal or filled plastics Multi-Surface Suitable for printed circuit boards, hybrid material Light penetration Suitable for plastics, materials with large penetration depth of the laser Setup 1 ... Setup 8 Setups contain user-specific measurement settings. Unlike the presets they can be changed anytime. Static / balanced / dynamic / no averaging The signal quality affects averaging of measurement values. Laser power Full / Reduced / Off Synchronization Slave / Slave alternating The laser light source is active only, if pin 9 is connected to GND. If several sensors measure the same target synchronously, the sensors may be synchronized with each other. The synchronization output of the first sensor (master) controls the sensors connected to the synchronization inputs (slaves). Setups Signal quality A 4.2 Tab Settings A 4.2.1 Inputs Termination On / Off Slave MFI Master / Master alternating inactive Level Multi-function input TTL / HTL Defines the input level of both switching inputs Laser on/off and Multi-function. TTL: Low ≤ 0.8 V; High ≥ 2V HTL: Low ≤ 3 V; High ≥ 8V optoNCDT 1900 Seite 117 Appendix | Control Menu A 4.2.2 Data Recording Measuring rate 250 Hz / 500 Hz / 1 kHz / 2 kHz / 4 kHz / 8 kHz / 10 kHz Free measuring rate Input trigger Output trigger Trigger source Value Multi-function input Trigger type / Synchronization Trigger level input Number of measured values Edge / Level Software Infinite Number of measured values optoNCDT 1900 high rising edge / low falling edge Infinite Manual selection Manual selection Value Range: 1 ... 16383 Value Range: 1 ... 16383 Start triggering Button starts data recording Stop triggering Sensor outputs continuous data Inactive Masked area Use a high measuring rate for bright and mat measurement objects. Use a low measuring rate for dark or shiny measurement objects (e.g. black painted surfaces) to improve the measurement result. No triggering Start of range 0 ... 99 % Value End of range 1 ... 100 % Value Setting the evaluation range for the „Region of interest“, i.e. only this range is used for logging the measuring values. The Start of range value has to be smaller than the End of range value. Seite 118 Appendix | Control Menu Peak selection First peak / Highest peak / Last peak / Widest peak Defines which signal is used for the evaluation in the line signal. First peak: Nearest peak to sensor. Highest peak: standard, peak with the highest intensity. Last peak: widest peak to sensor. Widest peak: peak with maximum area. Error handling Digital output, no value Hold last value infinite Hold last value optoNCDT 1900 95 Intensity in % Automatic mode In the automatic mode, the sensor determines the / Manual mode optimal exposure time in order to achieve the highest possible signal intensity. In the manual mode, when the video signal is displayed, the user determines the exposure time Vary the exposure time in order to achieve a signal quality up to a maximum of 95 %. In both cases, the set measuring rate is hold. 50 0 0 100 Intensity in % Exposure mode 50 Range in % 100 close Sensor Highest peak First peak 50 0 0 Widest peak faraway Last peak 50 Range in % 100 The analog output supplies 3 mA resp. 5.2 / 10.2 V instead of measurement value. The RS422 interface outputs an error value. Analog output and RS422 interface stop at the last valid value. 1 ... 1024 Value Seite 119 Appendix | Control Menu A 4.2.3 Signal Processing Averaging Zero setting/ Mastering Inactive Measurement values are not averaged. Moving N values 2 / 4 / 8 ... 4096 Value Recursive N values 2 ... 32000 Value Median N values 3/5/7/9 Value Select source Inactive Master value Select button / Multifunction input Value Indication of averaging mode. The averaging number N indicates the number of consecutive measurement values to be averaged in the sensor. Normal measurement value resp. Zeroing/Mastering is undone. Select control element for mastering. Indication e.g. of thickness of a master part. Set master value Value range -2 up to max. +2 x measuring range Adopts the master value but does not execute it. Activate master value / reset Mastering/reset is done via buttons in the web interface. Data reduction Value Indicates the sensor which data is to be excluded from output, thus the data amount to be transmitted is reduced. Reduction relates to RS422 / Analog Interfaces to be used for undersampling are to be selected via the checkbox. optoNCDT 1900 Seite 120 Appendix | Control Menu A 4.2.4 Outputs RS422 Analog output Baud rate 9.6 / 115.2 / 230.4 / 460.8 / 691.2 / 921.6 / 2000 / 3000 / 4000 kBps Transmission speed, binary data format Output data Distance / Non-linearized focal point / Intensity / Exposure time / Sensor state / Measurement counter / Time stamp / Video signal Data to be transmitted are to be activated via the checkbox. Output range 0-5 V / 0-10 V / 4-20 mA Select voltage or current output Scaling Standard scaling Start of measuring range 0 V oder 4 mA, End of measuring range 5 V/10 V / 20 mA Two-point scaling Digital output Configuration 1/2 Minimum Value Maximum Value Full scale error / Distance is outside the analog range / Distance is out of limit Compare to limit Lower / Upper / Limit min Both Limit max Switching level optoNCDT 1900 Value Value NPN / PNP / PushPull / PushPull negative Minimum hold time 1 ... 1000 ms Value Hystereses 0 ... 2 x Measuring range Value Always 2 points are taught which mark start and end of new measuring range. With two point scaling reversal of the output signal is possible Regulates the switching performance of the digital output (Error), see Chap. 5.4.8. Range limit values: -2 ... +2 x Measuring range The minimum hold time defines how long the output must be active at least. The hysteresis defines a dead band around the selected limit values. Seite 121 Appendix | Control Menu Output interface optoNCDT 1900 RS422 / Analog output / digital output 1 / digital output 2 Defines which interface is used for output of measured values. A parallel output of measured values via multiple channels is not possible. RS422 and analog output cannot be operated simultaneously. The switching outputs 1 and 2 can be activated regardless of any other channel. While using the web interface, the output is switched off via RS422. Seite 122 Appendix | Control Menu A 4.2.5 System Settings Unit web interface mm / Inch Key lock Automatic Unit in measurement value display Countdown 1 ... 60 [min] Value Active The key lock starts after expiry of the defined time. Clicking the button Refresh extends the interval until key lock starts. The keys do not respond in any user level Inactive The keys are active in any user level Refresh Load & Store Measurement settings Device settings New setup / Setup 1 / ... / Setup 8 Create setup Load Activates a saved measurement setting setup. Safe Saves changed measurement settings to an existing setup. Favorite Selects a setup which is used after reboot of the sensor. Delete Deletes a setup. Search Import You load an existing setup from a PC or the like to the ILD1900 with both buttons. Export Saves the setup on a connected PC or the like. Load Activates the saved device settings. Safe Saves changed device settings. Search You load the device settings from a PC or the like to the ILD1900 with both buttons. Import Export optoNCDT 1900 Saves the device settings on a connected PC or the like. Seite 123 Appendix | Control Menu Import & Export Create a parameter Measurement settings set Boot setup The measurement setting setups, the file with device settings and the boot file can be combined in one parameter set and exchanged with a PC or the like. Device settings Search Check file Button starts file manager to select a parameter set. Overwrite existing setups (with the same name) Dialog prevents inadvertent overwriting of existing settings. Apply settings of the imported boot setup Transmit data Access permission Current access permission Value Read only Logout / Login User level when restarting Change password Button starts change of access permission. Old password Value New password Value Repeat new password Value Change password optoNCDT 1900 Sets the user level the sensor starts with after reboot. In this case MICRO-EPSILON recommends the selection user. Professional / User Case-sensitive rules are observed for all passwords. Numbers are allowed. Special characters are not allowed. Maximum length is limited to 31 characters. Button causes change of password. Seite 124 Appendix | Control Menu Reset sensor Measurement settings The settings for measuring rate, trigger, evaluation range, selection of peak, error handling, averaging, Zeroing/Mastering, reduction of data and setups are deleted. The 1st preset is loaded. Device settings The settings baud rate, language, unit, key lock and echo mode are deleted and the default parameters are loaded. Reset all By clicking the button the settings for the sensor, measurement settings, access permission, password and setups are deleted. The 1st preset is loaded. Restart sensor By clicking the button the sensor is rebooted with the settings made in the favorite setup, see Chap. 7.8.4. Selection required or checkbox i Value Fields with dark border require entry of a value. Grey shaded fields require a selection. optoNCDT 1900 Value After the programming all settings must be permanently stored under a parameter set so that they are available again when the sensor is switched on the next time. Fields with dark border require entry of a value. Seite 125 MICRO-EPSILON MESSTECHNIK GmbH & Co. KG Koenigbacher Str. 15 · 94496 Ortenburg / Germany Tel. +49 (0) 8542 / 168-0 · Fax +49 (0) 8542 / 168-90 [email protected] · www.micro-epsilon.com Your local contact: www.micro-epsilon.com/contact/worldwide/ X9751416-A032080MSC MICRO-EPSILON MESSTECHNIK *X9751416-A03*
* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project
advertisement