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

[BUG] SWITCHING_EXTRUDER Servo movement fails #24904

Closed
1 task done
jesterhead82 opened this issue Oct 19, 2022 · 9 comments
Closed
1 task done

[BUG] SWITCHING_EXTRUDER Servo movement fails #24904

jesterhead82 opened this issue Oct 19, 2022 · 9 comments

Comments

@jesterhead82
Copy link
Contributor

Did you test the latest bugfix-2.1.x code?

Yes, and the problem still exists.

Bug Description

Toolchange (either by Tx, or by using LCD Menu entry in MOTION section), does not trigger servo movement.

Setup

  • Single Nozzle, 2 Extruder setting using shared E0
  • Servo to Switch Extruder gears

Manual movement of Servo (e.g. M280 P1 S5) works as expected, Extruder direction changes also with Toolchange.

As a workaround I added manual Servo movement to EVENT_GCODE_TOOLCHANGE_T0 / EVENT_GCODE_TOOLCHANGE_T1

Bug Timeline

No response

Expected behavior

Servo Moves to T0 after start of printer and switches during T0/T1 change

Actual behavior

No movement triggered by Toolchange, no init of Position (servo is powerless) after startup

Steps to Reproduce

No response

Version of Marlin Firmware

Bugfix 2.1.x as of this week

Printer model

No response

Electronics

No response

Add-ons

No response

Bed Leveling

No response

Your Slicer

No response

Host Software

No response

Don't forget to include

  • A ZIP file containing your Configuration.h and Configuration_adv.h.

Additional information & file uploads

Config.zip

@ellensp
Copy link
Contributor

ellensp commented Oct 20, 2022

Provided config does not compile .. to many recent changes to bugfix config files

Updated configs updated.zip

For me:
Servo does move on T0 and T1 but not as expected.
I increased SWITCHING_EXTRUDER_SERVO_ANGLES { 25, 8 } to {90 and 170} to make it much more obvious
Servo does not initialize to T0 position on startup

@ellensp
Copy link
Contributor

ellensp commented Oct 20, 2022

weird this movement to position 8 ish is not coming from anywhere obvious...
At the moment I have it so that T0 or t1 moves correctly, but then something I cannot locate moves back to the weird location

@ellensp
Copy link
Contributor

ellensp commented Oct 20, 2022

gah you have
#define EVENT_GCODE_TOOLCHANGE_T0 "M280 P1 S25" // Extra G-code to run while executing tool-change command T0
#define EVENT_GCODE_TOOLCHANGE_T1 "M280 P1 S6" // Extra G-code to run while executing tool-change command T1

@jesterhead82
Copy link
Contributor Author

Hi,

I'm working on a switching extruder where I use a Toothed Rack to press L/R idler against the driveshaft, therefor I only need some degrees of movement on the servo.

As for Event_GCode, i'm misusing that that as a workaround, behaviour was the same for me without it.

@ellensp
Copy link
Contributor

ellensp commented Oct 20, 2022

in Marlin/src/module/tool_change.cpp
Find
if ((EXTRUDERS & 1) && e < EXTRUDERS - 1) {
replace it with:
if (e < EXTRUDERS) {

This works as expected, but im still working out why it was as it was....

And disable EVENT_GCODE_TOOLCHANGE 's

@jesterhead82
Copy link
Contributor Author

Will test, but will take 2 weeks.

Btw could be because of a 2x2 Setup (nozzle and extruder switch, there's an BR for that setup where some stuff has been modified)

@ellensp
Copy link
Contributor

ellensp commented Oct 20, 2022

A PR has been created to fix this.

@ellensp ellensp closed this as completed Oct 20, 2022
@jesterhead82
Copy link
Contributor Author

I want only to confirm that the srvo is working now, thanks.

@github-actions
Copy link

github-actions bot commented Jan 1, 2023

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Jan 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants