richlinares Posted October 5, 2016 Report Share Posted October 5, 2016 Hello, I would like to see if its possible to accomplish what i have in mind. I have an floating point number that i want to display in much bigger fonts that what is available in visilogic software. at the moment i am taking MF2 then converting it to ascii with the num to ascii function block resulting in ML1. i then take ML1 and display it as a variable ascii string. this allows me to control the amount of decimal points i want to see which is the reason for the conversion. Now what i would like to do is take this MF2 and separate all the digits and store them into MI locations. My floating point number is defined to 8 digits so i would store them in MI0-MI7. i have leading zeros selected to this number so every MI should have a value and i want to treat the decimal as a value too. I would then like to take those MI values and create list of images by pointer variables for each MI in my hmi with pictures of 0-9 and a decimal point so they can change as the MI value changes. The problem is that i cant see any functions that would allow me to separate this MF value. I came across the STRUCT function where i think i can do this but it will not work with a floating number. i was thinking of using the ascii converted ML1 value and separate that number but i dont understand the ascii result enough to know how that 9 digit number represents my floating number. Or if anybody knows how to get a font bigger than MS sans serif 14B that would also solve my issue. Thanks in advance Ricardo Quote Link to comment Share on other sites More sharing options...
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.