251
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
M1100.m1s:
counter = getuserdro(1100)
counter = counter + 1
setuserdro(1100, counter)
Thank you very much but I still don't count the number of completed itemsNot incrementing DRO, user variable incrementing.
count = getuserdro(1200)
count = count + 1
detuserdro(1200, count)
T1M6
G17
G0X09.048Y08.090Z0
G0X0.000Z0.000
M900
M30
%
Create a button a Label and a DRO on the screen of your choice.
Set the DRO to a user variable e.g. 1200
Set label to "Part Counter" and position close to DRO
Label the button "Reset Counter" and set it to run vb script
Enter VB code :-
setuserdro(1200,0)
Save screen.
Then on the end of every g-code file just before the M30 enter
#1200 = #1200 +1
But a g-code error pops up
T1M6
G17
G0X09.048Y08.090Z0
G0X0.000Z0.000
#1200=[#1200+1]
M30
%