Jump to content

Recommended Posts

Posted

is there a way to display a value on screen with precesion two digits after the decimal point, knowing that this value comes from '' MI : memory Integer''

 

thanks.

 PS: I used the block 'store F', to convert the value 'MI' has value 'MF' but it gives a whole number without decimal.

Posted

Im not an expert, but as far as I know Intigers are whole numbers from -32768 to +32767 or from 0 to 65535 and even if you convert to float it will still be a whole number.

To have the decimals you have to save directly to float.

 

Hope it helps

  • External Moderators
Posted

How is your value stored in the Memory Integer? For example if you are looking to display a value of "25.67" is your MI Value "2567"?

 

If so, then you can make use of the Numeric Element on the HMI Display then select the number of Whole Number Digits and Decimal Place Digits from the two Number Boxes next to the "Text After" box.

 

Let me know if it will help to attach a screenshot and I can post one here.

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.