Hello Guest it is October 22, 2019, 08:24:28 AM

Author Topic: Run a custom task  (Read 2591 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,233 2,233
  • Briceville, TN, USA
    • View Profile
    • S S Systems, LLC
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



Commercial Mach3 & Mach 4, Design/Build/Retrofit CNC and Industrial machines.
http://www.ss-systems-llc.com/