Hello Guest it is March 29, 2024, 11:51:53 AM

Author Topic: Run a custom task  (Read 3401 times)

0 Members and 1 Guest are viewing this topic.

Run a custom task
« 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.

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Run a custom task
« Reply #1 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



fun times