Additional actions for retraction?
-
Hi All,
I'd like to run additional actions during a retract and a un-retract. My thoughts are to create a G10.1 and G11.1 macro but I don't know of any way to trigger them in association with a G10/11.Does anyone have any tips to do this without having to put additional command in the gcode?
What I want to happen is retract, run first macro, move, run 2nd macro, un-retract.
I guess I'm really looking to be able to create a custom G10/11.
Any constructive thoughts would be much appreciated.
Many thanks
Barry M -
@CNCModeller Not sure if you can change the gcode for retract/unretract in your slicer?
If possible, you can change the retract/unretract command to G10.1/G11.1 in the slicer. Then create the G10.1 and G11.1 in the sys folder with your commands. -
@cosmowave said in Additional actions for retraction?:
@CNCModeller Not sure if you can change the gcode for retract/unretract in your slicer?
If possible, you can change the retract/unretract command to G10.1/G11.1 in the slicer. Then create the G10.1 and G11.1 in the sys folder with your commands.Thanks @cosmowave I've just migrated to Cura from S3D so I'm not sure if I can do that but I'll dig into it. Many thanks for the latteral thinking!
-
@CNCModeller the one issue you may have there is dealing with multiple retracts. By default the firmware won't react to multiple G10 commands without a G11 in between. It may also get more confusing if you have multiple tools (though not sure that's an issue with your beast!)
You might want to use some global variables to check the retraction status?I think the post proccessing script to change G10 to G10.1 is probably the easiest way to go with it though. How to do that in S3D, I am not sure...
-
@engikeneer thanks, yes I like the idea of post processing in Cura, I'm hoping a simple "search and replace" post processing script should be able to sort me out.
I'm no longer using S3D as all of the historical benefits have been overtaken by other slicers nowadays.
Many thanks,
Barry M -
@CNCModeller said in Additional actions for retraction?:
................ I'm hoping a simple "search and replace" post processing script should be able to sort me out.
If you slicer won't let you do it, you could do that with a simple text editor such as notepad ++. No need to write any code or do anything fancy.
-
@deckingman said in Additional actions for retraction?:
@CNCModeller said in Additional actions for retraction?:
................ I'm hoping a simple "search and replace" post processing script should be able to sort me out.
If you slicer won't let you do it, you could do that with a simple text editor such as notepad ++. No need to write any code or do anything fancy.
Good point