CO2 laser firing with G1
-
Starting to configure my Duet3 board for use with a 60w CO2 laser which I'm building.. I've got the M7/M8/M9 figured out and a E-Stop. One thing that concerns me is that my homing scripts use G1 for moving the axis's. I've modified them to use G0, but that causes the axis to move at full rate as in rapid. you can not use a F statement in order to control the speed. Leaving me to use G1 which my understanding is that it is used for laser movement with power (S). This could be an issue as the S statement is sticky I thought so any movement of the axis ie homing, will cause the laser to fire due to the use of G1.
I believe that G0 needs to respect a feedrate sent with the command instead of just ignoring it. I'm using the last release of RRF3 along with DWC-CNC
-
@colten From the GCODE page on G0/G1:
Very important! If you use M452 to put your machine into Laser mode, you must replace all S parameters in G0/G1 commands in homing files etc. by H parameters. This is because S is now used to control laser power, for compatibility with programs that generate GCode files for laser cutters.
-
@alankilian Already did that. thanks though.
G1 H1 X800 F5000 ; move quickly to X axis endstop and stop there (first pass)
G91
G1 H0 X-5 F500 ; go back a few mmG1 H1 X500 F400 ; move slowly to X axis endstop once more (second pass)
G90; homey.g
; called to home the Y axis
;
; generated by RepRapFirmware Configuration Tool v2 on Wed Apr 03 2019 13:46:49 GMT-0600 (Central Standard Time)G1 H1 Y-1400 F1600 ; move quickly to Y axis endstop and stop there (first pass)
G91 ; relative mode
G1 Y5 F6000 ; go back a few mmM584 Y1
M574 Y1 S1 P"io1.in"
G1 H1 Y-10 F360 ; move slowly to Y axis endstop once more (second pass)
M584 Y2
M574 Y1 S1 P"io2.in"
G1 H1 Y-10 F360M584 Y1:2
M574 Y1 S1 P"io1.in+io2.in"
G90 ; exact mode -
@colten I'm glad everything is working well for you now.