EXECUTE program instruction EXECUTE program instruction Syntax EXECUTE /C task_num program( param_list ) , cycles, step Function Begin execution of a control program. Usage Considerations A program cannot 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_num Real value or expression specifying which program task is to be activated. (For more information on program tasks, see the section Executing Programs in the eV+ Language User's Guide .) program Name of the program to be executed.
param_list Optional list of constants, variables, or expressions separated by commas, that 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, but the parentheses must be entered. 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. Automatic variables (and subroutine arguments) cannot be passed by reference in an EXECUTE instruction.
They must be passed by value (see the description of CALL). The parameters are evaluated in the context of the new task that is started (see below). cycles Optional real value, variable, or expression (interpreted as an eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 210