![Metz Connect EWIO 2 Скачать руководство пользователя страница 83](http://html.mh-extra.com/html/metz-connect/ewio-2/ewio-2_user-manual_1781387083.webp)
EWIO
2
User Manual
V 1.1 | Stand 10/2020
Seite 83 von 96
METZ CONNECT GmbH | Im Tal 2 | 78176 Blumberg | Germany
Tel. +49 7702 533-0 | Fax +49 7702 533-433
For additional documentations look at www.metz-connect.com
11.
Access the IOs from the command line or via script
application
This chapter provides information about query and control of the digital and analog inputs
and outputs of an EWIO
2
from the command line or per scripts application.
For this purpose, a command line tool named „ewioIOControl“ is installed on the EWIO
2
.
This tool can be used to send a single command to the ewio2Server, the central software
control unit, in order to query or control an I/O pin at a time.
11.1.
Calling conventions
The general syntax of the CLI Tool is:
ewioIOControl <command>
where <command> has the following structure:
<base_command>_<io-category>_<module-addr>_<pin-addr>[_value]
The <base-command> possible values are „set“ or „get“.
The <io-category> may be one of „ai“, „ao“, „di“, „do“, „aisensor“ or „dicount“
Each individual pin (digital or analog In-/Output) is identified by it’s address.
The address consists of two parts: module address and pin address.
The module address
<module-addr>
ever has the value 0 for the EWIO
2
base device and the
values 1-6 for the extention modules.
The
<pin-addr>
is the address of the pin of a certain category for a module at address
<module-addr>. The pin address must be entered with two digits with leading zeroes and
begins always with „00“.
The [_value] part is optional (only for “set” commands) and represents the value to be set (for
digital outputs 0 or 1, for analog outputs the float value with decimal point, for ai the sensor
id : integer according definition table, di counter : positive integer value).
More detailed, the <command> parameter looks like:
set|get_ai|ao|di|do|aisensor|dicount _<moduladdr>_<pinaddr>[_value]