what's wrong with this M3 macro?
Posted: Thu Sep 08, 2022 4:15 pm
Hi All,
lately none of my questions get a single reply... But I try again
This is a stripped down version of our M3 macro:
the problem is that
is not executed if there is a previous call to an external macro, in my case
Can somebody explan what am I doing wrong?
thanks
Giorgio
lately none of my questions get a single reply... But I try again
This is a stripped down version of our M3 macro:
- Code: Select all
bool wasCycleRunning = exec.GetLED(54);
if (wasCycleRunning){
exec.Stop();
while (exec.IsMoving()){}
exec.Codesync(""); // Clear Ismacrostopped
}
// calling an empty macro
exec.Callbutton(21111);
while (exec.IsMoving()){}
exec.AddStatusmessage("out of M21111");
exec.DospinCW();
Thread.Sleep(500);
while(AS3.GetLED(21)){}
exec.AddStatusmessage("Spindle on");
if (wasCycleRunning){
exec.AddStatusmessage("Restart job");
exec.Callbutton(128);
}
#Events
the problem is that
- Code: Select all
exec.Callbutton(128);
is not executed if there is a previous call to an external macro, in my case
- Code: Select all
exec.Callbutton(21111);
Can somebody explan what am I doing wrong?
thanks
Giorgio