Using a start script from CURA and passing Variables?
-
Hi
I am using CURA as slicer. I would like to eg. have my printer do all levelling, etc. before it commences heating of the hotend - eg heat the bed to XXXC, head to XXXC, do the levelling, and only then heat up to what is required in the file.
Is there perhaps a way to easily do this? Or am I thinking too complicated?
Rgds
Tinus -
You can use a macro file called start.g to do whatever you want at the start of a print BEFORE the slicer gcode is executed. So you could specify that it heats up and does the homing/leveling/etc and when it's all done that, pases over to the sliced gcode file for final temp setting and starting the print.
-
@reefwarrior in RRF 3.3 you can pass parameters when invoking a macro with M98.
-
@phaedrux said in Using a start script from CURA and passing Variables?:
You can use a macro file called start.g to do whatever you want at the start of a print BEFORE the slicer gcode is executed. So you could specify that it heats up and does the homing/leveling/etc and when it's all done that, pases over to the sliced gcode file for final temp setting and starting the print.
I do something similar (as a cura user), and call a “wipe.g” file at a certain point once the extruder has primed. A similar approach is easily done to accomplish what the OP is outlining by putting the desired commands prior to printing in a similar “g” file that then is called in the startup code in cura.