MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / Standby

Method Standby

src/Tools/Tool.cpp:622–636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

620}
621
622void Tool::Standby() noexcept
623{
624 HeatersToActiveOrStandby(false);
625
626 // NIST Standard M6 says "When the tool change is complete: * The spindle will be stopped. [...]"
627 // We don't have M6 but Tn already does tool change so we need
628 // to make sure the spindle is off
629 if (spindleNumber >= 0)
630 {
631 Spindle& spindle = reprap.GetPlatform().AccessSpindle(spindleNumber);
632 spindle.SetState(SpindleState::stopped);
633 }
634
635 state = ToolState::standby;
636}
637
638void Tool::HeatersToActiveOrStandby(bool active) const noexcept
639{

Callers 3

RunStateMachineMethod · 0.80
GCodes2.cppFile · 0.80
SelectToolMethod · 0.80

Calls 1

SetStateMethod · 0.45

Tested by

no test coverage detected