HawkME is correct, here is a TP program to do cycle time tracking of last 10 parts. I ran the motion program slower every cycle to get a different cycle time value.
Code
1: TIMER[1]=START ;
2:J P[1] 100% FINE ;
3:J P[2] 25% FINE ;
4: ;
5: ;
6: TIMER[1]=STOP ;
7: FOR R[11:i]=10 DOWNTO 1 ;
8: R[12]=R[11:i]-1 ;
9: IF (R[12]=0) THEN ;
10: R[12]=TIMER[1] ;
11: R[R[11]]=(R[12]) ;
12: ELSE ;
13: R[R[11]]=(R[R[12]]) ;
14: ENDIF ;
15: ENDFOR ;
16: TIMER[1]=RESET ;
Display More