EWIO
2
User Manual
V 1.1 | Stand 10/2020
Seite 85 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.3.3.
Set the sensor ID of an analog input
ewioIOControl set_aisensor_0_00_3
The command above, will set the sensor ID of the first analog input AI1 (E1/-) to 3
("0-10 Volt"). The number corresponds to the entries in the pop-up menu as described in
chapter
The return value is „
ok
“
ewioIOControl set_aisensor_0_01_184
The command above will try to set the sensor ID of the second analog input AI2 (E2/-) to a
value out of allowed range (see chapter
)
The return value is „
err
“ and the sensor ID of the AI remains unchanged.
11.3.4.
Set the counter value of a digital input
ewioIOControl set_dicount_0_00_366
The command above, will set the counter initial value of the first digital input DI1 (1+/-) to
366.
The return value is „
ok
“
ewioIOControl set_dicount_0_57_134
The command above will try to set the counter value of a not axisting digital input.
The return value is „
err
“.
11.3.5.
Get the analog value of an analog input
ewioIOControl get_ai_0_01
The command above, will return the analog value of the second analog input AI2 (E2/-).
The return value is a float value with decimal point (like „
2.46
“).
ewioIOControl get_ai_0_08
The command above will try to get the value of a not existing analog input
The return value is „
err
“.
11.3.6.
Get the digital value of a digital input
ewioIOControl get_di_0_00
The command above, will return the digital value of the first digital input REL1 (11/12/14)
The return value may be „
0
“ or „
1
“
ewioIOControl get_di_1_03
The command above will try to get the value of a not existing digital input
The return value is „
err
“.