adil Posted October 16, 2013 Report Share Posted October 16, 2013 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. Quote Link to comment Share on other sites More sharing options...
nkwai Posted October 16, 2013 Report Share Posted October 16, 2013 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 Quote Link to comment Share on other sites More sharing options...
External Moderators Ash Neilson Posted October 17, 2013 External Moderators Report Share Posted October 17, 2013 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. 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.