Defining the Completion Status Indicator

When you download or upload a recipe, the Recipe Package can monitor the recipe's progress and store this information in any analog block you specify. This block acts as a completion status indicator. The analog block you select must have an EGU range from zero to at least four and must be in Manual mode. To ensure future compatibility, it is recommended that you set the high EGU value to 100. Do not specify a negative number for the high or low EGU value. Negative numbers will cause the completion status indicator to display inaccurate information.

To define the completion status indicator, enter the tagname or tag group symbol of an analog block in the Completion Status group box. The Recipe Builder monitors the recipe's progress when you specify the block to use as the completion status indicator in the Completion Status group box.

By default, the F_CV field of the block is assigned to the tagname if you do not specify a field name. However, you can specify any F_ field for the tagname (such as F_02 for an Analog Register block).

Completing the group box is optional. When you leave it blank, the Recipe Package does not monitor the completion status of an upload or download.

To specify the completion status indicator:

  1. On the Options menu, click Advanced Options. The Advanced Options dialog box appears.
  2. In the Completion Status group box, enter the tagname of the block that acts as the completion status indicator for the recipe, or select the browse (...) button and select the tagname from the dialog box that appears.

    The tagname referenced is written to during an upload or download. The following table lists the possible values for the completion status indicator.

    Completion Status Values

    When the value is...

    The download or upload...

    And the Recipe Builder has...

    0

    Is in progress.

    Started downloading or uploading the recipe and has not encountered any errors.

    1

    Aborted.

    Been unable to read or write the recipe values to the database. An active interlock may have caused this error.

    2

    Completed with errors.

    Attempted to read or write the recipe values to the database. However, a read or write error occurred.

    3

    Completed with no errors.

    Successfully read or written all recipe values to the database. If any recipe items have verification enabled, then the Recipe Builder has also verified these items.

    4

    Completed with verification errors. (download only)

    Successfully written all recipe values to the database and completed the verification process. However, one or more blocks could not be verified because the time-out interval expired.

Using the Completion Status Indicator

Once you define this indicator, you can use it to post messages on an operator display using Visual Basic for Applications. For example, when downloading a recipe from an operator display you could create a button labeled "Recipe Status." By selecting this button, operators could monitor the progress of a downloaded recipe by examining the value of the completion status indicator. The script for this button would include the following:

DIM Status As Double
Status = Fix32.FERMENT1.RCPSTAT.F_CV
Select Case Status
Case 0
   MsgBox "In progress"
Case 1
   MsgBox "Aborted. Verify interlock is inactive"
Case 2
MsgBox "Read/write errors occurred. Restart node."
Case 3
   MsgBox "Download/Upload Successful"
Case 4
   MsgBox "Verification errors occurred."
End Select

How Do I...