omron — Controlling Command Programs

Controlling Command Programs LOAD auto.v2 COMMANDS auto NOTE: The eV+ system does not wait for HIGH POWER to be turned on, or for any other event or condition. The autostart command program must explicitly invoke any such functions, or they must be performed by programs invoked by the command program. For example, if you want to require that the operator press the PROGRAM START button on the controller when the command program is processed, you must include a WAIT.START command in the command program. Controlling Command Programs After a command program is initiated, it will process all the commands in the program until one of the following events occurs: 1.

The end of the command program is reached. 2. A WAIT.START command is processed in the command program. (This will suspend processing of the command program until the PROGRAM START button is pressed or until a specified condition is satisfied.) 3. A CYCLE.END command is processed in the command program, and the referenced program task is executing. (That will suspend processing of the command program until the referenced program task finishes executing.) NOTE: A command program will not be suspended when an EXECUTE command is processed. The command program will initiate execution of the specified application program and then immediately continue with the next command.

If you want the command program to wait for the application program to complete before processing the next step in the command program, a CYCLE.END command must be included in the command program after the EXECUTE command. 4. The CTRL key is held down while the C key is pressed. (This will terminate processing of the command program. However, the command being processed, or a program invoked by the command program, will continue to completion.) 5. Another command program is invoked from within the active command program. (Unlike starting an executable program, control will not return to the first command program when the second command program completes.) 6.

An error condition results when a statement is processing in the command program. Command Programs and Language Keywords The eV+ programming language is described in the eV+ Language User's Guide and the eV+ Language Reference Guide . eV+Operating System User's Guide, v2.x, 18320-000 Rev A Page 63