801
Mach Screens / Re: Opening g-code
« on: September 20, 2019, 08:22:55 PM »
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]
Or you can set up a Macro to do it
M1025.m1s
count = GetUserDRO(1200)
count = count + 1
SetUserDRO(1200, count)
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]
Or you can set up a Macro to do it
M1025.m1s
count = GetUserDRO(1200)
count = count + 1
SetUserDRO(1200, count)