Dimitri Krut Posted August 20, 2018 Report Share 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! Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted August 21, 2018 MVP 2022 Report Share 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. Quote Link to comment Share on other sites More sharing options...
Dimitri Krut Posted August 22, 2018 Author Report Share 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! Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted August 22, 2018 MVP 2022 Report Share 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). Quote Link to comment Share on other sites More sharing options...
Dimitri Krut Posted August 22, 2018 Author Report Share Posted August 22, 2018 I got it working with MI. Thanks for the ideas. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.