Hello Guest it is April 26, 2024, 11:07:54 AM

Author Topic: More VBscript woes  (Read 8350 times)

0 Members and 1 Guest are viewing this topic.

Re: More VBscript woes
« Reply #10 on: September 03, 2010, 08: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 ?


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

The Bad Thing About Mach3, Is It's Too Configurable

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: More VBscript woes
« Reply #11 on: September 03, 2010, 10:59:01 AM »
Take out the dwell - just like in your thread a few days ago it's pointless.
then stick a

Code: [Select]
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.
Re: More VBscript woes
« Reply #12 on: September 03, 2010, 11:29:57 AM »
just like in your thread a few days ago it's pointless.

Oiy watch what your saying  ;D

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

Seriously, thanks i'll give it a try.


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

The Bad Thing About Mach3, Is It's Too Configurable

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: More VBscript woes
« Reply #13 on: September 03, 2010, 11:37:03 AM »
None taken  :D (I think you know I meant the DWELL was pointless - but now you mention it - arf)
Re: More VBscript woes
« Reply #14 on: September 03, 2010, 12:05:05 PM »
None taken  :D (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  ;D

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

The Bad Thing About Mach3, Is It's Too Configurable