Accessing the Process Database
To access the Process database, select:
The following screen is displayed:
Figure 3-4. Process Database Menu PageThe Process Section
Enter a process description that is displayed during the selection process. Suppresses the display of a process without removing it from the database.
The On Select Section
This section of the menu page is dedicated to functions that are performed when you select this process from the Master Control Panel.
3 Unloads all current modules before any attempt is made to load the process module or any other modules that will be executed by a control sequence. This is used when an application uses multiple modules that may conflict with one another. For example, if an application uses two AIM modules that contain ObjectFinder models with identical names, the first module must be unloaded before the second module can be loaded in order to avoid a conflict. Through the use of this option, this action is completed automatically. 4 Executes the optional sequence when this process record is selected. If this option is enabled, AIM will first examine the In Module field and assign this module to the menu task. AIM will then execute the sequence that appears in the Sequence field. 5 Contains the name of the module that is assigned to the primary menu driver while the associated control sequence is executed. (The orignial module will be restored when the sequence is completed.) The module must contain the control sequences that are used during the selection process. NOTE: This field must be completed if Run Sequence is selected.
6 Contains the name of the sequence that is executed by the primary menu driver during the selection of this process record. The sequence must be a control sequence when accessed from the operator panel, but it can be a noncontrol sequence when it is accessed using the Enable Remote feature. This task will normally use the SELECT_TASK statement to configure AIM application tasks. The On Start/Stop Section
This section is dedicated to functions that are performed when a process record is executed by clicking on the Start/Stop buttons in the Master Control Panel.
The Remote Lookup Section
PROCESS Statement
This statement provides a way to select and execute a process remotely from a runtime AIM task.
PROCESS MATCH CODE --string_var-- {SELECT --yes/no--} {START --yes/no--} {STOP --yes/no--} {STATUS--variable--}double-click --string var-- to enter an AIM string variable that is used for the compare operation during the search through the Process database. If SELECT is set to"yes", the "select" portion of the process is executed.
If START is set to "yes" and a match is found, the "start" portion of the process will be executed.
If STOP is set to "yes" and a match is found, the "stop" portion of the process will be executed.
STATUS returns the status code of the operations.
The following is an example sequence in which the PROCESS statement is used:
1.; Example io_control sequence that issues automatic process 2.; selection and execution 3.; 4. WHILE -1 5.: 6. WAIT_FOR 1001 7. WAIT_FOR -1001 8.; Based on sensor input do the following 9. IF @1002 10. PROCESS MATCH CODE "lc_1_xx" STOP yes 11. PROCESS MATCH CODE "1c_2_xx" SELECT yes START yes 12. END 13.; 14. IF @1003 15. PROCESS MATCH CODE "lc_2_xx" STOP yes 16. PROCESS MATCH CODE "1c_1_xx" SELECT yes START yes 17. END 18.; 19. END END