Okay, so I followed a tutorial to export a CNC-file from Fusion.
Snapmaker didn’t like it much, kept saying “This file type is not matched with the Toolhead”, despite the screen saying it was in CNC mode and the file being a .cnc.
I managed to click past it, home the machine well above the work area and start it - Nothing on the board, just to test.
It went full speed on all axes, and just continued down. I hammered stop on the screen to no avail, and the bit enters the wooden work surface with X and Y going full tilt also.
I managed to cut power but it was a about 6mm into the wood at this point and clearly pushing sideways on the bit pretty hard.
Any experience out there on whether I’ve just totaled my machine? It looks okay and the bit still turns… But that was scary.
As for what went wrong, I’ve no idea.
The .cnc file clearly has G-code in it. A short header, and then a bunch of “G0 X1.479 Y5.879 Z15.000” lines. This made me wonder, as Luban’s 3D-print files usually have a header and then just garbage. Am I missing something?
Any help is much appreciated.
It really depends on how you setup your Z home and your fusion project. Seeing the gcode file, or fusion project would help more, but did you remember to set origin on the snapmaker as well?
As far as the 3d print files have “just garbage” that’s actually just the thumbnail image code. After that is standard gcode as well.
The line you posted, G0 X1.479 Y5.879 Z15.000 is a movement command, G0 is usually for rapid, non-cut movement. Going to specified coordinates. i.e. X1.479 is 1.479mm right of your origin. Y5.879 is 5.879mm behind your origin, and Z15.00 is 15mm above your origin. Taking all three together is a specific place in 3D space away from the origin, or 0,0,0 you set.
Thanks for the reply, I’ve pasted the file below as I can’t upload (new user rule).
It’s a short file, just drilling 2 holes.
I set the home position right in the middle of X/Y/Z… And I get that the Fusion file might have an offset from X/Y, but it dropped like 100mm on Z in seconds, which I totally do not understand… When I set home pos, I thought it would assume that the bit is touching the workpiece and go up from there, rather than plunge down.
;1001
;Machine
;vendor: Snapmaker
;description: Generic Snapmaker Marlin v20180725
M3 P100
G4 S2
G21
G90
;Drill1
G0 X1.479 Y5.879 Z15.000
G0 X1.479 Y5.879 Z15.000
G0 X1.479 Y5.879 Z15.000
G0 X1.479 Y5.879 Z5.000
G0 X1.479 Y5.879 Z4.000
G0 X1.479 Y5.879 Z1.000
G1 X1.479 Y5.879 Z-1.500 F50
G0 X1.479 Y5.879 Z4.000
G0 X1.479 Y5.879 Z0.500
G1 X1.479 Y5.879 Z-2.000 F50
G0 X1.479 Y5.879 Z4.000
G0 X1.479 Y5.879 Z0.000
G1 X1.479 Y5.879 Z-2.500 F50
G0 X1.479 Y5.879 Z4.000
G0 X1.479 Y5.879 Z-0.500
G1 X1.479 Y5.879 Z-3.000 F50
G0 X1.479 Y5.879 Z4.000
G0 X1.479 Y5.879 Z-1.000
G1 X1.479 Y5.879 Z-3.500 F50
G0 X1.479 Y5.879 Z4.000
G0 X1.479 Y5.879 Z-1.500
G1 X1.479 Y5.879 Z-4.000 F50
G0 X1.479 Y5.879 Z4.000
G0 X1.479 Y5.879 Z-2.000
G1 X1.479 Y5.879 Z-4.500 F50
G0 X1.479 Y5.879 Z4.000
G0 X1.479 Y5.879 Z-2.500
G1 X1.479 Y5.879 Z-5.000 F50
G0 X1.479 Y5.879 Z4.000
G0 X1.479 Y5.879 Z-3.000
G1 X1.479 Y5.879 Z-5.500 F50
G0 X1.479 Y5.879 Z4.000
G0 X1.479 Y5.879 Z-3.500
G1 X1.479 Y5.879 Z-6.000 F50
G0 X1.479 Y5.879 Z4.000
G0 X1.479 Y5.879 Z-4.000
G1 X1.479 Y5.879 Z-6.500 F50
G0 X1.479 Y5.879 Z4.000
G0 X1.479 Y5.879 Z-4.500
G1 X1.479 Y5.879 Z-6.954 F50
G0 X1.479 Y5.879 Z5.000
G0 X1.885 Y-4.111 Z5.000
G0 X1.885 Y-4.111 Z5.000
G0 X1.885 Y-4.111 Z4.000
G0 X1.885 Y-4.111 Z1.000
G1 X1.885 Y-4.111 Z-1.500 F50
G0 X1.885 Y-4.111 Z4.000
G0 X1.885 Y-4.111 Z0.500
G1 X1.885 Y-4.111 Z-2.000 F50
G0 X1.885 Y-4.111 Z4.000
G0 X1.885 Y-4.111 Z0.000
G1 X1.885 Y-4.111 Z-2.500 F50
G0 X1.885 Y-4.111 Z4.000
G0 X1.885 Y-4.111 Z-0.500
G1 X1.885 Y-4.111 Z-3.000 F50
G0 X1.885 Y-4.111 Z4.000
G0 X1.885 Y-4.111 Z-1.000
G1 X1.885 Y-4.111 Z-3.500 F50
G0 X1.885 Y-4.111 Z4.000
G0 X1.885 Y-4.111 Z-1.500
G1 X1.885 Y-4.111 Z-4.000 F50
G0 X1.885 Y-4.111 Z4.000
G0 X1.885 Y-4.111 Z-2.000
G1 X1.885 Y-4.111 Z-4.500 F50
G0 X1.885 Y-4.111 Z4.000
G0 X1.885 Y-4.111 Z-2.500
G1 X1.885 Y-4.111 Z-5.000 F50
G0 X1.885 Y-4.111 Z4.000
G0 X1.885 Y-4.111 Z-3.000
G1 X1.885 Y-4.111 Z-5.500 F50
G0 X1.885 Y-4.111 Z4.000
G0 X1.885 Y-4.111 Z-3.500
G1 X1.885 Y-4.111 Z-6.000 F50
G0 X1.885 Y-4.111 Z4.000
G0 X1.885 Y-4.111 Z-4.000
G1 X1.885 Y-4.111 Z-6.500 F50
G0 X1.885 Y-4.111 Z4.000
G0 X1.885 Y-4.111 Z-4.500
G1 X1.885 Y-4.111 Z-6.954 F50
G0 X1.885 Y-4.111 Z5.000
G0 X1.885 Y-4.111 Z15.000
G0 X0.000 Y0.000
M5
Never assume anything, machines only do what they’re told. If you set the bit down on the material, you still had to click “set Z home” to set the top of the material as the origin.
Looking over the gcode, it’s straight forward and correct. It actually moves 15mm over your origin (so if you had properly set it to the surface of the material, it should have moved 15mm over it) and moves into X/Y position. It then slowly taps down, looks like it’s taking 0.5mm per tap to a bottom depth of 6.954mm before moving up, moving to the new position, and repeating before moving the toolhead back up to 15mm above the origin, and moving back to X/Y origin.
So yeah, this does seem to be user error on setting up proper origin. The gcode itself is fine. You can paste the code (or drag/drop) onto this website and click Plot and you can visualize what it’s doing. If you scroll your cursor through line by line, you can follow the movements of the code.
Ah, that may be the issue - I clicked ‘Set home position’, I thought that would set Z-Axis as well.
I’ll try again and get the Z-axis set as well.
And thanks - Super helpful to be able to step through it and see everything works!
Best of luck.