CALL
CALL is a non-motion instruction that causes the robot to halt progression of its current running program, throw all of the currently-in-use data about that program into the processor's stack, and start another program.
SELECT | Variable | Math | Variable | Action | Destination |
---|---|---|---|---|---|
SELECT | R[1] | = | 1 | Call | Program1 |
= | 2 | Call | Program2 | ||
= | 1 | Call | Program3 | ||
Else | JMP | LBL2 |
Call instructions are special in that they're intended to return once they have been completed.