laser add on to gantry mill

More
16 Sep 2021 03:30 #220757 by ericg
I have another thread about this but not sure it was the best place, anyway I added a 2.5w laser to my router and changed my preprocessor to use M3 Sxxxx to control intensity and it's all working quite well, BUT I noticed gaps and overburn in my images especially outline text. It seems that the laser is slow to turn on when XY moves leaving a gap and slow to turn off when starting a rapid move leaving a slight burn trail. (slow being a relative term)
Tommylight suggested upping the Z velocity and acceleration but that did not seem to help.
Can anyone suggest a fix (if possible) I don't know if its hardware (which is a crappy l-cheapo laser, bottom of even their line) or software, say in the trajectory planner.
I have a Mesa 5i25 (no 7i76 etc) driving a Gecko g540 so I have no access the hm2_5i25.0.pwmgen.00.pwm output as I would have in a stepconfig layout (or please correct me if I have this completely wrong)
Eric

Please Log in or Create an account to join the conversation.

More
16 Sep 2021 03:50 #220759 by PCW
Replied by PCW on topic laser add on to gantry mill
You have another accessible PWM gen on the second 5I25 connector

Please Log in or Create an account to join the conversation.

More
16 Sep 2021 04:13 #220761 by ericg
Replied by ericg on topic laser add on to gantry mill
I have ordered a cable to suit the P2 socket for this reason, but won't I have the same issue? how would I run that through motion.analog-out-00, would something like

net analogout motion.analog-out-00 => hm2_5i25.1.pwmgen.00.value
net spindle-enable => hm2_5i25.1.pwm.00.enable

and use G68 E1 Q1 in the pre processor work ??

any guidance appreciated
Eric

Please Log in or Create an account to join the conversation.

More
16 Sep 2021 04:35 #220762 by PCW
Replied by PCW on topic laser add on to gantry mill
I think what tommylight was suggesting was to use the z position to set the PWM value
rather than spindle, since the z value would be synchronized with motion and spindle speeds are not

Please Log in or Create an account to join the conversation.

More
16 Sep 2021 04:59 #220764 by ericg
Replied by ericg on topic laser add on to gantry mill
Thanks I'll re read tommylights files but I'm still not grasping how to use the mesa card pwmgen as opposed to the software one, I need an example (if I'm not asking too much) on how to use the mesa card pwmgen output with motion.analog-00-out.
apologies for being so dim.
my limited understanding is that the software generated pwmgen has a pwmgen.0.pwm output but the mesa card one does not. I haven't seen one mentioned anywhere so please correct me as required.
Eric

Please Log in or Create an account to join the conversation.

More
16 Sep 2021 14:57 #220801 by PCW
Replied by PCW on topic laser add on to gantry mill
If you are using a G540, the first hardware PWMgen (pwmgen.00) will connect
to the G540s spindle analog circuit but the second pwmgen (pwmgen.01)
will connect to the unused 5I25 expansion connector.

Please Log in or Create an account to join the conversation.

More
16 Sep 2021 22:04 #220818 by ericg
Replied by ericg on topic laser add on to gantry mill
Thanks for the response PCW I do understand that part, what I don't understand is how to use that output with motion.analog-00-out, I have read tommylights code (and others) and all are using software generated PWM signals and have access to a PWM output prior to feeding it to a physical pin whereas the 5i25 PWM output is straight to a physical pin.
I am probably missing something obvious here, but I'm just not seeing it.

The PWM speed control for my spindle is connected like this..
net spindle-vel-cmd-rpm => hm2_5i25.0.pwmgen.00.value
and it is turned on and off via
net spindle-enable => hm2_5i25.0.pwmgen.00.enable
so I have indirect control of the output but no direct control.
Please tell me what I am missing here, I'm starting to feel embarrassed by this.

Please Log in or Create an account to join the conversation.

More
17 Sep 2021 00:27 #220837 by PCW
Replied by PCW on topic laser add on to gantry mill
net laser_pwm <= motion.analog-00-out => hm2_5i25.0.pwmgen.01.value

Please Log in or Create an account to join the conversation.

More
17 Sep 2021 01:30 #220846 by ericg
Replied by ericg on topic laser add on to gantry mill
thanks PCW, I tried exactly that and checked halmeter and saw it was doing what I wanted but the laser did not fire, which is why I thought I was missing something.
I appreciate everyone's patience with me and I will give this another go as soon as the cable adapter arrives for P2
Eric

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.082 seconds
Powered by Kunena Forum