Hello Guest it is April 28, 2024, 02:34:48 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - dcattena

Pages: « 1 2
11
General Mach Discussion / Re: VB Script from g-code problem
« 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.

12
General Mach Discussion / Re: VB Script from g-code problem
« 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

13
General Mach Discussion / Re: VB Script from g-code problem
« 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

14
General Mach Discussion / Re: VB Script from g-code problem
« on: September 23, 2012, 05:50:50 PM »
Sorry in my code. Ill do that now sorry its very early

15
General Mach Discussion / Re: VB Script from g-code problem
« on: September 23, 2012, 05:50:04 PM »
Wierd....mach3 doesnt understand the MsgBox command it just says unknown word starting with sLine 3. Which is the msg box command line.

16
General Mach Discussion / Re: VB Script from g-code problem
« on: September 23, 2012, 05:42:31 PM »
Ive named the file above M100. But i still get the same effect. I run my g-code then when it gets up to M110, it will just skip over it and continue the program. Running M110 within the script editor presses the reset button like it should but when its called after a few steps in the g-code it just skips over.

17
General Mach Discussion / Re: VB Script from g-code problem
« on: September 20, 2012, 10:01:33 PM »
Sorry i meant when M6 was ignored which is the name of the macro i made not anyhting inbuilt. I renamed the macro to RESET.m1s and i tried calling that

eg:

G00 X0.000 Y0.000 Z10.00
G00 Z10.00
RESET

I get "unknown word starting with eLine 2"

18
General Mach Discussion / Re: VB Script from g-code problem
« on: September 20, 2012, 09:57:50 PM »
Thanks for your reply. I should change my filenames. Its just a empty script file with DoOEMButton(1021) inside. Even if i save it as RESET.m1s and call RESET in the g-code it still errors out.

19
General Mach Discussion / VB Script from g-code problem
« on: September 20, 2012, 09:47:47 PM »
Hi, I'm relatively new to the Mach 3 software and its features. I've been looking around trying to run some scripts from a .nc g-code file. In the script editor I have some code to activate the reset button eg: DoOEMButton(1021)
This code works fine via the script editor. I saved the file as M6.m1s and then within my g-code :

G00 X10 Y10
M6

I was expecting it to stop and the reset button trips. All the program does is continue over the M6 finish the rest of the g-code.
Could anyone tell me what I'm doing wrong with the script? It would be much appreciated.

Thanks in advance

Pages: « 1 2