Hi all,
I have an analogue input on a Schnieder Twido PLC.
The sensor measures distance and has a range of 100mm
It seems to only start working at 55mm away and reaches full range at approx 155mm.
So from 55mm I get 0(4mA) and at 155mm I get 4095(20mA)
My simple formula was z =(measured value 0-4095)
(z x 100) / 4095 this gives me a 0 to 100 value call it Y.
Y is its inverse so I have 100 - Y.
This seems to work but on different sizes i need to recalibrate and end up 80-Y or 85 - Y.
The formula is not right somehow although it seems logical to me - i have definitely missed the plot I wish the Twido had scaling.
Any mathematicians available ???
I have an analogue input on a Schnieder Twido PLC.
The sensor measures distance and has a range of 100mm
It seems to only start working at 55mm away and reaches full range at approx 155mm.
So from 55mm I get 0(4mA) and at 155mm I get 4095(20mA)
My simple formula was z =(measured value 0-4095)
(z x 100) / 4095 this gives me a 0 to 100 value call it Y.
Y is its inverse so I have 100 - Y.
This seems to work but on different sizes i need to recalibrate and end up 80-Y or 85 - Y.
The formula is not right somehow although it seems logical to me - i have definitely missed the plot I wish the Twido had scaling.
Any mathematicians available ???