Stephan Spears
Aluminum
- Joined
- Apr 12, 2014
- Location
- AB,Canada
Hi all,
As the title states, how do we identify whether the current running program is started within MDI mode or AUTO mode using Macro?
I ask because I come across situations as the followings:
I want to call a customized G-code(which is actually a main(sub) program itself) in MDI mode or in my main program. Let's call this G-code G12 and the program behind it O9010.
1) If I input and run only G12 in MDI, I want O9010 to end with M30 so that it won't loop and run again(looping is the behavior for M99 if M99 is interpreted as the program end).
2) If G12 is integrated with other command lines to form a main program which is run in Auto Mode, I want O9010 to end with M99 so that it returns to the point where it is called.
Is there any way to achieve this with Macro B?
Thanks in advance,
Steph
As the title states, how do we identify whether the current running program is started within MDI mode or AUTO mode using Macro?
I ask because I come across situations as the followings:
I want to call a customized G-code(which is actually a main(sub) program itself) in MDI mode or in my main program. Let's call this G-code G12 and the program behind it O9010.
1) If I input and run only G12 in MDI, I want O9010 to end with M30 so that it won't loop and run again(looping is the behavior for M99 if M99 is interpreted as the program end).
2) If G12 is integrated with other command lines to form a main program which is run in Auto Mode, I want O9010 to end with M99 so that it returns to the point where it is called.
Is there any way to achieve this with Macro B?
Thanks in advance,
Steph