Jump to content

Unreasonable large numbers in text box (webserver)


Gargamel

Recommended Posts

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..
values.png.f8e2aa4c33fef6a7245c2408886214f5.png

values2.png.50b0d89a72cdd2bc94decdb5151d4121.png

Link to comment
Share on other sites

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...