Hello Guest it is April 19, 2024, 02:06:21 AM

Author Topic: Moving an axis  (Read 6166 times)

0 Members and 1 Guest are viewing this topic.

Moving an axis
« on: June 16, 2008, 04:19:07 AM »
How does one move an axis in the VB script editor.

I have tried the activatesignal(0) and deactivatesignal (0) to move the x axis + but it does not seem to work. I want to emulate pushing on arrow key on the keyboard and the asix moves.

Offline Chaoticone

*
  • *
  •  5,624 5,624
  • Precision Chaos
    • View Profile
Re: Moving an axis
« Reply #1 on: June 16, 2008, 09:29:38 AM »
You can go in screen 4 and have the button assigned the OEM code for jog but can't assign it to be a VB button and then put the code in the script. Vb can't stop on release.

Brett
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Moving an axis
« Reply #2 on: June 16, 2008, 11:40:15 AM »
Brett, not to argue, but, that is not Entirely True.........

If you make a Button in screen designer you CAN make a jog on, jog off you have to use an extra LED but, you have plenty of them. In flash you can do it with button states since you can look at push, and release states.

Here is how to do it in regular VB, this is an example for the X++ jog screen button:

NOTE: since the button are single action only, you will have to push and release to start the jog,
then to stop the jog you will have to push and release the button again. The code below goes inside your button make sure you pick a USER LED range that nothing else is using, I recomment 2000 or higher.

'X++ jog button script

This code has been removed.
it is possible but no adviseable.

'Enjoy
'Scott

'Just remember, you have to push and release the button ONCE to start jogging, an it will run that way
'UNTIL, you push the button again and then it will stop.





« Last Edit: June 17, 2008, 09:43:28 PM by Chaoticone »
fun times
Re: Moving an axis
« Reply #3 on: June 16, 2008, 05:11:16 PM »
Big thanks poppabear.

that has solved my problem and pendant works sweet now.

Offline Chaoticone

*
  • *
  •  5,624 5,624
  • Precision Chaos
    • View Profile
Re: Moving an axis
« Reply #4 on: June 17, 2008, 09:39:09 PM »
Np Scott. Actually it is true. Vb can't stop on release. I didn't want to post that work around because of safety issues. Having a push, push toggel for a jog button is to risky IMO.

Brett
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Moving an axis
« Reply #5 on: July 01, 2009, 02:40:16 PM »
Neca,

     a brian for jogging the x axis from external buttons for you.

scott
fun times
Re: Moving an axis
« Reply #6 on: July 01, 2009, 04:34:34 PM »
Tank you scott. ;)