CALL: Difference between revisions

197 bytes added ,  4 years ago
no edit summary
No edit summary
No edit summary
Line 1:
[[File:Inst-call orig.gif|thumb|How to add a CALL instruction to a program.]]
 
=== CALL [Program] ===
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.
 
Line 33 ⟶ 35:
==== Note: ====
The called program must eventually reach "END" and not simply CALL the original, as the processor's stack will simply continue filling up and a STACK OVERFLOW error may result.
 
=== [END] ===
The END instruction is included at the bottom of teach pendant programs, but additional instances can be added through the [INST] - CALL - END option.
<br />