Hello, I’m sure there is a simple way to do this but I can’t think of it. Any help would be great.
The problem is I’m trying to convert a decimal value to minutes and seconds to display on a HMI. The decimal value is a count down until the machine stops, this is worked out by
Timer.PRE- Timer.ACC)/1000 = seconds remaining
I’ve split this into minutes and second but both have a decimal point which causes problems when displaying it on the HMI.
e.g. 91sec/60 = 1.51min
If I don’t display the decimal point on the HMI it shows 2min.
Is there any way to remove the decimal point?
Thanks for the help.
PLC software: Rockwell Studio 5000
HMI: FactoryTalk
The problem is I’m trying to convert a decimal value to minutes and seconds to display on a HMI. The decimal value is a count down until the machine stops, this is worked out by
Timer.PRE- Timer.ACC)/1000 = seconds remaining
I’ve split this into minutes and second but both have a decimal point which causes problems when displaying it on the HMI.
e.g. 91sec/60 = 1.51min
If I don’t display the decimal point on the HMI it shows 2min.
Is there any way to remove the decimal point?
Thanks for the help.
PLC software: Rockwell Studio 5000
HMI: FactoryTalk