Hello Guest it is March 29, 2024, 08:27:04 AM

Author Topic: m11 and m10 commands  (Read 9634 times)

0 Members and 1 Guest are viewing this topic.

m11 and m10 commands
« on: March 21, 2017, 03:59:02 PM »
hi you lovely people
I am having trouble using the m10 and m11 commands
I have read a lot of threads but no luck
I am able to turn my laser on - off with the spindle or m3 m5 commands
in the motor outputs I have it set as step pin 2 step port 1
output signal is set to port1 pin3
spindle set up is use motor outputs pwm

so I tried m11p1
              g0 z1
to turn on laser and nothing

can somone please tell me what I am doing wrong
Re: m11 and m10 commands
« Reply #1 on: March 21, 2017, 04:12:05 PM »
another question when I look at the m11 m10 commands most of them are rem out is this correct

Offline Tweakie.CNC

*
  • *
  •  9,196 9,196
  • Super Kitty
    • View Profile
Re: m11 and m10 commands
« Reply #2 on: March 22, 2017, 03:03:03 AM »
Set Output#1 to the port and pin number which is connected to your laser trigger. Set active High / Low, as appropriate.

This Gcode will turn on Output#1 and activate the pin number you have specified above.

G0 Z0
M11P1
G0 Z1

(the G0 Z0 is only there to make sure that G0 Z1 is an actual movement as far as the DRO is concerned)

Can you explain what you mean by "when I look at the m11 m10 commands most of them are rem out" ???

Tweakie.



PEACE
Re: m11 and m10 commands
« Reply #3 on: March 22, 2017, 05:11:50 PM »
hi sorry for the delay in getting back to you had to go to work

when I have a look ie edit the m10 or m11 commands they look like this

rem #define DIGTRIGGER  0 rem #define ENABLE1     1 rem #define ENABLE2     2 rem #define ENABLE3     3 rem #define ENABLE4     4 rem #define ENABLE5     5 rem #define ENABLE6     6 rem #define EXTACT1     7 rem #define EXTACT2     8 rem #define EXTACT3     9  rem the following de-activates signal 9 (EXTACT3)  DeActivateSignal(  9 )

Offline Tweakie.CNC

*
  • *
  •  9,196 9,196
  • Super Kitty
    • View Profile
Re: m11 and m10 commands
« Reply #4 on: March 23, 2017, 02:23:02 AM »
I now understand about the rem's  ;)

The only thing that the M10 / M11 are required to do is ActivateSignal(9) / DeActivateSignal(9)

Tweakie.
PEACE
Re: m11 and m10 commands
« Reply #5 on: March 23, 2017, 01:26:55 PM »
great thank you
still cant get the m commands to work but I am sure I will just a bit more reading
it will help me understand how everything works

Offline Tweakie.CNC

*
  • *
  •  9,196 9,196
  • Super Kitty
    • View Profile
PEACE
Re: m11 and m10 commands
« Reply #7 on: March 23, 2017, 03:51:23 PM »
I HAVE THE M11 COMMAND WORKING
IT IS TURNING PORT 1 ON AND OFF
I CAN CONTROL MY LASER ON AND OFF ALSO POWER UP AND DOWN WITH THE SPINDLE BUTTON OR DRO WHAT EVER ITS CALLED
MY MOTOR OUTPUT IS SET TO STEP PIN2   DIR PIN1    STEP PORT 1   DIR PORT1

SPINDLE SET UP I HAVE ENABLED RELAY CONTROLE OUTPUT1
WHEN I USE THE M11 COMMAND IT TURNS ON PORT 1
I HAVE OUTPORT 1 SET TO PORT1 PIN2

STILL CANT SEE WHAT I AM DOING WRONG

Re: m11 and m10 commands
« Reply #8 on: March 23, 2017, 03:56:10 PM »
PS THANKS FOR THE LINK
I HAVE READ IT SEVERAL TIMES
USING AN AXIS DIR PORT TO TURN LASER ON AND OFF IS MY LAST RESORT
I AM DETURMINED TO USE THE SPINDLE PWM
PPS THANK YOU FOR YOUR HELP I THINK I HAVE READ JUST ABOUT ALL THE POST YOU HAVE POSTED ON MOST FORUMS
REGARDING M10 M11 AND HAVE LEARNED LOTS ABOUT MACH3

Offline Tweakie.CNC

*
  • *
  •  9,196 9,196
  • Super Kitty
    • View Profile
Re: m11 and m10 commands
« Reply #9 on: March 24, 2017, 02:52:43 AM »
You cannot duplicate pin number functions without causing a conflict. If you are using Port1 Pin2 as your Spindle Step pin then you cannot also use Port1 Pin2 for Output#1.

You have probably seen this already but by far the simplest solution to using PWM laser power control is described here :  http://www.cooperman.talktalk.net/files/27_files/Page1020.htm
http://www.tweakie.byethost10.com/27_files/Page1020.htm

Tweakie.

EDIT; Link updated.
« Last Edit: July 03, 2019, 04:04:38 AM by Tweakie.CNC »
PEACE