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

motion.feed-upm not as documented #1438

Open
phillc54 opened this issue Dec 10, 2021 · 6 comments
Open

motion.feed-upm not as documented #1438

phillc54 opened this issue Dec 10, 2021 · 6 comments

Comments

@phillc54
Copy link
Collaborator

The motion man page states that motion.feed_upm is in machine units per minute.

The actual reported value is G-Code file units per minute. e.g. a metric machine running a G20 file, feed-upm reports inches per minute rather than mm per minute.

I can change the documents if necessary but I am reporting this in the hope that the documentation is correct and the reported value can be changed.

@andypugh
Copy link
Collaborator

I wonder if anyone is depending on the current behaviour?

@phillc54
Copy link
Collaborator Author

Knowing my luck there would be. :)

@andypugh
Copy link
Collaborator

Maybe the answer is to create yet another pin, motion.feed_mupm ? (or something else, of your choice)

@SebKuzminsky
Copy link
Collaborator

Pins are very cheap in LinuxCNC. I suggest creating two new pins, motion.feed_inches_per_minute and motion.feed_mm_per_minute, and updating the documentation to correctly describe the current behavior of motion.feed_upm.

This provides full backwards compatibiliy and maximum flexibility for people who want to know the feed in either of the standard units.

@rodw-au
Copy link
Contributor

rodw-au commented Feb 9, 2022

Because pins are cheap, I think the units should be per second in line with all of the other velocities reported.
With motion.feed_upm, its not possible to easily compare feed rate with current velocity in halscope which I have found very frustrating. Either add these pins or use them instead of Seb's suggestions.

motion.feed_inches_per_second
motion.feed_inches_per_second

@SebKuzminsky
Copy link
Collaborator

How about four new pins:

  • motion.feed-inches-per-minute
  • motion.feed-inches-per-second
  • motion.feed-mm-per-minute
  • motion.feed-mm-per-second

We should probably keep motion.feed-upm unchanged for now, but note in the docs the behavior that @phillc54 reported. The current manpage is self-contradictory, claiming both that motion.feed-upm is in machine units, and that it's based on the program's F-word (which changes units with G20/G21).

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

No branches or pull requests

4 participants