Mach3 Mill Post that Triggers Laser

Mach3 Mill Post that Triggers Laser

Anonymous
Not applicable
856 Views
1 Reply
Message 1 of 2

Mach3 Mill Post that Triggers Laser

Anonymous
Not applicable

@Anonymous  created a great  Mach3 Laser post processor for Cutting mode that outputs the code I need to turn a laser on and off with M11p1 and M10p1 calls. I'm interested in modifying the Mach3 Mill post processor to insert the same M11p1 Sxxx ahead of all of the cutting movements (movement_cutting) and adding M10p1 ahead of all other movement_xxx commands (M11p1 activates port 1 on the Ethernet Smoothstepper, Sxxx calls out the spindle speed at some number between 0 and 255 which dictates laser power - 0=0%, 255=100% laser power dependent on what I've set up for the tool) George's post works extremely well for Cutting operations (Waterjet/Plasma/Laser) so it seems that adding the M codes to a milling post would allow me to use 2D Contour to do vector cutting and 3D Parallel would engrave a surface by "rastering" over a pocket just like an end mill. I just need the laser to be off (M10p1) during all the linking moves, lead-in/out, ramping, plunge, etc. The laser should be off (M10p1) any time an ordinary end mill wouldn't be cutting, and on (M11p1) any time it's doing work EXCEPT during Z-axis moves. Ideally, I would have a post that still allows multiple passes/depths, but the laser is off while it's getting to the new depth.

 

I've posted a sample of the Mach3 Laser code that works well in Cutting.

0 Likes
857 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

Sample of the Cutting code...

 

(Sample Code)
N10 G90
N15 G70

(2D Profile5)
N20 G0 X2.0566 Y14.9551 M10 P1
N25 M11 P1 S255.
N30 G1 X2.0455 Y14.945
N35 G1 X2.5134 Y14.4304
N40 M10 P1
N45 G0 X2.5146 Y14.3845
N50 M11 P1 S255.
N55 G1 X2.514 Y14.4075 F65.
N60 G1 X2.0458 Y13.8353
N65 M10 P1
N70 G0 X2.9574 Y14.9258
N75 M11 P1 S255.
N80 G1 X2.9458 Y14.9353 F65.
N85 G1 X2.5236 Y14.4192
N90 G1 X3.0455 Y13.845
N95 G0 X0. Y0. M10 P1
N100 M30

0 Likes