Gargamel Posted August 8, 2022 Report Share Posted August 8, 2022 Hi. i have a few variables in the plc that are in REAL, when adding them to the webserver hmi textbox, it prefills the object with "-9999999999.9" and i have added "text after": "mm/s". The actual value would be like "1500 mm/s". But i get a warning in compile because i cant tell the object to only fit # of characters in this box. This is one of the labels that are on the right side of the screen, and gets cut off by the end of the screen width and the unreasonable large number allocated space in the label, here "1500 mm/s" would fit in half the label width if i could specify the input format to like 5 digits.. Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted August 8, 2022 MVP 2023 Report Share Posted August 8, 2022 Is there a reason you can't use an integer instead of REAL? Link to comment Share on other sites More sharing options...
Gargamel Posted August 8, 2022 Author Report Share Posted August 8, 2022 5 minutes ago, Flex727 said: Is there a reason you can't use an integer instead of REAL? This is the way the data is presented in the structs to and from other systems. EDIT: also, for velocity for our unit, is in m/s and the target speed is 1.5, so real is needed here, imo. Link to comment Share on other sites More sharing options...
Gabriel Franco Posted August 8, 2022 Report Share Posted August 8, 2022 It´s just a warning. Adjust the object to the required size to show the maximum value you expect to get. Link to comment Share on other sites More sharing options...
Gargamel Posted August 9, 2022 Author Report Share Posted August 9, 2022 9 hours ago, Gabriel Franco said: It´s just a warning. Adjust the object to the required size to show the maximum value you expect to get. And some customers does not even allow "only warnings" in project deliveries. Link to comment Share on other sites More sharing options...
MVP 2023 Joe Tauser Posted August 9, 2022 MVP 2023 Report Share Posted August 9, 2022 If you want total control over how the data is displayed you'll have to convert it to an integer for display purposes. That's just how it is. Joe T. 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