Hello Guest it is March 29, 2024, 07:27:59 AM

Author Topic: Toggle axis jog control?  (Read 15254 times)

0 Members and 1 Guest are viewing this topic.

Offline budman68

*
  • *
  •  2,352 2,352
    • View Profile
Re: Toggle axis jog control?
« Reply #10 on: October 04, 2012, 06:01:02 PM »
Terry, where dod I find the codes for the standard "system functions" ? I looked through the OEM code list but nothing there was specific to choosing a certain axis?

Thanks,
Dave
----------------------------------------------------------------------
Just because I'm a Global Moderator, don't assume that I know anything !

Dave->    ;)

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Toggle axis jog control?
« Reply #11 on: October 04, 2012, 06:05:19 PM »
(;-) THAT IS the $100 question as to which function they used to switch axis for the way they did it in the plugin.

We will just have to try a feww things and SEE if we get results. There are functions for MPG jogging and Encoder jogging and I think Joystick joggiing. ONE of them has to work(;-)

I would set up the editor and try each oembutton code to see IF it switches axis.

OR you could ask Art or the Coauthor of the plugin(;-)Easy way,

(;-) TP

Offline budman68

*
  • *
  •  2,352 2,352
    • View Profile
Re: Toggle axis jog control?
« Reply #12 on: October 04, 2012, 06:11:21 PM »
Ok, will do sir, and thank you!

Dave
----------------------------------------------------------------------
Just because I'm a Global Moderator, don't assume that I know anything !

Dave->    ;)

Offline budman68

*
  • *
  •  2,352 2,352
    • View Profile
Re: Toggle axis jog control?
« Reply #13 on: October 04, 2012, 07:22:05 PM »
Hi, Terry,

I given the codes that "could" work a try, but no luck at all. In fact, there was no sign of life at all. Am I supposed to keep the parenthesis? In other words, like this:

If GetUserDro(1999) = 1 Then
   Message("Selecting X axis for Jogging")
   '(188)

188 being the code for: Select A for MPG 1

I've tried it with and without the parenthesis but no luck either way.

Thanks,
Dave
----------------------------------------------------------------------
Just because I'm a Global Moderator, don't assume that I know anything !

Dave->    ;)

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Toggle axis jog control?
« Reply #14 on: October 04, 2012, 07:36:42 PM »
(;-) AH no,

In that case it would be

If GetUserDro(1999) = 1 Then
   Message("Selecting X axis for Jogging")
   DoOemButton(188)

Offline budman68

*
  • *
  •  2,352 2,352
    • View Profile
Re: Toggle axis jog control?
« Reply #15 on: October 04, 2012, 07:40:37 PM »
duh........... I'm off to try again!
----------------------------------------------------------------------
Just because I'm a Global Moderator, don't assume that I know anything !

Dave->    ;)

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Toggle axis jog control?
« Reply #16 on: October 04, 2012, 07:42:16 PM »
For testing I would set the Axis from the device to say Y  then jog to make sure it jogs Y.   Then open the VB editor and run a line of code like

DoOemButton(188)

Then try to jog and see which axis moves. I would try all the code #'s  that involve X and jogging to find out WHICH one they used to switch the axis.

Offline budman68

*
  • *
  •  2,352 2,352
    • View Profile
Re: Toggle axis jog control?
« Reply #17 on: October 04, 2012, 07:44:00 PM »
exactly what I'm trying to do but it's getting late in the day for me and I'm getting sloppy and not doing these "intelligently".
----------------------------------------------------------------------
Just because I'm a Global Moderator, don't assume that I know anything !

Dave->    ;)

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Toggle axis jog control?
« Reply #18 on: October 04, 2012, 07:44:46 PM »
Nice looking pendant by the way, (;-)

If all else fails take a break and walk away from it for a while.

I will do some more snooping for ya.

(;-) TP

Offline budman68

*
  • *
  •  2,352 2,352
    • View Profile
Re: Toggle axis jog control?
« Reply #19 on: October 04, 2012, 07:56:10 PM »
Thanks, Terry.  :)
----------------------------------------------------------------------
Just because I'm a Global Moderator, don't assume that I know anything !

Dave->    ;)