Hello Guest it is June 17, 2019, 09:29:45 PM

Author Topic: asynchronous M10/M11 alternative  (Read 1872 times)

0 Members and 1 Guest are viewing this topic.

asynchronous M10/M11 alternative
« on: January 26, 2015, 08:51:17 PM »
I need to be able to turn outputs on/off from g-code but can't seem to do it any way other than using M10/M11 which is a problem since they require axis movement in order to be active - something i don't want. Any hints on how to do this? In LinuxCNC you'd use M64/M65 - any similar option for Mach3?

Thanks

Offline BR549

*
  •  6,871 6,871
    • View Profile
Re: asynchronous M10/M11 alternative
« Reply #1 on: January 26, 2015, 09:20:58 PM »
When you call the M10/M11 include a phantom axis call  Such as B0 in the string. It should trigger it.

Just a thought, (;-) TP

Re: asynchronous M10/M11 alternative
« Reply #2 on: January 26, 2015, 09:50:51 PM »
While that works, i am going to have to use all of the axis outputs in the near future so it's only a very temporary fix..

Offline BR549

*
  •  6,871 6,871
    • View Profile
Re: asynchronous M10/M11 alternative
« Reply #3 on: January 26, 2015, 09:56:37 PM »
Do you NEED the instantanious ON/OFF that the M10/11 gives ??

Or can you use a standard Mcode scripted to turn input on/off ?

(;-0 TP
Re: asynchronous M10/M11 alternative
« Reply #4 on: January 27, 2015, 01:01:11 AM »
I'm not sure what you mean by instantaneous, my issue is that m10/m11 does not turn stuff on directly but requires a Gx command. If there's a way doing it with scripting that's fine, i just want to control my outputs individually of axis movement. Any pointers to a tutorial or example? I find the Mach3 documentation to be .. underwhelming (haven't found a single peep about M10/M11 in the official documentation, had to scour the internet for an hour or so before i stumbled upon it).

Thanks!

Offline BR549

*
  •  6,871 6,871
    • View Profile
Re: asynchronous M10/M11 alternative
« Reply #5 on: January 27, 2015, 12:10:44 PM »
Create 2 macros, if you wish call them M64/M65.

In the macro turn ON/OFF the Signal(output) that you want to change.

You can also use a PARAM call in the macro to use an outside Parameter call such as M64 P3 to specific what output you wish to change.

IF you need help with the macros just ask.

THE M10/11 macros were built for a very specific function (laser control) and are not included in the manual.

(;-) TP