MC100
Mobile programmable gateway
MC Technologies GmbH, Kabelkamp 2, 30179 Hannover, Germany
Tel: +49511 67 69 99-0, Fax: +49511 67 69 99-150, Website & Shop: www.mc-technologies.net, Email: [email protected]
29
Example:
Switch on output O1A,O1B
Command:
echo 1 > /sys/gpio_board/output/value
Response:
#
Voltage inputs 0
– 10V
11.5.3
Port
Description
+A1
Positive connection Input 1
-A1
Negative connection Input 1
+A2
Positive connection Input 2
-A2
Negative connection Input 2
The input current at
10V is approx. 2 mA
Note: The applied DC voltage must not exceed 10V.
Function:
Reading the voltage inputs (
v1.0.4 or older
)
Port
Parameter
Read
Write
Path
+A1,-A1
Value
x
/sys/gpio_board_ADC/voltage/volt0/value
+A2,-A2
Value
x
/sys/gpio_board_ADC/voltage/volt1/value
Example:
Read voltage at ADC input +A1,-A1
Command:
cat /sys/gpio_board_ADC/voltage/volt0/value
Response:
e.g. 6400
Function:
Reading the voltage inputs (
v1.0.5 or later
)
Port
Parameter
Read
Write
Path
+A1,-A1
Value
x
/sys/gpio_board/
voltage_in/1
+A2,-A2
Value
x
/sys/gpio_board/
voltage_in/2
Example:
Read voltage at ADC input +A1,-A1
Command:
cat /sys/gpio_board/
voltage_in1/value
Response:
e.g. 6400
Note:
Converting to volts
Formula:
Voltage in Volt = value / 1000
Example:
Value = 6400 corresponds to 6.4V
Current inputs 0 - 20mA
11.5.4