Getting parameter names, Getting recipe names, Downloading recipes – Watlow ANAWIN 2 User Manual
Page 135: Getting download status
AnaWin OLE Server
AnaWin User’s Guide C-3
Getting Parameter Names
GetChannelParameterName(Address as Integer, ParmNum as
Integer, Value as Variant)
GetGlobalParameterName(Address ad Integer, ParmNum as
Integer, Value as Variant)
Used to get the strings displayed in AnaWin for the specified controller
and parameter. Value is filled by the server and will contain a string of
20 characters or less.
Getting Recipe Names
GetRecipeList(rcpList as Variant, Optional GroupNum as Variant)
Use to obtain a list of stored recipes. The server fills rcpList with an
array of strings (each containing 20 or fewer characters). For systems
that use loop grouping, one call must be made to get the list for each
group. GroupNum should be omitted for systems that do not use loop
grouping. If GroupNum is omitted on systems that use loop grouping,
the recipe names for group 0 are returned. If there are no recipes stored
for the specified GroupNum, the return value is AWNoRecipes(8).
Downloading Recipes
LoadRecipe(RecipeName as String, Optional GroupNum as
Variant)
Used to load a recipe to the controller(s). Note that a recipe may span
controllers. As described above, for systems that use loop grouping,
GroupNum should be specified. If GroupNum is omitted on such
systems, group 0 is assumed.
When LoadRecipe is called, it returns immediately. If the request does
not pass validity checks, the appropriate error response is returned and
the recipe is not downloaded. If the request passes the validity checks,
the recipe download attempt is begun. The actual result of the attempted
download can be obtained by calling the RecipeLoadStatus method
described below.
Getting Download Status
RecipeLoadStatus()
Returns the status of the most recent recipe download or
GetChannelDataValues. Possible return values are:
AWDownloadInProgress (9): Download not yet complete.