Machsupport Forum
Mach Discussion => VB and the development of wizards => Topic started by: v tec on February 24, 2013, 04:35:19 AM
-
hi, i m very bad for programm a macro
but i would like write a small code simple for you, hard for me...
the gcode will look at that:
m3s1000
m70
m47
m30
m70 is
wait the input1, when input1 is "on"(not stay "on", but just pulse), start m98
how i can do that?
thanks
-
It is NOT a good idea to try and run a SUB from inside a MACRO from Gcode. It could get VERY unpredictable.
Just a thought, (;-) TP
-
That being said you may want to try it this way. The testsub .txt must reside in the Subroutines directory and it must contain the M99(return)
m3s1000
m70
m47
m30
'M70
Do while Not IsActive(input1)
Message"Waiting on Input"
Loop
Message""
Code" M98(testsub.txt)"
End
(;-) TP