MDI and Jogging at the same Time ?

More
8 years 3 weeks ago #118531 by ben_benson
Hi Grotius,

tanks for the input - have you tried changing the enable_tab_change to TRUE ?

Please Log in or Create an account to join the conversation.

More
6 years 1 week ago #187028 by JetForMe
Has anyone tried making this change? I don't like that I can't jog on the MDI tab either.

Please Log in or Create an account to join the conversation.

More
5 years 6 months ago #206487 by kentavv
Setting enable_tab_change to TRUE alone in 2.8 axis didn't add jogging on the MDI screen.

(I've been comparing Axis 2.7 and 2.8. Something changed in Axis 2.8 breaks jogging with VistaCNC pendents while in MDI.)

Please Log in or Create an account to join the conversation.

More
5 years 6 months ago - 5 years 6 months ago #206616 by cakeslob
The mdi window uses the same keys as keyboard jog, so when the mdi takes focus, it probably binds the keys for mdi, and same when manual tab takes focus
from axis.py
Code:
def ensure_manual(*event): s.poll() if not manual_ok(): return if ( all_homed() and (s.motion_mode == linuxcnc.TRAJ_MODE_TELEOP) or (s.motion_mode == linuxcnc.TRAJ_MODE_COORD) ): set_motion_teleop(1) else: ensure_mode(linuxcnc.MODE_MANUAL) set_motion_teleop(0) def ensure_mdi(*event): # called from axis.tcl on tab raisecmd if not manual_ok(): return set_motion_teleop(0) ensure_mode(linuxcnc.MODE_MDI) set_motion_teleop(1) s.poll()

axis.tcl
Code:
proc set_mode_from_tab {} { set page [${::pane_top}.tabs raise] switch $page { mdi { ensure_mdi } default { ensure_manual focus $::pane_top.tabs.fmanual
Code:
set _tabs_manual [${pane_top}.tabs insert end manual -text [_ "Manual Control \[F3\]"] -raisecmd {focus .; ensure_manual}]

It also doesnt keyboard jog if its on any other tab, other than jog tab, but the mode doesnt actually change when the tabs are switched, it appears to stay in manual until an mdi is issued. this is confirmed by loading the halui config and and joging while in mdi tab.
that being said, if you did a keybind to a non axis(the gui) jog pin, it would probably work. I dont know how it would behave with the jog tab, but you would probably have 2 sets of keyboard jog.
To make it work, you would probably need to bind it to a key that you wouldnt normally type into mdi, and probably have to erase them, because the mdi doesnt lose focus after a command is issued, so all your keyboard jogging will be entered into the mdi text entry. but on the opposite, if mdi did lose focus, you could jog and but then you have to click the mdi box every time to type. so, you can keyboard jog with , but it will be the same amount of clicking if not more. if you have a pendant or external buttons, it looks like it will work if you connect them to halui jog pins.
I have been dealing with it in the opposite, as keyboard jog is very convenient, I often accidentally jog while navigating a user tab with the arrow keys, which can sometimes be dangerous.
Last edit: 5 years 6 months ago by cakeslob.

Please Log in or Create an account to join the conversation.

More
5 years 6 months ago #206731 by andypugh

cakeslob wrote: The mdi window uses the same keys as keyboard jog, so when the mdi takes focus, it probably binds the keys for mdi, and same when manual tab takes focus.


Yes. Specifically when in a text-entry box it would be a surprise that of you used cursor left to edit the entry the actual effect was to move the table.

In some ways I wish that keyboard jogging was simply disallowed. But it is too late to push that genie back in to the lamp.

Please Log in or Create an account to join the conversation.

More
5 years 6 months ago #206742 by tommylight

andypugh wrote: In some ways I wish that keyboard jogging was simply disallowed. But it is too late to push that genie back in to the lamp.

Oh good, for a moment i was scared of loosing the feature i use the most! :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.066 seconds
Powered by Kunena Forum