- Posts: 15
- Thank you received: 0
PCB milling with laser - power off when Z is up
Now I like to try photosensitive laminate and expose the same insulation data with laser. The advantage is that I am not so Z-axis sensitive (PCB laminate is often not totally flat).
But when I go from one track to the next track the CNC tool will move up, and move the next track. When I do that with the laser the laser power will stay ON and the travel track will be exposed.
Is there a way to switch the laser power OFF when the Z-Axis moves up?
Or is there any way to incorporate that into software/hardware?
Please Log in to join the conversation.
use the same as if it was a spindle i.e M3 and M5 to turn off
so you may need to adjust your gcode or postprocessor to add the approprate codes
it might be helpful to add a delay to allow the laser to turn off and on , i have had to do that on some lasers that had mechanical shutters , so it may work in your case
also diode lasers are extremley broad in beam size and extrainious light patterens , so you may need to sheild the laser and just have for argument a 0.5mm hole for the beam
Please Log in to join the conversation.
yello wrote: Is there a way to switch the laser power OFF when the Z-Axis moves up?
Of course! There is always a way with LinuxCNC.
The ddt function can be used to detect if the spindle is going up or down: www.linuxcnc.org/docs/html/man/man9/ddt.9.html
Then the abs function can be used to create pins for "is-positive" (going up) or "is-negative" (going down) www.linuxcnc.org/docs/html/man/man9/abs.9.html
Then you can use a flip-flop connected to the is-positive and is-negative to latch the state www.linuxcnc.org/docs/html/man/man9/flipflop.9.html
Please Log in to join the conversation.
cncbasher wrote: how are you switching the laser on and off ?
use the same as if it was a spindle i.e M3 and M5 to turn off
I use only XYZ data, the spindle on/off and speed I do manually.
I have of course extra pins in the parallel cable. How do I get there? Get the wires out, or?
And what function I should use exactly? I saw there are some digital pins, what do they do? Go high (5V) when ON? Is so then I could simply put a relays or FET there. (Relays is maybe not so good because of the buzz)
cncbasher wrote: also diode lasers are extremley broad in beam size and extrainious light patterens , so you may need to sheild the laser and just have for argument a 0.5mm hole for the beam
My BluRay 100mW LD has a very simple 1 lens optic. I get a small focus point, maybe 0.5mm or less (hard to see). I could work with tube and a hole at the end. So far I didn't do any exposure tests. A better, or more suitable optic would be another option. So in case you have any link or advice.......
Attachment not found
Please Log in to join the conversation.
also if you add spindle pwm to a pin that would give you an output to vary the power level of the diode , using the spindle value as a level , if you can interface the pwm output to your laser driver
Please Log in to join the conversation.
cncbasher wrote: how are you switching the laser on and off ?
use the same as if it was a spindle i.e M3 and M5 to turn off
There is a certain advantage to the approach of using HAL to detect "virtual" Z-axis motion, the existing milling G-code can be used.
(though possibly not, as it is likely to create a "negative")
Please Log in to join the conversation.
ok using M3/M5 is not ideal, however it does work , and i have used it running a 2Kw laser ,
i had more problems with the THC than anything else .. , in the end i prefixed the head height to run 1mm above the plate , as a temp measure , it's still running that way 5 years later
Please Log in to join the conversation.
cncbasher wrote: I'd be interested to look at that approach
Well, as I suggested above, I think it would be:
axis.2.motor-pos-cmd => ddt = > abs
abs.is-positive => flipflop.reset
abs.is-negative => flipflop.set
flipflop.out => laser-death-ray
Please Log in to join the conversation.
