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.. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted August 8, 2022 MVP 2022 Report Share Posted August 8, 2022 Is there a reason you can't use an integer instead of REAL? Quote 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. Quote 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. Quote 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. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted August 9, 2022 MVP 2022 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. 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.