Hello Guest it is August 06, 2020, 12:29:44 PM

Author Topic: simple macro not working,  (Read 416 times)

0 Members and 1 Guest are viewing this topic.

simple macro not working,
« 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
   
   

Offline TPS

*
  •  1,632 1,632
    • View Profile
Re: simple macro not working,
« Reply #1 on: February 20, 2019, 01:34:22 AM »
try this:

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

anything is possible, just try it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: simple macro not working,
« Reply #2 on: February 20, 2019, 12:36:58 PM »
no that did not work.
 Is there any thing special  in saving the file format?

Offline TPS

*
  •  1,632 1,632
    • View Profile
Re: simple macro not working,
« Reply #3 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?
anything is possible, just try it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: simple macro not working,
« Reply #4 on: February 20, 2019, 07:56:03 PM »
it is in the right folder and no error messages

Offline TPS

*
  •  1,632 1,632
    • View Profile
Re: simple macro not working,
« Reply #5 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
anything is possible, just try it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: simple macro not working,
« Reply #6 on: February 21, 2019, 11:31:35 AM »
IT WORKS NOW.
Figures Id pick the one number that does not work.....


thanks so much