Loading Recipe Values from the Controller
You can apply recipe values from the controller to recipe definitions in the project, even if these definitions have been modified in the project.
As a prerequisite, the option Recipe Management in the PLC has to be activated in the General tab of the Recipe Manager editor and File Path has to be set to 'Recipes\'.
Loading Recipe Values from the Controller
Step |
Action |
Comment |
---|---|---|
1 |
Create a recipe definition RecDef1 in the project, containing the variables PLC_PRG.ivar and PLC_PRG.bvar. |
– |
2 |
Insert a recipe R1: Value for PLC_PRG.ivar: 33 Value for PLC_PRG.bvar: TRUE |
– |
3 |
Log in to the controller and download the application. |
Result: The recipe file R1.RecDef1.txtrecipe is saved to the directory Recipes of the controller. |
4 |
Log out from controller. |
– |
5 |
Add another variable PLC_PRG.dwvar to the recipe definition in the project. |
– |
6 |
Edit the recipe definition file R1.RecDef1.txtrecipe on the controller by changing the value for PLC_PRG:ivar from 33 to 34. |
– |
7 |
Add another recipe on the controller by copying the R1.RecDef1.txtrecipe file and renaming it to R2.RecDef1.txtrecipe. |
– |
8 |
Edit the R2.RecDef1.txtrecipe file and modify the recipe values: PLC_PRG:ivar: 1 PLC_PRG.bvar: FALSE |
Result: On the controller, there are now two recipes, R1 and R2. In the project, there is only R1 available. This recipe R1 contains other values than R1 on the controller. |
9 |
Log in to the controller. |
Result: A dialog box opens. |
10 |
From the dialog box, select the option Login with online change or Login with download, and click OK |
– |
11 |
While the recipe definition editor view is open, execute the command Upload recipes from device from the contextual menu of the Recipe definition editor view. |
Result: A dialog box indicates that the recipe for PLC_PRG.dwvar loaded from the controller cannot provide a value from the controller. |
12 |
Confirm the dialog box to continue. |
Result: The value of PLC:_PRG.ivar in recipe R1 of the recipe definition in the project changes to 34. PLC_PRG.dwvar remains in the recipe definition. |