KydeX Posted November 16, 2015 Report Share Posted November 16, 2015 How can I set the number of decimals shown in a numeric box in HMI if it is a real number? The format button is not active when the number is a REAL number. Link to comment Share on other sites More sharing options...
NoamM Posted December 27, 2016 Report Share Posted December 27, 2016 Hello, The real numbers are set up to show 6 significant figures after the decimal. This is due to the format we use for real numbers (following IEEE 754 standard). Unfortunately, there is no way to directly format the decimal placing after a real number in the software. You would have to convert the real into two 16-bit integers (the whole part, and the fractional part) then manually format the number on screen by putting these two integers together on screen. UPDATE: From UniLogic 1.18 and above there is a property name 'Decimal precision' to numeric box in case it linked to a REAL tag as you can see in the attached image. 1 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