>I think maybe like GET_EXTERNAL_FEED_OVERRIDE_ENABLE()? See
>src/emc/task/emccanon.cc
>You would want to save the existing setting before G84, then restore
>it when done.
GET_EXTERNAL_FEED_OVERRIDE_ENABLE()
GET_EXTERNAL_SPINDLE_OVERRIDE_ENABLE()
Always return 1. I am afraid. Maybe because in saicanon.cc we have:
/* MGS - FIXME - These functions should not be stubbed out to return constants.
They should return variable values... */
int GET_EXTERNAL_FEED_OVERRIDE_ENABLE() {return 1;}
int GET_EXTERNAL_SPINDLE_OVERRIDE_ENABLE() {return 1;}
So this needs to be fixed first?
>I don't think so, because you don't want to disable or ignore pause.
>I think you want to cause the pause to happen as soon as it's safe,
>at the end of retraction. This might be a deep change,
>unfortunately.
Oh yes you are correct that is correct way to do this.
Tero
On Mon, Sep 26, 2016 at 10:18:33PM +0300, tero.kaarlela@... wrote:
> Hi,
>
> Thank you for reminding me about docs. I did update quickref and
> also gcode.txt. It also describes that P word is an optional Dwell
> at the bottom of thread.
Great!
> I tried to find Pause disable from G33.1
> and G76 but I was unable. Unless those are built in with function
> SPEED_FEED_SYNCH_START.
You might be right.
> But that cannot be used with G84 since it is for machines without
> spindle position feedback. If someone knows better pls tell me. I
> was thinking of building something similar to
> SET/GET_OPTIONAL_PROGRAM_STOP for
> pause(SET/GET_PROGRAM_PAUSE_DISABLED). In emccanon and use it in
> emctaskmain for overriding pause. Would that be a good way to go?
I don't think so, because you don't want to disable or ignore pause.
I think you want to cause the pause to happen as soon as it's safe,
at the end of retraction. This might be a deep change,
unfortunately.
> Yes if M49 was already called it would be set multiple times. Is
> there an already built mechanism to check if speed/feed overrides
> are already in? I did run our machine with this patch and it seems
> to work ok in practice.
Setting M49 multiple times is not what I was worried about - it's
the undoing of the M49 at the end of G84 that worries me.
I think maybe like GET_EXTERNAL_FEED_OVERRIDE_ENABLE()? See
src/emc/task/emccanon.cc
You would want to save the existing setting before G84, then restore
it when done.
--
Tero Kaarlela
Production Engineer
Eka-Sorvaus OY
Nivala
Finland
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers