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] Please add additional toolchange variables. #3534

Open
vintagepc opened this issue Jan 18, 2020 · 5 comments
Open

[FEATURE REQUEST] Please add additional toolchange variables. #3534

vintagepc opened this issue Jan 18, 2020 · 5 comments

Comments

@vintagepc
Copy link

vintagepc commented Jan 18, 2020

Version

2.2.0-alpha

Operating system type + version

OpenSuSE 42.3

3D printer brand / version + firmware version (if known)

Mk3S/MMU2S

Is this a new feature request?
Yes

Feature desired:

Please expose more variables in the custom toolchange gcode area. This will allow for easier integration of custom toolchange scripts that still respect filament settings. I realize that not everything can be exposed, but I'm looking for a few specific ones that cannot be parsed out of the gcode settings section or easily calculated. Specifically:

  • toolchange number (not available at all if no wipe tower). Very handy for reference/comment-gcode. (Nice but not critical.)
  • Wipe volume that must be purged for this toolchange (while accounting for wipe space in objects and infill). (Done, in the linked PR)

These would probably be tricky but nice to have if possible: (Edit: they're indirectly available as their raw values; it doesn't make sense to ask for complete gcode sequences as a single placeholder variable.)

  • Ramming sequence for current filament
  • cooling move sequence for current filament
  • previous and next filament properties

Much appreciated!

@vintagepc
Copy link
Author

Edit - I didn't quite RTFM that some of those are already available but not as convenient, e.g. the correct tool must be used to reference filament properties etc.

But convenience references for those would be superb.
I'm going to keep digging to see which other ones are already exposed.

@bynnek
Copy link

bynnek commented Jan 27, 2020

I'd also like to see this as it would help with custom purge mechanisms.

@bubnikv
Copy link
Collaborator

bubnikv commented Jan 30, 2020

I believe this is working already.

Just use the previous_extruder and next_extruder indices in your
toolchange_gcode.
For example
{filament_ramming_parameters[ previous_extruder]}
shall work.

@vintagepc
Copy link
Author

vintagepc commented Jan 30, 2020

Oh, cool! I will have to take a look for that! (though my inspection of the code did reveal wipe volumes were not available , hence the PR for that - the extras I mentioned are nice but not critical. I'd be happy closing this if that PR was merged.)

@vintagepc
Copy link
Author

I just reviewed it and realized I wasn't very clear. I do see the raw parameters are available and can be used to recreate the sequence. What I meant to ask for was the ramming and cooling gcode sequence. But, in retrospect that was a silly request, as it is tied to the wipe tower X/Y moves and is not very usable without actually having a wipe tower at that X/Y. I updated the original request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants