Machsupport Forum
Mach Discussion => VB and the development of wizards => Topic started by: umka 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.
-
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
-
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.
-
Big thanks poppabear.
that has solved my problem and pendant works sweet now.
-
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
-
Neca,
a brian for jogging the x axis from external buttons for you.
scott
-
Tank you scott. ;)