You can get current mode from halui:
halui.mode.is_manual
halui.mode.is_mdi

W dniu 25.11.2013 14:52, Russell Brown pisze:
> Can anyone point me in the right direction to adding a current mode (mdi
> or manual) output pin to axis?  I can't see anywhere in the code where a
> pin could be set to reflect the current mode.
>
> Why?  Using the existing set_manual_mode pin and, the just submitted
> patch[1] for, set_mdi_mode I can program two buttons on my pendant to
> switch axis modes (scenario:  crouching by the machine, jogging in
> manual mode to get the tool above my touchoff plate then needing to
> switch to mdi mode to actually run the z-touchoff routine) but I'd like
> to use toggle and toggle2nist so that one button toggles the mode.
>
> To do this, toggle2nist needs to 'know' the current mode of axis via a
> pin.
>
> 'course this could be a completely cack-handed way of doing it; if so
> please enlighten me.
>
>
>   [1] - *NOT* my original work, it was taken from the forum as a suggestion
>         by Big John T for someone else with a pendant.
>


------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to