Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] add gcode variable indicating which extruders are used #5094

Open
RossKor opened this issue Nov 6, 2020 · 5 comments
Open
Labels
enhancement improve an existing feature or functionality in the software placeholder parser

Comments

@RossKor
Copy link

RossKor commented Nov 6, 2020

Provide a custom gcode variable indicating which extruders are used. Make this variable available to all custom gcode blocks.

I'm currently creating a custom profile for a printer with dual extruders and I'd like to create prime lines for the extruders which will be used in the print. Unfortunately, as far as I've been able to find, there is no way to tell which extruders are actually used.

temperature[n] cannot be used as it always has a value because it is set by the selected filament and is not dependent upon the actual hotend temperature which will be set - I would find it acceptable to drive this value to zero for unused hotends

@Matts-Hub
Copy link

As per the wiki documentation, you should be able to use the current_extruder, previous_extruder and next_extruder placeholders. Is this what you are wanting?

@RossKor
Copy link
Author

RossKor commented Nov 7, 2020

No. These are not indicators of which extruders will be used and next and previous extruder are not available to custom start gcode - source.

I've also noticed that if I only use extruder #2... both hotends get a temperature set - which is sort of problematic on its own.

@RossKor
Copy link
Author

RossKor commented Nov 7, 2020

I'm using Sailfish (MakerBot) gcode flavor by the way.

@ardenpm
Copy link
Contributor

ardenpm commented Jul 18, 2021

This is definitely something I'd use on my Toolchanger. Right now I would need separate profiles with different start Gcode for every combination of potential used tools to avoid heating up the unused ones.

@Dakkaron
Copy link

I have the same issue. My workaround was to create a filament called "Not used", which sets the temperatures to 0.

In the start gcode I select the highest value of all filaments for the bed temperature and only heat/prime hotends that have a temperature >0.

It would be really cool though if PrusaSlicer could do this without me having to manually select a fake filament since that's only one additional redundant step where I can mess up by selecting the wrong thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement improve an existing feature or functionality in the software placeholder parser
Projects
None yet
Development

No branches or pull requests

5 participants