Machsupport Forum
Mach Discussion => VB and the development of wizards => Topic started by: nso on December 16, 2013, 03:09:01 PM
-
hi everyone
i have a problem with running a simple macro...
'M2000.M1S'
If isactive(input1) Then
doButton (1021)
MsgBox "servo alarm"
End If
i write this and save to mill macro folder by .m1s excitation ,and i check enable( run macro pump ) in config menu...
when i active input 1,then do nothing ..
now what is my fault ?!
-
Hi,
close and restart Mach3.
That is needed every time you activate or deactivate the macropump.
Alex
-
thanks cncalex
but i do that,and not running again...
-
sorry, didn't look close enogh.
when you want to run the macropump you need a macro named macropump.m1s
only this one runs as macropump.
' macropump.m1s '
If isactive(input1) Then
doOEMButton (1021)
MsgBox "servo alarm"
End If
doen't forget to close and restart Mach3.
it is needed every time you activate or deactivate or edit the macropump.m1s
I for myself prefere doing things like that using a brain.
see pict.
alex
-
yeeeeeeeeess
that is point ,file name should be( macropump.m1s) you right .. thanks alot
so if need more macro then how can do?
-
there is only this one macro.
everything you want to run must be in this.
alex
-
you can create other Macros like M1234.m1s but this will only be executed one time when you call it
from MDI or G-Code
alex
-
i got it ...thanks a lot my friend :)
-
No prob. glad you got it . :)
alex