Thank you very much but I still don't count the number of completed items
Not incrementing DRO, user variable incrementing.
But, you can write a macro and add it to your macro folder and it works perfectly:
count = getuserdro(1200)
count = count + 1
detuserdro(1200, count)
Save it as M900.m1s
then add it to your GCode program:
T1M6
G17
G0X09.048Y08.090Z0
G0X0.000Z0.000
M900
M30
%
It increments DRO 1200 every time before rewinding program.