omron — MCS program instruction

MCS program instruction NOTE: If a DELETE_ command is used within a subroutine to delete one of the subroutine parameters (that is, one of the variables in the .PROGRAM statement), the variable is not deleted and no error condition is recorded. Normal output by the monitor command to the system terminal is done if the MCS.MESSAGE system switch is enabled. For example, the LOAD command outputs the .PROGRAM lines from each program loaded. (The MCS.MESSAGE switch is normally disabled.) If the FCOPY option is used, logical units 5 (disk #1) and 6 (disk #2) must be available. If LOAD or STORE_ is used, logical unit # 5 must be available.

Example The following program loads a disk file, executes the program in the file, and deletes the program from the system memory. Another program file is then loaded into memory and executed. (Although this simple example can also be implemented with a command program, the following demonstrates use of the MCS instruction in a normal program.) .PROGRAM admin() MCS "LOAD C:setup" CALL setup MCS "DELETEP setup" MCS "LOAD C:demo_1" CALL demo_main .END Related Keywords ERROR real-valued function MC program instruction eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 338