Hey,
I'm trying to convert seconds to MM:SS view.
using tag: PLC\IN_CCD_TIME (integer) from PLC timer.
Numeric tag (HMI) MM: PLC\IN_CCD_TIME % 3600 / 60 SS: PLC\IN_CCD_TIME % 60
when seconds reach 59 then switch to 00, the minutes not added 1 only when seconds pass the 30. i know that's all about floating point.
Must to use seconds on PLC and use it for HMI as MM:SS.
need any help to use seconds as MM:SS,
Thanks!
I'm trying to convert seconds to MM:SS view.
using tag: PLC\IN_CCD_TIME (integer) from PLC timer.
Numeric tag (HMI) MM: PLC\IN_CCD_TIME % 3600 / 60 SS: PLC\IN_CCD_TIME % 60
when seconds reach 59 then switch to 00, the minutes not added 1 only when seconds pass the 30. i know that's all about floating point.
Must to use seconds on PLC and use it for HMI as MM:SS.
need any help to use seconds as MM:SS,
Thanks!