The next step is to use the OPCServer class by declaring a variable of the class and calling its methods. In this application, you will define a global variable, OPCServer of the type OPCServer. You need two groups for this application. The first one holds items for the target ingredient and target amount that need to be added to this recipe. It also holds the actual ingredient and amount and a Done flag to send back to the DeltaV system. The second group contains the step of the MIXTANKS SFC (Sequential Function Chart). The step will pause at "DRY_ADD" waiting for the user to manually add the ingredient. This second group needs to request OnDataChange notifications. The OnDataChange procedure in the application can display the current step and react when the step is "DRY_ADD".
When an application needs to manipulate a group or item, it makes the request with a handle. This handle is returned from the server when the group or item is first created. In addition to adding global variables for each of the values needed, it is also necessary to have a variable to hold the server handles for those variables.