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]
25
11.4 MC100 Gateway
Port
Description
I1
Digital input 1, DC voltage 0 to 30V, switching threshold approx .4V DC
I2
Digital input 2, DC voltage 0 to 30V, switching threshold approx .4V DC
O1
Digital output 1, switching capacity max. 300mA
O2
Digital output 1, switching capacity max. 300mA
IGND
I/O ground, electrically isolated from standard GND of the device
Digital inputs
11.4.1
The MC100 Gateway has two digital inputs. The inputs are high-active.
Function: Read in the digital inputs I1 and I2
Port
Parameter
Read
Write
Path
I1
1,0
x
cat /sys/mc100_gpios/IN1
I2
1,0
x
cat /sys/mc100_gpios/IN2
Example:
Reading Input I1
Command:
cat /sys/mc100_gpios/IN1
Response:
1# or. 0#
Digital Outputs
11.4.2
The MC100 Gateway has two digital outputs. The outputs are solid state relays and switch
against IGND.
Function:
Switching the digital outputs O1 and O2
Port
Parameter
Read
Write
Path
O1
1,0
x
echo 1 > /sys/mc100_gpios/OUT1
echo 0 > /sys/mc100_gpios/OUT1
O2
1,0
x
echo 1 > /sys/mc100_gpios/OUT2
echo 0 > /sys/mc100_gpios/OUT2
Example:
Switch on O1
Command:
echo 1 > /sys/mc100_gpios/OUT1
Response:
#