Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: fozzyber on February 19, 2019, 01:05:55 PM

Title: simple macro not working,
Post by: fozzyber on February 19, 2019, 01:05:55 PM
I have made a simple macro for mach3 to move my z down by .0001 but this script does not seem to be working
I have named it M100.m1s I made it in text editor and vb script editor. but it does not seem to run, what am I doing wrong?
it does work when I run it in vb script editor but not when i run it from mdi

thnaks
jerry


Quote
code "g91"
code "g0 z-.0001"
'While IsMoving()
code "g90" 
'Wend
   
   
Title: Re: simple macro not working,
Post by: TPS on February 20, 2019, 01:34:22 AM
try this:

Code: [Select]
code "g91"
code "g0 z-.0001"
While IsMoving()
Wend
code "g90" 

Title: Re: simple macro not working,
Post by: fozzyber on February 20, 2019, 12:36:58 PM
no that did not work.
 Is there any thing special  in saving the file format?
Title: Re: simple macro not working,
Post by: TPS on February 20, 2019, 12:41:25 PM
but it is in the right Folder?

C:\Mach3\macros\your profilename

any errormessage in the status line?
Title: Re: simple macro not working,
Post by: fozzyber on February 20, 2019, 07:56:03 PM
it is in the right folder and no error messages
Title: Re: simple macro not working,
Post by: TPS on February 21, 2019, 01:15:50 AM
ok i have tested here, and you are right.
for what ever reason M100 does not work, try M101.M1S
Title: Re: simple macro not working,
Post by: fozzyber on February 21, 2019, 11:31:35 AM
IT WORKS NOW.
Figures Id pick the one number that does not work.....


thanks so much