Remarks | Properties | Methods | DynProperties | Samples |
ED
|
avaliable
|
RT
|
avaliable
|
Recipes serve for the assembling of input lists for setpoint values and commands which in online operation are executed with a function call.
Count | Name | Parent |
Create | Delete | DynPropertiesEnum[GET] |
DynProperties[GET] | DynProperties[PUT] | ExecuteValues |
Export | ExportXML | ImportXML |
Item | ReadValues | Save |
Name | Type | Description |
---|---|---|
PasswordLevel | Long |
Authorization group Needed authorization group for editing the
recipe in the Runtime. Read more in the online manual
|
RecipeName | String |
Name Unique name of the recipe. Read more in the online manual
|
SyncWrite | Boolean |
Write synchronously Active:
Executing a function with this recipe is not finished, before a
positive confirmation of the writing action is received or the
defined timeout is over. Read more in the online manual
|
SyncWriteTimeout | Long |
Timeout [ms] If "Write synchronous" is activated, here the
timeout can be defined. Read more in the online manual
|
Sub zenOn_Recipe(ByRef zRecipes As Recipes) 'Declarations Dim zRecipe As recipe Dim zVariable As Variable Dim i As Integer 'Initialization of zRecipe with the first element in the "zRecipes" object Set zRecipe = zRecipes.Item(0) 'Initialization of zVariable with the first element in the "Variables" object Set zVariable = thisProject.Variables.Item(0) 'Create new "RecipeValue" object 'Assign zVariable with a default value of 50 zRecipe.Create zVariable.PvID, 50 'For every "RecipeValue" object in zRecipe,... For i = 0 To zRecipe.Count - 1 '... output the name Debug.Print "Name: " & zRecipe.Item(i).ItemVariable.Name 'and value Debug.Print "Value: " & zRecipe.Item(i).Value Next i 'Delete the former created "RecipeValue" object zRecipe.Delete (zVariable.PvID) End Sub