Instruction Manual Channel 1 in mm + 14.452 CSP2008 MICRO-EPSILON MESSTECHNIK GmbH & Co. KG Königbacher Straße 15 94496 Ortenburg / Germany Tel. +49 (0) 8542 / 168-0 Fax +49 (0) 8542 / 168-90 email info@micro-epsilon.de www.micro-epsilon.com Certified according to DIN EN ISO 9001: 2008 EtherCAT® is registered trademark and patented technology, licensed by Beckhoff Automation GmbH, Germany. Software version NIOS 04-x Contents 1.Safety......................................................................................................................................... 5 1.1 Symbols Used.................................................................................................................................................. 5 1.2Warnings........................................................................................................................................................... 5 1.3 Notes on CE Identification................................................................................................................................ 6 1.4 Proper Use........................................................................................................................................................ 6 1.5 Proper Environment.......................................................................................................................................... 6 2. 2.1 2.2 2.3 2.4 2.5 Functional Principle, Technical Data........................................................................................ 7 Functional Principle.......................................................................................................................................... 7 Controls and Display Elements........................................................................................................................ 8 2.2.1Keyboard......................................................................................................................................... 8 2.2.2 Display, LEDs................................................................................................................................... 9 Web Interface, Ethernet.................................................................................................................................... 9 Technical Data................................................................................................................................................ 10 Thickness Measurement with ILD 1700......................................................................................................... 11 3.Delivery.................................................................................................................................... 14 3.1 Supplied Items, Unpacking............................................................................................................................ 14 3.2Storage........................................................................................................................................................... 14 3.3 Optional Accessories...................................................................................................................................... 14 4. 4.1 4.2 4.3 Installation and Mounting....................................................................................................... 15 Mounting Controller........................................................................................................................................ 15 General Rules for the Installation................................................................................................................... 15 Pin Assignment............................................................................................................................................... 15 4.3.1 Terminal Strips............................................................................................................................... 15 4.3.1.1 Power Supply............................................................................................................... 17 4.3.1.2 Laser Switch On........................................................................................................... 17 4.3.1.3 Inputs for Reset, Synchronization and Triggering....................................................... 17 4.3.1.4 Switching Outputs, Synchronization Output............................................................... 18 4.3.1.5 GND Reference Grounds............................................................................................. 18 4.3.1.6 Analog Outputs............................................................................................................ 18 4.3.2 Sensor Connections...................................................................................................................... 18 4.3.3RS422............................................................................................................................................ 19 4.3.4Ethernet......................................................................................................................................... 19 4.3.5EtherCAT....................................................................................................................................... 19 5.Operation................................................................................................................................. 21 5.1 5.2 5.3 CSP2008 Getting Ready for Operation.......................................................................................................................... 21 Operation Using Ethernet............................................................................................................................... 21 5.2.1Requirements................................................................................................................................ 21 5.2.2 Access via Ethernet....................................................................................................................... 22 5.2.4 Measured Value Presentation with Ethernet................................................................................. 23 Operating Menu.............................................................................................................................................. 25 5.3.1General.......................................................................................................................................... 25 5.3.2 Login, Change User...................................................................................................................... 25 5.3.2.1 Change to User Mode.................................................................................................. 25 5.3.2.2 Change to Professional Mode..................................................................................... 26 5.3.2.3 User Defined Professional Password........................................................................... 26 5.3.3 Country Settings............................................................................................................................ 26 5.3.4 Display Settings............................................................................................................................. 26 5.3.5 Ethernet Connection..................................................................................................................... 27 5.3.5.1 IP Settings Basic Unit................................................................................................... 27 5.3.5.2 Measured Value Server................................................................................................ 27 5.3.6 Digital Inputs CSP2008................................................................................................................. 27 5.3.6.1 Terminal Block Synchronization/ Triggering................................................................ 27 5.3.6.2 Terminal Block Zero..................................................................................................... 27 5.3.7 Digital CSP2008 Outputs.............................................................................................................. 28 5.3.8 EtherCAT Devices.......................................................................................................................... 29 5.3.9 Data Recording.............................................................................................................................. 30 5.3.9.1Definitions..................................................................................................................... 30 5.3.9.2 Sensor Connections..................................................................................................... 32 5.3.9.3 Time Base..................................................................................................................... 35 5.3.10Calculation..................................................................................................................................... 37 5.3.10.1Definitions..................................................................................................................... 39 5.3.10.2 Inputs / Outputs, Calculation Program Parameters..................................................... 41 5.3.10.3 Calculation Program, Thickness Calculation............................................................... 41 5.3.10.4 Averaging Program ..................................................................................................... 42 5.3.10.5 Statistics Program........................................................................................................ 43 5.3.10.6 Mastering Program....................................................................................................... 46 5.3.10.7 Zeroing Program.......................................................................................................... 48 5.3.10.8 Edge Filter.................................................................................................................... 51 5.3.10.9MinMax......................................................................................................................... 51 5.3.11 Data Output................................................................................................................................... 52 5.3.11.1Display.......................................................................................................................... 53 5.3.11.2Ethernet........................................................................................................................ 53 5.3.11.3 Analog CSP2008.......................................................................................................... 53 5.3.11.4 Analog EtherCAT.......................................................................................................... 54 5.3.11.5 Digital CSP2008........................................................................................................... 55 5.3.11.6 Digital EtherCAT........................................................................................................... 55 5.3.11.7RS422........................................................................................................................... 56 5.3.12 Loading/Saving the Settings......................................................................................................... 58 5.3.13 Setup Selection via Digital Input................................................................................................... 58 5.4Triggering........................................................................................................................................................ 60 5.5Synchronization.............................................................................................................................................. 61 5.5.1Sensors.......................................................................................................................................... 61 5.5.2Controller....................................................................................................................................... 62 5.6 Controller Timing............................................................................................................................................ 63 5.7Ethernet........................................................................................................................................................... 63 5.7.1 Basic Settings for the Data Output................................................................................................ 63 5.7.2 Measured Values Data Format, Measured Value Frame.............................................................. 64 5.7.3 Measured Value Block................................................................................................................... 65 6.Warranty................................................................................................................................... 66 7. Service, Repair ....................................................................................................................... 66 8. Factory Settings...................................................................................................................... 67 9. Decommissioning, Disposal .................................................................................................. 67 10. Programming the Controller with the Function Keys............................................................ 68 11.Telnet........................................................................................................................................ 74 11.1General........................................................................................................................................................... 74 11.1.1Requirement.................................................................................................................................. 74 11.1.2 Connection Buildup....................................................................................................................... 74 11.1.3 Error Messages............................................................................................................................. 74 11.2 User Level....................................................................................................................................................... 75 11.2.1 Change User Level........................................................................................................................ 75 Change to the User Level.............................................................................................................. 75 11.2.2 Parameter Management................................................................................................................................. 75 11.3 Loading Setups............................................................................................................................. 75 11.3.1 Saving the Setups......................................................................................................................... 75 11.3.2 Master Clock................................................................................................................................................... 75 11.4 11.5Mastering........................................................................................................................................................ 75 Mastering (Zeroing)....................................................................................................................... 75 11.5.1 Mastering (Reset).......................................................................................................................... 75 11.5.2 Software Trigger.............................................................................................................................................. 76 11.6 Activating Software Trigger........................................................................................................... 76 11.6.1 Initiating Software Trigger.............................................................................................................. 76 11.6.2 11.7 Edge Filter....................................................................................................................................................... 76 Software Switching Outputs........................................................................................................................... 76 11.8 12. From EtherCAT to Ethernet..................................................................................................... 77 13. Software Update...................................................................................................................... 78 CSP2008 Safety 1. Safety Knowledge of the operating instructions is a prerequisite for equipment operation. 1.1 Symbols Used The following symbols are used in the instruction manual. Indicates a hazardous situation which, if not avoided, may result in minor or moderate injury. Indicates a situation which, if not avoided, may lead to property damage. Indicates a user action. i 1.2 Indicates a user tip. Warnings Connect or disconnect controller components only, if the controller is off. >> Danger of injury >> Damage to or destruction of the controller The power supply and the display/output device must be connected in accordance with the safety regulations for electrical equipment. >> Danger of injury >> Damage to or destruction of the controller The power supply may not exceed the specified limits. >>Danger of injury >> Damage to or destruction of the controller Avoid shock and vibration to the controller. >>Damage to or destruction of the controller Avoid continuous exposure to spray on the controller. >>Damage to or destruction of the controller Avoid exposure to aggressive materials (washing agent, penetrating liquids or similar) on the controller. >>Damage to or destruction of the controller Do not clean the display with water. >>Damage to or destruction of the display. CSP2008 Page 5 Safety 1.3 Notes on CE Identification The following applies to the CSP2008: -- EU directive 2014/30/EU -- EU directive 2011/65/EU, “RoHS” category 9 Products which carry the CE mark satisfy the requirements of the quoted EU directives and the European standards (EN) listed therein. The EC declaration of conformity is kept available according to EC regulation, article 10 by the authorities responsible at MICRO-EPSILON MESSTECHNIK GmbH & Co. KG Königbacher Straße 15 94496 Ortenburg / Germany The measuring system is designed for use in industry and satisfies the requirements. 1.4 Proper Use -- The CSP2008 is designed for industrial use in automated manufacturing and machine monitoring. It is used for processing at least 2, maximum 6 digital or analog input signals, e. g. thickness measurement filtering of measurements limit value monitoring -- The controller may only be operated within the limits specified in the technical data, see Chap. 2.4. -- The system should only be used in such a way that in case of malfunction or failure personnel or machinery are not endangered. -- Additional precautions for safety and damage prevention must be taken for safetyrelated applications. 1.5 CSP2008 Proper Environment -- Protection class: IP 40 -- Operating temperature: 0 to +50 °C (+32 to +122 °F) -- Storage temperature: -20 to +70 °C (-4 to +158 °F) -- Humidity: 5 - 95 % (non condensing) -- Ambient pressure: atmospheric pressure -- EMC: According to EN 61326-1 10.2006 EN 61000-6-2 03.2006 EN 55011 (Group 1, Class B) 11.2007 Page 6 Functional Principle, Technical Data 2. Functional Principle, Technical Data 2.1 Functional Principle The CSP2008 Universal Controller is used for processing at least 2, maximum 6 digital or analog input signals (2x internal + 4x external via EtherCAT modules from the Beckhoff company). EtherCAT is also possible as external interface for the connection of further sensors and further I/O modules. The universal controller CSP2008 is the EtherCAT master and can not communicate with other EtherCAT masters e.g. such as in a PLC. Features: -- Processing of 6 input signals -- Programmable using buttons or via Ethernet (websites) -- Semi-automatic sensor detection for MICRO-EPSILON sensors with digital output -- DIN rail mounting (TS 35) -- Triggering, synchronization and other functions -- Ethernet interface with TCP and UDP protocols -- EtherCAT interface for the connection of additional I/O modules, e.g. of Beckhoff company or sensors with EtherCAT interface. -- Real-time capability up to 100 kHz RS422 extension 2-port EtherCAT terminal junction ESC Kanal 1 in mm +003.98 GNDA Shield GNDA Shield Out2 GND Ana1 0V 0V PE Ana2 Out1 GND Shield PE GND 24V 24V GND Shield Sync/Out GND Sync/Trig Zero Sensors with digital output GND EK1122 Laser PC Power supply Fig. 1 Front view and elements The CSP2008 controller is installed in a stable plastic case similar to a control panel which can easily be attached to a DIN rail TS35 using a clamp on the rear side. Two digital sensors can be directly connected to the controller via RS422 or EtherCAT. A sensor can be directly connected to the EtherCAT connector on CSP2008 via EtherCAT. Four other digital sensors can be connected to two RS422 extension terminals or two EtherCAT junctions (EK1122) or via a RS422 extension terminal and an EtherCAT junction (EK1122) plus bus coupler by EtherCAT. The parameterization of all inputs and outputs on the controller is performed via buttons and the display or using a Web interface. The controller calculates various input signals. All input signals in the input are scaled on an internal number basis with a resolution of 1 nm and a maximum size of ±2.1 m for this. In this way, the resolution and the scaling of the input variables for internal calculation does not have to be observed. A sensor change (or change of measuring range) does not influence the internal calculation. An internal time base also enables the calculation of measurement results of different sensor types with various measuring frequencies. CSP2008 Page 7 Functional Principle, Technical Data 2.2 Controls and Display Elements 2.2.1 Keyboard The Universal Controller has a small keypad with four membrane keys. The Universal Controller and the connected sensors can be programmed with this in the Settings mode. Change display layout; display various measured values simultaneously. Mode Measurement (Standard) Change to the mode Settings. ESC Scroll in the menu, reduce value, increase value. Mode Settings Activate selection or apply change. ESC Return to previous menu level, change to the mode Measurement. Mode Measurement: You change the display layout with the arrow keys in the measurement mode. Depending on the layout, many different measured values can be displayed simultaneously. The operating menu is called by pressing the button " " . Mode Settings: In the menu mode, the arrow keys are used for the selection of the values shown on the display (scrolling). Clicking the button " " saves the current selection. Using the ESC key, you return to the previous menu level or return to the mode Measurement. The following applies for editing numbers: -- Press the button " ". The cursor moves to the first position -- Edit this digit using the arrow keys (Up, Down). -- Move one position to the right: Press the button " ". -- Move one position to the left: Press the "ESC" key. -- The decimal point is fixed, i.e. smaller numbers must start with zeroes. -- The leading sign is reached with the "ESC" key; change with the arrow keys. -- After adjusting the last position, the number can be saved using "OK" (with the arrow keys) and the button " " . -- Press the "ESC" key to exit from the menu without saving. -- The active display part (number area or function) is framed; the active element (position or function) is shown in inverse video. Parameter A -00001.0000 -?- Edit OK Fig. 2 Number adjustment window Display (example parameter A) / Keyboard i Save your settings in the menu Load/Save settings. Use a Setup number if necessary. Otherwise, the save is only temporary until the next time the controller is switched off. Press the ESC key several times if necessary to exit without changes until the previous menu item is reached. Changing between the individual menu items can be performed with the arrow keys. Almost every menu item has its own help which can be invoked with Help or ?. CSP2008 Page 8 Functional Principle, Technical Data 2.2.2 Display, LEDs The display of the controller with a size of 52 x 30 mm also enables the reliable reading of measured values. The background color of the display can automatically switch e. g. if a limit value is exceeded, see Chap. 5.3.4. The display values can be averaged. The display can show up to 6 different measured values at the same time. The changeover between the various displays is performed using the arrow keys. Messwert 1 in mm Messwert 1 in mm +003.982 +003.982 Messwert 2 in ... Messwert 3 in ... +008.107 +012.041 Messwert 1 in mm +003.982 +008.107 Messwert 2 in mm Messwert 1 in mm +003.982 Messwert 4 in mm +001.908 Messwert 1 in.. Messwert 2 in.. Messwert 3 in.. +012 041 Messwert 4 in.. Messwert 5 Messwert 6 Messwert 5 in.. Messwert 6 in.. Messwert 2 +008.107 Messwert 3 +012.041 +017.311 -001.074 +003 982 +017 311 +008.107 +001 908 -001.074 Fig. 3 Possible display presentations An output channel with the same name is assigned to each measured value. As measuring unit millimeters or inch are possible. In the case of error values from the sensors or deactivated data source, data source is output “---“. LEDs EtherCAT Ethernet 2.3 The green and orange LEDs on EtherCAT and Ethernet indicate the contact and speed of the respective connection. connected Sensor1 LEDs next to the sensor connections indicate whether a sensor is connected or configured correctly, see menu Data recording > Sensor connections. Web Interface, Ethernet Dynamic web pages are generated in the Universal Controller which contain the current settings of the controller and the peripherals. The operation is only possible while there is an Ethernet connection to the Universal Controller. Fig. 4 User interface for the configuration of the controller A display of the measured values and the graphical representation are also possible using the Web interface. CSP2008 Page 9 Functional Principle, Technical Data 2.4 Technical Data Sensors ILD1302, ILD1402, ILD1420, ILD1700, ILD2200, ILD2220, ODC2500, ODC2520, ODC2600, IFC2451, IFC2461, IFC2471 Measuring frequencies 0.312 … 100 kHz (for 2 sensors) Digital Inputs / Outputs Analog -- 2 sensor female connectors (16-pin), -- 1x Ethernet (PC, 100 Mbit/s), -- 1x EtherCAT (for further I/O modules or sensors with EtherCAT interface, -- 1x RS422 (PC max. 691,2 kBaud) (galvanically isolated), -- 2 plug-in terminal blocks (13 pins each) -- Voltage 0…5 V, (parameterisable to 0…10 V, -5…5 V, -10…10 V), 100 kHz, 16-bit, -- Current 0 … 20 mA, 4 … 20 mA (parameterisable) Filter: Average variable 1…1024 / recursive 1…32768, median 3,5,7,9 Zero, mastering, synchronization Functions Triggering (measured value output, edge, gate, SW) Limit values (UL, LL, UW, LW, OK) Calculation: D = A*M1 + B*M2 + C Scaling the measuring ranges Measuring unit, decimal places Firmware Measurement configurations can be saved (max. 5), two languages (English, German), can be updated Keys Membrane keypad Displays Bright graphical display, approx. 52 x 30 mm, LED for the successful controller / sensor, Ethernet and EtherCAT Power supply 24 VDC ±15 %, protected against polarity reversal Current consumption 200 mA (for 24 V, increases when sensors are connected) Power supply of the sensors maximum two sensors from internal supply 24 VDC ±15 % EMC EN 61326-1 10.2006, EN 61000-6-2 03.2006 EN 55011 (Group 1, Class B) 11.2007 Protection class III, SELV circuits according to DIN EN 61140 Insulation test 250 V DC according to DIN EN 50178 (SELV) Weight approx. 500 g -- 2x push-pull sockets Connectors -- 2x RJ45 / 1x DSUB 9-pin -- 2x plug-in spring terminal CSP2008 Case dimensions approx. 146 x 103 x 69 mm³ Special feature optional key switch (laser on/off) for sensors with the laser class 3R Protection rating IP 40 Operating temperature 0 °C to 50 °C (+32 to +122 °F) Storage temperature -20 °C to 70 °C (-4 to +158 °F) Relative air humidity 5 up to 95 %, non-condensing Page 10 Functional Principle, Technical Data 2.5 Thickness Measurement with ILD 1700 This chapter describes a comparative thickness measurement using two optical laser sensors of the series ILD 1700. The display shows the displacement values and the thickness value (absolute dimension) of each sensor on the CSP2008. The distance of both laser sensors from each other is not precisely known, see Chap. 5.3.10.6. For the thickness measurement, the CSP2008 needs a measurement object of known thickness (= master value) once at the start of the thickness measurement. Starting from this, the CSP2008 calculates the distance of both laser sensors of the series ILD 1700 from each other and thus the thickness of the target, see Chap. 5.3.10.3. The following description requires that the sensors are connected, the laser activation is on, the voltage supply at the CSP2008 is switched on and that the CSP is connected via Ethernet to the network (PC), see Chap. 5.2. Zero teach in Sensor 1 laser on t te DQ1 Sensor 1 optoNCDT SER R T s 6 8 5 1 1 =67 7 Input 1 Block 2 Mastering Master value SMR 2 Display Thickness Measured value 1 Output Block 2 Mastering Displacement Sensor 1 Measured value 2 Output Sensor 1 Input 2 Master value Block 1 Calculation A*DQ1+B*DQ2 + C SMR 1 E DQ2 Sensor 2 Displacement Sensor 2 Measured value 3 Sensor 2 Output Sensor 2 CSP2008 Fig. 5 Measuring principle and calculation schedule in CSP2008 SMR 1/2 Start of the measuring range Input 1/2 Signal Sensor 1/2 Loading the parameter set into the CSP2008 Selecting of the parameters. All settings of one measurement procedure are saved by the CSP2008 within one parameter set. Load/save settings, see Chap. 5.3.12. When the Browse button is pressed, the Windows Explorer window is opened to select the saved configuration file. The path is cached when the selected file in the selection window is opened. The loading of the selected file is then performed by clicking the Import setup, see Chap. 5.3.12 button. The program as well as the settings are now saved in the controller under the preselected Setup No. and the controller operates with the new values after completion of the loading process. Therefore, no reboot in the controller is also performed. CSP2008 Page 11 Functional Principle, Technical Data Registering the connected sensors on the CSP2008 The controller needs this information for the selection of the data protocol with the laser sensors. The CSP automatically determines the characteristics of the sensor, e.g. measuring range. Menu Data recording > Sensor, see Chap. 5.3.9.2. If Serial number and Measuring range are not displayed, the sensor is detected as not active. Sensor 1 Sensor selection: ILD1700 Baud rate: 115200 Serial number: 11040012 Measuring range: 20 Auto scaling: Characteristic >> Key lock: Measuring rate: 2.5 kHz Factory setting Sensor Reset Master clock CSP2008, synchronize sensors The master clock controls the timing in CSP2008. The time base is based on the measuring frequency of the connected sensors. To avoid a wrong thickness result through a displacement of the object to be measured, both sensors record a measurement value at the same time. This is achieved through a synchronization of the sensors. For both sensors the operating mode is set to Synchronous. Menu Data recording > Time base. Time base Cycle selection: Internal Master clock in kHz: 2.5 Operating mode: Synchronous Divider calculation frequency: 1 Synchronization pulse Sensor 1 Divider synchronization: 1 Offset: 0 Synchronization pulse Sensor 2 Divider synchronization: 1 Offset: 0 Submit the settings to CSP2008 Submit Master input Input for mastering (for example push button) is connected on the terminal block, input Zero. Definition of the times for mastering and ending mastering. Menu Digital CSP inputs > Terminal block Zero. Terminal block zero Active: Low Set zero duration in ms: 10 Reset duration in ms: 3000 Trigger an event manually: Zero out Trigger an event manually: Reset Submit settings to CSP2008 CSP2008 Submit Page 12 Functional Principle, Technical Data Calculation blocks The routines for determining the thickness value and the master value with 10 mm are stored in the calculation blocks. Calculation Program Data sources Calculation parameter Block 1 Calculation Data source 1 Sensor 1 Block 2 Mastering Data source 1 Block 1 Calculation Digital source 2 Sensor 2 A = -1, B = -1, C = 0 Digital source 2 Zero Master value = 10 mm Display It is specified in the display settings which results should be displayed on the CSP2008. Data output / Display Thickness Distance Sensor 1 Distance Sensor 2 Measured Value 1 Measured Value 2 Measured Value 3 Output Block 2 Mastering Sensor 1 Sensor 2 Averaging 5 5 5 Thickness value Meass.Value 1 in mm +010.000 Meass.Value 2 Meass.Value 3 +006.170 +007.804 Sensor 1 Sensor 2 Analog output Here you set the scaling and the output mode of the analog output. Menu Data output > Analog CSP2008. This sample program uses the analog current output of 4 ... 20 mA for the master value. With the defined output values (minimum and maximum) this results in an output current of 12 mA at the master’s time. Analog value 1 Output: Block 2 - Mastering Output type: 4 ... 20 mA Minimum output value in mm: 5.000000 Maximum output value in mm: 15.000000 Error handling: Hold last value Ethernet With the data output via Ethernet you define, which measured values will be presented in the Web interface or transmitted via Ethernet to the PC. Data output / Ethernet Output Thickness Distance Sensor 1 Measured Value 1 Measured Value 2 Block 2 Mastering Sensor 1 Distance Sensor 2 Measured Value 3 Sensor 2 Saving Saving of the parameter set, if you have made changes to these settings. Menu Load/save settings > Load CSP2008 setup from PC, see Chap. 5.3.12 . Save the parameter set in a file, if required. Menu Load/save settings > Load CSP2008 setup from PC, see Chap. 5.3.12. You will find the file <Setup(n).meo> in the desktop of your PC. Start measurement -- Put the master measuring object between the sensors. -- Start mastering; therefore use the push button on the zero input. i You will find complete programs (setups) for the thickness measurement with laser-optical displacement sensors and optical precision micrometers on the supplied CD or under http://www.micro-epsilon.de/accessories/ Unicontroller. CSP2008 Page 13 Delivery 3. Delivery 3.1 Supplied Items, Unpacking Check for completeness and transport damage immediately after unpacking. Supplied items: -- 1 CSP2008 Controller -- Assembly instructions with operating menu -- 1 patch cable, Cat5e/FTP, 1 m long -- 1 CD-ROM with operating manual -- 2 Terminal strips Check for completeness and transport damage immediately after unpacking. Contact MICRO-EPSILON or your supplier immediately in the case of damage or incompleteness. 3.2 Storage Storage temperature: -20 ... +70 °C (-4 to +158 °F) Humidity: 3.3 5 - 95 % (non-condensing) Optional Accessories -- Connection cables for ILD1402, ILD1420, ILD1700, ILD2200, ILD2220 and ODC2500/2520/2600 with a length of 3 m or 10 m: PC1402-x/CSP connection cable between ILD1402/1420 and CSP2008, x in metres PC1700-x/CSP connection cable between ILD1700 and CSP2008, x in metres PC2200-x/CSP connection cable between ILD2200 and CSP2008, x in metres PC2300-x/CSP connection cable between ILD2300 und CSP2008, x in metres PC/SC2520-x/CSP connection cable between ODC2520 and CSP2008, x in metres, SCD2500-x/CSP connection cable between ODC 2500/2600 and CSP2008, x in metres, without sensor power supply SC2471-x/CSP connection cable between confocalDT 2451/2461/2471 and CSP2008, x in metres The connection cables between sensor and Universal Controller are suitable for use with robots. Standard lengths x = 3 m and 10 m, other lengths on request. -- Extension cable SCD422-0,1/RS422, 0.1 m -- IF/RS422/USB adapter from RS422 to USB including driver for Windows XP -- Power supply PS2020, power supply for DIN rail mounting, input 230 VAC, output 24 VDC/2.5 A -- Industrial Ethernet / EtherCAT patch cable with RJ-45 connector, various lengths from 0.17 m to 10 m. They enable fast and easy wiring to other modules over short distances in the switch cabinet. -- EL4102, Analog output terminal 0 V up to +10 V, 2 channels (16 bit), EtherCAT -- EL4132, Analog output terminal -10 V up to +10 V, 2 channels (16 bit), EtherCAT -- EL4024, Analog output terminal 4 ... 20 mA, 4 channels (12 bit), EtherCAT -- EL2002, Digital output terminal, 24 VDC/ 0.5 A, 2 channels, EtherCAT -- EL2002, Digital output terminal, 24 VDC/ 0.5 A, 2 channels, EtherCAT -- EL2004, Digital output terminal, 24 VDC/ 0.5 A, 4 channels, EtherCAT -- EL3142, Analog input terminal 0 ... 20 mA, 2 channels (16 Bit), EtherCAT -- EL3162, Analog input terminal 0 ... 10 V, 2 channels (16 Bit), EtherCAT -- EL1002, Digital input terminal 24 VDC/3 ms, 2 channels, EtherCAT -- EL1012, Digital input terminal 24 VDC/10 µs, 2 channels, EtherCAT -- EL1014, Digital input terminal 24 VDC/10 µs, 4 channels, EtherCAT -- EL1104, Digital input terminal 24 VDC/3 ms, 4 channels, EtherCAT -- EL5101, Incremental encoder interface, RS485 Differential inputs, EtherCAT -- EK1122, 2-port EtherCAT deviation -- RS422 Extension terminal CSP2008 Page 14 Installation and Mounting 4. i Installation and Mounting Pay attention to careful handling during the installation and operation. The CSP2008 must be installed when disconnected from the power supply. 4.1 Mounting Controller Attach the controller to a DIN rail, Type TS35. Observe the minimum bending radii of the connection cables. GNDA Shield 0V GNDA Shield 96.8 (3.81) 103.1 (4.06) Out2 GND Ana1 0V Ana2 Out1 GND Shield PE GND PE 24V 24V GND Shield Sync/Out GND Sync/Trig Zero GND Mounting on DIN rail TS 35 35 (1.38) 3.3 (.13) Laser ESC 45.2 (1.78) 146 (5.75) Dimensions in mm (inches) Mass appr. 500 g Slider 57.9 (2.28) 69.1 (2.72) Fig. 6 Dimension drawing CSP2008, dimensions in mm Move the slider on the bottom side of the controller down to remove the controller from the DIN rail. 4.2 General Rules for the Installation -- Connect cable shields with the equipotential bonding (PE, earth conductor) on the evaluation unit (switch cabinet, PC case) and prevent earth loops. -- Never lay signal cables 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. 4.3 Pin Assignment 4.3.1 Terminal Strips The two plug-in terminal strips (FMC 1.5/13-STF-3.5, see Fig. 7) are designed for a wire cross section of 0.25 mm² to 1.5 mm². The terminal strips are mounted on the controller with two screws and can be removed for the wiring or a fast controller change. CSP2008 Page 15 GND Ana1 GNDA Shield GNDA Shield Out2 0V 0V Shield PE Ana2 Out1 GND PE GND 24V 24V Shield Sync/Out GND GND Laser Sync/Trig Zero GND Installation and Mounting Fig. 7 Terminal strips on the controller The orange plunger above the wire connection must be firmly pressed in using a suitable screwdriver to plug in and detach the wire connections on the terminal strips. Pin Description Conditions Potential isolation Digital inputs Sync/Trig Trigger input, can be disabled, polarity can be programmed TTL no Zero Reset / Mastering input TTL level no Laser Laser on / off input TTL level no Digital outputs SyncOut Synchronous output, can be disabled, polarity can be programmed TTL no Out1 Out2 Digital switching outputs, function can be programmed TTL no Ana1 Ana2 Independent analog outputs, 100 kHz, 16-bit, function and type (U, I) can be programmed, enable parallel capacitor 10 nF directly on the terminal device Voltage: 0…5 V, 0…10 V, -5…5 V, -10…10 V, Ri = 100 Ω, current: 4...20 mA, 0...20 mA, max. load 300 Ω yes GNDA Analog outputs reference ground --- yes 24 V 0V Operating voltage 24 VDC, protected against no polarity reversal PE Equipotential bonding connected to connector cases and shield yes GND Reference grounds assigned, connected no Shield Shielding for the respective output, connector case Common for Sync/Trig and yes /SyncOut, Out1 and Out2 Fig. 8 Pin assignment of the terminal strips CSP2008 Page 16 Installation and Mounting 4.3.1.1 Power Supply Connect the inputs 24 V and 0 V to a 24 V power supply. MICRO-EPSILON recommends the use of the optionally available power supply PS2020 for the controller. Features: DIN rail mounting, input 230 VAC, output 24 VDC/2.5 A. + + ESC Protective earth conductor GNDA Shield GNDA Shield Out2 GND Ana1 0V Ana2 Out1 GND GND Shield PE 24V PE GND Shield Sync/Out GND Sync/Trig Zero GND Laser L1 N 230 VAC PS2020 Fig. 9 Power supply of the CSP2008 with a PS2020 4.3.1.2 Laser Switch On The digital input has overload and reverse polarity protection. Connect the inputs Laser and GND in order to switch on the laser beam of the connected sensors, see Fig. 7, see Fig. 10. A connection of the input to GND using a button or a transistor (NPN - Open Collector) is sufficient for starting. The laser beam of the connected sensors is switched off for open inputs. CSP2008 VCC 3.3 V 20 kOhm 4.8 kOhm Shield GNDA Out2 GND Ana1 Shield Out1 GND GND GND Shield Sync/Out Sync/Trig Zero/Laser/Sync_Trig Shield GNDA 0V 0V Ana2 PE PE 24V 24V Zero GND 2.2pF GND GND Fig. 10 Input circuit (TTL) for reset (Zero), laser and synchronization / triggering (Sync_Trig) 4.3.1.3 Inputs for Reset, Synchronization and Triggering The digital inputs have overload and reverse polarity protection. Connect the inputs Zero or Sync/Trig to GND in order to initiate the function, see Fig. 7, see Fig. 10. A connection of the input to GND using a button or a transistor (NPN - Open Collector) is sufficient for starting. The direction (LOW or HIGH) of the activated input Sync/Trig or reset (Zero) is specified in the basic settings of the terminal block, see Chap. 5.3.6.1. CSP2008 Page 17 Installation and Mounting 4.3.1.4 Switching Outputs, Synchronization Output The tri-state digital outputs have ESD protection and can be loaded with maximum 20 mA. CSP2008 VCC 3.3 V 100 Ohm Out 1/2 max. 20 mA Fig. 11 Output circuit (TTL) of the switching outputs (Out1/2) and synchronization output (SyncOut) GND GND 4.3.1.5 GND Reference Grounds The GND reference grounds are connected to each other, but must be assigned and separately connected to the peripherals. Connect the terminal PE to the earth conductor connection of the mains power supply. 4.3.1.6 Analog Outputs The analog outputs (Ana1 / Ana2) are protected against electrostatic discharge (ESD). They are jointly potential-separated from GND and have common reference ground GNDA. Micro-Epsilon recommends a parallel capacity of 10 nF provided by the customer directly at the terminal device for interference suppression. 4.3.2 Sensor Connections At the two sensor connection sockets, up to two sensors can be connected with the digital output (e.g. ILD1402) using special connection cables from the optional accessories. The controller automatically detects the measuring ranges of the sensors. Plugging in and detaching the sensor connections: Position the red marking points of plug and socket opposite each other and now plug them both together. Additional guidance grooves on the sensor connectors prevent them from being connected incorrectly. Hold the connectors on the grooved grips (outer sleeves) and pull them apart without twisting to undo the plug connection. Pulling on the cable and the lock nut only locks the plug-in connectors of the type ODU MINI-SNAP FP and does not release the connection. i It is important that the cable is never subjected to excessive pull force. Install a strain relief close to the controller. Do not twist the plugged connection. i PC1700-X/CSP cable orientation: connector with label to CSP2008 other connector to ILD1700. CSP2008 ILD1700 Label ESC The LED next to the sensor connections is on, if na1 0V hie d 0V NDA hield hie d Ou 2 GND GNDA PE Ana2 hie d Ou 1 GND GND PE GND nc/Ou D 24V ync Trig CSP2008 24V -- the sensor is connected, -- the sensor is configured correctly, see menu Data recording > Sensor connections. The power supply for the two sensors is provided by the controller. Exceptions are the sensors/controller with separate power supply (e.g. optoCONTROL 2500). Page 18 Installation and Mounting The sensors are activated if the sensor connections have been configured correctly and laser switch off is deactivated, see Chap. 4.3.1.2. 4.3.3 RS422 The galvanically isolated RS422 port has a maximum baud rate of 691.2 kBaud. The baud rate in the delivery condition is set to 115.2 kBaud. Data format default settings: 8 data bits, no parity, one stop bit (8,N,1). The signals of the transmitter Tx and receiver Rx are cross connected. The reference grounds (GND) of controller and receiver (e.g. PC or PLC) must be connected. This connection can also be made via the cable shield, if a 4-pin screened cable is used. It is advisable to use shielded cables with twisted pairs for Rx and Tx. 9-pin standard RS232 cables are not suitable. Pin Description/Signal Note/Circuit 1 Output Tx- 2 Input Rx+ Internal terminated with 120 Ohm 3 Input Rx- 4 NC 5 GND reference ground 6 NC 7 NC 8 NC 9 Output Tx+ 4.3.4 Ethernet The TCP and UDP Internet protocols are used for connecting the Universal Controller via the Ethernet port. A PC with a Web browser and a free Ethernet port or a network connection is required for this. The standard protocol is TCP/IP. Connect the controller (Ethernet) to a PC using an Ethernet direct connection (LAN) or switch (Intranet). Use a LAN cable with RJ-45 connectors for this. GNDA Shie d GNDA Shie d Out2 GND Ana 0V 0V Ana2 Out GND Shie d PE GND PE 24V 24V GND Shie d Sync/Out GND Sync Trig GND Zero 4.3.5 Laser ESC EtherCAT The sequence of extension terminals must comply with the actual arrangement in the bus. The terminals follow on the bus coupler EK1100. The following sequence is to observe at the terminals: Analog / Digital output terminals, Analog- / Digital input terminals, RS422 extension terminal. Make sure that the individual components are securely locked into the rail. The bus must be locked up with the bus end terminal. CSP2008 Page 19 EK1100 Installation and Mounting ELxxxx EtherCAT coupler ELxxxx Analog/Digital output terminals EK1122 Analog/Digital input terminals RS422 extension terminal 2-port EtherCAT junction EL9010 Bus end terminal Fig. 12 Example configuration EtherCAT with output and input terminals L1 L2 L3 N PE L/A 24V0V Sensor 1 L/A + + Sensor 2 - Damage of extension terminal by balancing current. Connect either the extension terminal (PE terminal) or the DIN rail to the protective earth connection of mains power. - RUN I II EK1100 PE PE 1 24V 24V 0V 0V PE PE Laser GND EL3162 EL9010 230 V Power supply system 1A 10AT 230 V 24 V Minus 24 V 230 V 24 V Power supply Field PE Fig. 13 Separate power supplies for the system and field supply Do not connect the protective earth connection PE of RS422 extension terminal with the supply ground of system respectively field supply. As a result, the bus communication is disrupted or the RS422 extension terminal damaged. Connect the inputs laser and GND to the RS422 extension terminal in order to switch on the laser beam of the connected sensors, see Fig. 13. A connection of the input to GND using a button or a transistor (NPN - Open collector) is sufficient for starting. The laser beam of the sensors, connected to the RS422 extension terminal, is switched off for open inputs. Connect the controller (EtherCAT) with an EtherCAT bus coupler. Use a LAN cable with RJ-45 connectors. ESC MessWert 1 in MM CSP2008 GNDA Shie d GNDA hie d Out2 GND Ana1 0V 0V Ana2 Out1 GND PE GND Shie d PE 24V 24V GND Shie d Sync/Out GND Sync Trig Zero GND EL3162 EL9010 Laser +003.98 EK1100 1) Connect either the extension terminal (PE terminal) or the DIN rail to the protective earth connection of mains power. Page 20 Operation 5. Operation 5.1 Getting Ready for Operation The Universal Controller CSP2008 must be installed in accordance with the installation instructions, see Chap. 4.1 and connected to an automation unit, e.g. PLC, and the power supply in compliance with the connection instructions, see Chap. 4.3. After switching on the operating voltage, the Universal Controller performs an initialization sequence and goes into the measurement operating mode afterwards. The display shows the measured values of the connected sensors in accordance with the selected setting. The laser operation on optical sensors is only indicated at the sensor by an LED. If no measured values are shown on the display, check whether the sensors are switched on and whether a target is in the measuring range of the sensor. 5.2 Operation Using Ethernet Dynamic web pages are generated in the controller which contain the current settings of the controller and the peripherals. The operation is only possible while there is an Ethernet connection to the Universal Controller. 5.2.1 Requirements You need a web browser on a PC with a network connection. Decide about connecting the CSP2008 to a network or directly to a PC. The CSP2008 is delivered as standard with a fixed IP address. If you do not require a static IP address, you can enable DHCP (Dynamic Host Configuration Protocol) as automatic IP address allocation. The controller will be assigned an IP address by the DHCP server, see Chap. 5.2.2. If you have set your browser so that it accesses internet through a proxy server, please add the IP address of the controller to the IP addresses that should not be routed through the proxy server in the settings of the browser. You will find the MAC address of the measurement device on the label of the controller and on the acceptance protocol. Parameter Address type IP address Gateway Subnet mask Description Static IP address (standard) or dynamic IP address (DHCP, Standard) Static IP address of the controller (only active if no DHCP is selected). Gateway to the other subnets Subnet mask of the IP subnet Automatic detection (standard) 100 Mbit/s half duplex, Media type 100 Mbit/s full duplex Fig. 14 Basic settings Ethernet Universal controller You can also select the media type in this menu. “automatic detection” is standard here. If there are problems with this, you can specifically set the controller to “100 Mbit/s half duplex” or “100 Mbit/s full duplex”. “Javascript” must be activated and updated in the browser for the graphical display of the measurement and calculation results. You need a HTML5 browser. Micro-Epsilon recommends to use the Google Chrome, version 49.0. CSP2008 Page 21 Operation 5.2.2 Access via Ethernet Direct connection to PC, controller with static IP (factory setting) PC with static IP PC with DHCP Connect the controller (Ethernet connector) and the PC with a Ethernet direct connection (LAN). Therefore use a LAN cable with RJ-45 connectors. For the direct connection the controller needs a fixed IP address. Start the program SensorFinder. exe. ••Gateway: 169.254.1.1 ••Subnet mask: 255.255.0.0 ••Password: ••• Changing the address type requires the controller password. Click on the button Change, in order to transfer the changes to the controller. Click on the button Start Browser in order to connect the controller to your standard browser. Alternatively change the IP settings according to the settings of your PC (IP address ranges must fit together). Connect the controller with a switch with a Ethernet direct connection (LAN). Therefore use a LAN cable with RJ-45 connectors. Wait until Windows has estab Enter the controller in the DHCP / regislished a network connection ter the controller in your IT department. (Connection with limited conThe sensor gets assigned an IP address nectivity). from your DHCP server. You can check Start the program Sensor- this IP address with the SensorFinder.exe Finder.exe. program. You will find this program on the delivered CD. Click the button Find sensors. You will find this program on Select the designated sensor from the delivered CD. the list. In order to change the Click the button Find address settings, click the button sensors. Select the Change IP-Address. designated sensor from ••Address type: static IP-Address the list. ••IP address: 169.254.168.150 1 Network Controller with dynamic IP, PC with DHCP Click the button Start Browser to connect the sensor with your default browser. Now start the SensorFinder.exe program. You will find this program on the provided CD. Click the button Find sensors. Select the designated sensor from the list. Click the button Start browser, to connect the sensor with your default browser. Alternatively: If DHCP is used and the DHCP server is linked to the DNS server, access to the controller via a host name of the structure “CSP2008_SN<serial number>“ is possible. Start a web browser on your PC. Type “„CSP2008_serial number“ in the address bar of your browser. Requires, that the LAN connection on PC uses e.g. the following IP address: 169.254.168.1 1) Interactive web pages for programming the controller and peripherals are now shown in the web browser. In the top navigation bar further help functions e.g. Measurement are accessible. All settings in the web page are applied immediately in the controller after clicking the button Submit. Fig. 15 First interactive web page after calling the IP address The parallel operation with keyboard and web browser is possible; the last setting applies. Do not forget to save. The appearance of the web pages can change depending on the functions and the peripherals. Each page contains descriptions of the parameters and thus tips to configure the web site. CSP2008 Page 22 Operation 5.2.4 Measured Value Presentation with Ethernet Start the demonstration diagram display Measurement in the horizontal navigation bar. The control and display of the diagram are loaded in the browser which continues to run there autonomously while the CSP2008 continues to operate independently of this. i If you let the diagram or value display run in a separate tab or window of the browser, you do not have to restart the display every time. Select Chart or Save continuously from the vertical navigation bar. Click on the button Start to start the display of the measurement and calculation results. Click on the button Stop / Save to save the previously accumulated measurement and calculation results in a CSV compatible file inclusive timing information. As only one of both functions via Ethernet can be active, the demo cannot be started until a possible saving of the measurement values via Ethernet has been finished. Fig. 16 Presentation of the measurement and calculation results Each curve can be deactivated and activated using the associated checkbox (checkmark). In addition, the horizontal scrolling (slider) is possible in the diagram. With the menu item Save continuously you can let save up to six results of sensor inputs or calculation blocks with a variable number of decimal places as a frame in an Excel-compatible file without timing information. A requirement for this is that the measurements to save for output via Ethernet, see Chap. 5.3.11.2, were defined. CSP2008 Page 23 Operation Save measured values Save every: n. measurement value average/without average Sub-sampling: 200 Limit output to: Measurement value count | Megabyte Number/Size of the measured values Decimal places 200 3 Saving Stop saving The button Saving starts the saving operation. The button Stop saving is used in order to stop the saving before the above condition (Max. values or file size) is reached. The individual measured values are summarised in a line. The values are separated from each other by a semicolon. The measured values (channels) are stated in millimeters. Each line is terminated by “CR” (hex: 0D0A). This makes easy further processing in a spreadsheet program possible. Measured value 1 Measured value 2 Measured value 3 26,774; 6,047; 15,910 26,759; 7,287; 14,685 26,753; 8,442; 13,536 26,720; 9,347; 12,665 26,709; 10,042; 11,980 26,704; 10,434; 11,594 Fig. 17 Example: Measured values in ASCII code adjusted with „Saving continuously“ CSP2008 Page 24 Operation 5.3 Operating Menu 5.3.1 General It is possible to operate the controller in parallel using the buttons on the controller or with the Web interface. The last setting applies. Do not forget to save. Overview Configuration Login Country settings Display settings Ethernet connection Digital CSP2008 inputs Digital CSP2008 outputs EtherCAT Devices Data recording Calculation Data output Password input, change user Language selection, measuring unit, separator Decimal places, leading sign IP settings, measured value server Terminal block, synchronization, triggering, zero Software switching outputs Log in extension clamps, initiate bus Setting the data sources, scaling the inputs, time basis Selection of the calculation function, parameters Display, Ethernet, EtherCAT, analog output, switching outputs, RS422, Load/ save settings Factory settings Measuring, save measured values in file Prepared configurations, see Chap. 5.3.12, can be loaded from the ME website. 5.3.2 Login, Change User The allocation of a password prevents unauthorized data inputs. The password protection is not activated with the delivery. The controller operates in the “Professional mode”. If the configuration of the controller has been finished, the password protection should be activated. The default password is “CSP” for the professional. i The default password or a defined password is not changed by a software update. The password for the professional is independent of the setup and is therefore not loaded or stored together with the setup. The following function is accessible for the user in the Measurement mode: -- Display layout Password required Display selection View settings Change settings change password Fig. 18 Rights in the user hierarchy User Professional no yes yes yes yes yes no yes 5.3.2.1 Change to User Mode This mode enables only the review of all settings and the changing of display layout. Click on the button Submit in the user mode User. CSP2008 Page 25 Operation 5.3.2.2 Change to Professional Mode Type in the default password CSP or a custom defined password, see Chap. 5.3.2.3, in the Password field and confirm with Login. 5.3.2.3 User Defined Professional Password The user management allows to define a user defined password in the mode Professional > Change Password. Password 5.3.3 Value Submit For all alphanumeric passwords, the upper / lower case is respected. Special characters are not allowed. Country Settings This menu item allows a change of the language of the interactive websites and the selection of the measuring unit. Menu language (Menü-Sprache) German / English Language of the interactive websites and in the controller display Measuring unit Millimeter / Inch Measuring unit for the internal calculation and the data output Separator Comma / Semicolon Sets the separator in order to separate measured values in a file 5.3.4 Display Settings In this menu you set the number of decimal places in the controller display. This allows a change of language of the interactive websites and the selection of measuring unit. Measured value display 2 / 3 ... 6 decimal places Leading sign, Checkbox error display, key lock Background color Number of decimal places on controller display Leading sign: Display values can always be shown with leading signs because of the clarity. Negative measured values are always preceded by a leading sign. Error display: When activating rather than the „000.000“ a „---“ is set in the case of an error. Key lock: When activated an operation of the controller with the buttons is not possible. red / green / yellow / Blue / pink / cyan / white / off auto Switching output Upper/Lower limit / Upper/Lower warning / IO Active LOW / HIGH Selection of background color on the display. A color change from green to red or vice versa is affected by selecting ‚Auto‘, if the conditions for a switching output to be chosen are violated. Fields with a grey background require a selection. Dark bordered fields Value require the specification of a value. CSP2008 Page 26 Operation 5.3.5 Ethernet Connection 5.3.5.1 IP Settings Basic Unit Ethernet interface settings of the CSP2008 Universal Controller. Address type Static IP Use of a fixed IP address DHCP Dynamic IP address. Automatic integration of a new computer in an existing network without configuring it manually. A dynamic LinkLocal address is also possible as an alternative. IP-Adresse CSP Value Setting a fixed IP address. Gateway Value Setting of a gateway Subnet mask Value Setting of the subnet mask. Media type automatic detection / 100 Mbit/s half duplex / 100 Mbit/s full duplex Type of Ethernet connection. Selection required. 5.3.5.2 Measured Value Server Setting the IP address and the Transfer type for the connection to a measured value server. The measured value server is the destination of the measured values and can be a PC or PLC in the network. The PCs for the programming and the demonstration program are not measured value servers. Transfer type No transfer No transfer activated Server TCP|IP (PC Client) Client TCP|IP (PC Server) Transfer of the measured values using TCP/ IP protocol. If the measured value server is not reached, another connection attempt is made every 100 ms Client UDP|IP (PC Server) Transfer of the measured values using UDP/IP protocol IP address PC/PLC Value Setting an IP address of the measured value server Port Value Setting the port on the measured value server; min: 21 max: 32384 You can write to a server yourself as a measured value server or use a module, e.g. in ICONNECT or Labview. The data transfer uses “Little Endian” as the data format. Here, the byte with the lowest value bits (least significant bits) is saved first, i.e. at the smallest memory address. Further information about the data format, see Chap. 5.7.2. 5.3.6 Digital Inputs CSP2008 5.3.6.1 Terminal Block Synchronization/ Triggering Mode Digi In / Sync / Input for Digital In (Calculation programs Statistics and Mastering), see Chap. 5.3.10.6, use synchronization or triggering, Trigger / see Chap. 5.4. Edge/Level Level / Edge Active High / Low Manual trigger Checkbox active Activate trigger Checkbox Input responds to the edge or the level of the signal. Determines the direction of the active edge or the trigger level. Activates software trigger; switches off the external hardware trigger. Activates software trigger level 5.3.6.2 Terminal Block Zero Active Level selection for the zeroing input; this is used as the digital input in the calculation block “Mastering” and “Statistics” Set zero duration in ms Value 1 … 60000 Reset duration in ms Value 10 … 60000 Set zero / Reset CSP2008 High / Low Button activates the zeroing or reset. Page 27 Operation 5.3.7 Digital CSP2008 Outputs To combine external events with the controller software switching outputs can be used. The software switching outputs are typically set with a command, see Chap. 11.8. By using the Settings> Digital CSP2008 outputs menu the switching outputs can be set or deleted. CSP2008 Page 28 Operation 5.3.8 EtherCAT Devices This menu item contains all the settings for connecting additional analog and digital I/O modules in the EtherCAT bus. EK1100 EtherCAT coupler Analog/Digital Out ELxxxx Analog/Digital In RS422 extension terminal 2-Port EtherCATjunction ELxxxx ILD1302 / ILD1402 / ILD1700 / ILD2200 ILD2220 / ILD2300 ODC2500 / ODC2600 EK1122 Bus end terminal EL9010 ILD2300 IFC2451 / IFC2461 / IFC2471 ODC2520 Fig. 19 Hardware configurations on the EtherCAT connector EtherCAT bus Active / Deactivated Sensor configuration Radiobox for activating the EtherCAT bus. Set the radiobox on Sensor configuration, to be able for adjusting connected sensors 3 ... 6. Set the radiobox on Active and then click the Submit button. Bus coupler / Sensor --- / EK1100 / ILD2300 IFC2451 / IFC2461 / IFC2471 ODC2520 Selection of the connected sensor/ controller or of a bus coupler at the EtherCAT connector on CSP2008. Module 1 ... Module 16 --- / EL1002 / EL1012 / EL1014 / EL1104 / EL2002 / EL2004 / EL3142 / EL3162 / EL4024 / EL4102 / EL4132 / EL5101 / RS422 extension terminal / EK1122 EtherCAT switch Selection of extension clamps. The sequence of extension terminals must comply with the actual arrangement in the bus. The configuration of the connected sensors 3 up to 6 on the RS422 extension terminal is done in the menu Settings > Data recording > Sensor x, see Chap. 5.3.9.2. Fields with a grey background require a selection. Dark bordered fields Value require the specification of a value. CSP2008 You will find a description of the individual extension clamps on the web site of the BECKHOFF ® New Automation Technology company. Activate the EtherCAT bus only if all extension clamps are assigned to the modules. Page 29 Operation 5.3.9 Data Recording This menu item contains all settings for the data recording of the CSP2008. The connected sensors / EtherCAT terminals can be configured and the measuring speed can be selected here. 5.3.9.1 Definitions Sensors, controller with EtherCAT interface at EtherCAT connection need the selection of the respective bus coupler / sensor in the menu EtherCAT Devices. E herCAT RUN E hernet P wer on ERR Laser o f In ange Mid ange Error optoNCDT serstr hlun i ht in den tr hl bli ken aser l sse 2 na h DIN N 60825 1: 008-05 P 1 mW; PP=1 2 mW; t=0 5. .542 µs F=1,5 . 50 kHz; =670 nm Block 1 Calculation Data source n Sensor 3 EtherCAT Devices EtherCAT bus: Bus coupler/ Sensor: Deactivated Sensor configuration Active ILD2300 Submit the settings to CSP2008 Submit Sensors, controller with EtherCAT interface at Sensor 1/2 connection need the selection of the respective Sensor connection in the Data recording menu. If the RS422 is selected, you have to specify the baud rate of connected sensor/controller additionally. EtherCAT RUN E hernet P wer on ERR Laser o f In ange Mid ange Er or optoNCDT L se str h ung i ht in den Str hl bli ken L ser l sse 2 na h DIN N 60825-1 2008-05 P 1 mW; PP=1 2 mW; t=0 5. .542 µs F=1,5 . 50 kHz; =670 nm If EtherCAT is selected, all connected sensors/controllers can be operated via the same interface. You have to specify the sensor type additionally. No Bus coupler / Sensor may be chosen in the EtherCAT Devices, if nothing is connected to the EtherCAT connector. However, the EtherCAT bus must be enabled after completing the settings. Sensor 1 Sensor/Controller selection: ILD2300 Sensor connection: RS422 Baud rate: RS422 EtherCAT EtherCAT Devices EtherCAT bus: Bus coupler/ Sensor: Submit the settings to CSP2008 CSP2008 Deactivated Sensor configuration Active --Submit Page 30 Operation If a sensor is operated with an EtherCAT clamp, the sensor must also be adjusted to the connection type EtherCAT. Synchronization. Sensors/controllers on the RS422 extension terminal and other EtherCAT-capable sensors/controllers can be synchronized together dependent from the settings in the menu data recording> time base. RS422 extension terminal EK1100 EtherCAT coupler ILD1302 / ILD1402 / ILD1700 ILD2200 / ILD2220 / ILD2300 ODC2500 / ODC2600 For sensors series ILD2300 and controllers series IFC24xx the web interface displays a message, if the baud rate is too low for the measuring rate of the connected sensor/controller. Sensor 1 Sensor/Controller selection: ILD2300 Sensor connection: RS422 Baud rate: . . . 115200 Characteristic >> Ether Mode: Ethernet Measuring rate: 30 kHz Baud rate too low Sensors of the ODC2520 series at the connection EtherCAT respectively at the EherCAT Switch EK1122 need the selection of the appropriate Time base in the menu Data Recording. Time base Power on STATUS Cycle selection: Internal Master clock in kHz: 2.500 Operating mode: Divider calculation frequency: Continuous / Ethernet Speed LINK/ACT V TY Power/Signals 1 Light source CSP2008 Page 31 Operation 5.3.9.2 Sensor Connections The connected sensors are set on serial data output and no averaging by switching on the controller, regardless of the previous sensor settings. Sensors, which are connected to an EtherCAT extension terminal, 2-port EtherCAT junction (EK1122) or to the EtherCAT connector on CSP2008, can only be parameterized, if the EtherCAT bus is released for a sensor configuration, see Chap. 5.3.8. Sensor 1 / Sensor/Controller Sensor 2 / selection Sensor 3 1 / Sensor 4 1 / Sensor 5 1 / Baud rate Sensor 6 1 Connection type sensor 2 --- / ILD1302 / ILD1402 / ILD1420 / ILD1700 / ILD2200 / ILD2220 / ILD2300 / ODC2500 ODC 2520/ ODC2600 / IFC2451 / IFC2461 IFC2471 Selection of the connected sensors or controller on the front side of the CSP2008. The controller automatically determines the characteristics of the sensor, e.g. measuring range. 9600 / 115200 / 230400 / 460800 / 691200 / 921600 / 1500000 / 2000000 Selection of the transfer speed. The controller does not support automatic baud rate detection. RS422 / EtherCAT It differs the connection type on CSP2008 from sensors with EtherCAT interface. Serial number Value read only Measuring range Value read only 3 Auto scaling Checkbox for activating of automatic sensor scaling Characteristic Parameter A Value Parameter B / C / D Value Key lock Checkbox for activating the button lock of the sensor; this is not effective until after executing the “Submit” command. Sensor login Value Measuring rate Value, depends on sensor type Typical values Selection of the measuring rate of the confor the measurement rates nected sensor from a list. The measuring rate depends on the sensor type. The measuring -- ILD 1402: 1.5 kHz; 1 kHz; 750 Hz; 375 Hz rates for the ILD 1402, ILD1420, ILD 2300 and -- ILD 1420: 4 kHz; 2 kHz; 1 kHz; 500 Hz; ILD 1700 can be programmed. Selected values 250 Hz are confirmed by the “Select” command and -- ILD 1700: 2.5 kHz; 1.25 kHz; 625 Hz; immediately transmitted to the sensor. The 312.5 Hz “speed” LED at the sensor is also changed ac-- ILD 22xx: 10 kHz (ILD22xx), 20 kHz cordingly for the ILD 1700. The measuring rates (ILD222x) for the ILD 22xx and ODC 2500 / ODC 2520 / -- ILD 2300: 1.5 kHz; 2.5 kHz; 5 Khz; 10 kHz; ODC 2600 are fixed. The “Select measuring 20 kHz; 30 kHz; 49 kHz 4 speed” parameter is not present for these -- ODC 2500 / ODC 2600: 2.3 kHz types. -- ODC 2520: 2.5 kHz -- IFC 2451: 0.1 / 0.2 / 0.3 / ... / 10 kHz / free -- IFC 2461: 0,1 / 0,2 / 0,3 / ... / 25 kHz / free -- IFC 2471: 0.3 / 1 / 2.5 / ... / 70 kHz 5 / free Password input, for ILD2300 and IFC2451/2471 Ether Mode Ethernet / EtherCAT Measurement Edge low - high / Edge high - low Search direction Standard / Opposite for sensor ILD2520 only Measuring direction Standard / Opposite Distance target-receiver 20 / 50 / 100 / 150 mm Light source reference Function Ether Mode Ethernet / EtherCAT Measurement arrangement Peak to be measured Laser power diffuse / direct reflection Fields with a grey background require a selection. Dark bordered fields Value require the specification of a value. CSP2008 for sensor ILD2300 only First / highest / widest peak full / reduced / off If using a RS422 extension terminal or the EK1122 Required for ILD2300, which are connected to the circular sockets (sensor 1 / 2) of CSP2008. 3) When ILD2300 are operated in connection type EtherCAT. selection required. 4) Measuring rate for the ILD2300 is maximum 20 kHz with EtherCAT connection. 5) Measuring rate for the IFC2471 is maximum 25 kHz with EtherCAT connection. 1) 2) Page 32 Operation Sensor 1 / Sensor 2 / Sensor 3 1 / Sensor 4 1 / Sensor 5 1 / Sensor 6 1 Sensor selection depends on user configuration Exposure mode Meas mode / Manual mode / Alternating two time mode / Automatic two time mode Value Factory setting sensor The factory setting is programed by sensor default. After the function: no automatic connect to the controller. Sensor 3 2 ... Sensor 6 2 Characteristic Parameter A Value Parameter B / C / D Value Exposure time 1/2 for IFC2451/2471 only The sensors are not activated (Laser on) until they have been configured correctly using the menu (type, port, operating mode). i After selecting the sensor, the “Submit” command must be executed first. Afterwards, define the baud rate of the sensor in the RS422 serial port before you activate or make other settings, e.g. key lock or measuring rate. Sensor 1 / Sensor 2 Sensor 3 ... Sensor 6 Characteristic Scaling A -2.147,0 ... 2.147,0 mm Scaling B -32768,0 ... 32767,0 Scaling C -32768,0 ... 32767,0 Scaling D -32768,0 ... 32767,0 Parameter for the sensor characteristic The input characteristic of a sensor is shown as follows: A + B*x + (C*x)2 + (D*x)3. The formula converts a digital value into millimetres. The sensor values (digital values) are used for x. The values C and D are used for the adjustment of nonlinear sensor types and can be determined experimentally or referred to in the operating manual. If the auto scaling is disabled, the parameters A, B, C and D can be changed. i The values for A and B are automatically calculated from the sensor information and cannot be changed for MICRO-EPSILON sensors with digital output; C and D are then always 0.000000. In order that the CSP2008 interprets the sensor signal on an EtherCAT terminal correctly, also an input scaling in CSP2008 is required. - (Measuring range sensor [mm] * U min, Sensor) A= (U max, Sensor - U min, Sensor ) B= Example values for a displacement sensor LVP-25-x type and analog EtherCAT terminal EL3162 of the Beckhoff company with 16 bits including sign. Mearuring range sensor [nm] * (U max, EtherCAT - U min, EtherCAT) (U max, Sensor - U min, Sensor) * Resolution EtherCAT terminal -- Measuring range sensor = 25 mm = 25.000.000 nm -- U max, sensor = 5 V -- U min, sensor = 1 V -- U max, EtherCAT = 10 V -- U min, EtherCAT = 0 V -- Resolution EtherCAT terminal = 15 bit (32768) 3 -- B = 1907,348633 -- A = - 6.25 If using a RS422 extension terminal or the EK1122 Required for sensors on analog input terminals 3) Because of prefix 1 bit less. 1) 2) CSP2008 Page 33 Operation Preprocessing sensor signal Sensor 1 / Sensor 2 Ignored errors Sensor 3 ... Sensor 6 Averaging value, moving 1 … 32 Specification of averaging number Median Selection of averaging number i If the number of ignored measurement errors is exceeded, an error is triggered. 0 … 31 --- / 3 / 5 / 9 The controller can use both types of averaging on the input variables. Thereby it calculates the median at first and then the moving average. This averaging is independent of the averaging in the calculation functions, see Chap. 5.3.10.4. In the connected sensors, there is no averaging, which is automatically switched off by the CSP2008. The averaging applies especially, if sensors with different measured values are operated on the controller and all the measured values should be incorporated in the processing in the controller, see Fig. 20. The input averaging admits signal peaks, depending on the averaging depth. In contrast measured values can be specifically excluded from the processing with the parameter Divider synchronization, see Chap. 5.3.9.3. Depending on the application the input averaging or the parameter Divider synchronization is to be preferred. Ignored errors: Averaging value, moving: Median: Ignored errors: Averaging value, moving: Median: Submit settings to CSP2008 Submit Sensor 1 Sensor 1 laser on state Measured value on input 1 optoNCDT LASERSTRAHLUNG LA ER TRAHLUNG NI HT IN DEN TRAHL BLICKEN LA ERKLAS E 2 P 1 mW; = 670 nm N EN 6 25 3 NI HT IN DEN TRAHL B I KEN LA ERKL S E 2 P 1 mW; = 670 nm N EN 6 8 5 3 Sensor 2 laser on state optoNCDT Averaged measured value in input range sensor 1 Sensor 2 laser on state Measured value on input 2 optoNCDT LASERSTRAHLUNG Measured value on input 2 LA ER TRAHLUNG NI HT IN DEN TRAHL BLICKEN LA ERKLAS E 2 P 1 mW; = 670 nm N EN 6 25 3 NI HT IN DEN TRAHL B I KEN LA ERKLAS E 2 P 1 mW; = 670 nm N EN 6 8 5 3 1 2 1 N N N N S S N PE PE N N 24 Z N S 24 2 Sy y S T 1 2 ESC S N N N N N S PE PE 24 Sy N 24 Z N y S T 1 ESC N optoNCDT Submit S laser on state 0 4 --- 2 Submit settings to CSP2008 0 1 --- Fig. 20 Averaging on the controller inputs connected LEDs next to the sensor connections indicate if a sensor is connected and the baud rate of the sensor is set in CSP2008 properly, for example. Sensor1 Fields with a grey background require a selection. Dark bordered fields Value require the specification of a value. CSP2008 Page 34 Operation 5.3.9.3 Time Base The time base controls the timing of the controller, mainly for sensors with different measuring rates. Cycle selection internal / external (sync input) Selection of an internal master clock or external synchronization for the controller. If “internal” is selected, the controller shows the value in the field “period in µs”. Master clock in kHz Value Highest measurement frequency of the connected sensors. The master clock is the smallest timing unit in the controller. Value range 0.1 ... 100 kHz. When using a RS422 extension terminal, the master clock should not exceed 10 kHz. Otherwise, measuring values are transmitted twice. Operating mode Continuous Asynchronous processing of the sensors. The Divider calculation frequency parameter for the measuring frequency must be specified. Application: e.g. operation of ILD 1700 and ODC 2500. Synchronised processing of the sensors. The controller automatically determines the Divider calculation frequency parameter for the measuring frequency. Synchronous Divider calculation frequency Value 1 … 32 Matching sensors with different measuring rates to each other. The internal calculation in the controller is performed in measurement cycles. The value must be specified in operating mode continuous. The controller determines the value automatically in the operating mode Synchronous. Divider synchroniza- Value tion 1 … 32 Divider of the master clock for the output of the synchronization pulse. Divider = 1 means that a synchronization pulse is output with each master clock. Offset 0 … 31 Offset in order to move the position of the synchronization pulse in master clock. Value Measured values can be specifically excluded from processing by the parameter Divider Synchronization. However, all measured values are included in processing in the CSP2008 in the case of input averaging, see Chap. 5.3.9.2. Depending on the application either the parameter Divider Synchronization or the input averaging has to be selected. A complete acquisition, calculation and output process takes place in each master clock period, see Chap. 5.6. If the master clock period of the controller is larger than the measuring rate of the respective sensor, the previous measured values are used again for the calculation in the next cycle. If the master clock period of the controller is smaller than the measuring rate of the respective sensor, sensor values are skipped. Example Sensor 1 Sensor 2 Type ILD 2200 ILD 1700 Measuring rate 10 kHz 2.5 kHz Average value 8 Master clock Divider calculation frequency Fields with a grey background require a selection. 2 10 kHz 8 Fig. 21 Setting of the master clock for the calculation and transmission of measured values with 1250 Hz, continuous Dark bordered fields Value require the specification of a value. CSP2008 Page 35 Operation Example Sensor 1 Sensor 2 Type ILD 2200 ILD 1700 Measuring rate 10 kHz 2.5 kHz Master clock 10 kHz Divider synchronization 1 4 Offset 0 0 Fig. 22 Divider for two different sensors, synchronised in parallel Example Sensor 1 Sensor 2 Type ILD 1700 ILD 1700 Measuring rate 2.5 kHz 2.5 kHz Master clock 2.5 kHz Divider synchronization 2 2 Offset 0 1 Fig. 23 Divider for two identical sensors, alternately synchronised Example Sensor 1 Sensor 2 Type ODC 2500 ODC 2600 Measuring rate 2.3 kHz 2.3 kHz Master clock 4.6 kHz Divider synchronization 2 1 Offset 0 0 Fig. 24 Divider for two different sensors, synchronised in parallel CSP2008 Page 36 Operation 5.3.10 Calculation Configuration of the calculation blocks. One calculation operation can be performed in each calculation block. The calculation program, the data sources and the parameters of the calculation program must be set for this. Possible calculations, e.g. thickness, thickness with offset or planarity. Calculation functions: -- Standard: Computation of two signals or results according to the formula (Source1 * A + Source2 * B) + C -- Recursive, moving average, Median -- Statistics: Minimum/Maximum/Peak-Peak for analog outputs, thresholds for digital outputs -- Mastering -- Edge filter -- Minimum Maximum (MinMax) One block is assigned to each sensor input for the calculation, e.g. Block 1 = Sensor 1. Sequence for creating a calculation block, see Fig. 25: Select a program 1 , e.g. Average. Define the data source(s) and the parameters 2 . Click on the Submit button 3 . 1 2 2 3 Fig. 25 Sequence for the program selection The program Calculation has two data sources (DQ 1 and DQ 2), the average value programs each have data source 1 and the "Statistics" and "Mastering" programs each have 3 data sources. i The menu applies both for operation using display and buttons as well as using the Website. The settings are effective after "OK" (display) or Submit (Website). Sensor 1 laser on state Block 3 recursive average DQ1 Sensor 1 Digital optoNCDT Output Analog LA ER TRAHLUNG NI HT N DEN TRAHL BLI KEN A ERKLAS E 2 P 1 mW; = 70 nm a N EN 6 825 39 Block 1 Addition A*DQ1 + B*DQ2 +C Block 2 moving average Switch signals a N EN 6 825 39 P mW; = 70 nm A ERKLAS E 2 NI HT N DEN TRAHL BLI KEN LA ER TRAHLUNG optoNCDT state aser on Sensor 2 DQ2 Sensor 2 CSP2008 Block 4 limit values Trigger Fig. 26 Example for possible calculations CSP2008 Page 37 Operation Program selection Data source Calculation parameters (Program calculation) Calculation parameters (Program average value) --- / Calculation / Average / Statistics / Mastering / Edge filter / MinMax Data source 1 / Data source 2 --- / Sensor 1 / Sensor 2 / Sensor 3 ... Sensor 6 Block 1 ... Block 9 Selection of a sensor signal or calculation block. Feedback couplings are not possible. Sensor 1/2 stands for on the front side of the controller connected sensors. Sensor 3 ... 6 stands for sensors at the EtherCAT terminals. Digital source 2 / Digital source 3 --- / Zero / Sync / Selection of a digital data source from the spring terminal block (Zero, Sync) Parameter A Value -32768.0 … 32767.0 Parameter B Value -32768.0 … 32767.0 Parameter C Value -2147.0 ... 2147.0 mm Average type Recursive/ Moving/ Median Recursive: 2 … 32768 Average value Value Moving: 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024 Median: 3 / 5 / 7 / 9 Calculation parameters (Program statistics) Calculation parameters (Program mastering) Calculation parameters (Program edge filter) i Selection of calculation function Limit type Absolute/ relative/ peak to peak Upper limit Value Lower limit Value Specification of a value for the parameters A, B and C. Specification of the averaging type. Specification of the averaging number. The averaging number N states over how many sequential measured values in the controller should be averaged before a new measured value is output. Selection of the limit value type. -2147.0 … 2147.0 mm Specification of a value for limit and warning values. Upper warning Value Lower warning Value Hysteresis in mm Value -2147.0 … 2147.0 mm Value by which the signal must drop so that the limit values are revoked. Delay in cycles Value 0 … 999 Time until activation of the limit values when exceeded as multiple of the master clock. Hold time in cycles Value 0 … 999 Time for the active limit value / switching output as multiple of the master clock. Window depth in cycles No window / 1 cycle / 2, 4, 8, 16, 32, 64, 128, 256, 512 or 1024 cycles Length of the evaluation time as multiple of the master clock. Unlimited evaluation with “no window”. Master value Value Specification, e.g. of the thickness, of a master part. Saving master value Checkbox If the checkbox is ticked off, then the selected master value is saved at each update. Upper threshold Value -2147.0 … 2147.0 mm Threshold value at which the following measuring values N are replaced by the latest measuring value prior to exceeding the threshold. Lower threshold Value -2147.0 … 2147.0 mm Threshold value at which the edge filter is switched off. Ignored/substitued measuring values N Value 1...32768 Maximum amount of measuring values for which the edge filter can be applied. -2147.0 … 2147.0 mm After the programming, all settings in the Parameter Management (Basic Settings menu) must be permanently stored under a Setup No, so that they are available again when the Universal Controller is switched on the next time. CSP2008 Page 38 Operation 5.3.10.1 Definitions The block number of the previous module must always be used for the definition of data sources of a program. Confirm all settings with Submit before you activate another button or menu item. Block 2 Averaging Block 1 Calculation Block 2 Program selection: Average Data source: Block 1 - Calculation Averaging type: Recursive Average value: 5 Submit The sensor inputs on the front side of the controller have different output numbers. This is important for the definition of the data sources, e.g. in the Calculation module. Block 1 Calculation Data source 1 Sensor 1 Data source 2 Sensor 2 Sensors, controller with EtherCAT interface at the EtherCAT connection are led in the CSP2008 with the designation Sensor 3. Ethe CAT RUN aser ff In range Mid ange Error Ethernet P wer on ERR optoNCDT L se str h un Ni ht in d n tr hl b i ken L ser l sse 2 nach D N N 0825-1 20 8-05 P 1 mW; PP=1,2 mW; t= ,5 . 542 µs F=1 5. . 0 kHz; =670 nm Block 1 Calculation Data source n Sensor 3 Sensors at the RS422 extension terminals are led in the controller with the designations Sensor 3 up to sensor 6. Maximum two RS422 extension terminals are possible. Connected sensors can be synchronized. CSP2008 L/A Sensor 1 L/A Sensor 1 L/A Sensor 2 RUN Data source 1 Sensor 3 L/A 24V 24V 0V 0V PE PE Laser GND Data source 2 Sensor 6 Sensor 2 RUN 24V 24V 0V 0V PE PE Laser GND Page 39 Operation Sensors at the 2-port EtherCAT junction are led in the controller with the designations Sensor 3 up to Sensor 6. A maximum of two 2-port EtherCAT junctions are possible. Data source 1 Sensor 3 Data source 2 Sensor 4 Sensors at the EtherCAT terminals are led in the controller with the designations Sensor 3 up to Sensor 6,no matter whether sensors are connected on the front side of the controller or not. E1 E2 +Input 1 +Input 2 +Input 1 + + - Digital inputs on the EtherCAT terminals are led with the designations Bit 0 up to Bit 3 in the controller. The digital inputs can be used as additional control inputs in the calculation programs Statistics and Mastering. +Input 2 + + - 0V Data source1 Sensor 3 E1 E2 - 0V - 0V 0V S S S S ELxxxx ELxxxx Data source 2 Bit 0 E1 E2 Input 1 Data source 2 Sensor 6 Input 2 + + - - Data source 3 Bit 3 S S Input 3 Input 4 ELxxxx Feedback couplings (algebraic loops) over one or several blocks are not possible. Block 2 Calculation Block 1 Averaging CSP2008 Page 40 Operation 5.3.10.2 Inputs / Outputs, Calculation Program Parameters Inputs Parameter Output Output Display, Ethernet, Digital CSP2008 Analog CSP2008, RS422 Calculation DQ 1, DQ 2 A, B, C Block n --- Recursive average DQ 1 Average value Block n --- Moving average DQ 1 Average value Block n --- Median average DQ 1 Average value Block n --- Statistics Limit type Upper limit DQ 1 (Measured value), Lower limit DQ 2 (reference value) 1 Upper warning Lower warning Hysteresis Digital source 3 Delay in cycles (control input) Hold time in cycles Window depth Block n - StatisticsMinimum Block n - StatisticsMaximum Block n - StatisticsUpper limit Block n - StatisticsLower limit Block n - StatisticsUpper warning Block n - StatisticsBlock n - StatisticsLower warning Peak-to-peak value (P2P) Block n - Statistics- IO Mastering (Zeroing) DQ 1 Digital source 2 Digital source 3 Master value Block n --- Edge filter DQ 1 Upper threshold Lower threshold Block n Number of ignored values N --- MinMax DQ 1 ... DQ 6 --- --- 1) Block n Input is needed for the Master and Dyn. Average limit value types. 5.3.10.3 Calculation Program, Thickness Calculation Formula: Calculation = A*DQ1 + B*DQ2 + C DQ1, DQ = data sources A, B, C = parameters SMR = start of measuring range Minimum distance between sensor face and target laser on s ate optoNCDT SE S A H K A N A 2 6 0n Sensor 1 K MR 1 MR 2 Input 2 Thickness Input 1 MR = sensor measuring range SMR 2 C SMR 1 W DQ = input displacement signal of a sensor A, B = parameters C = distance between the starts of the measuring ranges of two sensors installed opposite each other W A SE S K A A 2 70 n H N K optoNCDT s ate Out Thickness = (-A*DQ1 - B*DQ2)+C laser on Fig. 27 Arrangement for the thickness measurement of an object with the "Calculation" formula" CSP2008 Page 41 Operation 5.3.10.4 Averaging Program The averaging types -- moving average, -- recursive average and -- median are implemented in the controller. Using the averaging, -- the resolution is improved, -- the hiding of individual interference points is enabled or -- the measurement result is "smoothed". The linearity is not influenced by averaging. Moving average Using the selectable number N of sequential measured values (window width), the arithmetic mean Mgl is calculated according to the following formula and output: N MV (k) k=1 M gl = N MV = Measured value, N = Averaging number, k = Continuous index (n the window) M gl = Average value or output value Method: Each new measured value is added, the first (oldest) measured value is removed from the averaging (from the window) again. In this way, short response times for measured value jumps are achieved. Example: N = 4 ... 0, 1, 2, 2, 1, 3 ... 1, 2, 2, 1, 3, 4 2, 2, 1, 3 = M gl (n) 4 2, 1, 3, 4 = M gl (n+1) 4 Measured values Output value Standard values for N: The values N = 1, 2, 4, 8, ... 1024 are permanently stored in the controller. Recursive Average Formula: MV (n) + (N-1) x M rec (n-1) M rec (n) = N MV = Measured value, N = Averaging number, n = Measured value index M rec = Average value or output value Method: The weighted value of each new measured value MV(n) is added to the sum of the previous average values M rec (n-1). Standard values for N: The values N = 1 ... 32768 are possible in the controller. Special features: The recursive averaging enables very strong smoothing of the measured values, however it needs very long response times for measured value jumps. The recursive average value shows low-pass behavior. Median CSP2008 The median is formed from a preselected number of measured values. The incoming measured values (3, 5, 7 or 9 measured values) are also sorted again after each measurement. Afterwards, the average value is output as the median. 3, 5, 7 or 9 measured values are taken into account in the controller for the calculation of the median, i.e. there is no median 1. Individual interference pulses can thus be suppressed. However, the smoothing of the measured value curves is not very strong. Page 42 Operation Example: Average value from five measured values ... 0 1 2 4 5 1 3 Sorted measured values: 1 2 3 4 5 Median (n) = 3 ... 1 2 4 5 1 3 5 Sorted measured values: 1 3 4 5 5 Median (n+1) = 4 Fig. 28 Averaging type Median, on the left before the averaging, on the right after the averaging 5.3.10.5 Statistics Program Limit values The CSP2008 can check the result of the measurement or calculation against definable limit values. Inadmissible deviations can thus be detected and sorting criteria can be realised. The limit values are -- upper and lower limit (UL, LL), -- upper and lower warning (UW, LW). The OK signal is derived from the upper and lower limit values. Upper limit (UL) (UL) Upper warning (UW) (UW) (UL) (UW) (LW) Absolute (LL) Lower warning (LW) Peak to peak Relative Lower limit (LL) Fig. 29 Limit values with "Absolute", "Relative" and "Peak Value" attribute Block 5 Limit Type: absolute | relative | Peak to peak Upper limit in mm: 9.500000 Lower limit in mm: 0.500000 Upper warning in mm: 8.500000 Lower warning in mm: 1.050000 Hysteresis in mm: 0.030000 On delay in cycles: 4 Hold time in cycles: 4 Window depth in cycles: no window Submit the settings to CSP2008: Submit Fig. 30 Parameters for the limit value consideration of "Absolute" and "Relative" attributes If the signal or the calculation result is within the range of a limit value, this can result in repeated activation or deactivation of the digital output. "Flickering" of the digital outputs is prevented by specifying a Hysteresis. CSP2008 Page 43 Operation The delay of the limit values is added to the delay of the binary outputs DOUT 1/2, see Chap. 5.3.11.5. tv =Delay Lower limit t < tv = Switching out- put passive Time Switching output t ≥ tv = Switching out- put active Upper limit Hysteresis Signal t = Duration of exceeding the limit value On t < tv tv Hold time Hold time Hold time Off Fig. 31 Timing of the limit value monitoring The logic of the switching outputs is programmable, see Chap. 5.3.11.5. Resetting the switching outputs using control inputs is not possible. Any set digital outputs are reset at the beginning of a new cycle. Define the calculation block and the data sources for which the limit value monitoring should be applied. Menu Calculation > Block n > Data Sources. Data Source 1 and Data Source 2 are used as analog measured value inputs. If the data source 2 is assigned, the difference of Data Source 1 minus Data Source 2 is considered. Then the limit value consideration occurs. Limit value type Absolute Relative Data Source 1 Peak to peak Measured value Data Source 2 Reference value Digital Source 3 not assigned assigned not assigned Reset input for digital outputs if Window depth in cycles is set to “no window”, i.e. no time limit. Define the calculation parameters, see Fig. 30. Menu Calculation > Block n > Calculation Parameters. Assign the limit and warning values to the digital outputs, see Chap. 5.3.11.5, see Chap. 5.4. Statistics Values The CSP2008 can derive the following statistics values from the result of the measurement or the calculation: -- Minimum -- Maximum -- Peak-to-peak value (span) The statistics values are calculated from the measured values within the evaluation time, see Fig. 32, or without time limit. In the latter case, a new evaluation time (storage period) can be initiated by an external signal at the input Zero or SyncTrig on the terminal block. The old statistics values are deleted at the beginning of a new cycle. Signal Peak-to-peak Maximum Statistic values are reset: Peak to peak -- at the end of an evaluation time or Minimum Evaluation time -- with external signal Time Fig. 32 Evaluation time for the calculation of the statistics CSP2008 Page 44 Operation The statistical output IO is set, if no limit or warning value was exceeded. The statistical output NIO is set, if one limit or warning value was exceeded. The statistical output Invalid meas value is set, if one input signal supplies no valid measurement value, e. g. the target is outside the measuring range. Inputs: -- Analog input 1: Measured Value > "Data Source 1" -- Analog input 2: Reference Value > "Data Source 2" -- Digital input (Digital Source 3): Limits the evaluation time. Reset input for digital outputs if Window depth in cycles is set to No window, see Fig. 33. Block 5 Upper limit in mm: 0.500000 Upper warning in mm: 8.500000 Lower warning in mm: 1.050000 Hysteresis in mm: 0.030000 Delay in cycles: 4 Hold time in cycles: 4 Window depth in cycles: No window Submit the settings to CSP2008: Submit Fig. 33 Parameters for the statistics consideration Define the calculation block and the data sources for which the statistics values should be calculated. Menu Calculation > Block n > Data Sources. Define the evaluation time for the statistics values, see Fig. 33. Menu Calculation > Block n > Parameter. ••Window depth in cycles No window: Evaluation time without time limit. A new evaluation time period can be initiated by an external signal at the inputs Zero, SyncTrig or at EtherCAT terminal. The control input must be defined in Digital Source 3. ••Window depth in cycles Value: Evaluation time is a multiple of the master clock. Assign the statistic values ••to the display, see menu Data Output > Display > Measured Value n or ••to the Ethernet port, or ••the analog outputs, see Chap. 5.3.11.3 or ••the RS422 interface. CSP2008 Page 45 Operation 5.3.10.6 Mastering Program This chapter describes the procedure for the comparative thickness measurement with a master target. Objectives: -- Define a measured value as master value, e.g. 10 mm -- Deviations from this measured value are output in the positive and negative direction (e.g. 10.2 mm, 9.8 mm or -1.2 mm) -- Control using digital input The Mastering function is primarily used for the comparison of mounting tolerances for the thickness measurement with two sensors. The master value is specified as the setpoint (master) for the thickness determination. i The mastering requires a target in the measuring range of the sensors. The mastering is only possible within the measuring range of the sensors. The mastering always takes place before the start of a new batch. The mastering calculation block is practically used at the end of a calculation chain. The mastering function is not volatile, i.e. the mastered condition applies after switching on the controller, if the master value is saved, see Fig. 34. Block 2 Program selection: Mastering Daten sources Data source 1: Block 1 - Calculation Data source 2: Zero Data source 3: --- Parameter Master value in mm: 10.000000 Save master value: Submit the settings to the CSP2008 Submit Fig. 34 Parameter in the calculation block mastering Factory settings Master value: 0,000 Define the calculation block and the master value, e.g. 10.0 mm for the thickness measurement of a master part of 10.0 mm. Menu Calculation > Block n > Parameter > Master Value. The output is maintained at the set master value while the external master pulse is active (digital input Sync/Trig or EtherCAT terminal). Afterwards, the output continues from this value and can also accept negative values. The master value in the factory settings is 0.00 mm. Define the digital input at the controller which you would like to use as control input for the mastering. Menu Calculation > Block n > Data Sources > Digital Source 2 > Digital Input, see Fig. 34. i If you select Digi In as mode in the settings for the digital input, you can optionally start/stop the master measuring with the digital inputs Zero and/or Sync/ Trig. Otherwise, only the digital input Zero is available. Define the activity of the binary inputs Zero or Sync/Trig as LOW or HIGH. CSP2008 Page 46 Operation Mastering is also possible with the button Zero setting (= software mastering). Mastering with the button Zero setting does not require any selection in the field Active. Terminal block zero Active: LOW Zero duration in ms: 10 Reset duration in ms: 3000 Trigger event manually: Zero setting Trigger event manually: Reset Submit settings to CSP2008 Software zeroing and the external Zero input (terminal block) act independently of each other. Submit Fig. 35 Parameters for the digital control input "Zero" An external pulse at the inputs "Zero" or "Sync/Trig" initiates the mastering. i If Zero is selected as control input, the setting / resetting is performed at the Zero input with definable pulse lengths. The second digital input (Digital Source 3) is not required or ignored in this case. If you do not use the Zero input as control input, Digital Source 2 is used for the setting and Digital Source 3 for the resetting. Mastering or zeroing require admissible values at the block input (Data Source 1). No mastering or zeroing is possible in the case of errors. In the case of mastering, you can end the master measurement using the second digital input. Define the digital input at the controller which you would like to use as control input for ending the master measurement. Menu Calculation > Block n > Data Source > Digital Source 3 > Digital Input. A pulse at the Zero input starts the master measurement. The pulse length determines whether you end mastering or the master measurement. Signal after mastering Master value Zero Output Original The Sync signal is not needed in this example. tI Time Fig. 36 Mastering process with the Zero input, LOW active Example: Determination of the thickness, output of the thickness dimension (absolute dimension) and the deviation from the master target. The distance of both sensors from each other is not precisely known. laser on s ate DQ1 Block 3 Calculation DQ2 B*DQ2 + C optoNCDT Sensor 1 CSP2008 SE S A H K A A N 2 70 n K Master value Input 1 SMR 1 W SMR 2 Input 2 Master value DS1 W A SE S s ate laser on CSP2008 K A A 70 n 2 H N K Absolute dimension Measured value2 Block 1 Calculation DS2 A*DQ1 + B*DQ2 optoNCDT Sensor 2 Block 2 Mastering Display Deviation Measured value1 Zero Page 47 Operation Parameters of the arrangement -- SMR 1/2 Start of measuring range -- Input 1/2 Signal Sensor 1/2 Terminal block Digital inputs Zero active LOW Zero duration ms Value Reset duration ms Calculation Program Block 1 Calculation Inputs DQ 1 DQ 2 Parameter A = -1, B = -1 C=0 Data output Display Output Output number Averaging 5.3.10.7 Block 2 Mastering Block 1, digital source 2: Zero Master value Deviation Measured value 1 Block 3 - Calculation 5 1 Block 3 Calculation Block 2 on DQ 2 A = 0, B = 1 C = - Master value Absolute dimension Measured value 2 Block 2 - Mastering 5 1 Zeroing Program This chapter describes the procedure for a relative measurement. Objectives: -- Define a measured value as 0 mm -- Deviations from this measured value are output in the positive and negative direction (e.g. 1.2 mm or -1.2 mm) -- Control using digital input The "zeroing" function is a special application of the mastering function. A simple evaluation of deviations is thus possible. i The zeroing requires a target in the measuring range of the sensors. The zeroing is only possible within the measuring range of the sensors. The zeroing always takes place before the start of a new batch. The zeroing function is non-volatile, i.e. the mastered condition applies again after switching on the controller, if the master value is saved, see Fig. 34. Define the calculation block and the master value = 0.0 mm. Menu Calculation > Block n > Parameter > Master Value. The zeroing dimension in the factory settings is 0.00 mm. The output is maintained at zero while the external zeroing pulse is active (digital input Sync/Trig or EtherCAT terminal). Afterwards, the output continues from this value and can also accept negative values, see Fig. 38. An external pulse at the inputs "Zero" or "Sync/Trig" initiates the zeroing. Define the digital input at the controller which you would like to use as control input for the zeroing. Menu Calculation > Block n > Data source > Digital source 2 > Digital input. i If you select Digi In as mode in the settings for the digital input Sync/Trig,you can optionally start/ stop the zeroing with the digital inputs Zero and/ or Sync/ Trig. Otherwise only the digital input Zero is available. In the case of zeroing, you can end the relative measurement using the second digital input. CSP2008 Page 48 Operation Define the digital input at the controller which you would like to use as control input for ending the relative measurement. Menu Calculation > Block n > Data Source > Digital Source 3 > Digital Input. Define the activity of the binary inputs "Zero" or "Sync/Trig" as LOW or HIGH. Terminal block zero Active: LOW Zero duration in ms: 10 Reset duration in ms: 3000 Trigger event manually: Zero setting Trigger event manually: Reset Submit settings to CSP2008 Submit Fig. 37 Parameters for the digital control input "Zero" Output Original Zero Sync Signal with Zeroing Time A pulse at the Sync/Trig input starts the relative measurement. A pulse at the digital Zero input ends the relative measurement. Fig. 38 Zeroing process, LOW active If you use the digital Zero input in digital source 2 as control input for the zeroing, the pulse length determines whether you end zeroing or the relative measurement. The signal at the digital Sync/Trig input is then no longer needed in this case. The output characteristic is moved in parallel for the mastering and zeroing functions. Generally, the usable characteristic, see Fig. 39, is smaller as a result, if the output gain is limited by ±Y (voltage or current). g“ rin m as is er C ha ra ct O er ut is pu tic tc af ha te ra r“ ct tic is er ct ra C Ymin te te af 0 YM -Y tic r“ g“ ze ro in Ymax ha Output value +Y -x xmin x0 0 xm xmax +x Position x (mm) Fig. 39 Shift of characteristic for mastering and zeroing Example: Determination of the thickness, output of the relative thickness. The distance of both sensors from each other is not precisely known. CSP2008 Page 49 Operation la er on state optoNCDT Sensor 1 SE S A H K A A N 2 670 n Display CSP2008 K SMR 2 DQ1 W A SE S K A 670 n 2 A H N K optoNCDT Sensor 2 Block 2 Mastering Master value = 0 Input 2 Master value Input 1 SMR 1 W Deviation Measured value1 Block 1 Calculation DQ2 A*DQ1 + B*DQ2 state la er on Sync/Trig Zero Parameters of the arrangement -- SMR 1/2 1/2 Start of measuring range Terminal block Input 1/2 Signal sensor Digital inputs Zero Mode active Edge / Level active Sync LOW Edge LOW Program Block 1 Calculation Block 2 Mastering Inputs DQ 1, DQ 2 Block 1, Data source 2: Sync/TrigZero Data source 3: Zero Parameter A = -1, B = -1 C=0 Master value = 0 Data output Display Deviation Measured value 1 Output Averaging display Block 2 - Mastering 1 Sync/Trig CSP2008 | Page 50 Operation 5.3.10.8 Edge Filter Edge filters avoid signal jumps (“overshooting spikes”) when measuring across edges. This filter should be used with considerable care. If applied in an unfit manner, the original signal integrity might be compromised. The upper threshold of the edge filter activates the filter once; the lower threshold switches the filter off again and performs a reset. The edge filter can be reactivated when exceeding the upper threshold again. If the number of ignored measuring values N is set too small, parts of the overshoot may remain. If the edge filter is active, the last valid measurement is output at the edge filter for the time of data processing until the number N of ignored measurement values is reached or the lower threshold will be underrun. Filter active Filter active Upper threshold N=1 Lower threshold Time of data processing Time of data processing Upper threshold N=3 Lower threshold Signal filter input Signal filter input Signal filter output Signal filter output Fig. 40 N too small, slight overshoot remains Fig. 41 N ideally chosen Define the data source on the controller to which the edge filter should work. Menu Calculation > Block n > Data source 1. Define the upper and lower threshold for the edge filter. Menu Calculation > Block n > Upper/lower threshold. Define the number of ignored and substitued measuring values N. Menu Calculation > Block n > Number of ignored and substitued measuring values N. 5.3.10.9 MinMax The MinMax function determines from up to six input signals the lowest and the greatest value. Input signal may be a sensor signal or an output of a calculation block. The both minimum and maximum outputs of the function can not be used as input signals for other blocks. Define the calculation block and the data sources for which minimum and maximum should be calculated. Menu Calculation > Block n > Data Source 1 ... Data Source 6. CSP2008 Page 51 Operation 5.3.11 Data Output Display Ethernet --- / Sensor 1 ... Sensor 6 / Digi in / Block 1 … Block 9 Averaging display 1 ... 65535 Timestamp Checkbox Saves measured values with time information in µs, as a multiple of the inverse master timing signal. Measured value 1 ... Measured value 6 Output --- / Sensor 1 ... Sensor 6 / Digi in / Block 1 … Block 9 Output --- / Sensor 1 ... Sensor 6 / Digi in / Block 1 … Block 9 Measured value 1 ... Measured value 6 Output type Analog CSP2008 Analog EtherCAT Analog value 1 / Analog value 2 Analog value 1 ... Analog value 6 Pulse width of synchronous output Digital CSP2008 RS422 Switching output 1 ... 16 Triggering/ Subsampling CSP2008 Selection of the sensor or calculation block. --- / 0 … 10 V / -10 … 10 V / 0 … 5 V / The result is set as analog value. -5 ... +5 V / 4 … 20 mA / 0 … 20 mA -2147.0 … 2147.0 mm Maximum output value -2147.0 … 2147.0 mm Error handling Hold last value / Min max value Error output Minimum value / Maximum value Behavior of the analog output in the case of an error. Keep last value: controller returns the last valid value. Output minimum/maximum value: min value falling below; max value on overrun. Output --- / Sensor 1 ... Sensor 6 Block 1 … Block 9 / Digi in Selection of the sensor or calculation block. The result is set as analog value. Minimum output value -2147.0 … 2147.0 mm Maximum output value -2147.0 … 2147.0 mm Minimum and maximum measured values to be output. The scaling of the output is calculated from this. Error handling Hold last value / Min max Error output Minimum value / Maximum value Value 1 ... 60000 Pulse width is the time for the high level in the synchronous signal. The difference to the master clock is the time of the pulse pause. Digital output --- / Block x Statistics: upper/lower limit / upper/lower warning / Statistics IO , NIO / invalid meas value / Setup number bit 0 ... 4 / Setup active / SW dig out 1 ... SW dig out 10 Statistics: Selection of the output of the set function block. Exceeding the limits or warning values is identified. Setup selection: Response of the used setup file via the digital outputs. Active High / Low Set up active level. Hold time 0 ... 60000 µs Time for active level. Digital output --- / Block x Statistics: upper/lower limit / upper/lower warning / Statistics IO, NIO / invalid meas value / Setup number bit 0 ... 4 / Setup active / SW dig out 1 ... SW dig out 10 Statistics: Selection of the output of the set function block. Exceeding the limits or warning values is identified. Setup selection: Response of the used setup file via the digital outputs. Output value --- / Sensor 1 ... Sensor 6 Block 1 … Block 9 / Digi in Baud rate 115200 / 691200 Minimum output value -2147.0 … 2147.0 mm Maximum output value -2147.0 … 2147.0 mm Triggering active for Sub-sampling active for Selection of the calculation block whose result should be output as a digital value via Ethernet. Minimum output value Switching output 1 / 2 Digital EtherCAT Data source can be a sensor signal or the result of a function block. The display values are updated with a frequency of 10 Hz. The factory settings do not average the display values (arithmetic averaging = 1). Output Display / Analog CSP2008 / RS422 / Ethernet Checkbox Sub-sampling 1 ... 100000 Analog CSP2008 / RS422 / Ethernet Checkbox Specification of the minimum and maximum measured values to be output. The scaling of the output is calculated from this. Behavior of the analog output in the case of an error. With “keep last value” the controller provides the last valid value. With “Min/Max. value”: Min. value in the case of undercutting, Max. value in the case of exceeding. Selection of the calculation block. The result is set as digital value. Specification of the minimum and maximum measured value to be output. The scaling of the output is calculated from this. The triggering can only be selected for the corresponding interfaces, if triggering is selected as mode on the digital inputs for terminal block Synchronisation/ triggering. The Subsampling can only be selected for the corresponding interfaces, if Digi In or Sync are selected as mode on the digital inputs for terminal block Synchronisation/ triggering. Reduces the output rate of the CSP2008; Only every nth value will be given out. Page 52 Operation 5.3.11.1 Display Only analog measured or calculated values are permitted. The display values can be arithmetically averaged with up to 65535 values for a steady display. You can change the measuring unit and the number of decimal places in the menus Country settings and Display settings. 5.3.11.2 Ethernet In the Ethernet menu item, you define maximum six calculation blocks whose results can be output as digital values via Ethernet and thus, for example, can be displayed in the demonstration window (Measurement)of the Web interface. More information about data output via Ethernet, e.g. data format, see Chap. 5.3.5.1, see Chap. 5.7. The Ethernet interface is used for the software update on the CSP2008 also, see Chap. 12. 5.3.11.3 Analog CSP2008 In the Analog menu item, you define which results of the sensor measured values or of the calculation blocks will be output at the two analog terminals. This also includes the selection of output type (current or voltage). The specification of minimum and maximum measured values or calculation result is still required for the analog outputs. The measured value (calculation result) to be output is automatically scaled for the 16-bit output in the CSP2008. 20 mA Output type 0 ... +10 V -10 ... +10 V 0 ... +5 V -5 ... +5 V 4 ... 20 mA 0 ... 20 mA 4 mA 0 mA Min. Output value Output range 10 V 20 V 5V 10 V 16 mA 20 mA Minimum analog value 0V -10 V 0V -5 V 4 mA 0 mA Max. Fig. 42 Characteristic for an analog output with 4 ... 20 mA The analog output value is produced according to the formula: Analog value = Measured value - Min. output value Max. output value - Min. output value * Output range + Min. analog value Example: Current output with 4 ... 20 mA, Min. Output Value = -50, Max. Output Value = +100, Measured Value = 45; thus output range = 16 mA, Min. Analog Value = 4 mA Analog value = 45 - (-50) 100 - (-50) * 16 mA + 4 mA = 14.13 mA Error handling Error values directly from the sensor or errors which occur during the calculation in the controller can be selected for each analog output and output at the analog outputs. Variants: -- keep last value -- output minimum/maximum value CSP2008 Page 53 Operation If Min Max has been selected for the error handling, the analog output shows the following behavior: -- Value more than maximum analog output value: output of the maximum permitted analog value. -- Value below the minimum analog output value: output of the minimum permitted analog value. 5.3.11.4 Analog EtherCAT The analog EtherCAT terminals extend the choice to output analog measured values (calculation result). In the Analog EtherCAT menu item you define, which results of the sensor measured values or of the calculation blocks will be output at the analog EtherCAT terminals.The output type (current or voltage) is determined by the type of EtherCAT terminal. The specification of minimum and maximum measured values or calculation result is still required for the analog outputs. The measured value (calculation result) to be output is automatically scaled in the EtherCAT terminal. 10 V 0V Output type Min. Output value 0 ... +10 V -10 ... +10 V Output range 10 V 20 V Minimum analog value 0V -10 V 4 ... 20 mA 16 mA 4 mA Max. Fig. 43 Characteristic for an analog output with 0 ... 10 V The analog output value is produced according to the formula: Analog value = Measured value - Min. output value Max. output value - Min. output value * Output range + Min. analog value Example: Current output with 0 ... 10 mA, Min. Output Value = 0, Max. Output Value = +30 mm, Measured Value = 12 mm; thus output range = 10 mA, Min. Analog Value = 0 mA Analog value = 12 - 0 30 - 0 * 10 V + 0 V = 4.0 V Error handling Error values directly from the sensor or errors which occur during the calculation in the controller can be selected for each analog output and output at the analog outputs. Variants: -- keep last value -- output minimum/maximum value If Min Max has been selected for the error handling, the analog output shows the following behavior: -- Value more than maximum analog output value: output of the maximum permitted analog value. -- Value below the minimum analog output value: output of the minimum permitted analog value. CSP2008 Page 54 Operation 5.3.11.5 Digital CSP2008 Synchronous output: In this menu item, you define the pulse width of synchronization output on the terminal block. Statistics: In this menu item, you define, which results of calculation program Statistics are output to the two digital terminals Out 1 and Out 2, see Chap. 4.3.1. Possible results: -- Block n - Statistics - Upper limit -- Block n - Statistics - Upper warning -- Block n - Statistics - IO, NIO | | | Block n - Statistics - Lower limit Block n - Statistics - Lower warning Block n - Statistics - Invalid meas value Switching output active: LOW 3.3 V Hold time Time 0V Switching output Switching output Switching output active: HIGH 3.3 V Hold time 0V Time Fig. 44 Behavior of digital outputs DOUT 1 and DOUT 2 If the statistics module recognizes an invalid measurement value, no new statistic values will be calculated. i If additional switching outputs are required, use EtherCAT terminals, see Chap. 5.3.11.6. Setup selection. Alternatively to the statistics functions the used setup file or the state of the controller can also be confirmed via the digital outputs. Possible results: -- Setup number bit 0 -- Setup number bit 2 -- Setup number bit 4 | | | Setup number bit 1 Setup number bit 3 Setup active If the controller changes a setup file, the Setup active signal is disabled. Software digital outputs. These outputs can also be confirmed via the digital outputs. The software digital outputs are set in the Settings > Digital CSP2008 outputs menu or with a command, see Chap. 11.8. Possible results: -- SW digital out 1 -- ... -- SW digital out 9 5.3.11.6 | SW digital out 2 | SW digital out 10 Digital EtherCAT The digital EtherCAT terminals extend the choice of switching outputs. Statistics: In this menu item you define, which results of calculation program Statistics are output to the digital terminals. The active behavior cannot be set at the digital EtherCAT terminals. Possible results: -- Block n - Statistics - Upper limit -- Block n - Statistics - Upper warning -- Block n - Statistics - IO | | | Block n - Statistics - Lower limit Block n - Statistics - Lower warning Block n - Statistics - Invalid meas value Switching output Switching output active: HIGH 24 V Hold time 0V Time Fig. 45 Behavior of digital outputs If the statistics module recognizes an invalid measurement value, no new statistic values will be calculated. CSP2008 Page 55 Operation Setup selection. Alternatively to the statistics functions the used setup file or the state of the controller can also be confirmed via the digital outputs. Possible results: -- Setup number bit 0 -- Setup number bit 2 -- Setup number bit 4 | | | Setup number bit 1 Setup number bit 3 Setup active If the controller changes a setup file, the Setup active signal is disabled. 5.3.11.7 RS422 The RS422 interface is used for the data exchange with the PCI Interface Card IF2008 from Micro-Epsilon. The IF2008 interface card enables the synchronous capture of 4 digital sensor signals and 2 encoder signals. Features: -- Baud rate: 115,200 baud or 691,200 baud -- Output frequency: maximum 20 kHz. Output of a channel in the data format of the ILD2200: -- 8 data bits, no parity, one start/stop bit -- The data word consists of three sequential bytes (L-byte/M-byte/H-byte) which are sent with frame bits directly one after the other. Each byte contains 6-bit data and two identification bits. Start Start L-byte Frame bits 0 0 6-bit Stop Start M-byte Frame bits 0 1 6-bit Stop Start H-byte Stop 1 0 6-bit Stop 16 bits are used for the measured value. Conversion of the binary data formats: Receive Byte L-byte M-byte H-byte Identification bit 0 0 D5 0 1 D11 1 0 F1 D4 D10 F2 Data bits D3 D2 D9 D8 D15 D14 D1 D7 D13 D0 D6 D12 The frame and identification bits are removed. The total value has 18 bits of which 16 bits are in the output value. Result of the conversion: F1 F2 D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 The remaining two bits F1 and F2 are used for error identification. They are 0 for valid values. Data transfer, no errors: F1 F2 D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 0 0 Data Error in the sensor: F1 F2 D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 0 1 Error source Error cause Error in the CSP2008: F1 F2 D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 1 0 Error source Error cause D15 D14 D13 D12 Error source 0 0 0 0 no errors CSP2008 Page 56 Operation 0 0 0 1 Data preprocessing 0 0 1 0 Data output 0 1 0 0 RS422 sensor input 0 1 0 1 EtherCat input 0 1 1 0 Calculation Fig. 46 Error coding Error source D11 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 D4 D3 D2 D1 D0 Error cause 0 0 0 0 0 no errors 0 0 0 0 1 Underflow 0 0 0 1 0 Overflow 0 0 0 1 1 Unknown 0 0 1 0 0 Sensor Synchronization 0 0 1 0 1 RS422 Framing Error 0 0 1 1 0 RS422 Overflow 0 0 1 1 1 Undefined sorting or formatting algorithm 0 1 0 0 0 Unknown error 0 1 0 0 1 Data not yet valid (occurs if insufficient data are available for the preprocessing.) Fig. 47 Error coding Error cause In the RS422 menu item, you define which results of the calculation blocks will be output at the interface. The specification of minimum and maximum measured values or calculation result is still required as well as output value. The measured value (calculation result) to be output is automatically scaled for the 16bit, i.e. 65536 values, output in the CSP2008. The digital output value is produced according to the formula: Digital value = Measured value - Min. output value Max. output value - Min. output value * 65535 Example: Min. Output Value (Measured Value) = -50, Max. Output Value (Measured Value) = +50, Measured Value = -25; Digital value = -25 - (-50) 50 - (-50) * 65535 = 16384 Values outside the specified limits are output as errors. CSP2008 Page 57 Operation 5.3.12 Loading/Saving the Settings All settings on the controller, for example connected sensors and calculation functions can be saved permanently in application programs, so-called setups, in the controller and on an external PC. i After the programming, all settings must be permanently stored under a setup no. in the controller, so that they are available again when the Universal Controller is switched on the next time. CSP2008 setup no. 1 / 2 / 3 ... 20 Activate / Save setup Selection of the setup to be loaded / saved. The user selects a number for the loading or saving of a complete configuration. Enables quick duplication of setups. Activate starts the CSP2008 with the parameters in the selected setup. Save setup saves the actual parameters in the selected setup. The saving and reloading occurs from and in the flash memory of CSP2008. Click on the Save setup button for saving in the internal flash before you save a setup in an external file. Manage setups on PC Save CSP2008 setup on PC: Select CSP2008 setup: Load CSP2008 setup from PC Export setup Browse... Import setup When the Export setup the is pressed, the download manager of the browser is opened and provides the saving of the programs and setting values saved in the flash in a preset file “Setup.meo”. If there is already a file present, the download manager increases the version n to „Setup(n).meo“. When the Browse... is pressed, the Windows selection window is opened, to select a configuration file saved in the PC. With Open of the selected file in the selection window, the path is cached. The loading of the selected file is then performed by clicking the Import setup button. The program as well as the settings are now saved in the controller under the preselected setup no. and the controller operates with the new values after completion of the loading process. Therefore, no reboot in the controller is also performed. You can display external setup files with the program CSP2008ShowParam.exe (of CD) and save as HTML files if applicable. Micro-Epsilon offers ready to use applications programs (setups) for the thickness measurement with two laser sensors series 1402, 1700, 2200 and 2300, and with micrometers series 2500 and 2600. These programs can be found on the included CDROM. 5.3.13 Setup Selection via Digital Input The used setup can be changed in the controller via the digital inputs on terminal strip or on the EtherCAT terminal. The selection within the max. 20 setups is effected by a binary code on the max. 5 digital inputs Digital source 1 up to Digital source 5 done by a binary code to the max. 5 digital inputs digital source 1 to digital source 5 in the Load/save settings menu > Setup selection via digital input. Fields with a grey background require a selection. Dark bordered fields Value require the specification of a value. CSP2008 Page 58 Operation < 500 ms 500 ms Bit 0 Switching inputs Bit 1 Setup active Setup change Switching output Fig. 48 Setup change by digital inputs The digital inputs are transferred 500 milliseconds after concerning a stable level, see Fig. 48. In case of changing the level at the switching inputs during the setup change, it does not result in a change of a setup selection. A new setup change is possible at the earliest after 500 ms. A setup change takes approximately 3 s without EtherCAT mode and approximately 10 s with EtherCAT mode. CSP2008 Page 59 Operation 5.4 Triggering The measured value output at the controller can be controlled by an external trigger signal (electrical signal or command). The triggering can be used for the following interfaces, see menu Data output > Triggering/Sub-sampling: -- Display -- Analog CSP2008 -- Ethernet/RS422 The triggering has no effect on the preselected measuring rate or the timing, see Chap. 5.6. Each active trigger event (edge or level) releases output values. The controller continues to operate internally as normal without triggering. The input Sync/Trig on the terminal bock is used as external trigger input. The sensors can thus optionally be synchronised or triggered. The change from synchronization to triggering is made either with the keypad in the menu item Digital CSP2008 inputs > Terminal Block synchronization/triggering or via the Web interface. The measured value output in trigger mode can be controlled both via the edge as well as via the level of the trigger signal. i The trigger input is only active if the controller operates with internal master clock. Menu Data recording > Time base > Cycle selection. When trigger conditions are implemented: -- Rising edge (edge positive), falling edge (edge negative), -- Level high (level H) or level low (level L). Terminal block synchronization/triggering Terminal block synchronization/triggering Mode: Trigger Mode: Trigger Edge/Level Edge Edge/Level: Level Active: LOW Active: LOW Manual trigger active: Manual trigger active: Activate level: Fig. 49 Parameters of the digital input synchronization/triggering in the Web interface Define the activity of the trigger input (LOW/HIGH, edge/level). Software trigger. The configuration screen of the digital input Synchronization/triggering also provides the possibility to initiate the triggering using a command. -- Manual trigger active: Checkbox activates the software trigger and disables the external hardware trigger. Edge triggering: (One value) Level triggering (Gating) Each click on the button Software Trigger updates the interfaces Display/ Analog outputs/Ethernet/RS422 1. Checkbox Activate level: With a click on the Submit button measured values are output at the interfaces Display/ Analog outputs/Ethernet/RS422 1. Switch off gating: Disable checkbox Activate level and confirm with click on the button Submit. Hardware trigger. The triggering is triggered by the digital input Sync/Trig. Each click on the button Software Trigger updates the interfaces Display/ Analog outputs/Ethernet/RS422 1. 1) Depends on the settings of the menu Data output > Triggering/Sub-sampling. CSP2008 Level triggering (Gating) As long as the trigger condition on digital input is fulfilled, measured values are output at the interfaces Display/ Analog outputs/Ethernet/RS422 1. The controller has an output triggering; the master signal is also evaluated, if there is no no trigger pulse. Page 60 Operation Edge triggering: The interfaces are updated after the trigger edge; at the digital output, only a digital measured value is output. In between, the analog output is held ("Sample and hold"). UI t D0 t Trigger edge LH (top) and digital output signal (bottom) Level triggering ("gating"): Measured values are output for as long as the trigger condition is fulfilled. UI t D0 t Trigger edge LH (top) and analog output signal (bottom) Start the measured value output with a pulse at the digital input Sync/Trig. i The measured-value program (Measurement) also reacts to a trigger event (external pulse or software trigger). 5.5 Synchronization 5.5.1 Sensors All sensors can be synchronised from the controller. A synchronization between them of sensors of the same type is then no longer necessary. Different sensors can also be synchronized. The Universal Controller operates as Master; the sensors operate as Slave. The small time offset of the measured value between individual sensors no longer applies. The controller only reacts to the edge of a synchronization signal. The following operating modes are possible: Continuous For sensors which do not know any synchronization signal (e.g. ILD 1402) or sensors with very different measuring rates. Synchronised operation. For an exact thickness result, it is indispensable that both the sensors record a measured value at the same time. A time delay for the measured value recording corresponds to a displacement synchronous of the target, i.e. the sensors are measuring at different places. Thus any statement about the measured object thickness is only possible with limitations. Synchronous alternating Alternating mode. For some transparent materials, it is expedient to select alternating mode for the thickness measurement. In particular, this means milky objects where the laser beam partially or completely penetrates the target. Thereby, the upper or lower laser beam is activated alternately. This prevents the laser beam of the lower sensor interfering during a measurement recording of the upper sensor. Any movement of the target must be prevented as the sensors measure at different places and thus any statement about the target thickness would only be possible with limitations. Recommended settings for alternating synchronization: -- The controller needs the internal timing, menu Data recording > Time base > Cycle selection: internal -- Both sensors need the operating mode Sync (Synchronization) Menu Data recording > Time base > Mode: Synchronous Sensor 1 CSP2008 Sensor 2 Divider synchronization 2 2 Offset 1 0 Examples for the divider synchronization and offset parameters, see Chap. 5.3.9.3. Page 61 Operation 5.5.2 Controller The Universal Controller provides a synchronization signal at its output SyncOut on the terminal block. Several controllers can thus be synchronised with each other. Connect the output SyncOut of the master controller to the input Sync/Trig of the slave controller. Connect the associated grounds (GND). Possible further slave controllers must be connected one after the other according to the same principle. Slave 1 Shield Shie d Out2 GND Ana GNDA 0V 0V Ana2 Out GND PE GND Shield PE 24V 24V GND Shield Sync/Ou GND Sync/T ig Zero GND Shield Shie d ESC Laser GNDA GNDA Out2 GND Ana 0 V PE An 2 Out GND PE GND Shield 24V GND Shield 24V ync/T ig Sync/Ou GND Zero GND ESC Laser Shield Shie d Out2 GND Ana GNDA 0V 0V Ana2 PE GNDA Out GND Shield PE GND 24V GND Shield Sync/Ou 24V Sync/T ig GND Zero GND Laser ESC Slave n GNDA Master Fig. 50 Wiring for the synchronization of several controllers The synchronization causes processing operation (calculation) per synchronization edge for the slave controller. Afterwards, the controller stops and waits for the next synchronization edge. Setting master-slave controller Menu Data recording > Time base Cycle selection Master clock in Hz SyncOut Menu Data output > Digital CSP2008 Pulse width synchronous output 3.3 V 0V Cycle duration Master Slave Internal External (Sync Input) Value --- 5 µs (Factory setting) Value 1 Dig In, Sync or Trigger 2 Sync Pulse width Pulse width < Cycle duration Menu Digital CSP inputs Mode Time 1) Value necessarily, if another system with special pulse / pause rate is synchronized after the slave controller. 2) The first controller (until now master) can also be synchronized externally, e.g. by an encoder. In this case, the settings of the slaves are to be applied in the series on the first controller. CSP2008 Page 62 Operation 5.6 Controller Timing The Universal Controller needs a master clock for operation which is either generated internally or via the synchronization pulse. Each timing pulse initiates a process of data recording and calculation. All calculation blocks are passed through during the calculation. With the next pulse, the calculated values are output and a new calculation is started simultaneously. Master clock Value 1 Value 2 Value 3 Value 4 Calculation Wert 0 Value 1 Value 2 Value 3 Output Period Fig. 51 Elapsed time in the controller Analog output: The output is performed at the analog output and is available there immediately. Digital outputs: The digital outputs (limit values), depending on the settings, can also react with a delay and delay and hold the output over several cycles. RS422: The output of a value at the RS422 serial interface starts approx. 50 μs after the period edge. In the case of a low baud rate or a short master clock, individual values can be skipped during the output. Averages may need several values until the averaging depth is reached; however, despite this, the output of the values starts immediately with the following period. If the master clock period has been selected too short, the duration of the processing cycles is extended in each case by one master clock. 5.7 Ethernet 5.7.1 Basic Settings for the Data Output The controller can continuously send its calculated measured values using UDP/IP or TCP/IP to a measured value server. The settings for the measured value server can be made in the menu Ethernet connection > Ethernet measurement transmission. Transmission type IP address PC/SPS Server TCP|IP Client TCP | IP Client UDP | IP Value Port Value The data transfer uses "Little Endian" as the data format. Here, the byte with the lowest value bits (least significant bits) is saved first, i.e. at the smallest memory address. CSP2008 Page 63 Operation 5.7.2 Measured Values Data Format, Measured Value Frame All, maximum six, measured values to be output at the same time, are included in a frame. Before each frame, there is a small header with a measured value counter in order to be able to detect missing measured values within a packet. Preamble (16 bits) Counter (8 bits) Frame size (8 bits) Timestamp (32 bits) 1stStatus (16 bits) 1stError value (16 bits) 1stMeasured value (32 bits) … 6thStatus (16 bits) 6thError value (16 bits) 6thMeasured value (32 bits) Fig. 52 Measured values data format Field Preamble Counter Frame size Timestamp Description Preamble for recognition of the header = 0xa5a5 Numeric value which is incremented with each measuring cycle Quantity of 4 byte words in a frame, incl. header 32 bits, only if timestamp was enabled. Status Information about the validity of the measured value or the origin of the error. Bit 0 and Bit 1. 00 > no errors 01 > Error in the sensor 10 > Calculation error in the controller Error value Error code of the sensor or the controller Measured value Measured value with resolution of 1 nm as signed integer. The measured value can be converted to millimetres by multiplying by 0.000001. Fig. 53 Entries in the measured value frame In the case of a sensor error (Error_Bits = Bit 0 and Bit 1), the error value remains undefined if the original sensor error is simply passed through. In the case of an error in the Universal Controller, the error value is broken down as follows: Bit 15---------Bit 12 Error_Source [3..0] Bit 11----------Bit 0 Error_Code [11..0] The Error_Source shows the source of the error in the Universal Controller. The Error_Code is freely coded for each error source. It describes the errors which can occur in the data preprocessing (measured value acquisition / scaling) and in the internal data routing (measured value output / scaling). Error_Source [4 bits] Error_Code [12 bits] Binary code Meaning Hex code Meaning Measured value acquisition / 0001 0x001 Scaling error: Underflow scaling Measured value output / scal0010 0x002 Scaling error: Overflow ing 1000 Error during calculation ----Fig. 54 Error values in the Universal Controller CSP2008 Page 64 Operation 5.7.3 Measured Value Block Several measured value frames are compiled to one measured value block and enclosed by another header. This header provides information about the included data and their length. Preamble (32 bits) Part number (32 bits) Serial number (32 bits) Flags (32 bits) Number of frames (16 bits) Bytes per frame (16 bits) Counter (32 bits) Fig. 55 Measured value block header Header entry Preamble Part number Serial number Flags Bytes per frame Number of frames Counter Description Recognises the header = 0xcdcdcdcd Part number of the CSP2008 Serial number of the CSP2008 Provide information about the contents of the measured values. Bit 0: Output of the 1st measured value Bit 1: Output of the 2nd measured value Bit 2: Output of the 3rd measured value Bit 3: Output of the 4th measured value Bit 4: Output of the 5th measured value Bit 5: Output of the 6th measured value Bit 31: Timestamp on Number of bytes which a measured value frame contains. Number of frames which this header covers. Number of the 1st measured value in this packet; in this way, missing packets can be detected. Fig. 56 Entries in the measured value block header The header is mandatory at the start of a UDP or TCP/IP packet. The data output to a measured value server via Ethernet must not be confused with the saving of the measured values in the demonstration window of the Web interface. CSP2008 Page 65 Warranty 6. Warranty All components of the device have been checked and tested for perfect function in the factory. In the unlikely event that errors should occur despite our thorough quality control, this should be reported immediately to MICRO-EPSILON. The warranty period lasts 12 months following the day of shipment. Defective parts, except wear parts, will be repaired or replaced free of charge within this period if you return the device free of cost to MICRO-EPSILON. This warranty does not apply to damage resulting from abuse of the equipment and devices, from forceful handling or installation of the devices or from repair or modifications performed by third parties. No other claims, except as warranted, are accepted. The terms of the purchasing contract apply in full. MICRO-EPSILON will specifically not be responsible for eventual consequential damages. MICRO-EPSILON always strives to supply the customers with the finest and most advanced equipment. Development and refinement is therefore performed continuously and the right to design changes without prior notice is accordingly reserved. For translations in other languages, the data and statements in the German language operation manual are to be taken as authoritative. 7. Service, Repair In the event of a defect on the controller: -- If possible, save the current controller settings in a parameter set, see Chap. 5.3.12, in order to load again the settings back into the controller after the repair. -- Please send us the effected parts for repair or exchange. The opening of the controller is only subjected to the manufacturer. In the case of faults the cause of which is not clearly identifiable, the whole measuring system must be sent back to CSP2008 MICRO-EPSILON Optronic GmbH Lessingstraße 14 01465 Langebrück / Germany Tel. +49 (0) 35201 / 729-0 Fax +49 (0) 35201 / 729-90 optronic@micro-epsilon.de www.micro-epsilon.com Page 66 Factory Settings 8. Factory Settings User level Professional Menu language German Measuring unit Millimeter Separator Comma Measured value display 3 decimal places Leading sign Yes Error display Yes Background color cyan Address type Static IP-Adresse 169.254.168.150 Gateway 169.254.1.1 Subnet mask 255.255.0.0 Media type Automatic detection Transfer type No transfer Mode terminal block Digital In Active synchronization/Triggering HIGH Active zero setting HIGH Set zero duration 50 ms Reset zero duration 10000 ms EtherCAT bus Deactivated Bus coupler EK1100 Cycle selection Internal Master clock 2.5 kHz Operating mode Continuous Divider calculation frequency 1 Analog output CSP2008, type 0 ... 10 V Digital CSP2008, pulse width of synchronous output 5 μs RS422 Baud rate 115200 CSP2008 setup no. 1 Master value 0 This overview shows only one excerpt of the most important parameters. No sensors and no output are active after request of factory setting. Connected sensors are only recognized again after selection in the menu data recording. 9. Decommissioning, Disposal Disconnect all sensor cables, supply and output cables from the controller. 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 country-specific waste treatment and disposal regulations of the region of use. CSP2008 Page 67 Programming the Controller with the Function Keys 10. Programming the Controller with the Function Keys This chapter describes the programming of the controller for the comparative thickness measurement with the function keys. The master target is located in the measuring gap of the sensors, a pulse generator is connected to the Zero input and Setup No. 2 is assigned with the factory settings. Objectives: -- Comparative thickness measurement (mastering), see Chap. 5.3.10.6. -- The mastering is initiated by a Low pulse at the Zero input. -- Program is stored in the Setup No. 2. -- Output of the absolute dimension and the difference from the master target on the display. la er on state DQ1 optoNCDT Sensor 1 A K A 2 670 n Maste value Input 1 Deviation Measured Value1 Block 2 Mastering Input 2 SMR 2 K A 670 n 2 A H N K Absolute Measured Value2 Master value DQ1 W A SE S optoNCDT Sensor 2 Display Block 3 Calculation DQ2 B*DQ2 + C CSP2008 K SMR 1 W A Block 1 Standard Formel: A*DQ1 + B*DQ2 Block 1 Calculation DQ2 A*DQ1 + B*DQ2 state la er on Zero Completely installed controller after switching on the power supply. MessWert 1 in mm +000.000 +000.000 ESC Shield Shield Out2 GND Ana1 GNDA 0V Ana2 GNDA Out1 GND PE GND Shield PE 24V GND Shield Sync/Out GND Sync/Trig Z Sensors with digital output Lase MessWert 2 in mm Pulse Power supply generator A. Invoking Setup No. 2 CSP2008 Press the button and use the button to change to the Load/save settings. Confirm the selection with the button . Settings Data output Load/save set ing Factory settings Help/Info Help Press the button to change to Setup No.. Confirm the selection with the button . Load/save set ings Setup No. Activate Save setup Help 1 Page 68 Programming the Controller with the Function Keys Press the button to change to Setup No. 2. Confirm the selection with the button . Setup No. 1 -> 2 <3 -?- Press the button . The controller changes back to the menu Load/save setting Press ESC key to exit from the submenu. Select OK Load/save settings Setup No. Activate Save setup Help 2 B. Definition of the control input “zero” for initiating the mastering Press the button to change to Digital inputs 2008. Confirm the selection with the button . Settings Digital CSP2008 inputs EtherCAT-Devices Data recording Calculation Data output Press the button to change to Active Zero. Confirm the selection with the button . Digital CSP2008 inputs Mode Sync/Trig Digi In Active Sync/Trig HIGH Active zeroing HIGH ZeroDuration/ms 5 ResetDuration/ms 10000 The zero input reacts to the High level in the factory settings. Now change the active level. Press the button to change to LOW. Confirm the selection with the button Active twice. HIGH -> LOW <- Afterwards, the controller returns to the previous menu level. -?- Now define the pulse length for the mastering and ending the mastering. Press the button to change to ZeroDuration/ms. Confirm the selection with the button . Select the position to be edited with the button. Press the button once to increase the time to 60 ms. Select OK ZeroDuration/ms +00050 -?- Edit OK ZeroDuration/ms +00060 -?- Confirm the input with the button several times until the controller changes to the Digital CSP inputs menu. The pulse length for the ending the mastering (ResetDuration/ms)should be 3 s. Edit OK Digital CSP2008 inputs Active zeroing LOW ZeroDuration/ms 60 ResetDuration/ms 10000 Set zero Reset Repeat the steps above to define the pulse length to 30000 ms for ending the mastering (ResetDuration/ms). Press the ESC key; the controller changes to the main menu. CSP2008 Page 69 Programming the Controller with the Function Keys C. Definition of the sensor connections Press the button to change to Data recording. Confirm the selection with the button . Settings Digital CSP2008 inputs EtherCAT-Devices Data recording Calculation Data output Activate the menu Sensor 1 with the button .Select the menu Sensor 1 with the button . Press again the button , to reach the Sensor selection list. Select the connected sensor from the list. Sensor 1 Sensor selection ILD1700 RS422 Serial number 0707011 Measuring range 20 Reset/default If the baud rate is selected correctly the controller determines all sensor parameters automatically. When the connection with the sensor is successful, the LED Connected next to the sensor connection begins to flash. Repeat the previous steps to define Sensor 2. Return to the Data recording afterwards. Data recording Sensor 1 Sensor 2 Time base Help If you use different sensors, input scaling of the sensor measured values and the specification of the master clock may be necessary, see Chap. 5.3.9.2, see Chap. 5.3.9.3. You reach these parameters in the "Data recording" menu. Press the button to change to Time base. Confirm the selection with the button . Edit the parameters. Cycle selection = Internal Operating mode = Synchronous Time base Cycle selection Internal Master clock kHz 2.500000 Operating m.. Synchronous 1 Divider cal.. fr.. 1 Divider 2 The master clock depends on the connected sensors. D. Programming the calculation module in Block 1 Press the button to change to Calculation. Confirm the selection with the button . Calculation Block 1 Block 2 Block 3 Block 4 Block 5 Call the Block 1 menu with the button . Press the button to call the Program selection menu. Block 1 Program selection Help Press the button to select the Calculation program. Press the button twice. This confirms the selection and you return to the previous menu level. Program selection ---> Calculation<Average -?- Press the button to change to Data Source 1. Confirm the selection with the button . Press the button to change to Sensor 1. Repeat the previous steps to define the data source 2 . Input signal is Sensor 2. Select OK Data source 1 ---> Sensor 1 <Sensor 2 -?- Select Block 1 Program sel.. Data source 1 Data source 2 Parameter A Parameter B CSP2008 --- OK Calculation Sensor 1 Sensor 2 1.000000 1.000000 Page 70 Programming the Controller with the Function Keys Press the button to change to Parameter A/B/C. Confirm the selection with the button . : Move cursor to the right. ESC: Move cursor to the left. Block 1 Data source 2 Parameter A Parameter B Parameter C Sensor 2 -1.000000 1.000000 0.000000 Edit the parameters. A = -1.000000 B = -1.000000 C = 0.000000 Press the ESC key; the controller returns to the menu Calculation. E. Programming the calculation module in Block 2 Press the button to change to Block 2. Confirm the selection with the button . Calculation Block 1 Block 2 Block 3 Block 4 Block 5 Press the button Program selection Average Statistics Mastering to call the Program selection menu. Press the button to select the Mastering program. Press the button twice. This confirms the selection and you return to the previous menu level. Press the button to change to Data Source 1. Confirm the selection with the button . Press the button to change to BL 1 - Calc. Confirm the selection with the button . Press the button to change to Data Source 2. Confirm the selection with the button . Press the button to select the input Zero. Press the button twice. This confirms the selection and you return to the previous menu level. Press the button to change to Master value in mm. Confirm the selection with the button . : Move cursor to the right. ESC: Move cursor to the left. -?- Select OK Block 2 Mastering Data source 1 --Data source 2 --Data source 3 --Master value mm 0.000000 Program sel. Data source 1 Sensor 1 Sensor 2 -> Bl 1 - Calc <-?- Select OK Master value in mm +0000.000000 -?- Edit OK Input the thickness of the master target. Confirm the input with the button . Press the ESC key; the controller returns to the calculation menu. CSP2008 Page 71 Programming the Controller with the Function Keys F. Programming the calculation module in Block 3 Press the button to change to Block 3.Confirm the selection with the button . Calculation Block 1 Block 2 Block 3 Block 4 Block 5 Press the button Program selection ---> Calculation<Average to call the Program selection menu. Press the button to select the Calculation program. Press the button twice. This confirms the selection and you return to the previous menu level. Press the button to change to Data Source 2. Confirm the selection with the button . Press the button to change to BL 2 Mastering. Press the button twice. This confirms the selection and you return to the previous menu level. Press the button to change to Parameter A/B/C. Confirm the selection with the button . : Move cursor to the right. -?- Select OK Data source 2 Sensor 2 Bl 1 - Calc -> Bl 2 - Mastering <-?- Select OK Block 3 Program sel. calculation Data sources Calculation parameter Help ESC: Move cursor to the left. Edit the parameters. A = 0.000000 B = 1.000000 C = -Master value, e.g. -27 mm Confirm the input with the button . Then press the ESC key twice. G. Output calculated values on the display Press the button to change to Data Output. Confirm the selection with the button . Settings Digital CSP2008 inputs EtherCAT Devices Data recording Calculation Data output Call the Display menu with the button to call the Output 1 menu. . Press the button Display Output 1 Output 2 Output 3 Output 4 Output 5 Press the button to select the B3 Calc. Press the button twice. This confirms the selection and you return to the previous menu level. Output 1 B1 Calc B2 Mastering -> B3 Calc <-?- Press the button to change to Output 2. Confirm the selection with the button . Press the button to select the B2 Mastering. Press the button twice. This confirms the selection and you return to the previous menu level. ----------- Select OK Output 2 Sensor 2 B1 Calc -> B2 Mastering <-?- Select OK Press the ESC key twice; the controller changes to menu Settings. CSP2008 Page 72 Programming the Controller with the Function Keys H. Saving parameters Press the button to change to Load/save settings. Confirm the selection with the button . Press the button to change to the Save setup. Confirm the selection with the button . Press the button . The controller now saves the settings and changes back to the menu Load/save settings. Load/save settings Setup no. Activate Save setup Help 2 Save setup Save setup -?- OK Press the ESC key twice; the controller changes to the display mode. I1. Initiate master measurement using external pulse Press the ESC key so that the controller returns to the display mode. Meas. value 1 in mm 000.000 Meas. value 2 in mm +027.000 I2. Initiate master measurement using a command The controller is in display mode. Press the button Press the button . to change to Digital CSP2008 inputs. Confirm the selection with the button Press the button . to change to Set zero. Confirm the selection with the button Digital CSP2008 inputs Mode Digi In Active Sync/Trig HIGH Active Zero LOW ZeroDuration/ms 60 ResetDuration/ms 30000 Set zero . Set zero -?- Press the button OK . The controller starts the master measurement and returns to the menu Digital CSP2008 inputs. Press the ESC key twice; the controller changes to display mode. Meas.Value 1 mm 000.000 Meas.Value 2 mm +027.000 CSP2008 Page 73 Telnet 11. Telnet The Telnet commands allow you to communicate with the CSP2008 from the PC. 11.1 General 11.1.1 Requirement For communication you need an existing Ethernet connection between CSP2008 and your PC. 11.1.2 Connection Buildup Start the program Telnet.exe via Start menu > Running. Type the command o 169.254.168.150 or the IP address of the CSP2008. Fig. 57 Telnet startup screen of the CSP2008 A command always consists of the command name and zero or more parameters separated by spaces. The currently set parameter value is returned when a command is called without parameters. The output format is: <Command name> <Parameter1> [<Parameter2> […]] The retrieved command can be used again without changes for the setting of the parameter. After processing of a command always a word-wrap and a prompt is returned. („->“). In the case of an error an error message which begins with “Exx” stands before the prompt in which xx stands for an definite error number. 11.1.3 Error Messages The following error messages may occur: -- E01 Unknown command: An unknown parameter ID was passed. -- E06 Access denied: This parameter cannot be passed at the moment. Possibly, the controller is not in professional mode or the parameter is not visible by other settings. -- E08 Unknown parameter: Too few parameters were passed. -- E11 The value entered is outside of the valid range or the format is invalid: The value passed is outside of the valid range. The text of the error messages depends on the adjusted language. The characteristic of the error message (Exx) is the same for every language. CSP2008 Page 74 Telnet 11.2 User Level 11.2.1 Change User Level LOGIN <Password> Enter the password to get into another user level. User levels are: -- USER: Read-only access to all elements and the graphical representation of the output values in the web interface -- PROFESSIONAL: Read and write access to all elements 11.2.2 Change to the User Level LOGOUT Set the user level to USER. 11.3 Parameter Management 11.3.1 Loading Setups Command: LOADSETUP 1|2|3|4|5 | ... | 20 Loads the specified setup in the CSP2008. The command works analog to the Load/ save settings menu > Import setup. The designated setup number must be specified. 11.3.2 Saving the Setups Command: STORESETUP 1|2|3|4|5 | ... | 20 Saves the specified setup in the CSP2008. The command works analog to the Load/ save settings menu > Save setup. The designated setup number must be specified. 11.4 Master Clock MEASRATE <Value> Select the master clock from 0.1 up to 100.0 kHz. 11.5 Mastering 11.5.1 Mastering (Zeroing) Command: SWMASTER Activates a zero setting pulse. Command works analog to the Digital CSP2008 inputs menu > Terminal block zero > Set zero. 11.5.2 Mastering (Reset) Command: SWREMASTER Activates a reset pulse. Command works analog to the Digital CSP2008 inputs menu > Terminal block zero > Reset. CSP2008 Page 75 Telnet 11.6 Software Trigger 11.6.1 Activating Software Trigger Command: SWTRIGGERENABLE 0|1 Activates the software trigger. Command works analog to the Digital CSP2008 inputs menu > Terminal block synchronization/triggering > manual trigger active. i The input Sync/Trig must be set on trigger for running this command in the CSP2008. Parameter: -- 0 deactivates the software triggering -- 1 activates the software triggering 11.6.2 Initiating Software Trigger Command: SWTRIGGER 0|1 -- Initiates a trigger pulse in case of edge triggering or -- Initiates a trigger pulse in case of level triggering. Command works analog to the Digital CSP2008 inputs menu > Terminal block synchronization/triggering > Activate level. In case of edge triggering the 1 is reset automatically; in case of level triggering the triggering must be reset by command. Parameter: -- 0 deactivates the software triggering -- 1 activates the software triggering 11.7 Edge Filter Command: EDGEFILTER <Block No> <Upper threshold in mm> <Lower threshold in mm> <Number of ignored and substitued measuring values N> Activates the edge filter. The command works similarly to the menu Calculation > Block n > Edge filter. i First the calculation block and the data source must be configured via the web interface for the edge filter. 11.8 Software Switching Outputs Command: SWDIGITALOUT <Number> <Number> specifies a decimal or a hex value of the software switching outputs set. The individual outputs are coded in the bits: Output 1 = bit 0, … output 10 = bit 9 Example: Output 1 and 10 should be set. Calculation: 1*2^0 + 1*2^9 = 513 (resp. 0x201) Command: SWDIGITALOUT 513 Previous settings are overwritten or deleted, if the command is used a further time. If the command is called without parameters, the current setting is returned. CSP2008 Page 76 From EtherCAT to Ethernet 12. From EtherCAT to Ethernet Sensors or controller with active EtherCAT interface can be set in the operation mode Ethernet via the Ether Mode function. Requirements: -- The sensor or controller is connected to the Sensor 1 / Sensor 2 connector. -- RS422 must be selected in the Sensor connection. -- The baud rate must be set correctly. EtherCAT RUN Ethernet P wer on ERR Laser off In ange Midrange Error optoNCDT L se str h ung i ht in den tr hl bli ken L ser l sse 2 nach DIN N 60 25-1 2008-05 P 1 mW; PP=1,2 mW; t=0 5. .542 µs F=1,5 . 50 kHz; =670 nm -- The EtherCAT Devices are set in the operation mode Sensor configuration. Sensor 1 Sensor/Controller selection: ILD2300 Sensor connection: RS422 Baud rate: . . . 691200 Charateristic Ether mode: Ethernet Measuring rate: 20 kHz EtherCAT Devices EtherCAT bus: Bus coupler/ Sensor: Deactivated Sensor configuration Active --- Submit the settings to CSP2008 Submit Procedure: Change to the menu Settings > Data recording > Sensor n and select Ethernet for the Ether Mode. Confirm your settings with Submit. After the Ether Mode has been changed the sensor/controller will be reset. Afterwards the sensor/controller will be automatically reconnected to the CSP2008. CSP2008 Page 77 Software Update 13. Software Update Requirements for software update i Connect the controller („Ethernet“ female connector) to a PC using an Ethernet direct connection (LAN) or switch (Intranet). Use a LAN cable with RJ-45 connectors. A software update does not affect the parameter settings. Newly added parameters are set to default values. Update Start the file <Update_Sensor.exe>. Select the file <CSP2008_User_005_xxx.meu>. Press the Update button. Wait until the controller has completed the update. After the update, restart the controller. CSP2008 Page 78 MICRO-EPSILON MESSTECHNIK GmbH & Co. KG Königbacher Str. 15 · 94496 Ortenburg / Germany Tel. +49 (0) 8542 / 168-0 · Fax +49 (0) 8542 / 168-90 info@micro-epsilon.de · www.micro-epsilon.com X9751208-B081096MSC MICRO-EPSILON MESSTECHNIK *X9751208-B08*