Welcome, Guest. Please login or register.
Did you miss your activation email?
February 13, 2012, 05:56:16 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
| | |-+  More VBscript woes
Pages: « 1 2   Go Down
Print
Author Topic: More VBscript woes  (Read 859 times)
0 Members and 1 Guest are viewing this topic.
M250cnc
Active Member

Offline Offline

Posts: 591




View Profile
« Reply #10 on: September 03, 2010, 07:29:27 AM »

OK i have come across another small problem when i ref one axis after another to ref i want the machine in G94 mode with a feedrate of 150mm per min otherwise the referencing runs at a different speed and the home position is off

Code "G94"
Code "F150"
DoOEMButton (1022)
DoOEMButton (1024

The code above works perfectly but in general use i want the machine to be in G95 mode but when i change the code below as follows the referencing in ignoring the first two lines of code and using G95 all the way through

So i want to ref in G94 then automatically change to G95

Code "G94"
Code "F150"
DoOEMButton (1022)
DoOEMButton (1024)
Code "G95"
Code "F0.1"

All this code above runs in G95 mode

So i added the following pause but it still runs in in G95

Code "G94"
Code "F150"
DoOEMButton (1022)
DoOEMButton (1024)
Code "G04 P2"
Code "G95"
Code "F0.1"

Any clues anyone ?


Logged

The Good Thing About Mach3, Is It's very Configurable

The Bad Thing About Mach3, Is It's Too Configurable
stirling
Global Moderator
*
Online Online

Posts: 1,109

UK


View Profile WWW
« Reply #11 on: September 03, 2010, 09:59:01 AM »

Take out the dwell - just like in your thread a few days ago it's pointless.
then stick a

Code:
while isMoving()
  sleep(50)
wend

after each line - probably not needed after every line but as they're all requests from VB to Mach it won't hurt.
Logged
M250cnc
Active Member

Offline Offline

Posts: 591




View Profile
« Reply #12 on: September 03, 2010, 10:29:57 AM »

just like in your thread a few days ago it's pointless.

Oiy watch what your saying  Grin

Pointless threads Bl@@dy cheek, i just don't know what I'm doing  Roll Eyes

Seriously, thanks i'll give it a try.


Logged

The Good Thing About Mach3, Is It's very Configurable

The Bad Thing About Mach3, Is It's Too Configurable
stirling
Global Moderator
*
Online Online

Posts: 1,109

UK


View Profile WWW
« Reply #13 on: September 03, 2010, 10:37:03 AM »

None taken  Cheesy (I think you know I meant the DWELL was pointless - but now you mention it - arf)
Logged
M250cnc
Active Member

Offline Offline

Posts: 591




View Profile
« Reply #14 on: September 03, 2010, 11:05:05 AM »

None taken  Cheesy (I think you know I meant the DWELL was pointless - but now you mention it - arf)

Yes i knew, but its so easy to get misconstrued a bit like VB code  Grin

It works perfectly thanks
Logged

The Good Thing About Mach3, Is It's very Configurable

The Bad Thing About Mach3, Is It's Too Configurable
Pages: « 1 2   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!