evilthorne
Member
Hello,
In CLX5000 I have a DINT being used to store the shift's break time as a whole number ie 1:00 would be 100. The issue is if I want to subtract two minutes from this I get 98 instead of 58. Is there an easy way to calculate this possibly to give me a number value? I have the PLC doing a bunch of math but it is clumsy honestly, I divide the total by 100 then do a MOD to get the minutes and on and on and it seems excessive. I will need to do it for several different times depending on the shift.
Thank you!
In CLX5000 I have a DINT being used to store the shift's break time as a whole number ie 1:00 would be 100. The issue is if I want to subtract two minutes from this I get 98 instead of 58. Is there an easy way to calculate this possibly to give me a number value? I have the PLC doing a bunch of math but it is clumsy honestly, I divide the total by 100 then do a MOD to get the minutes and on and on and it seems excessive. I will need to do it for several different times depending on the shift.
Thank you!