Is there a way to save values from each cycle?

I have a process in which the robot must place 8 screws within a specific timeframe, before the next piece comes, or the machine that sends the pieces will stop and it takes a while to restart it.

I want to place a timer that counts how long it takes for the screws to be placed on each cycle, to see if the issue is the time it takes for the screws to be fed.

is there a way to save the timer’s value on each cycle so I can see the history?

Thank you very much.

Make an installation variable that is a list. Do this by just assigning the value to be [0,0,0,0,0,0,0,0…] with a bunch of 0s. At the beginning of the program, initialize a variable to 0. Use this variable to index into the array, and store the value of the cycle time to that index. Then increment your index variable.

Reset your timer value when you increment the index. Alternatively, if you don’t need the history to be maintained long term, you can use the somewhat newer “make list” command to create the empty list.