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: info@mc-technologies.net
29
Digital input 1, DC voltage 0 to 30V, switching threshold approx .6V DC
Digital input 2, DC voltage 0 to 30V, switching threshold approx .6V DC
Digital output 1, switching capacity max. 300mA
Digital output 1, switching capacity max. 300mA
I/O ground, electrically isolated from standard GND of the device
Digital inputs
The MC100 Gateway has two digital inputs. The inputs are high-active.
Function: Read in the digital inputs I1 and I2
cat /sys/class/gpio/mc100:in1/value
cat /sys/class/gpio/mc100:in2/value
Example: Reading Input I1
Command: cat /sys/class/gpio/mc100:in1/value
Response: 1# or. 0#
Digital Outputs
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
echo 1 > /sys/class/gpio/mc100:out1/value
echo 0 > /sys/class/gpio/mc100:out1/value
echo 1 > /sys/class/gpio/mc100:out2/value
echo 0 > /sys/class/gpio/mc100:out2/value
Example: Switch on O1
Command: echo 1 > /sys/mc100_gpios/OUT1
Response: #