Running Command Programs the commands will be performed without any prompts being issued. Make sure your Monitor command programs can execute correctly without operator response. Every nonblank line of a Monitor command program must contain either a Monitor command or a comment. Command Program Names Command program names can have up to 15 characters, must begin with a character, and can contain letters, numbers, periods, and underline characters. Command programs are stored as elements in the eV+ disk file. The disk file name, not the command program name, must conform to eV+ disk file name conventions (see Using Files on page 33).
Running Command Programs There are several ways to run command programs: from the eV+ monitor prompt, or automatically when the controller is turned on. Starting Command Programs From the Monitor Prompt The COMMANDS Monitor command starts a command program. To run the command program that was created in the previous section, enter the commands: LOAD my_cmd.pg ↵ COMMANDS my.cmd.program ↵ NOTE: The EXECUTE command expects programs that contain eV+ program instructions, not Monitor commands. If you use the EXECUTE command to run a program with lines that begin with "MC", the program will abort and you will get a message indicating that you cannot mix program instructions and Monitor commands.
Autostarting a Command Program A Monitor command program can be loaded and started automatically when the controller is turned on, if the following conditions have been met: 1. The autostart option must be enabled in the controller NVRAM configuration settings. 2. A disk file with the name "AUTO.V2" must reside on the default disk. See The Default Disk Path for details on specifying the default disk. 3. The AUTO.V2 disk file must contain a program named "auto". The "auto" program must be a Monitor command program.
(Other programs, and data, can be stored in the AUTO.V2 disk file.) Then, when the controller is turned on, the operating system is loaded, the default disk specification is set, and the following commands are issued automatically: eV+Operating System User's Guide, v2.x, 18320-000 Rev A Page 62