Machsupport Forum
Mach Discussion => VB and the development of wizards => Topic started by: JMF on November 05, 2014, 10:12:09 AM
-
Is there a way to monitor when a tool change is called for in the running GCode, then execute a custom VB script based on that ?
Thanks !
-
In addition to the M6 macro, which is already doing that?
-
Sorry my knowledge on this is very limited, how would I use the M6 macro ?
I'll do further checking in the forums too.
So can I put my own code in the m6start.m1s and m6end.m1s macros ?
Thanks,
John
-
M6 is a tool change command. When Mach3 encounters an M6, it executes the M6 VB Script.
-
Yes.
If you have Mach3 configure to "Stop Spindle, Wait for Cycle Start", it will run the M6Start, then wait for you to hit Cycle Start. After Cycle Start, it will run the M6End, then continue with the g-code.
If you configure Mach3 for Auto Toolchanger, then it will only run the M6Start macro, then continue running the g-code.
-
That helps a lot, thanks !!!
John