Jump to content

Recommended Posts

Posted

Good afternoon.
I'm using v130-33-ta24.
need to show on the screen measurement of a distance meter.
when I have 20mA I have 1000mm and when I have 4mA I have zero.
I'm showing the sensor reading in linearization.
seems to be all wrong, how to make this length reading correct
wrong reading distance meter on vision 130

image.png.d62fbafe3c366ca17726e870998b65a1.png

image.png.1d61d04222d741adf82ca345da9bdbf7.png

 

 

 

  • MVP 2023
Posted

Just to clarify what AlexUT is saying, your linearization is assuming 10-bits, but your analog input is 14-bit. Your X1 & X2 should be 3277 & 16383, respectively.

Posted
1 hour ago, Flex727 said:

Apenas para esclarecer o que o AlexUT está dizendo, sua linearização está assumindo 10 bits, mas sua entrada analógica é de 14 bits. Seu X1 e X2 devem ser 3277 e 16383, respectivamente.

thanks it's true this is reading in the entry 16384 I'll try but please help me. I need to show the 1000mm on the screen

IMG_20220120_111301857.jpg

Posted

Aust thanks for the table I'm using.
I'm taking measurements and the meter reads 1600mm.
but year plc has a difference of 15mm.
how can i fix this or it makes

 

 

image.png.9c6f928ef1310da099effb284205a536.pngimage.thumb.png.8273d117e99f69906192f3196a516085.pngno difference.

  • MVP 2023
Posted

Are you saying there is a consistent difference of 15mm on the plc result compared to the sensor display?  If so, you adjust this using an identical + or - difference applied to the X1 and X2 so that the input "span" shifts slightly. 

In the real world there will always be slight differences in outputs etc and the best method of adjusting things correctly is seeing what readings are obtained doing physical measuring.  In your case given it is distance, (and the accuracy is not down to microns!!) if you assume that the sensor is displaying things exactly, use online monitoring to find what the input is at exact physical min and max measurements.  Then use these in your X1 and X2 inputs to get the output to exactly match the sensor's reading.

I also strongly suggest you have a good read of this topic to fully understand some of the Linearisation complexities.  I don't think you will encounter these, but keep them in mind.

https://forum.unitronics.com/topic/3831-linz-minmax/#comment-13993

Also, your question elsewhere about "unsuccessful linearising" is simply solved by swapping X1 & X2.  If the input increases, the distance is getting greater, so your tank level is emptying.  Hopefully you will understand this relationship and realise the simple correction needed.

cheers, Aus

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.