EXECUTE monitor command An execution cycle is terminated when a STOP instruction is executed, a RETURN instruction is executed in the top-level program, or the last defined step of the program is encountered. The value of can range from -32768 to 32767. The program is executed one time if cycles is omitted or has the value 0 or 1. Any negative value for cycles causes the program to be executed continuously until a HALT instruction is executed, an error occurs, or the user (or another program) aborts execution of the program. NOTE: Each time an execution cycle is initiated, the execution parameters are reset to their default values.
This includes motion speed, robot configuration, and servo modes. However, the robot currently selected is not changed. If step is specified, the program begins execution at that step for the first pass. Successive cycles always begin at the first executable step of the program. Example Initiate execution (as task #0) of the program named "assembly", with execution to continue indefinitely (that is, until execution is aborted, a HALT instruction is executed, or a run-time error occurs). EXECUTE assembly,-1 Initiate execution, with program task #2, of the program named "test". The parameter values 1 and 2 are passed to the program.
EXECUTE 2 test(1,2) Initiate execution of the last program executed by program task #0 (or by the current debug task). No parameters are passed to the program. EXECUTE Related Keywords ABORT monitor command ABORT program instruction CALL program instruction CYCLE.END monitor command CYCLE.END program instruction EXECUTE program instruction KILL monitor command KILL program instruction PRIME monitor command PROCEED monitor command eV+Operating System Reference Guide, 2.x,18321-000 Rev A Page 88