Need Help! Mach 3 Laser Control ...


Results 1 to 5 of 5

Thread: Mach 3 Laser Control ...

  1. #1
    Registered sidi_steve's Avatar
    Join Date
    Apr 2003
    Location
    Oakland
    Posts
    63
    Downloads
    0
    Uploads
    0

    Default Mach 3 Laser Control ...

    Hello one and all ~

    I am seeking assistance in setting up my laser. I have finished building a 48" x 24" setup.
    - optics harvested from older hk40 machine
    - Xylotex board from my router
    - DigiSpeed to allow PWM control
    - Mach 3 (unlicensed, demo)

    Currently, things "work" . I can feed in short gcode. I use M11P2 to switch on a relay and the laser fires. I use M10P2 or M05 and the relay switches off which makes the laser stop firing.

    Problems:
    There is a short delay between M11P2 and laser firing. I realize that I have mine set to turn on a relay which in turn fires the laser. I believe I have my output2 set to pin 17.

    Do I need the isolation of a relay to fire the laser?
    Can I "basically" go straight from pin 17 to the firing pin "L" on the laser power supply?


    -----------------------
    For engraving, I plan to use the Mach engraving plug in... But for vector cuts, I would like to use PPI. Is there a Mach 3 solution?

    Thanks,

    Steve

    Similar Threads:


  2. #2
    Member phomann's Avatar
    Join Date
    Aug 2005
    Location
    Australia
    Posts
    1091
    Downloads
    0
    Uploads
    0

    Default Re: Mach 3 Laser Control ...

    Whether you need isolation for firing the laser will be specified in the documentation for the laser controller.

    Also consider wither Mach3 is creating the delay. There are spin up and spin down delays in Mach3. These are usually to allow the spindle to come up to speed and to slow down to stop.

    If you look in the Config->Ports&Pins->Spindle Setup tab you will see the;
    CW Delay Spin UP
    CCW Delay Spin UP
    CW Delay Spin Down
    CW Delay Spin Down

    Set all these to 0

    Cheers,

    Peter

    -------------------------------------------------
    Homann Designs - http://www.homanndesigns.com


  3. #3
    Registered sidi_steve's Avatar
    Join Date
    Apr 2003
    Location
    Oakland
    Posts
    63
    Downloads
    0
    Uploads
    0

    Default Re: Mach 3 Laser Control ...

    Peter,

    Thank you for the reply. I have attached some photos to illustrate the effect of the delay on the output.

    This first image shows results using M03/M05 without setting delay to zero. Laser goes on and there is a delay before movement and at the end of movement.
    Mach 3 Laser Control ...-img_20150330_071403-jpg

    This second shows results using M03/M05 with all delay set to zero. Laser goes on and there is less delay before movement and at end of movement.
    Mach 3 Laser Control ...-img_20150330_071504-jpg

    This third photo is photoshopped to illustrate what happens when I switch from M03/M05 to M11P2/M10P2. These are supposed to be "immediate" commands that commence the moment there is movement. The corner is supposed to be closed.
    Mach 3 Laser Control ...-img_20150330_071543crop-jpg

    This was the lower left hand corner of a rectangle.
    G01 X1 Y1
    M11P2
    G01 X3 Y1
    G01 X3 Y2
    G01 X1 Y2
    G01 X1 Y1
    M10P2
    G01 X0 Y0

    It seems that the motion starts before the laser is firing.

    I don't know if because there is a ?ms delay in the relay or if the laser PSU has a ?ms delay in the firing of the laser.



  4. #4
    Member phomann's Avatar
    Join Date
    Aug 2005
    Location
    Australia
    Posts
    1091
    Downloads
    0
    Uploads
    0

    Default Re: Mach 3 Laser Control ...

    Hi Steve,

    I don't have experience with laser systems, but the relay is most likely causing the delay. Does the laser documentation provide a recommended interface circuit?

    If you need to use the relay you could possibly use a custom macro that calls M3 then delays for the correct number of milliseconds to cater for the relay operating although I don't think this will be very successful.

    Since you are using a laser, you should probably be using the "Z is 2.5D on output 6" setting in Mach3 general config.

    With this setting output6 goes active when the Z axis goes negative. That way, you can use M3 and the S word to generate the PWM power signal all the time, then to turn on the laser in G code with a negative Z value.

    Also this problem must have been resolved by others using similar setups with lasers. Have you searched through the forums to see if someone else has solved this issue.

    Cheers,

    Peter

    -------------------------------------------------
    Homann Designs - http://www.homanndesigns.com


  5. #5
    Registered sidi_steve's Avatar
    Join Date
    Apr 2003
    Location
    Oakland
    Posts
    63
    Downloads
    0
    Uploads
    0

    Default Re: Mach 3 Laser Control ...

    Peter,

    Thanks for the assistance and tips. I've got the laser firing on and turning off. I used a transistor (and resistor) wired to pin 17, collector to 5v "L" and emitter to "Gnd". When Z goes neg then pin 17 is active at 3.34v, we have a connection from L to Gnd and the laser fires. My testing makes me think the on and off is "pretty fast", but I wouldn't know how to quantify it.

    Just fyi - the digispeed controller works well even in analogue mode. I've got a pot to control input voltage. On the output side, I've got a free harbor freight digital multimeter wired in situ so I can really see the relationship between, my turning of the pot, the output voltage and laser power.

    Thanks again

    Steve



Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Mach 3 Laser Control ...

Mach 3 Laser Control ...