LTDVE2CH-20F | INSTRUCTIONS MANUAL 1. Disclaimer Always deploy and store Opto Engineering products in the prescribed conditions in order to ensure proper functioning. Failing to comply with the following conditions may shorten the product lifetime and/or result in malfunctioning, performance degradation or failure.
LTDVE2CH-20F | INSTRUCTIONS MANUAL 4. General description Any machine vision application employs some kind of light controller. Light controllers are widely used to both optimize illumination intensity and obtain repeatable trigger sequencing between lights and vision cameras. This controller is a compact unit that includes power supply conditioning, intensity control, timing generation and advanced triggering functions.
LTDVE2CH-20F | INSTRUCTIONS MANUAL High current, up to 40 A (with a resolution of 40 mA) The controller must be powered with a fixed supply voltage of 24 V. There is an internal DC/DC converter that can be programmed to provide any voltage between 5 V and 190 V for supplying the output drivers.
LTDVE2CH-20F | INSTRUCTIONS MANUAL The maximum permissible controller heatsink temperature is 90 °C. If the heatsink temperature rises above 90 °C, the controller switches off all the output channels. Output channels are then reactivated once temperature falls below 80 °C.
LTDVE2CH-20F | INSTRUCTIONS MANUAL Supply to the logic section should always be present, while supply to the power stages can be cut off at any time. Supply to the power stages can be removed to protect the end user from photo- biological hazard and other dangerous situations that may happen during fault conditions.
LTDVE2CH-20F | INSTRUCTIONS MANUAL P1, P2 Phoenix Contact 1757035 MH Connectors MHDM15SS Table 1: mating plugs for the controller connectors 8.2. Power and logic supply The power supply voltage must be 24 V. A dedicated and well-regulated switching power supply is required.
LTDVE2CH-20F | INSTRUCTIONS MANUAL LD2+ Power channel 2 output. LED anode LD2- Power channel 2 output. LED cathode Table 3: pinout of connector P2 Please note that LED1- and LED2- are not the same as 0V. 8.4. Input/output synchronization Connector P5 is used for input and output synchronization and for serial RS485 communication.
LTDVE2CH-20F | INSTRUCTIONS MANUAL NTC1_A Temperature sensor 1 terminal A NTC1_B Temperature sensor 1 terminal B NTC2_A Temperature sensor 2 terminal A NTC2_B Temperature sensor 2 terminal B Table 9: pinout of external temperature sensor in connector P5 These analogue signals are not electrically isolated from the controller electronics. Be careful not to connect them to any other signal.
LTDVE2CH-20F | INSTRUCTIONS MANUAL Modbus/TCP (Transmission Control Protocol) slave protocol, the Modbus/UDP (User Datagram Protocol) slave protocol or the HTTP (Hyper Text Transfer Protocol) protocol. For supporting the latter, the controller provides an internal web server accessible by most common web browsers.
LTDVE2CH-20F | INSTRUCTIONS MANUAL 10. Visual indicators There are twelve LEDs on the top panel of the controller and two LEDs embedded in the Ethernet RJ45 jack. Some of them are used to show that power supplies are available, others are pulsed when inputs and output are activated, while others are used to indicate activity on the communication interfaces or fault conditions.
LTDVE2CH-20F | INSTRUCTIONS MANUAL During the ten seconds interval the RUN and ERR LEDs blink at a high rate to emphasize the circumstance. In the meantime, the use of the serial RS485 interface is restricted to the firmware update and the Modbus/TCP, Modbus/UDP and HTTP protocols are not available.
LTDVE2CH-20F | INSTRUCTIONS MANUAL Tfilter Tfilter Tfilter Tfilter input output Figure 5: operation of the input filter As visible, the input signal is filtered by looking for pulses that hold the same state for a time of at least Tfilter before the change in state is passed to the output. Please note there is a fixed input to output propagation delay equal to this filter time constant.
LTDVE2CH-20F | INSTRUCTIONS MANUAL 12.4. Pulse generator There are four pulse generators. Each of them is characterized by three parameters: pulse delay, pulse width and hold off interval. The pulse delay can range from 0 µs to 1,023,000 µs with variable resolution down to 1 µs.
Page 21
LTDVE2CH-20F | INSTRUCTIONS MANUAL the light (Toff) to be greater than or equal to a programmable value ToffMIN. The diagram in Figure 7: turn-on and turn-off times within limits shows what happens when both time constraints are satisfied. As visible in the diagram, the output follows the input.
LTDVE2CH-20F | INSTRUCTIONS MANUAL time) and ToffMIN (minimum turn-off time). All of these time intervals can be programmed and may range from 1 ms to 255 ms in steps of 1 ms. The turn-on protection can be inhibited on selected outputs if a continuous operation is required by the application.
LTDVE2CH-20F | INSTRUCTIONS MANUAL 13.2. Wiring example #2: camera triggers controller In the schematic diagram of Figure 11: example schematic #2 the controller is driven by one input trigger coming from a camera, powers a total of two lights and triggers a second camera.
LTDVE2CH-20F | INSTRUCTIONS MANUAL and update of Modbus protocols has been managed by the Modbus Organization since April 2004. The Modbus Organization is an association of users and suppliers of Modbus compliant devices that seeks to drive the adoption and evolution of Modbus.
LTDVE2CH-20F | INSTRUCTIONS MANUAL 14.1.4. Write Single Register (0x06) This function code is used to write a single register in the controller register file. The master specifies the address of the register to be written and the actual data to be written. Registers are addressed starting at zero.
Page 27
LTDVE2CH-20F | INSTRUCTIONS MANUAL 1023 GEN_WIDTH_BASE2 Pulse width time base selector for generator 3 GEN_WIDTH_COUNT2 Pulse width setting for generator 1023 GEN_DELAY_BASE3 Pulse delay time base selector for generator 4 GEN_DELAY_COUNT3 Pulse delay setting for generator 1023 GEN_WIDTH_BASE3 Pulse width time base selector...
Page 29
LTDVE2CH-20F | INSTRUCTIONS MANUAL UNUSED UNUSED UNUSED UNUSED UNUSED UNUSED UNUSED UNUSED UNUSED OUTPUT_SEL_HI8 0-511 High order byte of setting for SH1 output multiplexer OUTPUT_SEL_LO8 Low order byte of setting for SH1 65535 output multiplexer OUTPUT_SEL_HI9 0-511 High order byte of setting for...
Page 30
LTDVE2CH-20F | INSTRUCTIONS MANUAL PRT_CNT_ON1 1-255 Maximum turn-on time for light output LD2 PRT_ENA_ON1 Enable limitation of maximum turn-on time for light output LD2 PRT_CNT_OFF1 1-255 Minimum turn-off time for light output LD2 PRT_ENA_OFF1 Enable limitation of minimum turn-off time for light output LD2...
Page 31
LTDVE2CH-20F | INSTRUCTIONS MANUAL CUR_RANGE1 Current range for light output CUR_VALUE1 Current value for light output 20000 UNUSED UNUSED UNUSED UNUSED UNUSED UNUSED UNUSED UNUSED UNUSED UNUSED UNUSED UNUSED RS485_MODBUS_ADDR 1-247 Modbus address serial RS485 interface RS485_LINE_SPEED Speed for serial RS485 interface...
Page 32
LTDVE2CH-20F | INSTRUCTIONS MANUAL 65535 name ETH_HOSTNAME7 Bytes 14 and 15 of Ethernet host 65535 name ETH_DHCP_ENABLE Ethernet DHCP enable/disable flag ETH_IP_ADDR_HI High order word of Ethernet IP 65535 address ETH_IP_ADDR_LO Low order word of Ethernet IP 65535 address ETH_SUBNET_MASK_HI...
Page 33
LTDVE2CH-20F | INSTRUCTIONS MANUAL +1000 light outputs LD1 and LD2 REMOTE_TEMPERATURE0 -200 to Temperature measured +1000 external thermal sensor 1 REMOTE_TEMPERATURE1 -200 to Temperature measured +1000 external thermal sensor 2 UNUSED SUPPLY_VOLTAGE 0-240 Measured supply voltage MEASURED_CURRENT0 Measured current for light output...
Page 34
LTDVE2CH-20F | INSTRUCTIONS MANUAL GEN_HOLD_COUNT2 Hold off setting for generator 3 1023 GEN_HOLD_BASE3 Hold off time base selector for generator 4 GEN_HOLD_COUNT3 Hold off setting for generator 4 1023 UNUSED UNUSED UNUSED UNUSED UNUSED UNUSED UNUSED UNUSED UNUSED UNUSED UNUSED...
Page 35
LTDVE2CH-20F | INSTRUCTIONS MANUAL UNUSED UNUSED UNUSED UNUSED UNUSED UNUSED UNUSED UNUSED UNUSED UNUSED UNUSED RESERVED Reserved for future use RESERVED Reserved for future use RESERVED Reserved for future use RESERVED Reserved for future use RESERVED Reserved for future use...
Page 39
14.2.1. Register DEVICE_TYPE This register contains the device type. This information is encoded as a 16-bit unsigned number. For the standard LTDVE2CH-20F the device type is 0x000A. 14.2.2. Register BOOT_VERSION This register contains the bootloader firmware version for the microcontroller. This information is encoded as a 16-bit unsigned number.
Page 40
LTDVE2CH-20F | INSTRUCTIONS MANUAL FILTER_SEL1: filter setting for input TR2 Allowed values are in the range from 0 to 6 and are listed below. Avoid operation with non-listed values. When 0x0 filter is disabled (pass through) (default value) ...
Page 41
LTDVE2CH-20F | INSTRUCTIONS MANUAL values. When 0x0 a time base of 1 µs is selected (default value) When 0x1 a time base of 10 µs is selected When 0x2 a time base of 100 µs is selected ...
Page 42
LTDVE2CH-20F | INSTRUCTIONS MANUAL GEN_WIDTH_COUNT0: pulse width setting for generator 1 GEN_WIDTH_COUNT1: pulse width setting for generator 2 GEN_WIDTH_COUNT2: pulse width setting for generator 3 GEN_WIDTH_COUNT3: pulse width setting for generator 4 Allowed values are in the range from 1 (default value) to 1023 (maximum value). Avoid operation with non-allowed values.
Page 43
LTDVE2CH-20F | INSTRUCTIONS MANUAL Registers OUTPUT_SEL_HI[x] hold in bit fields [8:0] the nine high order bits of the selectors, while registers OUTPUT_SEL_LO[x] hold the remaining sixteen low order bits of the selectors. OUT_SEL_LO0: lower sixteen bits of output multiplexer 1 selector (light LD1) ...
Page 44
LTDVE2CH-20F | INSTRUCTIONS MANUAL PRT_ENA_OFF0: enable flag for the limitation of turn-off time for light output LD1 PRT_ENA_OFF1: enable flag for the limitation of turn-off time for light output LD2 When set to zero the limitation of turn-off time is disabled (default value), when set to one the limitation of turn-off time is enabled.
Page 45
LTDVE2CH-20F | INSTRUCTIONS MANUAL When 0x3 the selected baud rate is 9600 bits per second (default value) When 0x4 the selected baud rate is 19200 bits per second When 0x5 the selected baud rate is 38400 bits per second ...
Page 46
LTDVE2CH-20F | INSTRUCTIONS MANUAL ETH_HOSTNAME6: bytes 12 and 13 of the Ethernet host name ETH_HOSTNAME7: bytes 14 and 15 of the Ethernet host name The factory settings can be restored using the INIT button (see chapter 11 for a description of the INIT button functionalities).
Page 47
LTDVE2CH-20F | INSTRUCTIONS MANUAL INIT button functionalities). 14.2.33. Register ETH_PRI_DNS_HI This register contains the sixteen high order bits of the primary (preferred) DNS address for Ethernet communication of the controller. These are the bits [31:16]. The primary DNS address is 192.168.0.2.
Page 48
LTDVE2CH-20F | INSTRUCTIONS MANUAL INIT button functionalities). 14.2.40. Registers WEB_PASSWORD[0:3] These registers contain the web password of the controller. WEB_PASSWORD0: bytes 0 and 1 of the web password WEB_PASSWORD1: bytes 2 and 3 of the web password ...
Page 49
LTDVE2CH-20F | INSTRUCTIONS MANUAL 14.2.45. Registers MEASURED_CURRENT[0:1] The controller is capable of measuring the actual output currents for the two light outputs. MEASURED_CURRENT0: measured current for light output LD1 MEASURED_CURRENT1: measured current for light output LD2 These registers contain the measured output currents, expressed as unsigned sixteen bits integers, with a resolution of 1 mA.
Page 50
LTDVE2CH-20F | INSTRUCTIONS MANUAL 14.2.52 for more information) When the supply on the +V PWR wire is missing, the ERR LED is lit with a stable red colour. When an over temperature condition or a hardware problem is detected the ERR LED is lit with a blinking red colour.
Page 51
LTDVE2CH-20F | INSTRUCTIONS MANUAL GEN_EDGE_SEL1: trigger edge selector for generator 2 GEN_EDGE_SEL2: trigger edge selector for generator 3 GEN_EDGE_SEL3: trigger edge selector for generator 4 Allowed values are in the range from 0 to 2 and are listed below. Avoid operation with non-listed values.
Page 52
LTDVE2CH-20F | INSTRUCTIONS MANUAL default) selects a reduced current of zero, effectively turning off the light output after the current reduction delay has expired. 14.2.54. Register SOFTWARE_TRIGGER Bit field [3:0] of this register contains four bits that can be used to issue up to four independent and direct software triggers to the controller internal timing logic.
Page 53
LTDVE2CH-20F | INSTRUCTIONS MANUAL the actual minimum is around 5 V and the actual maximum is about 190 V. The factory value for this register is 30, therefore by default the maximum voltage produced by the DC/DC converter is 30 V.
Page 54
LTDVE2CH-20F | INSTRUCTIONS MANUAL The measured value drops to zero if the DC/DC converter is defective. The register is continuously updated and the value is approximate. This register is read only. 14.2.61. Register DRIVER_VOLTAGE The controller is capable of measuring the actual voltage supplying the drivers of the light outputs.
Page 55
LTDVE2CH-20F | INSTRUCTIONS MANUAL When 1 register file is read from non-volatile memory (current contents will be overridden) When 2 register file is written to non-volatile memory (current contents will not be affected) When 3 the controller is rebooted Changes to the register file are saved in non-volatile memory only when a specific command is issued to the controller using this register.
Page 56
LTDVE2CH-20F | INSTRUCTIONS MANUAL Figure 12: the Main web page The top part of the main web page contains the navigation menu that is used to access all the other pages necessary to configure and manage the controller. The navigation menu is always visible and accessible at the top of every page.
Page 57
LTDVE2CH-20F | INSTRUCTIONS MANUAL Advanced setup In the bottom part of the main page, the following information is collected: Version information: o Device type: model of the controller o Bootloader firmware version: version of the MCU bootloader firmware...
Page 58
LTDVE2CH-20F | INSTRUCTIONS MANUAL Figure 13: the Setup synch inputs TR1-TR2 web page Each synchronization input has a digital filter that can be set independently. Each of the two filters can be enabled or disabled. If enabled, it can be set to one of six predefined time constants. The available selections are: ...
Page 59
LTDVE2CH-20F | INSTRUCTIONS MANUAL Figure 14: the Setup pulse generators GN1-GN4 web page Each pulse generator can be set independently. Each pulse generator is triggered by a selectable source and can have a different pulse delay, pulse width and hold off interval.
Page 60
LTDVE2CH-20F | INSTRUCTIONS MANUAL rising and falling edges Pulse delay is the delay of the generated pulse with respect to the triggering source. The pulse delay may range from 0 µs to 1,023,000 µs with variable resolution Pulse width is the time duration of the generated pulse. The pulse width may range from 1 µs to 1,023,000 µs with variable resolution...
Page 61
LTDVE2CH-20F | INSTRUCTIONS MANUAL detected by the controller itself. Converter mode selects the operating mode for the DC/DC converter. It can be chosen between Fixed voltage (default) and Autodetect voltage. When set to Autodetect voltage the controller selects the lowest voltage sufficient to drive the programmed current into the two lights.
LTDVE2CH-20F | INSTRUCTIONS MANUAL Allowed values are in the range from zero to 60000 and are expressed in ms, so the current reduction delay can range from zero up to 60000 ms. A value of zero (factory default) disables the feature ...
Page 63
LTDVE2CH-20F | INSTRUCTIONS MANUAL Figure 17: the General setup web page A password can be used to deny the modification of the settings to unauthorized personnel. In case the password is set, it must be entered in the Current password field. If the entered password matches the saved password, the settings can be changed.
LTDVE2CH-20F | INSTRUCTIONS MANUAL MAC address is the unique MAC address of the Ethernet interface Host name is the name given to the controller DHCP mode enables or disables the use of a DHCP server IP address is the IP address assigned to the controller ...
Page 65
LTDVE2CH-20F | INSTRUCTIONS MANUAL Figure 18: the Advanced setup web page The fields under Change unlock password can be used to set or modify the password employed to protect the settings of the controller from unauthorized modify. Current password is the current password (leave blank if there is not current password) ...
LTDVE2CH-20F | INSTRUCTIONS MANUAL vision applications. It provides a number of features and includes Modbus/TCP connectivity capabilities. The implementation of the Modbus protocol in FabImage Studio is complete, but for the use with this controller only a subset of functions, called filters, are necessary.
Page 67
LTDVE2CH-20F | INSTRUCTIONS MANUAL Figure 20. Selection of the Modbus TCP filter variant (top part) The following figure shows the lower part of the window, where all the filters for writing data through Modbus are collected. V 1.03 - eng...
Page 68
LTDVE2CH-20F | INSTRUCTIONS MANUAL Figure 21. Selection of the Modbus TCP filter variant (bottom part) In order to select one of the filter variants, click over it and then click on the Insert button in the lower right corner of the window. It is also possible to double-click on the desired variant. The filters useful for communicating with the controller are circled in red in the two previous pictures.
Page 69
LTDVE2CH-20F | INSTRUCTIONS MANUAL The connection between the outSocket output of filter ModbusTCP_Connect and the two inSocket inputs of filters ModbusTCP_Read:MultipleIntegerRegisters? and ModbusTCP_Close are made by drag and drop from the output to the inputs. Clicking on one filter instance will cause the filter property inspector to open on the bottom left panel of the user interface.
Page 70
LTDVE2CH-20F | INSTRUCTIONS MANUAL Figure 25. Example of data-flow code for writing a register The connection between the outSocket output of filter ModbusTCP_Connect and the two inSocket inputs of filters ModbusTCP_Write:SingleRegister? and ModbusTCP_Close are made by drag and drop from the output to the inputs. Clicking on one filter instance will cause the filter property inspector to open on the bottom left panel of the user interface.
LTDVE2CH-20F | INSTRUCTIONS MANUAL Modbus registers located at sequential addresses. After the write has completed ensure to close the connection with the controller using the ModbusTCP_Close? filter. 16. Electromagnetic compatibility This product conforms to CENELEC EN 61326-1:2013 class A requirements for electromagnetic interference (EMI) suppression.
Page 72
LTDVE2CH-20F | INSTRUCTIONS MANUAL Figure 28: connection of RS485-USB adapter to the controller The image in Figure 29: main window of LTDVE firmware updater application presents the main window of the PC application. V 1.03 - eng...
Page 73
LTDVE2CH-20F | INSTRUCTIONS MANUAL Figure 29: main window of LTDVE firmware updater application It is necessary to specify the communication port on the PC the controller is connected to. In the image COM5 has been selected as the communication port. The baud rate is fixed at the maximum speed of 460,800 bits per second as indicated in the main window.
Page 74
LTDVE2CH-20F | INSTRUCTIONS MANUAL Figure 30: dialog used to locate the FPGA Algo firmware file After the FPGA Algo file has been specified, the relative modal dialog is closed. The new modal dialog of Figure 31: dialog used to locate the FPGA Data firmware file will then be displayed, asking to specify the FPGA Data file.
Page 75
LTDVE2CH-20F | INSTRUCTIONS MANUAL Figure 31: dialog used to locate the FPGA Data firmware file After the FPGA Data file has been specified, the relative modal dialog is closed. The couple of FPGA firmware files will then be loaded from the PC disk to the PC RAM. The text box at the bottom of the main window will then be updated with some information regarding the loading process (see image in Figure 32: main window after the FPGA firmware files have been loaded).
Page 76
LTDVE2CH-20F | INSTRUCTIONS MANUAL To update the MCU firmware it is necessary to specify a single file, named the MCU file. After pressing the Load MCU file button the modal dialog of Figure 33: dialog used to locate the MCU firmware file will be displayed, asking to specify the MCU file.
Page 77
LTDVE2CH-20F | INSTRUCTIONS MANUAL Figure 34: main window after the MCU firmware file has been loaded At this point the PC application is ready to connect to the controller and transfer all the new firmware data. Now the controller must be switched off, if already powered, and then powered up with the INIT button held pressed for just a second.
Page 78
LTDVE2CH-20F | INSTRUCTIONS MANUAL Figure 35: MCU firmware update sequence Next, the FPGA Data firmware is transferred (see image in Figure 36: FPGA Data firmware update sequence). Figure 36: FPGA Data firmware update sequence Last, the FPGA Algo firmware is transferred (see image in Figure 37: FPGA Algo firmware update sequence).
Page 79
LTDVE2CH-20F | INSTRUCTIONS MANUAL Figure 37: FPGA Algo firmware update sequence The FPGA is programmed just after both the FPGA Data and the FPGA Algo files have been transferred (see image in Figure 38: main window after FPGA programming). Figure 38: main window after FPGA programming The information in Figure 39: main window after successful firmware update is displayed when the update process is successfully finished.
Page 80
LTDVE2CH-20F | INSTRUCTIONS MANUAL Figure 39: main window after successful firmware update The whole update process takes about two minutes to complete. In the unlikely event of failure it is advisable to repeat the process from the very beginning. V 1.03 - eng...
Page 81
LTDVE2CH-20F | INSTRUCTIONS MANUAL V 1.03 - eng...
Need help?
Do you have a question about the LTDVE2CH-20F and is the answer not in the manual?
Questions and answers