Machsupport Forum

Mach Discussion => Mach SDK plugin questions and answers. => Topic started by: robfloppy on September 17, 2014, 05:00:20 PM

Title: Run a custom task
Post by: robfloppy on September 17, 2014, 05:00:20 PM
Hello, I'm new to programming for the Mach3.

I'm wondering if there is a solution to intercept the g-code line executed and block the execution process from a plugin?
The loaded g-code already contains custom code, i want to intercept the custom code, block the machine execution, run a custom task and resume the execution of the machine.

Is this scenario possible from a plugin?

Thanks.
Title: Re: Run a custom task
Post by: poppabear on October 27, 2014, 08:52:00 AM
Quote
Hello, I'm new to programming for the Mach3.

I'm wondering if there is a solution to intercept the g-code line executed and block the execution process from a plugin?

>>Yes you can.

Quote
The loaded g-code already contains custom code, i want to intercept the custom code, block the machine execution, run a custom task and resume the execution of the machine.

Is this scenario possible from a plugin?

>>Yes it is, but......  You could also do this using the
>>MacroPump and/or Brains....
>>Macros/Brains are much simpler to do than a plugin...
>>Look at the Mach Specific VB calls to write your own
>>macropump, and/or macros that it
>>fires off, or Brain functions that it would activate...

Scott