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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.