In detail tutorial for AIO scaling configuration
Posted: 29 Jun 2023, 18:05
I wonder if there is an in detail configuration for the scaling of the AIO input/output values.
I have looked far and wide but only manage to come across the same example:
A proximity sensor outputs the voltage 0 to 10 V in the range between 30 and 300 millimeters. To have the distance in mm in the process image, you must select the parameters as follows:
Multiplier = 270, Divisor = 10000, Offset = 30
If the sensor works with 4-20 mA instead, the values must be defined by you as follows:
Multiplier = 270, Divisor = 16000, Offset = -38
This shows some values but barely explains how you get to these values. I can imagine the voltage one as offset = 30 / Multiplier = 300 - 30 and divisor = 10000 (10v) but even then i'm not sure if this is correct. But how do you get to the values for the analog version? I like the revolution pi and its features but have found that most of the information often only scratches the surface making it less than ideal if you want to use it in an industrial installation where you need documentation fast. Hope someone can help to explain this to me and maby also add it to the tutorial page.
I have looked far and wide but only manage to come across the same example:
A proximity sensor outputs the voltage 0 to 10 V in the range between 30 and 300 millimeters. To have the distance in mm in the process image, you must select the parameters as follows:
Multiplier = 270, Divisor = 10000, Offset = 30
If the sensor works with 4-20 mA instead, the values must be defined by you as follows:
Multiplier = 270, Divisor = 16000, Offset = -38
This shows some values but barely explains how you get to these values. I can imagine the voltage one as offset = 30 / Multiplier = 300 - 30 and divisor = 10000 (10v) but even then i'm not sure if this is correct. But how do you get to the values for the analog version? I like the revolution pi and its features but have found that most of the information often only scratches the surface making it less than ideal if you want to use it in an industrial installation where you need documentation fast. Hope someone can help to explain this to me and maby also add it to the tutorial page.