EXECUTE monitor command EXECUTE monitor command Syntax EXECUTE /C task program(param_list), cycles, step Function Begin execution of a control program. Usage Considerations No program can already be active as the specified program task. Parameters /C Optional qualifier that conditionally attaches the selected robot. The qualifier has an effect only when starting the execution of task 0. task Optional integer specifying which program task is to be activated. (See below for the default. See the eV+ Operating System User's Guide for information on tasks.) program Optional name of the program to be executed.
If the name is omitted, the last program name specified in an EXECUTE command or instruction (or PRIME command) for the selected task is used. WARNING : Entering an EXECUTE command with no program specified could result in unexpected motion of the robot, since the previous program is executed again. param_list Optional list of constants, variables, or expressions separated by commas, which must correspond in type and number to the arguments in the .PROGRAM statement for the program specified. If no arguments are required by the program, the list is blank, and the parentheses may be omitted. Program parameters may be omitted as desired, using commas to skip omitted parameters.
No commas are required if parameters are omitted at the end of the list. Omitted parameters are passed to the called program as "undefined" and can be detected with the DEFINED real-valued function. The parameters are evaluated in the context of the new task that is eV+Operating System Reference Guide, 2.x,18321-000 Rev A Page 86