Hi Everybody,
I have a question about Macro Programming. I have no background in this but an familiar with the commands and variables. So how would I continuously monitor a user input say #1000. So I am watching this user input that is wired to a pressure switch. When this input changes state the #1000 will change from 0 to 1. Then I want the current running CNC program to stop, Jump to another program to move Z to home, stop the spindle and put machine in safe position then Trigger an Estop through probably an M- Code at the end of the safe program.
What I don't understand is can you write macro commands within normal part programs?
Do Macro commands have to be within O9000 series programs? Or can I put parts programming then a few lines of Macro type programming then more part programming.
How do I write a loop to do this? Monitoring the input continuously while the part program is running.
I understand sequences like IF-THEN, IF-GOTO, WHILE-DO END.
Thanks