Jump to content

Recommended Posts

Posted

Using Samba SM-70

Need to have users enter a single precision floating, masked to enter no more then three digits before decimal and one after. MF type system variable does not permit for masking. Any way to make sure the user will enter masked numbers?

image.png.b4f8b1df4640085ad017f5aeeac8a7de.png

 

Thanks!

 

 

  • MVP 2023
Posted

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.

Posted

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!

 

  • MVP 2023
Posted

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

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.