Independently Adjustable Feedrates for Multiple Tools; Mid-print
-
Does anyone have a good idea for setting different feedrates for separate tools along with a way to adjust them independently mid-print?
-
@dc42
I'm trying to accomplish something similar within a macro. Do you know why the following macro isn't working to set independent speeds?if state.currentTool == 2 G1 F600 ; Set printing speed for current tool M98 P/macros/retract if state.currentTool == 1 G1 F300 ; Set printing speed for current tool M98 P/macros/unretract
-
How and when is that macro being called?
-
@code7 said in Independently Adjustable Feedrates for Multiple Tools; Mid-print:
if state.currentTool == 2
== 2 is not necessary in gcode meta commands, just use = 2
-
@code7 do you mean independent M220 speed multipliers per tool, or something else?
-
@dc42 said in Independently Adjustable Feedrates for Multiple Tools; Mid-print:
@code7 do you mean independent M220 speed multipliers per tool, or something else?
Independently adjustable speed multipliers with M220 or the likes would be ideal but in the meantime I'm looking for a workaround. Do you have another idea?
@Phaedrux
I call this command from a S3D script where I sub M102 for a custom command "M700" in the gcode. This calls the M700.g file that is located in the systems folder.== 2 is not necessary in gcode meta commands, just use = 2
Ok - thanks for the tip.
-
@code7 said in Independently Adjustable Feedrates for Multiple Tools; Mid-print:
Independently adjustable speed multipliers with M220 or the likes would be ideal but in the meantime I'm looking for a workaround. Do you have another idea?
You could use global variables to indicate what speed multipliers you want to override the usual M220. For example, global variable tool0SpeedMultiplier would mean the multiplier for tool 0. Then in the tpost0.g file do something like this:
if exists(global.tool0SpeedMultiplier) M220 S{global.tool0SpeedMultiplier}
Similarly for the other tools.
-
@dc42
Great idea.
How can I ping the current speed rate and multiplier value?