tool offsets
-
Good evening,
I have been scratching my head on this all day and cant seem to get it to work.Ive built a custom tool for my tool changer which I want to use to ‘engrave’ foam and make a wall of bricks for model making. The tool is a knife shape and can rotate from horizontal to vertical.
I have made the gcode work and the machine carves in the horizontal directions (imagine lines in a note pad) but when i go to vertical mode, the tool does not go in between the lines - this is because the blade is not in the centre of the tool, but offset. Please see picture attached which might help?
So the question is can i create a custom bit of gcode that works like it should in the x and y coordinate when cutting horizontal AND also then provides an offset when it is in the vertical? I thought a G52 offset would save me but this is not compatible with my duet. Can someone please guide me in the right direction!!
-
@magdi do you run the gcode interlaced together? Or separate jobs?
How do you rotate the knife? -
@jay_s_uk
Hi Jay, its one big job, I was hoping it would just work but guess not yet. I have tried with 2 jobs but then the tool just doesnt play well at all and decides to run off the bed...I have a servo which rotates the blade using M280
-
@magdi what I would do is create a couple of custom gcodes. With my pen plotter I use M5000 and M5001.
Create a file in sys called M5001.g and put the M280 plus the correct tool offset using G10 in there. Then in M5001 put the M280 to rotate back and reset the offset using G10.
Your gcode would then call M5000 and M5001 instead -
@jay_s_uk this sounds like quite an elegant solution. I have probably a dumb question but how will all of the G10's interact with eachother? I have a G10 in the config.g and then two extra now... does each G10 command superseed the other? I will have a stab anyway hopefully it will work!
-
@magdi the G10 as long as its for the same tool would supersede the other
-
@jay_s_uk worked an absolute CHARM!! now just need to get the depth within tolerance in thank you!