martindb / mpcnc_posts_processor

MPCNC posts processor for Fusion 360 and Marlin
MIT License
63 stars 84 forks source link

Laser remains ON after cut while homing #3

Open cnorrick opened 7 years ago

cnorrick commented 7 years ago

I just know know enough gcode to figure out what is going on. I just set my laser up and I was testing etching my waste board with a grid. Once the cutting is finished the laser heads to Home but remains ON.

cnorrick commented 7 years ago

Forgot to mention I'm printing from SD card.

martindb commented 7 years ago

I have to review this issue. In the mean time can you uncheck the option to go to the origin when finish.

cnorrick commented 7 years ago

It is still staying on after the job is complete. I assume as a temp fix I just need to add a M107 to the end of the file.

martindb commented 7 years ago

Yes.

martindb commented 7 years ago

In a few quick test I can't reproduce the issue. Can you detail how are you generating the toolpath/gcode and attach the resulting gcode?

cnorrick commented 7 years ago

Using the Mac version of F360. v 2.0.2862

The tool path is based off an imported dxf file generated from Adobe Illustrator. In this example it is a 1" spaced x y grid for the waste board. I also set a diamond shape in it to have 45 degree reference lines. The attached gcode is from the outer perimeter rectangle and the inner diamond portion of the design. I'm using the "Etch" cutting mode using "All loops" and "Center" sideways compensation. In postprocess I modified Etch to run at 200 power. The only check box checked is Set Origin on Start.

It just won't add the M107 to the end. However, I do have another file I'm testing that does seem to add the M107. I'm doing more testing to see what the difference between the two but I can't seem to find one. I made all sorts of tests with various postprocess checkbox selections and modifications but nothing I've tried so far has added the final M107 on this grid file. I have three setups. One for the X lines, one for the Y lines, and one for the Outer and Diamond. None of them generated the final M107.

;Fusion 360 CAM 2.0.2862 ;Posts processor: MPCNC_Mill_Laser.cps ;Gcode generated: Tue Mar 7 19:04:28 2017 GMT ;Document: Laser Grid for Waste Board v4 ;Setup: Perimeter + Diamond

G90 G21 M84 S0 G92 X0 Y0 Z0

;2D Profile3 3 - Laser/Plasma - Cutting mode: etch ;X Min: -0.036 - X Max: 914.364 ;Y Min: 0.004 - Y Max: 609.604 ;Z Min: 0 - Z Max: 0 M400 M117 2D Profile3 (3) G1 X457.164 Y25.529 Z0 F500 M106 S200 G1 X177.889 Y304.804 G1 X457.164 Y584.079 G1 X736.44 Y304.804 G1 X457.164 Y25.529 M107 G1 Y0.004 F2500 M106 S200 G1 X914.364 F500 G1 Y609.604 G1 X-0.036 G1 Y0.004 G1 X457.164

M400 M117 Job end

cnorrick commented 7 years ago

f3d of the design.

Laser Grid for Waste Board v4.f3d.zip

martindb commented 7 years ago

Ok, with this file I can reproduce the issue. I don't know if it's a fusion bug or my fault, but if you put some distance different than 0 in the clearance height of the operation, it just works.

BTW, you can put the 3 operations in the same setup. If you like to do each operation a separate gcode file, just export it. If you export the setup, you will have a gcode file with all your operations.

cnorrick commented 7 years ago

Interesting. I post processed the same file on my work mac and my home mac. Work mac produced a M107, home did not. I wonder if I messed with the setup clearance in-between. Anyway, I'll do some more testing with messing with the clearance height and see if the output stays consistent between the two computers. And thanks for the tip about only needing one setup with multiple operations. I was using multiple setups with my last project and carried that habit over to the laser project when I didn't need to.

martindb commented 7 years ago

Ok, It should be great if you can test the clearence in your machine and compera with you works machine. I'm also use mac.

mikecarr commented 7 years ago

I noticed that Etch does not put M107 but Vaporize does. Any reason why we can't add the 'laser off' command here? https://github.com/martindb/mpcnc_posts_processor/blob/master/MPCNC_Mill_Laser.cps#L84

ingrc91 commented 5 years ago

good day for all I am just starting in the world of printers, my query is how to configure the marlin to be able to operate the laser that I have 500mW, I would appreciate your help