NEWS
LinuxCNC 2.5.2 Release
There are no translations available.

LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release
There are no translations available.

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
There are no translations available.

New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 
Home Forum Using LinuxCNC AXIS External switch in MDI/MANUAL/AUTO mode

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: External switch in MDI/MANUAL/AUTO mode

External switch in MDI/MANUAL/AUTO mode 31 Mär 2012 22:25 #18894

  • aike
  • aike's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 147
  • Karma: 3
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?
The administrator has disabled public write access.

Re:External switch in MDI/MANUAL/AUTO mode 01 Apr 2012 04:05 #18895

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4960
  • Thank you received: 87
  • Karma: 134
What do you use the switch for?

How is is connected up in HAL?

What GUI are you using?

John
The administrator has disabled public write access.

Re:External switch in MDI/MANUAL/AUTO mode 01 Apr 2012 04:37 #18896

  • Rick G
  • Rick G's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1071
  • Thank you received: 15
  • Karma: 80
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
The administrator has disabled public write access.

Re:External switch in MDI/MANUAL/AUTO mode 01 Apr 2012 05:49 #18897

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4960
  • Thank you received: 87
  • Karma: 134
Rick,

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

John
The administrator has disabled public write access.

Re:External switch in MDI/MANUAL/AUTO mode 01 Apr 2012 07:11 #18898

  • aike
  • aike's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 147
  • Karma: 3
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).
The administrator has disabled public write access.

Re:External switch in MDI/MANUAL/AUTO mode 01 Apr 2012 08:27 #18900

  • dgarrett
  • dgarrett's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 28
  • Thank you received: 3
  • Karma: 32
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)
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 1.735 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.