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]
30
Port
Description
+A3
Positive connection Input 3
-A3
Negative connection Input 3
+A4
Positive connection Input 4
-A4
Negative connection Input 4
Note: A current of up to 20mA must be fed in from a current source.
Function:
Reading the current inputs (
v1.04 and older
)
Port
Parameter
Read
Write
Path
+A3,-A3
Value
x
/sys/gpio_board_ADC/ampere/amp0/value
+A4,-A4
Value
x
/sys/gpio_board_ADC/ampere/amp1/value
Example:
Read current at ADC input +A3,-A3
Command:
cat /sys/gpio_board_ADC/ampere/amp0/value
Response:
e.g. 2000
Function:
Reading the current inputs (
v1.0.5 and later
)
Port
Parameter
Read
Write
Path
+A3,-A3
Value
x
/sys/gpio_board/current_in/1
+A4,-A4
Value
x
/sys/gpio_board/current_in/2
Example:
Read current at ADC input +A3,-A3
Command:
cat /sys/gpio_board/current_in1/value
Response:
e.g. 2000
Note:
Converting to mA
Formula:
Current in mA = Value / 200
Example:
Value = 2000 corresponds to 10mA
PWM
11.5.5
Port
Description
GND
Ground, Earth
PW2
Open collector digital output.
PW1
Open collector digital output.
PU
Input for internal protection diode (freewheeling diode) for inductive
loads. (positive supply voltage)
Function:
Switching the digital outputs (v1.0.4 and later)
Port
Parameter
Read
Write
Path
PW2
Prescaler {0,1025}
x
/sys/gpio_board_IO/outputPwm/pwm1/prescalar
Pulse {0,65535}
/sys/gpio_board_IO/outputPwm/pwm1/pulse
PW1
Prescaler {0,1025}
x
/sys/gpio_board_IO/outputPwm/pwm0/prescalar
Pulse {0,65535}
/sys/gpio_board_IO/outputPwm/pwm0/pulse