LucidControl DI4 User Manual

4/8 channel digital input usb module

Advertisement

Quick Links

LucidControl DI4/DI8, User Manual (2.0)
2018-08-04
User Manual
LucidControl DI4/DI8
4/8 Channel Digital Input USB Module
Page 1 of 29

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DI4 and is the answer not in the manual?

Questions and answers

Summary of Contents for LucidControl DI4

  • Page 1 LucidControl DI4/DI8, User Manual (2.0) 2018-08-04 User Manual LucidControl DI4/DI8 4/8 Channel Digital Input USB Module Page 1 of 29...
  • Page 2: Setup And Installation

    DI7. Fig. 1 Digital Input Module The intended use of the DI4/DI8 module is the acquisition of digital signals. The module must only be used for the intended use. For this device it is explicitly stated that no potential (e.g. voltage) of more than 30V must be applied to any connector of the module.
  • Page 3 2018-08-04 2.1 Configurations Digital inputs have by nature only two states – they can be either LOW or HIGH. In order to be compatible with different voltage signals, the DI4/DI8 module is available with three threshold levels: Threshold Level LowMax HighMin 2.5 V...
  • Page 4 LucidControl DI4/DI8, User Manual (2.0) 2018-08-04 2.2.2 IO Connection The LucidControl DI4/DI8 module is equipped with 4 opto-insulated and potential- insulated inputs. Fig. 2 shows the interconnection of the DI4 module in a typical application. The input signals are represented by voltage sources applying a voltage within the valid threshold range to the inputs.
  • Page 5 The isolation limits the possible damage to the IO module itself. USB isolation can be an option if a higher protection level required or if LucidControl IO modules are operating in harsh environments.
  • Page 6 LucidControl DI4/DI8, User Manual (2.0) 2018-08-04 Note: All inputs of the DI4/DI8 module are isolated by an opto-coupler (Fig. 3). Page 6 of 29...
  • Page 7 This is not a driver but only an information file (INF). The file can be downloaded from our website www.lucid-control.com/downloads That’s all. LucidControl switches the green power LED on and the module is ready for usage. 2.3.1 Windows As mentioned the installation under Microsoft Windows (older than Windows 10) requires the information file.
  • Page 8 This page provides the command line tool LucidIoCtrl for different architectures. After downloading the program can be stored in a folder of choice. Please see the section 3 of the general LucidControl User Manual for more information about this helpful tool.
  • Page 9: Module Operation

    LucidControl DI4/DI8, User Manual (2.0) 2018-08-04 3 Module Operation 3.1 Operation Modes This section explains the operation of the different input modes and gives examples how to configure and use them. Each of the inputs of the module can work in one of the following modes: ...
  • Page 10 LucidControl DI4/DI8, User Manual (2.0) 2018-08-04 3.1.1 Reflect Mode Reflect Mode gives access to the logical input value directly. Fig. 5 illustrates the processing of the inputs in Reflect Mode. As soon as the rising edge of the input signal is detected it must remain stable over the interval T .
  • Page 11: Edge Detection

    LucidControl DI4/DI8, User Manual (2.0) 2018-08-04 Reflect Mode is simple to use and fits the requirement of many applications, but it is limited in detecting dynamic signals like pulses because the host computer is in charge of detecting them. Since most operating systems and USB are not able to handle tasks in very short intervals (e.g.
  • Page 12 LucidControl DI4/DI8, User Manual (2.0) 2018-08-04 One would say it is sufficient to read the input in reflect mode every 50 µs (with safety time) in order to detect the transition by the computer. But probably the operating system of the computer would violate the timing restrictions and pulses are lost.
  • Page 13: Count Mode

    LucidControl DI4/DI8, User Manual (2.0) 2018-08-04 3.1.2.2 Falling Edge Mode For the Falling Edge Mode applies the same functionality as for Rising Edge mode (see section 3.1.2.1) with the one exception that not a rising but a falling transition sets the input value.
  • Page 14 LucidControl DI4/DI8, User Manual (2.0) 2018-08-04 Normally, T timer is started on the rising edge of the input signal as it is shown in the Scan two pictures above. In the case that the parameter inDiInverted is set to “on” T...
  • Page 15 LucidControl DI4/DI8, User Manual (2.0) 2018-08-04 In the case of inDiResetCounterOnRead set to “off” reading of the counter value does not affect the counter value itself. In the case of inDiResetCounterOnRead is “on” the counter value is reset after reading it.
  • Page 16 Accessing inputs and outputs is a very common task which is mostly identical for all Lucid Control modules. Please refer to the section 3.2.1.1, 3.2.1.2 and 4.3 of the general LucidControl manual for comprehensive information covering reading and writing of inputs and outputs in general.
  • Page 17 LucidControl DI4/DI8, User Manual (2.0) 2018-08-04 3.2.1 GetIo This command reads the logic value of an input. Tab. 3 shows the input values depending on the configured input mode. Mode Value Reflect Contains the logic input value as “00” or “01”...
  • Page 18 In case of successful execution the command returns the value of the specified channel number. In the case of an error, the command returns Execution Status Code documented in section 4.4 of the LucidControl User Manual. Page 18 of 29...
  • Page 19 LucidControl DI4/DI8, User Manual (2.0) 2018-08-04 3.2.2 GetIoGroup This command reads the logic input values of a group of input of the same Value Type. See also section 3.2.1. Command GetIoGroup Access Read Opcode 0x48 LucidIoControl Command Line Tool Call (-tL) LucidIoCtrl –d[COMx] –c[Channels] –tL –r...
  • Page 20 Channel Mask. In the case of an error, the command returns Execution Status Code documented in section 4.4 of the LucidControl User Manual. In the case of an error, the command returns Execution Status Code documented in section 4.4 of the LucidControl User Manual.
  • Page 21 The Parameters are accessible by the commands SetParam and GetParam. The sections 4.3.5 and 4.3.6 of the LucidControl User Manual describe them in detail. The relevance of some parameters of the DI4/DI8 module may depend on the active mode described in section 3.1.
  • Page 22 LucidControl DI4/DI8, User Manual (2.0) 2018-08-04 -> inDiValue=0 Note: For normal operation it is recommended to use the function GetIo (3.2.1) in order to read the input value. 3.3.2 inDiMode This IO Configuration parameter configures the operation mode of the input.
  • Page 23 Note: When inDiFlags is changed by the SetParam command which is described in section 4.3.5 of the LucidControl User Manual the current setting of inDiFlags must be read before updating it in order to prevent overwriting other Bit Parameters. 3.3.3.1 inDiInverted This Bit Parameter configures the inversion of the physical input value.
  • Page 24 LucidControl DI4/DI8, User Manual (2.0) 2018-08-04 Read inversion of physical input channel 0 LucidIoCtrl –dCOM4 –c0 –ginDiInverted [ENTER] -> inDiInverted=on 3.3.3.2 inDiAddCounter This Bit Parameter controls how the counter value is updated after count interval time has finished. It is relevant in Count Mode only. (see section 3.1.3) Count In the case inDiAddCounter is “off”...
  • Page 25 LucidControl DI4/DI8, User Manual (2.0) 2018-08-04 In the case of inDiResetCounterOnRead is “on” the counter value is reset after reading it. Parameter inDiFlags Access Read / Write Address 0x1101 Shared bit in Parameter inDiFlags Bit Parameter Bit Postion Values inDiResetCounterOnRead...
  • Page 26 LucidControl DI4/DI8, User Manual (2.0) 2018-08-04 3.3.5 inDiCountTime This IO Configuration Parameter specifies the count time T of the digital input in Count Count Mode. The count interval specifies the time the pulses of the input signal are accumulated. Parameter...
  • Page 27: Specification

    LucidControl DI4/DI8, User Manual (2.0) 2018-08-04 4 Specification Parameter Condition Value Inputs No of Input Channels Inputs - Electrical Characteristics 2.5 V 05MaxLow Input Signal Maximum Low 6.0 V 10MaxLow Level 16.0 V 24MaxLow 3.5 V 05MinHigh Input Signal Minimum High 8.5 V...
  • Page 28 Digital Input Devices General format of order code LCTR-DIn-I-voltage(-ISO) Order Code Product LucidControl Digital Input USB Module with 4 insulated LCTR-DI4-I-5 Channels for 5 Volt Signals LucidControl Digital Input USB Module with 4 insulated LCTR-DI4-I-10 Channels for 10 Volt Signals...
  • Page 29: Document Revision

    LucidControl DI4/DI8, User Manual (2.0) 2018-08-04 6 Document Revision Date Rev.  Added documentation of DI8 module 2018/08/04  Added documentation of USB Isolation deciphe it GmbH Schäferstr. 5 87600 Kaufbeuren / Germany www.lucid-control.com Page 29 of 29...

Table of Contents