Bohdan Posted October 10, 2018 Report Share Posted October 10, 2018 Unitronics Vision ver. 9.8.65 build 0 Hi, everyone. Faced the problem of floating point numbers. I tried to find a solution on my own - it didn’t work out. When outputting a floating point number to the HMI using the numeric indicator, at certain times the number goes beyond the indicator boundaries and is layered over the image, although this shouldn ’t happen. Image attached. In the attached file, there are subroutines for processing the numeric indicator variable 1 - MF24 (Flow_meter) and the variable 2 - 56 (Convert_ML_to_MF). At the same time, for the program " Convert_ML_to_MF " the signal comes from the weight module "IO_LC1" starting with ten thousand, comparable to grams, therefore the corresponding division. For the subroutine " Flow_meter " the impulse weight from the panel is set, for example the process in the picture is set to 0.1, which is always multiplied by an integer. Аccordingly, there should never be more than one number after a point, the less it is. Also, i have a video changing MF in motion, if someone want to see - i can send) Example.vlp Quote Link to comment Share on other sites More sharing options...
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.