Dimitri Krut Posted August 20, 2018 Report Posted August 20, 2018 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? Thanks!
MVP 2023 Joe Tauser Posted August 21, 2018 MVP 2023 Report Posted August 21, 2018 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.
Dimitri Krut Posted August 22, 2018 Author Report Posted August 22, 2018 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 Flex727 Posted August 22, 2018 MVP 2023 Report Posted August 22, 2018 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).
Dimitri Krut Posted August 22, 2018 Author Report Posted August 22, 2018 I got it working with MI. Thanks for the ideas.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now