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

Custom command sequence per filament #154

Open
brownowski opened this issue May 2, 2021 · 10 comments
Open

Custom command sequence per filament #154

brownowski opened this issue May 2, 2021 · 10 comments
Labels

Comments

@brownowski
Copy link

Would it be possible to incorporate custom start and end command sequences per filament that run before/after the print job?

My use case would be for setting pressure advance and extruder step distance values for different filaments before a job starts.

@OllisGit
Copy link
Owner

Hi @brownowski,
nice idea, but what is the "best location" to assign the "spool-gcode" into the print.

We have the provided gcode from the slicer and then we (could) have the gcode from OP.

Or should the "spool-gcode" injected to a specific location. E.g.
define a special comment: ; INSERT SPOOLMANAGER-BEFORE SPOOL-CODE

...
M109 S212
G92 E0
;G1 X10.0 Y10.0 F2000
;G1 Z0.1  F1000
;G1 Y60.0 E4.0 F1000          	  ; Prime the nozzle
;G1 Y150.0 E10.0 F500	  ; Prime the nozzle
;G92 E0
M117 Hot and Oozing Now!
G92 E0
G1 E-7.5000 F3600
G1 Z0.075 F1020
; process PLA
; layer 1, Z = 0.075
T0
; tool H0.100 W0.400
; INSERT SPOOLMANAGER-BEFORE SPOOL-CODE
; skirt
G1 X61.012 Y78.349 F1800
...

@OllisGit OllisGit added the status: waitingForFeedback Wating for Customers feedback label May 24, 2021
@Domi1412
Copy link

I think the best was ist to handle the position by specific comment

@OllisGit
Copy link
Owner

Hi @Domi1412,
I found an easy way to implement such feature: Using GCODE-Scripts in OP
https://docs.octoprint.org/en/master/features/gcode_scripts.html

In our case it looks like this:
image

And of course in the Spool-Dialog there are two textareas to define the gcode for each event.

What do you think?

@Domi1412
Copy link

Hi

It looks good.

@OllisGit
Copy link
Owner

...but there is one thing I need to solve...I need to pass thru the selected tool-number to the custom-script, so that e.g. the temp of the right spool is increased instead of all tool-heads.

@Domi1412
Copy link

Hi

do you have some new information of the status of this CR?

@OllisGit
Copy link
Owner

just for the records: should be possible, see https://docs.octoprint.org/en/master/plugins/hooks.html#octoprint-comm-protocol-scripts

@github-actions
Copy link

This issue has been automatically marked for closing, because it has not had activity in 30 days. It will be closed if no further activity occurs in 10 days.

@github-actions github-actions bot added the status: markedForAutoClose Issue will be closed automatically label Jan 13, 2022
@github-actions
Copy link

This issue was closed, because it has been already marked for 10 days with no activity.

@katiekloss
Copy link

Hi! Is this something I could take a stab at, or would I be duplicating effort if it's already in progress? I have the same use cases as @brownowski

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

No branches or pull requests

4 participants