Welcome, Guest. Please login or register.
Did you miss your activation email?
May 24, 2012, 06:51:58 PM

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
| | |-+  Crazy VB G0 Problem
Pages: 1   Go Down
Print
Author Topic: Crazy VB G0 Problem  (Read 667 times)
0 Members and 1 Guest are viewing this topic.
sdfoiler
Active Member

Offline Offline

Posts: 6


View Profile
« on: June 16, 2009, 11:53:45 PM »

Ok, I don't claim to be the smartest guy when it comes to VB, but I must not even be close.  I'm trying to do something as simple as:

Code "G0 x20.0 y10.0"

While IsMoving()
WEnd

Running that script in the Mach VB editor causes both the X and Y axis to become jerky, lose major steps, and finally stop not even close to 20,10.

If I just move in one axis direction at a time (Code "G0 x20.0"), it "usually" works, but it still has issues sometimes.  Both at the same time cause major issues.  I can put the exact G0 line in the MDI  screen and it works flawlessly.  What am I missing?  There must be some setting in Mach 3 that I don't have set right.  I've been searching for hours but haven't found another post like this.  Sorry if it's been covered before and I couldn't find it.  I'm sure it's something stupid that I'm just not getting.  What I'm trying to do is move the table to a certain position to manually change a tool.  I thought it would be an easy task, but I guess not.  Thanks for ANY help!!!

Clueless


Logged
sdfoiler
Active Member

Offline Offline

Posts: 6


View Profile
« Reply #1 on: June 17, 2009, 12:24:35 AM »

Figured it out... had to end up rebooting the machine and all is well now.  I didn't think the VB code could be that difficult.  I'm not sure what caused it to get into a weird state though.  But all is well.
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!