I am currently working on a program that involves calling 6 sub programs.
I am new to programming and self taught so I know a lot of what I do is extra/unnecessary, but I am trying to change this program as little as possible because I only have 1 more day before it needs to be done.
Main - Waiting for machine ready signal to load a part (JMP LBL loop). When ready, will call part load program. In part load program, it will jump to a label based on what number (register) part needs to be loaded in the machine. After it picks the part up it sets Register 5 (PartLoad) to 1 and then it will JMP LBL 99 (end of program) , then goes back into Main Program.
When it goes back into the main program, it just stops and I need to hit play again. I need the main program to repeatedly loop every time it is jumped back into from a sub program.
Any help is much appreciated!