6.5. DELIB CLI (command-line interface) In some programming languages (like PHP), you can't include DLLs, therefore is an extra console command, which you can directly call out of the program (with appropriate parameters). You can find this command after installation of the DELIB driverlibrary in the directory C:\Programme\DEDITEC\DELIB\Programs\Console. You can find the DELIB CLI Command for Windows after Installation of the DELIB driverlibrary in the directory C:\Programme\DEDITEC\DELIB\programs\cli\ . The DELIB CLI Command for Linux is located in the directory "/deditec-cli/, after unzipping the ZIP-Archiv "delib-linux-cli". Definition (Windows) delib_cli command channel [value | unit ["nounit"] ] Definition for USB-Module (Linux) sudo delib-cli-usb command channel [value | unit ["nounit"] ] Definition for RO-ETH-Module (Linux) delib-cli-eth command channel [value | unit ["nounit"] ] Note: The parameters are separated by spaces. These commands and parameters are not case sensitive. Parameter command channel value unit nounit di1 0, 1, 2, ... di8 di16 di24 0, 8, 16, ... - hex nounit do1 0, 1, 2, ... 0/1 (1-bit command) do8 do16 do24 0, 8, 16, ... 8-bit value (Bit 0 for channel 1, Bit 16-bit value 1 for channel 2, ...) 24-bit value - - ai 0, 1, 2, ... - integer or hexadecimal number hex, volt, mA nounit ao 0, 1, 2, ... (starting with 0x). For an integer a V for Volt, mA for milli Ampere can be attached. - - Software |Seite 90
Return-value Read state of the inputs (in combination with command = di, di8, di16, di32 and ai). Read state of the inputs as hexadecimal (in combination with command = di, di8, di16, di32 and ai and unit "hex") Voltage of the input (in combination with unit "volt" and command "ai") Current of the input (in combination with unit "mA" and command "ai") Software |Seite 91