Hello Guest it is April 18, 2024, 11:46:43 AM

Author Topic: m10 m11 commands  (Read 2534 times)

0 Members and 1 Guest are viewing this topic.

m10 m11 commands
« on: April 24, 2018, 08:04:12 AM »
Can anyone tell me, because I'm new to mach3, these commands don't work for me.
I have output 2 enabled.

I type into the run box on the diagnostics screen M10P2 and M11P2 nothing happens. I expect 1 of the output leds to illuminate.

Is there some other setting I need to alter?

Offline Tweakie.CNC

*
  • *
  •  9,198 9,198
  • Super Kitty
    • View Profile
Re: m10 m11 commands
« Reply #1 on: April 24, 2018, 08:21:49 AM »
Those commands only take effect at the instant of axis (any axis) movement.

For example, the Gcode;

G0 X0

M11P2
G0 X1

Would turn ON Output #2 at the instant axis X starts to move to position X1 and;

M10P2
G0 X0

Would turn OFF Output #2 again at the instant axis X starts to move to position X0.

There are more details here;  http://www.cooperman.talktalk.net/files/27_files/Page652.htm
http://www.tweakie.byethost10.com/27_files/Page652.htm
 
Hope this helps,

Tweakie.

EDIT;  Link updated.
« Last Edit: July 03, 2019, 04:08:29 AM by Tweakie.CNC »
PEACE
Re: m10 m11 commands
« Reply #2 on: April 24, 2018, 08:25:42 AM »
Thank you that helps a great deal.
I didn't understand the full context.
Re: m10 m11 commands
« Reply #3 on: April 24, 2018, 01:54:09 PM »
Tweakie thanks
I have just tried those codes this evening but without success.

I even cut and pasted your code in the post to a file and ran it.
The line after M11P2 didn't appear in the Mach3 code window and output 2 remained dormant.

On the plus side I read though your website and was very impressed with all you have done, both construction of your machine and products made on it.

Offline Tweakie.CNC

*
  • *
  •  9,198 9,198
  • Super Kitty
    • View Profile
Re: m10 m11 commands
« Reply #4 on: April 24, 2018, 02:35:26 PM »
A couple of points that may help...

All Mach3 Gcode must finish with a CR so it is usual to insert a null character such as % at the end of every file. If you do not do this then the last line of code will be ignored.
The Diagnostic LED's do not always work as expected so a Meter (or similar) connected to the mapped Output Pin may provide a better indication.
You need to be using Mach3 version .056 or later.

Tweakie.
PEACE