Hello Guest it is November 13, 2019, 12:25:27 AM

Author Topic: sainsmart 3018 MX3 laser does not immediately honour M3/M5  (Read 762 times)

0 Members and 1 Guest are viewing this topic.

sainsmart 3018 MX3 laser does not immediately honour M3/M5
« on: October 04, 2019, 12:52:42 PM »
The laser does not immediately obey M2 and M5.
(I'm Using Freecad, which does not issue motor off when G0.
So I edited the file and added M3/M5 at the correct places.)

Problem - the laser comes on before the G0's are complete, and
goes off before the cutting is complete.

I have added G4 P 2 commands and this fixes the problem, but the
laser is on for a short time before moving and after stopping.

Why do I need these delays (using PWM). Can I not turn the laser off/on
immediately. I also notice the delay when I press "spindle CW F5".

I saw that I could use M10 or M11 to do this but I cannot set this up.

Sainsmart say that Drufel (another CNC controller S/W does not have this problem.

Lawrence

Offline Tweakie.CNC

*
  • *
  •  7,984 7,984
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: sainsmart 3018 MX3 laser does not immediately honour M3/M5
« Reply #1 on: October 05, 2019, 02:52:16 AM »
Hi Lawrence,

The M3/M5 commands are far too slow for laser work and that is why the M11/M10 commands were introduced.
The M11/M10 commands need to specify an Output# and be followed by an axis (any axis) movement to take effect then the laser is only turned ON and OFF consistent with an axis movement.

In my case I am using Output#1 to switch my laser and so my commands would be M11P1 to turn the laser ON and M10P1 to turn the laser OFF. To initialise the laser I also need an M3 at the start of the Gcode.

If it is any help I have attached your code which has been modified to suit the M11/M10 commands.

Tweakie.
Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.
Re: sainsmart 3018 MX3 laser does not immediately honour M3/M5
« Reply #2 on: October 05, 2019, 04:50:56 AM »
Thanks for the reply, and especially for modifying my code for me.

Since iy is a OEM board I do not know which output to select for the M10/M11.

How do I find the output for the laser? I do not have a manual for the board. I could just do trial and error, especially as I have your working code. Are there any settings in MACH3 I should change?

Thanks

Lawrence
« Last Edit: October 05, 2019, 04:52:53 AM by lawrencek »

Offline Tweakie.CNC

*
  • *
  •  7,984 7,984
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: sainsmart 3018 MX3 laser does not immediately honour M3/M5
« Reply #3 on: October 05, 2019, 05:01:26 AM »
Quote
Are there any settings in MACH3 I should change?

Hi Lawrence,

Are you using the LPT Parallel Port or are you using an external Motion Controller ?
Can you post a picture of your OEM board so it can be identified ?

Tweakie.
Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.
Re: sainsmart 3018 MX3 laser does not immediately honour M3/M5
« Reply #4 on: October 05, 2019, 07:07:08 AM »
Thanks for your reply.

I am using USB, and I enclose photos of the board. It is "MACH3 controller for mini CNC" and I have versions 1.3 and 3.1. They look basically the same.

If I use drufel CNC :( it shows the board USB number. I am told the Drufel does not have the M3/M5 delay, but I doubt it.

It looks as if output1 is active, and this might be the laser. I will try your file and let you know.

Are there any MACH3 setting I should know aboit? I have tried them all with M3 and M5.

I would love to get a manual for the board, and even a schematic: 2 boards blew up and I changed the regulator, but I could then find out why.

Thanks for your help.

Lawrence

Offline Tweakie.CNC

*
  • *
  •  7,984 7,984
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: sainsmart 3018 MX3 laser does not immediately honour M3/M5
« Reply #5 on: October 05, 2019, 08:26:02 AM »
Hi Lawrence,

Your USB board does not support the use of the M11/M10 command set so it looks like you are back to the beginning.

Your options would seem to be...

Get another (higher spec) motion controller  (US or EU origin not Chinese) suitable for use with Mach4.

Try Drufel. Unfortunately this is a low-end controller using HPGL1 for it's image to Gcode conversions but it does have built-in laser routines.

Sorry I can't be of much help with finding a solution.

Tweakie.
Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.
Re: sainsmart 3018 MX3 laser does not immediately honour M3/M5
« Reply #6 on: October 08, 2019, 04:18:34 PM »
Do you know where I can get info on this board? A manual?

It has an option jumper for M3/Z, apparently you can switch the laser on with Zaxis control.But I cannot get it to even come on at all with this option.

Lawrence
Re: sainsmart 3018 MX3 laser does not immediately honour M3/M5
« Reply #7 on: November 10, 2019, 12:23:44 PM »
Hi Lawrence! Did you ever come up with a fix? I have the same mx3 and their 5.5 w laser. I got it set up to have zero lead in or out and close the burn fully without turning off early. But I have not been able to get it to not burn in each start. Lots of research shows its the "spindle spool up" time built into the m03. So did you ever get an m10px to work or swap boards or...? Thanks!

Jason