Gordon Posted March 20, 2017 Report Share Posted March 20, 2017 Hi, I`m using Unitronics Vision OPLC IDE Version 9.8.31 Build 0. I have done some math calculation in float format and want to present i on the HMI panel (SM43-J-R20). I don`t want to have decimal in the HMI display. I have not found a function for convert my float value to integer.... ? And I have not figure out how I can control the number of decimal in the HMI for a float value? I assume these is something many others also have struggled with ? by I haven`t find any topics in the forum who help me out... I have tried the String Num to ASCII function, but I haven`t been able to get it to work... the value out of the function is just freezed. I have grateful for your time / inputs, project should be sent ASAP from us to customer... Thank you. Link to comment Share on other sites More sharing options...
MVP 2023 Joe Tauser Posted March 21, 2017 MVP 2023 Report Share Posted March 21, 2017 On the ladder programming area look at Math->Float->Convert->INV (A+B/n). This will convert your float into two integers, one above and one below the decimal. Joe T. 1 Link to comment Share on other sites More sharing options...
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