Jump to content

Masked Numeric Entry of Floating number


Recommended Posts

  • MVP 2023

One of the less-than-desirable features of Vision controllers is the inability to format floating point numbers on the screen.  So unfortunately the direct answer to your question is no.

I very rarely use floating point types in a PLC application; I prefer virtual decimals in MIs and MLs (1.00 amps = 100).  You get much more control of your numeric presentation this way and all the function blocks support integers.

What does your application really require?

Joe T.

Link to comment
Share on other sites

My application needs for the user to enter the desired current in power supply. Typically it will be 90 to 110Amps. It is desirable to enter with the precision of 0.1 Amp.

One possibility I am considering is using MI w/o decimals and then using up/down buttons to adjust to the tenths decimal value. Still not sure how to handle that.

Thanks!

 

Link to comment
Share on other sites

  • MVP 2023

Normal integer Numeric input handles this easily - no need for floating point. The resulting (MI) number input will be 10x the desired value, but you can handle that in ladder with the proper math (or the proper values in the linearization function block).

image.png.11291d125a09b36500bb8939026fae10.png

Link to comment
Share on other sites

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.