I have an unwinding roll process. On a display (7 inch Comfort) is a timer that shows "Time to Splice" in seconds. In the PLC (S7-1500), this is calculated as an UInt data type.
I put in a calculation to divide by 60 and show the result as a real number tag "Time To Splice_Converted" and used this tag to display on HMI as a number with 2 decimal places. Display only shows the whole number. I assume its because I was using an integer value in the calculation.
I tried to take the "Time To Splice" (UInt) value and convert it to a Real number first and then do the calculation, but was unable to display this on the HMI. My display showed "####" The I/O field on the HMI is set for Decimal with 2 places in the properties.
I want to display the seconds until splice as a decimal number (ie.. 90seconds display as 1.50 on display, 45 seconds as .75, etc.)
What am I missing here? Does everything need to be the same data type for it to work? Or what?
Thank you for the help
I put in a calculation to divide by 60 and show the result as a real number tag "Time To Splice_Converted" and used this tag to display on HMI as a number with 2 decimal places. Display only shows the whole number. I assume its because I was using an integer value in the calculation.
I tried to take the "Time To Splice" (UInt) value and convert it to a Real number first and then do the calculation, but was unable to display this on the HMI. My display showed "####" The I/O field on the HMI is set for Decimal with 2 places in the properties.
I want to display the seconds until splice as a decimal number (ie.. 90seconds display as 1.50 on display, 45 seconds as .75, etc.)
What am I missing here? Does everything need to be the same data type for it to work? Or what?
Thank you for the help