Community
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Update GRBL post to allow laser program posting

Update GRBL post to allow laser program posting

Now that GRBL has been publicly released with laser mode as one of it's options. Would it be possible to have the post team add laser function to the GRBL generic post? GRBL uses M3and M5 for laser control.

 

https://github.com/gnea/grbl

 

 

9 Comments
picengrave
Observer

A spindle/PWM value is also required to turn on a laser - ex: M3 S255 - in GRBL v1.1e.

timmyklus
Enthusiast

Thanks for that Jeff,

Also, the Smoothie post kind of works for GRBL but you have to make some changes to the post file to work with GRBL. I was able to get it working a while ago but I don't remember what I had to do to the post to make it work.

 

It would be good to have user parameters in the post options screen to change power range for the different laser modes as some people run max laser power at S255 and some at S10000 depending on how the firmware is setup for GRBL. I have attached an image to show what I mean.

 

 

fusion smoothie post.jpg

 

atrueresistance
Enthusiast

+1 on this. 

maleybr
Community Visitor
+1 on this!
AchimN
Community Manager
Status changed to: Under Review
 
AchimN
Community Manager
Status changed to: Accepted
 
kiky77
Observer

+1

AchimN
Community Manager
Status changed to: Implemented

Initial beta post is now online:

https://cam.autodesk.com/posts/?p=grbl_laser

 

Any feedback is very welcome.

3dfixer
Observer

grbl when used with a laser uses m3 to turn on, m5 to turn off

also uses s to set power, s0 is basically off, s255 max power

below is code produced using grbl laser post to cut a small square

 

%
(square)
G90 G94
G17
G21

(2D Profile10)
G54
G0 S250 M4
G0 X11.1 Y1
G2 X11 Y0.9 Z0 I-0.1 F400
G1 X1
G2 X0.9 Y1 J0.1
G1 Y11
G2 X1 Y11.1 I0.1
G1 X11
G2 X11.1 Y11 J-0.1
G1 Y1
G1 S0
M30
%

 

 

 

it should look something like this

 

%
(square)
G90 G94
G17
G21

(2D Profile10)
G54
G0 X11.1 Y1

M3 S250
G2 X11 Y0.9 Z0 I-0.1 F400
G1 X1
G2 X0.9 Y1 J0.1
G1 Y11
G2 X1 Y11.1 I0.1
G1 X11
G2 X11.1 Y11 J-0.1
G1 Y1
G1 S0
M5
%

 

laser should move to start position, switch on laser, cut profile then switch off laser

 

here example of 4 squares

 

%
(4_squares)
G90 G94
G17
G21

(2D Profile1)
G54
G0 S250 M4
G0 X10.688 Y10.9
G1 X1.1 F400
G1 Y1.1
G1 X10.9
G1 Y10.9
G1 X10.688
G0 X10.9 Y21.313
G1 Y30.9 F400
G1 X1.1
G1 Y21.1
G1 X10.9
G1 Y21.313
G0 X21.313 Y21.1
G1 X30.9 F400
G1 Y30.9
G1 X21.1
G1 Y21.1
G1 X21.313
G0 Y10.9
G1 X21.1 F400
G1 Y1.1
G1 X30.9
G1 Y10.9
G1 X21.313
G1 S0
M30
%

 

as you can see laser doesnt power off between squares

ive looked at post processor code and its beyond me what to change

hope this helps, i'll try again when post updated

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea