RecipeApplyInstance
This function/function block was added in KAS 5.00.
Function Block - Copy values to from a recipe instance to the program data.
- Validation occurs before writing data to the program data.
- This avoids partial writes when an error occurs.
Inputs
|
Input |
Data Type See Data Types. |
Range |
Unit |
Default |
Description |
|---|---|---|---|---|---|
|
Execute |
BOOL |
FALSE, TRUE |
N/A |
No default |
On the rising edge, copies the values of the specified instance into the program data. |
|
RecipeID |
UDINT |
No range |
N/A |
No default |
|
|
Name |
STRING |
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_RecipeApplyInstance(True, recipeID, 'Widgets'); IF Inst_RecipeApplyInstance.Error THEN errorMessage := MC_ErrorDescription(Inst_RecipeApplyInstance.ErrorID); END_IF;
See Also





