External switch in MDI/MANUAL/AUTO mode

More
01 Apr 2012 05:25 #18894 by aike
Hi!
I use external panel to switch mode AUTO/MANUAL/MDI.
It works fine till I press the mouse and touch the screen.
If I was in MDI SCREEN mode (F3) not possible to switched in auto mode in external button.
If the program finished the manual mode becomes, but the external button is in AUTO mode!
Is it possible that screen switched from MDI mode to AUTO/MANUAL mode screen when I press external mode button switch?

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

More
01 Apr 2012 11:05 #18895 by BigJohnT
Replied by BigJohnT on topic Re:External switch in MDI/MANUAL/AUTO mode
What do you use the switch for?

How is is connected up in HAL?

What GUI are you using?

John

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

More
01 Apr 2012 11:37 #18896 by Rick G
Replied by Rick G on topic Re:External switch in MDI/MANUAL/AUTO mode
It has been a while since I looked but it seems to me that if you used halui from say a usb joystick to switch from manual to mdi EMC2 will switch modes (as shown in the hal watch window) but the Axis GUI may not show the change.

Rick G

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

More
01 Apr 2012 12:49 #18897 by BigJohnT
Replied by BigJohnT on topic Re:External switch in MDI/MANUAL/AUTO mode
Rick,

I've not looked either but I think your correct that Axis will not respond to halui...

John

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

More
01 Apr 2012 14:11 #18898 by aike
BigJohnT wrote:

What do you use the switch for?

How is is connected up in HAL?

What GUI are you using?

John

I use AXIS.
The connection halui.mode.auto e t c
When I set "1" to halui.mode.auto or I set "1" to halui.mode.mdi, the screen not changes, while
ther are 2 screens (in menu), auto+manul and mdi.
If tell the true, the screens in AXIS GUI have to switches from one to other, if I change mode external buttons (not use F* keys or mouse).

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

More
01 Apr 2012 15:27 #18900 by dgarrett
Replied by dgarrett on topic Re:External switch in MDI/MANUAL/AUTO mode
Axis exposes some pins to hal:

halcmd: show pin axisui*
Component Pins:
Owner Type Dir Value Name
42 bit OUT FALSE axisui.jog.a
42 bit OUT FALSE axisui.jog.b
42 bit OUT FALSE axisui.jog.c
42 float OUT 0 axisui.jog.increment
42 bit OUT FALSE axisui.jog.u
42 bit OUT FALSE axisui.jog.v
42 bit OUT FALSE axisui.jog.w
42 bit OUT TRUE axisui.jog.x
42 bit OUT FALSE axisui.jog.y
42 bit OUT FALSE axisui.jog.z
42 bit IN FALSE axisui.notifications-clear
42 bit IN FALSE axisui.notifications-clear-error
42 bit IN FALSE axisui.notifications-clear-info
42 bit IN FALSE axisui.set-manual-mode

The pin axisui.set-manual-mode may be useful. You have to set it to 1 (then return to 0 to use again)

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

More
01 Apr 2012 17:32 #18902 by Rick G
Replied by Rick G on topic Re:External switch in MDI/MANUAL/AUTO mode

The pin axisui.set-manual-mode may be useful. You have to set it to 1 (then return to 0 to use again)

I thought that would work to get axis into manual mode, but not to mdi mode.

Rick G

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

Time to create page: 0.064 seconds
Powered by Kunena Forum