omron — MC program instruction

MC program instruction MC program instruction Syntax MC monitor_command Function Introduce a monitor command within a command program. Usage Considerations The MC instruction can be contained only within a command program. (Command programs can contain only MC instructions, blank lines, and comment lines.) Parameter monitor_command Any valid eV+ monitor command. Details Command programs are created using one of the eV+ editors. To indicate to the editor that a command program, rather than a normal program, is being created, every operation line of a command program must begin with the letters MC (that is, for Monitor Command follows) followed by one or more spaces.

As with regular application programs, command programs can contain blank lines and comment lines to add clarity. Every nonblank line of a command program must contain a monitor command (or a comment). Monitor commands and program instructions cannot be mixed. Program instructions can be included, however, by using the DO command. That is, to include an instruction in a command program, you can type a line with the form mc do instruction. See the eV+ Operating System Reference Guide for details on monitor commands. Example The following command program loads disk files, prepares for execution of a program, and begins the execution. Note that a DO command is used to include a MOVE instruction:

1 .PROGRAM setup() 2 MC LOAD C:project 3 MC LOAD B:project.lc 4 MC SPEED 50 5 MC DO MOVE safe.loc 6 MC EXECUTE motion, -1 7 .END Related Keywords COMMANDS monitor command eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 335