Skip to content

Fix Player.cpp to use metric, then switch back to previously set unit#20

Open
Ajeff22209 wants to merge 1 commit intoMakeraInc:masterfrom
Ajeff22209:master
Open

Fix Player.cpp to use metric, then switch back to previously set unit#20
Ajeff22209 wants to merge 1 commit intoMakeraInc:masterfrom
Ajeff22209:master

Conversation

@Ajeff22209
Copy link

There was an issue where M600 would cause a soft limit error when run in G20. The machine would save the position of the spindle in millimeters regardless of G20 or G21. Then, when the user resumes the program, it would attempt to return to the saved position but would execute the Gcode command in whatever state the machine was in when it paused. This would cause a soft limit error in almost all cases. If the spindle was close enough to the WCS zero it would work but it would move to those coordinates in inches, which could cause a crash as Z could move down. We added a G21 to the line that executes the return to save position and had the machine return to the original unit system afterwards via another snprintf line. We have tested this in both G20 and G21 and it functions as normal, just minus the soft limit error.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant