-
Notifications
You must be signed in to change notification settings - Fork 1.2k
interpeter - add INI paremeters to set peck distance/count #1860
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
Conversation
|
Hmm I guess setting these in machine units would make more sense. |
src/emc/rs274ngc/interp_cycles.cc
Outdated
| CHKS((delta <= 0.0), NCE_NEGATIVE_OR_ZERO_Q_VALUE_USED); | ||
|
|
||
| rapid_delta = G83_RAPID_DELTA; | ||
| rapid_delta = _setup.parameter_drill_cycle_chip_break_distance; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not change the definition of G83_RAPID_DELTA instead? If G83_RAPID_DELTA is no longer used, it should be removed from src/emc/rs274ngc/interp_internal.hh. I suspect it is better to keep using it, but changing its definition to _setup.parameter_drill_cycle_chip_break_distance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mostly because the G83_RAPID_DELTA variable is a constant.
I think it is also more informative to see where the value came from. (_setop)
yes G83_RAPID_DELTA should be removed.
4996c95 to
ab23f04
Compare
|
Hmm I think I'm still missing a fix for g20/g21 mode changes at run time. |
|
"peck distance for g73/g83" Hey, what exactly does this mean? |
|
.02 inch or mm equivalent In g83 it rapids back .02 less then last feed position |
|
One comment in <URL: https://yewtu.be/watch?v=C253C9ODMn4 > made me suspect its user too would like to be able to tune the pecking. |
|
This looks like a good idea. Needs documentation. I don't think the prefix I think there's a unit type bug in this code. The value of |
|
I'll have to check the code too - been a long time. The parameter name is to give a clue where the data came from - I believe Fanuc uses this terminology. As programmed, the parameter setting should be in machine units in the INI and is converted at runtime to what ever the current system units are. This seems more straight forward then converting it twice (for an imperial machine in imperial sytstem units) but maybe this is inconstant with other things in linuxcnc? From memory I believe originally it was hard coded in inches and not converted at all. |
|
The Hackfest Review Committee deems:
|
peck distance for g73/g83 peck count for g73 g73 does short pecks to break chips. If count is >0, it will fully retract to clear chips every 'count' number of pecks [RS274NGC] PARAMETER_DRILL_CYCLE_CHIP_BREAK_DISTANCE = .020 PARAMETER_G73_PECK_TILL_CLEAR_COUNT = 2
ab23f04 to
9aefbe5
Compare
|
Is there any particular reason for an ini parameter but not a parameter to the gcode? |
|
I believe it's because it's not something you would tend to change often but this does allow you to change it to a preference. |
|
The Norwegian linuxcnc meeting decided this should be a gcode letter, not a ini parameter. its tool specific, not a machine specific. Changing it from ini to gcode later is probably a bad idea. |
|
Well I'm not sure who the Norwegian linuxcnc meeting is, but i would think it's usual to have the discussion to include the author. |
|
I don't know what makes you feel excluded from the discussion. We (@petterreinholdtsen @andypugh @hansu ) went thru all the PRs, like we did at the Madison meeting, and just wrote down our thoughts. I opened a new PR which includes an optional P word. |
|
Because a decision was made at a venue I'm not at nor AFAIK can participate in by an umknown group when in fact I had no idea that it was being 'decided on'. In this particular case I don't care much about this PR - it was a request from someone else that I thought would be good practice. But process matters - if you want want people to participate with PRs and a a healthy project that attracts new people, you must stick with the process that is the norm or otherwise try to communicate in a way that all interested people can be involved. |
peck distance for g73/g83
peck count for g73
g73 does short pecks to break chips.
If count is >0, it will fully retract to clear chips every 'count'
number of pecks
[RS274NGC]
PARAMETER_DRILL_CYCLE_CHIP_BREAK_DISTANCE = .020
PARAMETER_G73_PECK_TILL_CLEAR_COUNT = 2