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

[FeatureRequest]: Use feedrate in heater model #1079

Open
AndyEveritt opened this issue Feb 6, 2025 · 0 comments
Open

[FeatureRequest]: Use feedrate in heater model #1079

AndyEveritt opened this issue Feb 6, 2025 · 0 comments
Assignees
Labels
enhancement Additional functionality, performance or other feature request

Comments

@AndyEveritt
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

Currently if you are extruding fast and trying to reach a higher target temperature (ie with M309 temperature feedforward), the heating rate is lower than the model expects (because the filament is taking more of the heaters energy) which causes a heater fault to occur. I think the current extrusion rate needs to be accounted for when calculating the expected heating rate.

The value would probably need to be measured during tuning to be effective. Possibly at multiple speeds.

Currently I get heater faults multiple times per print when using heater feedforward (~10C) and printing fast.

The M309 S parameter only applies once the target temperature has been reached so is not currently relevant (or useful when paired with temperature feedforward?)

void LocalHeater::SetExtrusionFeedForward(float pwmBoost, float tempBoost) noexcept
{
	if (mode == HeaterMode::stable)
	{
		const float pwmChange = pwmBoost - lastExtrusionPwmBoost;
		lastExtrusionPwmBoost = pwmBoost;
		InterruptCriticalSectionLocker lock;
		iAccumulator += pwmChange;
	}
	extrusionTemperatureBoost = tempBoost;
}

Describe the solution you propose.

Possibly making the M309 pwmBoost apply during heating and stable sections would work

Describe alternatives you've considered

No response

Provide any additional context or information.

@AndyEveritt AndyEveritt added the enhancement Additional functionality, performance or other feature request label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Additional functionality, performance or other feature request
Projects
None yet
Development

No branches or pull requests

2 participants