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

Estimate time for path #17

Open
fragmuffin opened this issue Oct 25, 2018 · 0 comments
Open

Estimate time for path #17

fragmuffin opened this issue Oct 25, 2018 · 0 comments

Comments

@fragmuffin
Copy link
Owner

Add functionality to pygcode.Machine to estimate time needed to follow a CNC path.

For example:

>>> m = pygcode.Machine()

# Initial state
>>> m.pos
<Position: X0 Y0 Z0>
>>> m.time
0.0

# After movement
>>> rapid_move = pygcode.GCodeRapidMove(X=10, Y=20)
>>> m.process_gcodes(rapid_move)
>>> m.pos
<Position: X10 Y20 Z0>
>>> m.time
1.23

Scope: (estimate only)
In scope:

  • Delays from acceleration / deceleration to varied speeds
  • Configured jogging speed (of pygcode.GCodeRapidMove)
  • Feed-rate of pygcode.GCodeMotion.__subclasses__()

Out of scope:

  • micro-arcs injected during instant direction-changes
    eg G01 X0 Y10 -> G01 X10 Y10, tool can't instantly change direction at full speed
    For the purposes of this estimate the above example would take the same time as G01 X0 Y20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant