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]
35
Example:
Output of 6mA at OI1
Command:
echo 6000 > /sys/senst2_ADC/adc_output/adcoutput0/value
Response:
none
Function:
Output of a current (
v1.0.5 and later
)
Port
Parameter
Read
Write
Path
OI1
Value
x
/sys/senst2_board/output/1
OI2
Value
x
/sys/senst2_board/output/2
Note:
Conversion from mA to value to be supplied
Formula:
Value = Current in mA * 1000
Example:
Current = 6mA Corresponds to Value = 6000
PT100 / PT1000 Inputs
11.6.6
Function:
Reading a resistance/ temperature value (
v1.0.4 and older
)
Port
Parameter
Read
Write
Path
RTD1
Value
x
/sys/senst2_rtd/rtd0/value
RTD2
Value
x
/sys/senst2_rtd/rtd1/value
RTD3
Value
x
/sys/senst2_rtd/rtd2/value
RTD4
Value
x
/sys/senst2_rtd/rtd3/value
Example:
Read the value at RTD1
Command:
cat /sys/senst2_rtd/rtd0/value
Response:
e.i. 100000
Function:
Reading a resistance/ temperature value (
v1.0.5 and later
)
Port
Parameter
Read
Write
Path
RTD1
Value
x
/sys/senst2_board/rtd/1
RTD2
Value
x
/sys/senst2_board/rtd/2
RTD3
Value
x
/sys/senst2_board/rtd/3
RTD4
Value
x
/sys/senst2_board/rtd/4
Example:
Read the value at RTD1
Command:
cat /sys/senst2_board/rtd/1
Response:
e.i. 100000
Conversion at port of a resistor in Ohm
Formula:
Resistance in Ohm = Value / 100
Example:
Value = 100000 corresponds 1000Ohm
Conversion at port of a PT1000 temperature sensor to °Celsius
Formula:
Temperature in Grad Celsius = (Value / 100 -1000) / 3,891
Example:
Value = 112000 corresponds to +30,84°Celsius
Value = 100000 corresponds to 0°Celsius
Value = 90000 corresponds to -25,5°Celsius