I have an application to mointor run time on a pump and would like to know if i  can create a tag to monitor run time in seconds and then log the cycle time when pump stops. pump on/off would be a tag from a PLC. 
Sequence  = Pump on - measure run time - Pump Stops - Log Time and reset Timer. 
Example log should look like this.
Timestamp              Cycle Time
2024-10-03  1:00PM   300
2024-10-03  1:20PM   310
2024-10-03  1:36PM   301  
I have an application to mointor run time on a pump and would like to know if i  can create a tag to monitor run time in seconds and then log the cycle time when pump stops. pump on/off would be a tag from a PLC. 
Sequence  = Pump on - measure run time - Pump Stops - Log Time and reset Timer. 
Example log should look like this.
Timestamp              Cycle Time
2024-10-03  1:00PM   300
2024-10-03  1:20PM   310
2024-10-03  1:36PM   301  
        
            edited Oct 3 '24 at 8:08 pm