Axis switch from mdi to manual mode and back

More
14 years 1 month ago #24219 by Rick G
You can use "axisui.set-manual-mode" to set the Axis GUI to manual mode.

You can also use "halui.mode.manual" to set manual mode, "halui.mode.mdi" can be used to set mdi mode.

But it does not appear to me that there is a "axisui.set-mdi-mode" to set the Axis GUI to mdi mode.

Rick G

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

More
14 years 1 month ago #24220 by BigJohnT
You want to set the boot up mode to MDI?

John

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

More
14 years 1 month ago #24225 by ArcEye
Hi Rick

Axis appears to use a combination of

ensure_mode(emc.MODE_MDI) to set the mode
and
mdi_up_cmd(*args) to display the MDI tab and set it up

Not sure if this helps whatever you are trying to do

regards

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

More
14 years 1 month ago #24234 by Rick G
Hello guys,

I use a joypad to do most of the set up a new job. The jog features only work in manual mode. So on a large machine if you accidentally walk away from the keyboard with the joypad to where you are setting up in mdi mode the jogging will not work. For this I use a button on the joypad to set the AXIS gui and halui in manual mode the pins are "axisui.set-manual-mode" and or "halui.mode.manual". I also have programed other buttons on the joypad to MDI commands and to start subs. For these I need halui to be in MDI mode. I use "halui.mode.mdi" for this, however this can leave the AXIS screen in manual mode while halui is in MDI mode. It would be nice to have a hal pin to change AXIS to MDI mode the way the pin "axisui.set-manual-mode" sets it to manual mode.

Rick G

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

More
14 years 1 month ago #24236 by BigJohnT
You would have to add that pin to axis.py.

After line 3066 insert

comp.newpin("set-mdi-mode".hal.HAL_BIT,hal.HAL_IN)

Then around line 776 I think you could copy the set manual mode and change the names to set mdi mode and that should work until the next update.

John

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

More
14 years 1 month ago #24266 by Rick G
Thanks, good info I will take a look.

Rick G

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

Time to create page: 0.240 seconds
Powered by Kunena Forum