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]
28
Example:
Read out Input I1
Command:
cat /sys/gpio_board_IO/inputs/input0/value
Response:
e.g. 1# or 0#
Function:
Reading the digital inputs I1 to I8 (v1.0.5 and later)
Port
Parameter
Read
Write
Path
I1
1,0
x
/sys/gpio_board/input/1
I2
1,0
x
/sys/gpio_board/input/2
I3
1,0
x
/sys/gpio_board/input/3
I4
1,0
x
/sys/gpio_board/input/4
I5
1,0
x
/sys/gpio_board/input/5
I6
1,0
x
/sys/gpio_board/input/6
I7
1,0
x
/sys/gpio_board/input/7
I8
1,0
x
/sys/gpio_board/input/8
Example:
Read out Input I1
Command:
cat /sys/gpio_board/input1/value
Response:
e.g. 1# or 0#
Digital Outputs
11.5.2
All outputs have an identical behaviour. The description here is only for one output (x
= 1 to 8 MC100 GPIO).
All switching outputs are represented by solid state relays. OxA occupies one pin of
the switch, OxB the second pin. All outputs are galvanically isolated. The maximum
switching current is 300mA. The maximum applied voltage must not exceed 30V.
Function:
Switching the digital outputs (
v1.0.4 or older
)
Port
Parameter
Read
Write
Path
O1A,O1B
1,0
X
/sys/gpio_board_IO/outputs/output0/value
O2A,O2B
1,0
X
/sys/gpio_board_IO/outputs/output1/value
O3A,O3B
1,0
X
/sys/gpio_board_IO/outputs/output2/value
O4A,O4B
1,0
X
/sys/gpio_board_IO/outputs/output3/value
O5A,O5B
1,0
X
/sys/gpio_board_IO/outputs/output4/value
O6A,O6B
1,0
X
/sys/gpio_board_IO/outputs/output5/value
O7A,O7B
1,0
X
/sys/gpio_board_IO/outputs/output6/value
O8A,O8B
1,0
X
/sys/gpio_board_IO/outputs/output7/value
Example:
Switch on output O1A,O1B
Command:
echo 1 > /sys/gpio_board_IO/outputs/output0/value
Response:
#
Function:
Switching the digital outputs (
v1.0.5 or later
)
Port
Parameter
Read
Write
Path
O1A,O1B
1,0
X
/sys/gpio_board/output/1
O2A,O2B
1,0
X
/sys/gpio_board/output/2
O3A,O3B
1,0
X
/sys/gpio_board/output/3
O4A,O4B
1,0
X
/sys/gpio_board/output/4
O5A,O5B
1,0
X
/sys/gpio_board/output/5
O6A,O6B
1,0
X
/sys/gpio_board/output/6
O7A,O7B
1,0
X
/sys/gpio_board/output/7
O8A,O8B
1,0
X
/sys/gpio_board/output/8