Vai al contenuto

Recipe

This widget allows to manage target recipes.The following functions are supported:Save: writes a new recipe on target (it doesn’t allow write on)Load: loads the selected recipeDelete: deletes the selected recipeCopy: copy a recipe from local disk to a USB deviceThe widget shows two panels with recipe list available on target disk, chosen from the selected recipe type (Top right ComboBox).The second panel (to the right) is not visibile if a USB device is not present.The following properties are available:RecipeNames: recipe list names, took from variables grid (“recipe” column). List recipe names on multiple text line, one recipe per line (manually entering the correct name present in variable’s group).RecipeDescriptions: recipe descriptions, related to the previous property. List recipe descriptions on multiple text line, one description per line.PaneSize: recipe list panel horizontal size (the panel showing the recipes on disk). This property allows to customize the panel depending on different screen resolution.Btn_save, btn_load, btn_delete, btn_copy: they allow to hide one of the buttonsPanels: it allows to hide the central area, with recipes list on diskPanel_right: it allows to hide the removable disk panelRecipe_selection: it allow to hide the recipe name setStatus: it hides the status lineString_ID: dictionary string for translated strings. The strings must be separated with character “;”. The default string is: Save;Load;Dolete;Copy;Name:;Type:;Local disk:;Removable disk:;Status:remote: remote system name to connect. Leave the field blank to connect to the local system.ctrlSave: control variable that lets you command the recipe saving by code. To save, you have to change the value of the variable (up or down). The filename is contained in the variable @@ RECIPE_NAME.ctrlSLoad: control variable that lets you command the recipe loading by code. To load, you have to change the value of the variable (up or down). The filename is contained in the variable @@ RECIPE_NAME.ctrlDelete: control variable that lets you command the selected recipe deleting. To delete, you have to change the value of the variable (up or down). The filename is contained in the variable @@ RECIPE_NAMEctrlCopy: control variable that lets you command the selected recipe copying. To copy, you have to change the value of the variable (up or down). The filename is contained in the variable @@ RECIPE_NAMEindex: allows to use the widget more than one time inside the program (e.g.: on two different pages). In this case the widgets must have a different, unique index (e.g.: “1” for the first widget, “2” for the second and so on).alwaysOverwrite: allows to activate the Recipe write overwriting an already existing file with the same namewaitField: if set to false, manages data storage while ignoring any Modbus dialogue.When some component parts are hidden, it’s possible to control some functions of it by the following system variables:@@RECIPE_NAME: recipe name@@RECIPE_TYPE: recipe type (numeric value)@@RECIPE_STATUS: status message numeric code. These codes are available:0: empty message1: “Waiting field manager…”,2: “Waiting field data…”,3: “Reading recipe…”,4: “Writing recipe…”,5: “Reading done.”,6: “Write done.”,7: “Recipe copy done.”,8: “Delete done.”,9: “Please specify a recipe name”,10: “Please select a recipe to load”,11: “Please select a recipe to delete”,12: “Please select a recipe to copy”,13: “Directory doesn’t exist”,14: “Recipe exists. Cannot overwrite”,15: “Destination recipe already exists”,Please note: these control variables names are created using the property “index” of widget Recipe. For example, with “index=1”, the variables will become “@@RECIPE_NAME1”, “@@RECIPE_TYPE1”, etc.Furthermore, it’s available the event “onDataChanged”, recalled at every operation step. Here inside, the variable @@VALUE contains the active step value, with same meaning of @@RECIPE_STATUS variable (described above). For example, @@VALUE=6 inside onDataChanged event means “recipe write done”.