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

Add 'M114 E' to get E stepper position (M114_DETAIL) #16026

Merged
merged 2 commits into from
Nov 29, 2019

Conversation

bigtreetech
Copy link
Contributor

Description

  • Add command to get the pulse count of extruder in real time

Benefits

  • When using touch screen for printing, the touch screen can get the actual position of the extruder in real time, and then detect the encoder filament sensor to determine whether the filament is extruded normally

@thinkyhead
Copy link
Member

To keep the default build from growing larger this PR has been slightly changed:

  • M114_DETAIL must be enabled to be able to use M114 E.

@thinkyhead
Copy link
Member

When using touch screen for printing, the touch screen can get the actual position of the extruder in real time

  • Note that it is common for slicers to reset E to zero on each layer, and perhaps even more often. So the E axis "position" tends to be a meaningless anchor for relative motion.
  • For an example of accumulating total E movement (in mm), see the LCD_SHOW_E_TOTAL feature.
  • Note that you must obtain the M92 E value to be able to convert stepper steps to mm.

@thinkyhead thinkyhead merged commit 441ee3e into MarlinFirmware:bugfix-2.0.x Nov 29, 2019
@thinkyhead thinkyhead changed the title 'M114 E' for Get extruder count Add 'M114 E' to get E position (M114_DETAIL) Nov 29, 2019
@thinkyhead thinkyhead changed the title Add 'M114 E' to get E position (M114_DETAIL) Add 'M114 E' to get E stepper position (M114_DETAIL) Nov 29, 2019
@bigtreetech bigtreetech deleted the get-e-steps branch December 2, 2019 01:48
LinoBarreca pushed a commit to LinoBarreca/Marlin that referenced this pull request Dec 18, 2019
philippniethammer pushed a commit to philippniethammer/Marlin that referenced this pull request Dec 21, 2019
christran206 pushed a commit to christran206/Marlin2.0-SKR-Mini-E3-1.2 that referenced this pull request Dec 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants