arkypita / LaserGRBL

Laser optimized GUI for GRBL
http://lasergrbl.com
Other
1.19k stars 483 forks source link

Request: Pause before cuting #774

Open FrancoisL2007 opened 4 years ago

FrancoisL2007 commented 4 years ago

Hi, I have a 5w Laser. when i cut white paper, the laser is reflected and do not cut the paper for a few millimeters. it would be nice to allow the laser to wait a short time (maybe 0,05s) to start cutting then make the laser move... thank you, Francois

sinfocomp commented 4 years ago

Edit your post procesoor

El sáb., nov. 16, 2019 8:16 AM, FrancoisL2007 notifications@github.com escribió:

Hi, I have a 5w Laser. when i cut white paper, the laser is reflected and do not cut the paper for a few millimeters. it would be nice to allow the laser to wait a short time (maybe 0,05s) to start cutting then make the laser move... thank you, Francois

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/arkypita/LaserGRBL/issues/774?email_source=notifications&email_token=AHBW52UANK6Q5NJ55REBFJDQT76C7A5CNFSM4JOFLEP2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HZZKKOA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHBW52TUCR4ZLNZOMBR3U2LQT76C7ANCNFSM4JOFLEPQ .

FrancoisL2007 commented 4 years ago

Thank you but I don’t know how to do that. Is it in laserGRBL? Which command?

Grouic commented 4 years ago

Try to add a "G4 P0.05" after each laser activation in your GCODE

FrancoisL2007 commented 4 years ago

Thank you for your reply. I have to create a gcode with LaserGRBL then edit the gcode with a text editor then reload the gcode in LaserGRBL. Is that ok or is there a way to make it automatically? François

Grouic commented 4 years ago

It's OK, I haven't found the automatic way for now.

FrancoisL2007 commented 4 years ago

If you find it, tell me! Thank you so much! François

Grouic commented 4 years ago

I only found it on JTech plugin for inkscape (and it only work with M3 order) M05 S0

G90 G21 G1 F1000 G1 X102.9135 Y75.7017 G4 P0 M03 S1000 G4 P0.05000000074505806 G1 F750.000000 G2 X102.1077 Y75.7816 I0. J4.1023 G2 X101.6961 Y75.9455 I0.2412 J1.204

The duration is a little bit strange

arkypita commented 4 years ago

This feature has been requested several times, and I have already included it in the development roadmap: https://github.com/arkypita/LaserGRBL/issues/64

It is not difficult for me to add it, the fact is that those who ask it never take into consideration some details that I consider important.

First there is an issue/conflict with the automatic cooling cycles. When cooling cycles are activated LaserGRBL send suspend/resume commands at periodic times. It is not possible to insert the same power-on delay when resume.

Second there are two/three modes to turn on-off laser: M3-M4 and M5, but also using S0-S255 (power to zero/max), and also perform G0 for rapid move instead of G1/G2/G3.

So, for example, a program can send an M3 command only at the beginning of the program, and then work only with changes of S-power or with G0/G1 to control laser on/off.

I am not sure of that, but in gcode generated by LaserGRBL i sometime use such kind of optimization, that make it more complex that simply add G4 after M3/M4.