Hello Guest it is March 28, 2024, 06:15:50 PM

Author Topic: Mach3, Opt Laser 5W and Aspire  (Read 10645 times)

0 Members and 1 Guest are viewing this topic.

Offline Tweakie.CNC

*
  • *
  •  9,196 9,196
  • Super Kitty
    • View Profile
Re: Mach3, Opt Laser 5W and Aspire
« Reply #30 on: February 23, 2021, 05:56:25 AM »
Hi Allan,

As TPS seems determined to take control of this thread there is a danger of my providing conflicting information so I will back-off and leave it to him to resolve the issue.

Tweakie.
PEACE

Offline A11an

*
  •  62 62
    • View Profile
Re: Mach3, Opt Laser 5W and Aspire
« Reply #31 on: February 23, 2021, 06:04:21 AM »
Hi Allan,

Do not wire two steppers to the same axis.

As you are using the UC400ETH controller you could set an Output Pin from Port#2 for your spindle. I am assuming that you will be using a different profile for your spindle working to your laser working.

At the moment the conflict that I mentioned earlier is switching your laser (Port#1 Pin 17) from the M3/M5 commands and not the M11/M10 commands.

Tweakie.

Tweakie

Please don't step back, I really appreciate all your help!

CNC4YOU instructions for the CP0-10V show the y axis wired into the same axis output and if using belt config like me then to swap over the A+ & A- I didn't do this as at the time I totally missed the instruction at the top right of the page 7 how to reverse the motor, so just used the a A axis

if I do that will that the give me the outputs 8 & 9 to use or is there a reason not to swap

Thanks

Allan

Offline Tweakie.CNC

*
  • *
  •  9,196 9,196
  • Super Kitty
    • View Profile
Re: Mach3, Opt Laser 5W and Aspire
« Reply #32 on: February 23, 2021, 06:46:26 AM »
I don't quite understand what you are doing to gain the output pins however...

Within Mach3 set your Spindle Setup to Output#2 for M3 & M4.
Enable and specify a Port# and Pin# for Output#2 in Output Signals
(At this stage you don't need to connect anything to the Output#2 Pin).

This should enable the M11/M10 to control the laser switching using your previous posted test Gcode example.

I believe in resolving one issue at a time so once we have your laser turning ON and OFF from the Gcode M11/M10 commands then we can look at the broader picture of Laser Output Power control, etc.

Tweakie.
PEACE

Offline A11an

*
  •  62 62
    • View Profile
Re: Mach3, Opt Laser 5W and Aspire
« Reply #33 on: February 23, 2021, 06:56:52 AM »
Hi Tweakie

Just so you know what I've done,

I have wired the both my Y axis motors to the Y axis outputs on the CP0-10V, Swapped the A+ & A- on the slave stepper motor, this has given me pin 8 & 9 free.

Is that wrong?

Allan

Offline Tweakie.CNC

*
  • *
  •  9,196 9,196
  • Super Kitty
    • View Profile
Re: Mach3, Opt Laser 5W and Aspire
« Reply #34 on: February 23, 2021, 07:14:11 AM »
Hi Tweakie

Just so you know what I've done,

I have wired the both my Y axis motors to the Y axis outputs on the CP0-10V, Swapped the A+ & A- on the slave stepper motor, this has given me pin 8 & 9 free.

Is that wrong?

Allan

I am not sure if it is wrong and I appreciate that CNC4YOU show that configuration but it is not something I would ever consider doing. Reason being that Mach3 ‘Gantry Squaring’ may not be possible and it would be necessary if the two motors ever get 'out of step'.

Bottom line.. If you are happy then give it a try and see how it goes.

Tweakie.
PEACE

Offline A11an

*
  •  62 62
    • View Profile
Re: Mach3, Opt Laser 5W and Aspire
« Reply #35 on: February 23, 2021, 07:24:57 AM »
Tweakie

I have another CP0-10V but i need to order a cable, I'm happy to connect the 2 y axis for now but will take your advice and put them back when the cable comes, then could I use an output from that?

So would I now set in output signals Output#2 - Port#2 & Pin#8

What do I set Output#1 to?

Allan

Offline TPS

*
  •  2,501 2,501
    • View Profile
Re: Mach3, Opt Laser 5W and Aspire
« Reply #36 on: February 23, 2021, 07:33:47 AM »
port 1 pin 17 for the relay
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.

Offline Tweakie.CNC

*
  • *
  •  9,196 9,196
  • Super Kitty
    • View Profile
Re: Mach3, Opt Laser 5W and Aspire
« Reply #37 on: February 23, 2021, 08:13:03 AM »
Quote
So would I now set in output signals Output#2 - Port#2 & Pin#8

What do I set Output#1 to?

Output#1 Port 1 Pin 8 (which you now have to connect to your laser TTL input)
Output#2 Port 1 Pin 17 (this will connect to your spindle VFD but you can leave unconnected at the moment).

In Mach3 Motor Outputs disable the A axis to free-up pins 8 & 9

Tweakie.

PEACE

Offline A11an

*
  •  62 62
    • View Profile
Re: Mach3, Opt Laser 5W and Aspire
« Reply #38 on: February 23, 2021, 08:20:45 AM »
Ok, that's all set but still the same, soon as the gcode starts the laser is on until it finishes, as before



Allan

Offline TPS

*
  •  2,501 2,501
    • View Profile
Re: Mach3, Opt Laser 5W and Aspire
« Reply #39 on: February 23, 2021, 08:50:31 AM »
according to the Picture you posted here:

https://www.machsupport.com/forum/index.php?action=dlattach;topic=44431.0;attach=55305

make a quick test, turn your laser ON then make a wire Bridge from terminal 4 (GND) to terminal (enable input1). then laser should turn OFF.
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.