07.12.2012 Views

ÿþþ ÿ R O - C A N - I N T E R F A C E ...

ÿþþ ÿ R O - C A N - I N T E R F A C E ...

ÿþþ ÿ R O - C A N - I N T E R F A C E ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6.5. DELIB CLI (command-line interface)<br />

In some programming languages (like PHP), you can't include DLLs, therefore is<br />

an extra console command, which you can directly call out of the program (with<br />

appropriate parameters). You can find this command after installation of the DELIB<br />

driverlibrary in the directory C:\Programme\DEDITEC\DELIB\Programs\Console.<br />

You can find the DELIB CLI Command for Windows after Installation of the DELIB<br />

driverlibrary in the directory C:\Programme\DEDITEC\DELIB\programs\cli\ .<br />

The DELIB CLI Command for Linux is located in the directory "/deditec-cli/, after<br />

unzipping the ZIP-Archiv "delib-linux-cli".<br />

Definition (Windows)<br />

delib_cli command channel [value | unit ["nounit"] ]<br />

Definition for USB-Module (Linux)<br />

sudo delib-cli-usb command channel [value | unit ["nounit"] ]<br />

Definition for RO-ETH-Module (Linux)<br />

delib-cli-eth command channel [value | unit ["nounit"] ]<br />

Note: The parameters are separated by spaces.<br />

These commands and parameters are not case sensitive.<br />

Parameter<br />

command channel value unit nounit<br />

di1 0, 1, 2, ...<br />

di8<br />

di16<br />

di24<br />

0, 8, 16, ...<br />

- hex nounit<br />

do1 0, 1, 2, ... 0/1 (1-bit command)<br />

do8<br />

do16<br />

do24<br />

0, 8, 16, ...<br />

8-bit value<br />

(Bit 0 for channel 1, Bit<br />

16-bit value<br />

1 for channel 2, ...)<br />

24-bit value<br />

- -<br />

ai 0, 1, 2, ... -<br />

integer or hexadecimal number<br />

hex, volt, mA nounit<br />

ao 0, 1, 2, ...<br />

(starting with 0x).<br />

For an integer a V for Volt, mA for<br />

milli Ampere can be attached.<br />

- -<br />

Software |Seite 90

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!