Hello Guest it is March 28, 2024, 08:12:25 PM

Author Topic: VB Script from g-code problem  (Read 13455 times)

0 Members and 1 Guest are viewing this topic.

Re: VB Script from g-code problem
« Reply #10 on: September 23, 2012, 05:50:50 PM »
Sorry in my code. Ill do that now sorry its very early
Re: VB Script from g-code problem
« Reply #11 on: September 23, 2012, 05:52:21 PM »
It runs now and still no msgbox. Ive saved the macro under C:\Mach3\macros\MachStdMill\Mill which is the current screenset im using

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: VB Script from g-code problem
« Reply #12 on: September 23, 2012, 05:54:45 PM »
It will depend what the profile is called, If that is the profile name you see in Mach then that is the correct location.
Not sure what you are meaning though, are you saying its doing as you want now?
Hood
Re: VB Script from g-code problem
« Reply #13 on: September 23, 2012, 05:55:36 PM »
Ok ive moved it to a few folders now. What it does now is it just pauses on the M-code call and sits there. No message box nothing

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: VB Script from g-code problem
« Reply #14 on: September 23, 2012, 05:58:37 PM »
Try it without the (),

Msgbox "Its being called"
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: VB Script from g-code problem
« Reply #15 on: September 23, 2012, 06:00:01 PM »
Ok just noticed its the reset, maybe it will not throw the message box if its after a reset, not sure, try with the message box before.
To see which folder you are needing to put it in right click  the shortcut you use to launch Mach abd look at its  properties and see what its target is.

Hood
Re: VB Script from g-code problem
« Reply #16 on: September 23, 2012, 06:01:38 PM »
Does the m-code file go right into the root directory or does it go into one of the macro folders? ive got it in a few places already.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: VB Script from g-code problem
« Reply #17 on: September 23, 2012, 06:02:37 PM »
Ok just tried and it works fine here so I think it may either be the wrong folder or could well be something to do with MSM as its not a standard screenset so it may be screwing with it.
Hood
Re: VB Script from g-code problem
« Reply #18 on: September 23, 2012, 06:03:53 PM »
Ill try load a basic mach screen set and ill save the macro into the macros, macros/mach3mill

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: VB Script from g-code problem
« Reply #19 on: September 23, 2012, 06:04:00 PM »
It goes into the macro folder of the profile you are using so if for example the profile you are using is dcattena the location would be
C:\Mach3\Macros\dcattena

Hood