G-code file rotation
-
The existing G-code file for engraving a panel was written in Fusion. It works, but runs at a 60° angle from the starting point, so as to fit inside the dimensions of my smaller cnc router. I've since then made it larger, and would like to run the code in the normal 90° perpendicular fashion. Is there a way to accomplish that without having my son redo it within Fusion?
-
@Valveman see G68 and G69 after: https://docs.duet3d.com/User_manual/Reference/Gcodes#g68-coordinate-rotation
Ian
-
@droftarts
That's me, Lord of the idiots.
My constant fear of screwing things up, makes me oblivious to what's right in front of me.
Rather embarrassing to be the dumbest newbie to the club.
But may say in my own defense, that if you would show me a 40's-70's vacuum tube diagram, I would be happy to explain the whole circuit.Lol. Guess I was born about 30yrs too late.
Thanks, again. -
-
@droftarts So, I just looked at a couple of the 'Jobs' that run at the tilted angle, but I don't see a line with 68 or 69. Am I too look somewhere other than the 'Job' itself?
-
@Valveman M556 any significance?
-
@Valveman My thinking is that the tilted layout, is the result of the Fusion-generated code done by my son. I'm going to have him send me an older version, prior to it being tilted, and see what happens. By the way, how can I post the code for you all to examine?
-
I just looked at a couple of the 'Jobs' that run at the tilted angle, but I don't see a line with 68 or 69.
G68 is not used to rotate a job (or a part to be printed), instead, it kind of „rotates“ the printer (or CNC). As the position of your GCode-Object is fixed when the file is created, you rotate the coordinate system of your printer to counter the object’s built-in angle.
-
@Valveman said in G-code file rotation:
@Valveman M556 any significance?
No, that compensates for when you can't build your machine square! G68 is what you need to use, but it will depend how the file is set up as to whether it's easy to predict where it will actually do the engraving. It's best to start with the work square, and add the rotation after.
By the way, how can I post the code for you all to examine?
Add .txt to the end of the gcode file's name, then upload it here, so long as it's under a couple of MB.
Ian