Recipe in Advanced Ladder 
See also: Project Toolbox for Advanced Ladder
Topic Menu
See also: Recipe Editor Configuration for Canvas
See also: Recipe Editor Functions Object for Canvas
Home > View > Project Toolbox > Recipe Operations
Load Recipe 
The Load recipe ladder block loads set of OCS registers from the recipe data present on Removable Media.
By Product Name
Note: Before configuring ladder blocks configure Recipe through Recipe Editor.
Recipe Name - Select the desired Recipe from the available recipes names in drop-down configured through Recipe Editor from Program > Recipe.
Product Name - Select the desired product name from the selected recipe to be loaded. The configured products are shown in the drop-down.
-
By Product Name - Selecting this option allows the user to select the product using name string in the selected recipe which internally searches the product name string in the recipe file stored in the Removable Media.
-
By Product Index - Selecting this option allows the user to select the product using its index in the selected recipe which internally uses the product index for indexing the products in the recipe file Removable Media.
If By Product Name is selected, the product name string will be used for loading the product.
If By Product Index is selected, product index will be used for loading the product.
Note: The Product Name will either hold the product name string or its index depending upon the selection of radio button By Product Name and By Product Index.
By Product Index
This option can be used to give product name/index through configurable register. If By Product Name is selected above, the register assigned here should contain the Null terminated product name string to be loaded. If ‘By Product Index’ is selected above, the register should contain the index of the product to be loaded.
Note: The Product Name by register would use 32-byte length of the product name or the max length used in the recipe.
Note: The Product Index Register will either load the product name string or its index depending upon the selection of radio button By Product Name/By Product Index. Status Registers for Recipes Operation - Indicates the status of Load Recipe function block.
Return to the Top: Recipe in Advanced Ladder
Save Recipe 
The Save recipe ladder block saves the contents of set of OCS registers to the selected product of the recipe in Removable Media. Once the ladder block is placed in logic editor, double-click on the block to configure the block parameters.
By Product Name
Recipe Name - Select the desired Recipe from the available recipes names in drop-down configured through Recipe Editor from Program > Recipe.
Product Name - Select the desired product name from the selected recipe to be saved. The configured products are shown in the drop-down.
-
By Product Name - Selecting this option allows the user to select the product using name string in the selected recipe which internally searches the product name string in the recipe file stored in the Removable Media.
-
By Product Index - Selecting this option allows the user to select the product using its index in the selected recipe which internally uses the product index for indexing the products in the recipe file Removable Media.
If By Product Name is selected, the product name string will be used for loading the product.
If By Product Index is selected, product index will be used for loading the product.
Note: The Product Name will either hold the product name string or its index depending upon the selection of radio button By Product Name and By Product Index.
Product Index Register
This option can be used to give product name/index through configurable register. If By Product Name is selected above, the register assigned here should contain the Null terminated product name string to be saved. If ‘By Product Index’ is selected above, the register should contain the index of the product to be saved.
Note: The Product Name by register would use 32-byte length of the product name or the max length used in the recipe.
Return to the Top: Recipe in Advanced Ladder
Status Registers for Recipes Operation
Status Name |
Value |
Description |
RS_EOF |
65535 |
Attempt to read past EOF |
RS_BLOCK_ACTIVE |
65534 |
This CF function block active |
RS_BLOCK_PENDING |
65533 |
Another CF function block active |
RS_BLOCK_INACTIVE |
65532 |
This CF function block inactive |
RS_BLOCK_BAD |
65531 |
This CF function block illegal (Same as CF_STATERR_INVALID) |
RS_OK |
1 |
Everything is OK... |
RS_NO_CARD |
2 |
No card in the slot |
RS_BAD_CARD |
3 |
Invalid Card |
RS_CARD_CHANGED |
4 |
Initializing the card |
RS_CRITICAL |
5 |
Error Unknown |
RS_SUSPENDED |
6 |
Operation Suspended |
RS_SUSPENDING |
7 |
CF suspending |
RS_NO_PRD |
8 |
Product not found in File |
RS_DATA_ERROR |
10 |
Data Error in CF Card File |
RS_CONFIG_ERROR |
11 |
Config Error In Application |
RS_INDEX_ERROR |
12 |
Product Index Error on Reg |
RS_BAD_FORMAT |
13 |
Card present but unknown format. |
RS_NO_FILE |
66 |
Specified file doesn't exist |
RS_BAD_FILE |
73 |
Bad file descriptor |
RS_OPEN |
77 |
Attempt to del/ren open file |
RS_EXIST |
81 |
Specified file already exists |
RS_INVALID |
86 |
Invalid argument |
RS_NUM_FILES |
88* |
Too many open files |
RS_WR_FAIL |
92 |
Attempt to write failed. |
RS_SHARE |
94* |
Sharing violation. |
RS_NO_DISK |
95* |
No disk present |
RS_BAD_DIR |
96 |
Directory structure corrupt |
RS_ABORT |
97* |
Task message error or abort |
* Status Codes never should occur, being duplicates of higher priority status codes.
Return to the Top: Recipe in Advanced Ladder