how to calculate the shift production
in PLC PM573-ETH I need to calculate the shift total product from the flow meter gives ton per hour ( TPH) the flow Vibrates highly. so I think ( Total = Total + (TPH/3600)), this instruction will be executed every second using a one-second timer, and at the end of the shift ( 8 hours ), the total must set to zero. how to rest the to total every 8 hours (8 AM, 4 PM and 12 AM ) and ? how to get the PLC time for comparison? is there any better idea for getting the total production.