RecipeClose
This function/function block was added in KAS 5.00.
Function Block - Close a recipe object.
RecipeClose unloads a recipe object from the actively running program.
- RecipeClose does not delete the recipe file used to create the recipe object.
- To delete a recipe file, use the FileDelete function block.
- RecipeClose does not save changes made to the recipe object.
- If instances were modified via RecipeStoreInstance, call RecipeSave before to persist the changes to the file system.
Inputs
|
Input |
Data Type See Data Types. |
Range |
Unit |
Default |
Description |
|---|---|---|---|---|---|
|
Execute |
BOOL |
FALSE, TRUE |
N/A |
No default |
On the rising edge, close the specified recipe object. |
|
RecipeID |
UDINT |
No range |
N/A |
No default |
|
Outputs
|
Output |
Data Type See Data Types. |
Range |
Unit |
Description |
|---|---|---|---|---|
|
Done |
BOOL |
FALSE, TRUE |
N/A |
If TRUE, the command completed successfully. |
|
Busy |
BOOL |
FALSE, TRUE |
N/A |
If TRUE, the function block is executing. |
|
Error |
BOOL |
FALSE, TRUE |
N/A |
If TRUE, an error has occurred. |
|
ErrorID |
DINT |
Enumerated |
N/A |
|
FBD Language Example
FFLD Language Example
IL Language Example
Not available.
ST Language Example
Inst_RecipeClose(True, recipeID);
IF Inst_RecipeClose.Error THEN
errorMessage := MC_ErrorDescription(Inst_RecipeClose.ErrorID);
END_IF;
See Also





