omron — Creating Command Programs

Introduction Introduction Command programs are special programs that consist of a series of Monitor commands. Command programs automate system startup and other frequently executed Monitor command sequences. Command programs can be started from the eV+ monitor prompt or from the manual control pendant. With the auto-start feature, a command program can be started automatically when the Omron Adept system is turned on. Command programs are most commonly used in V+ based applications, as described in the following cases: l At system startup, the Omron Adept controller autostart switch will launch the command program "auto" located in D:\AUTO.V2.

For details, see Autostarting a Command Program on page 62. l To save a V+ module and application variables. Often, a command program will define the programs in a module and then perform a backup/save operation. When the ACE software is used, this is not really needed, because the V+ Module object saves the programs in the workspace. The same can be said for V+ application variables contained in the V+ Global Variable Collection object. It is all saved in the workspace by simply clicking the Save button. For more details on the V+Module object and the V+ Global Variable Collection object, see the ACE User's Guide .

Creating Command Programs Command programs can be created using the ACE system. Either right-click in the Workspace Explorer pane, and select: New > Programs > V+ Module or select: Controller Development Tools > Program Manager > Create New Program a V+ program editor opens, which allows you to create and edit your V+ programs. For more details on using the program editor, see the ACE User's Guide . Command Program Contents Command programs can contain all the eV+ Monitor commands except the DONE, TEACH, and ZERO commands, and editor commands. Several commands require subsequent input from the user.

For example, CALIBRATE and DELETEP normally require confirmation, and POINT and HERE normally require responses to the query "Change?". When commands such as these are processed in a command program, eV+Operating System User's Guide, v2.x, 18320-000 Rev A Page 61