Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 08:20:32 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  Moving an axis
Pages: 1   Go Down
Print
Author Topic: Moving an axis  (Read 734 times)
0 Members and 1 Guest are viewing this topic.
umka
Active Member

Offline Offline

Posts: 3


View Profile
« on: June 16, 2008, 03: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.
Logged
Chaoticone
South Carolina, US
Administrator
*
Online Online

Posts: 2,809


Precision Chaos



View Profile WWW
« Reply #1 on: June 16, 2008, 08: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
Logged

Grin If you could see the things I have in my head, you would be laughing too. Grin
www.precisionchaos1.com
My guard dog is not what you need to worry about!
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Online Online

Posts: 770


Briceville, TN, USA



View Profile WWW
« Reply #2 on: June 16, 2008, 10: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, 08:43:28 PM by Chaoticone » Logged

All things Mach3, Screens, Wizards, Plugins, Brians, complete control solutions for complex machines, Macros, ATC's, any kind of CNC machine build, retrofit or repair.
umka
Active Member

Offline Offline

Posts: 3


View Profile
« Reply #3 on: June 16, 2008, 04:11:16 PM »

Big thanks poppabear.

that has solved my problem and pendant works sweet now.
Logged
Chaoticone
South Carolina, US
Administrator
*
Online Online

Posts: 2,809


Precision Chaos



View Profile WWW
« Reply #4 on: June 17, 2008, 08: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
Logged

Grin If you could see the things I have in my head, you would be laughing too. Grin
www.precisionchaos1.com
My guard dog is not what you need to worry about!
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!