Gcode Scripting and runtime variables

Discussions about ideaMaker and other printing software.
Posts: 1
Joined: Sun Mar 11, 2018 7:53 am

Gcode Scripting and runtime variables

Postby parhamdb » Sun Mar 11, 2018 8:25 am

I'm trying to write custom extruder switch gcode where i set temperature of old extruder to 180 degrees and new one to the given temperature. This will stop oozing and combined with brass brush I have installed to clean nozzle between prints can make sure there is no oozing at all.

Now in runtime I can use {old_extruder} and {new_extruder} which will translate to 0 or 1.
In the slicer settings there is {temperature_extruder1} and {temperature_extruder2} which I think is probably calculated automatically based on height as well.
How do I translate that to:
M109 T{new_extruder} S{tempreture_extuder*}?
do we have if statements (some slicers have) or can we do M109 T{new_extruder} S{tempreture_extuder{new_extruder}}? (runtime is 0 based but tempreture_extuder is 1 based).

Thanks in advance.

User avatar
Posts: 4563
Joined: Fri Mar 25, 2016 3:54 am

Re: Gcode Scripting and runtime variables

Postby Vicky@Raise3D » Wed Mar 14, 2018 9:09 am

ideaMaker doesn't support the nested Place Holder.
M104 T{old_extruder} S180
M104 T{new_extruder} S205
If the two nozzles are using different temperature values, then it doesn't work. Here doesn't have any judgement for such kind of cases.

Return to “Software”

Who is online

Users browsing this forum: No registered users and 6 guests