So I have been working on a tool for a laser engraver on the tool changer. I have designed a mount for the laser on the tool changer but I think it still needs some tests, which brings me to my question as I am testing the laser I am trying to make sure the mount has enough air flow going through it to cool the laser diode as well as push the smoke away to prevent charring and so on, I don't want to share an untested stl for now I will share renders of the model so you can imagine the final result. My problem is as follows; I created a new tool ( as the mount i designed is a bit deeper than what is allowed on the tool changer I am mounting it manually for now), Disabled heater 5 and in the tpree4.g file I set the machine into laser mode using the M452 command (M452 P5 R255 F200 S1). when I try to do cut moves the laser only fires for the first move then dose not fire again until the next M3 Command where it fires for the first move again, I have searched and under stood that this is a safety measure implemented in the duet firmware and my understanding is that using the S1 parameter should enable sticky mode but that is not the case, I am trying to find a solution other than a post processing script. I am using LightBurn for the laser gcode generation. a sample of the gcode is below for reference. If you can spot what am I doing wrong I would be grateful. Code: ; LightBurn 0.9.07 ; Marlin device profile, absolute coords G21 G90 ; Cut @ 300 mm/min, 50% power M05 G0 X91.62 Y51.19 F3000 M03 S127.5 G1 X91.76 Y50.98 F300 ;only move that fires the laser G1 X91.93 Y50.8 G1 X92.13 Y50.65 . . . G1 X91.62 Y51.19 M05 G0 X86.17 Y50.43 F3000 M03 S127.5 G1 X86.51 Y50.38 F300 ;only move that fires the laser G1 X86.85 Y50.4 G1 X87.18 Y50.5 . . .
So Here it is, It is still work in progress but it works Thingiverse link for the part: https://www.thingiverse.com/thing:3852745 This tool head accepts a Jtech Photonics Diode Laser, I am using the 2.8W version. Design is not final. You will need to glue 2x 3mm of size 36X32mm and 23X32mm of orange transperant plexi in the grooves of the bottom half of the V3 mount (UV Laser Protection). As you can see from the gcode below I am loading and unloading the tool manualy for now for 2 reason one the tool is deeper than the frame could handle I need to design and print a new deeper reciver. and because I am gready and want to keep all five tools on the thing(Ii know I cant but for now this works) To use this on your tool changer you need to do the following. 1- Disable one of the heaters I chose to use heater 5, 2- create a new tool definition in the config.g file Code: M305 S"T4" P5 M307 H5 A-1 C-1 D-1 ; Disable Heater 5 output on H5 M563 P4 S"T4" ; Define tool 4 Laser G10 P3 X0 Y0 Z0 ; Reset tool 3 axis offsets 3- create a tpre4.g, tpost4.g and tfree4.g and add the following into them tpre4.g Code: M452 P5 R255 F200 S1 ; Enable Laser mode, on output 9 (heater 5), with max intensity being 255, and a PWM frequency of 200, and S1 for Sticky Mode G1 X150 Y-49 Z38 ; Go To manual Loading Location ;Unlock Coupler M98 P/macros/Coupler - Unlock ;Prompt Tool Insertion M291 P"Hold the Laser Tool to the Tool changer Coupler" R"Place Laser Tool" S2 ;Close Coupler M98 P/macros/Coupler - Lock tpost4.g Code: G1 Z33 ;if your focus length is different set that here tfree4.g Code: ; tfree4.g ; called when tool 4 is freed ;Drop the bed G91 G1 Z10 F1000 G90 ;Move In G53 G1 X150 Y-43 F50000 ;Prompt Tool removal M291 P"Hold the Laser Tool when ready click ok Coupler will release" R"Release Laser Tool" S2 ;Open Coupler M98 P/macros/Coupler - Unlock M291 P"Confirm Tool is clear" R"Release Laser Tool" S2 M98 P/macros/Park M451 ;switch back to FFF printer mode when generating gcode for this tool you need to make sure that the first G1 command after M3 has the S parameter to set laser power.