Extended instructions
8.7 Recipes and Data logs
S7-1200 Programmable controller
376 System Manual, 03/2014, A5E02486680-AG
RecipeImport (Recipe import) instruction
Table 8- 155 RecipeImport instruction
req:=_bool_in_,
done=>_bool_out_,
busy=>_bool_out_,
error=>_bool_out_,
status=>_word_out_,
Recipe_DB:=_variant_inout_);
The "RecipeImport" instruction
imports recipe data from a CSV file,
in CPU load memory, to a recipe
data block referenced by the
RECIPE_DB parameter. Start values
in the recipe data block are
overwritten by the import process.
The import operation is triggered by
the "REQ" parameter. The BUSY
parameter is set to "1" during import
processing. After the execution of
RecipeImport stops, BUSY is reset
to "0" and the completion of the
operation is indicated with "1" at the
DONE parameter. If an error occurs
during execution, then parameters
ERROR and STATUS indicate the
Table 8- 156 Data types for the parameters
Control parameter REQUEST: Activates the import on a positive edge.
RECIPE_DB In/Out Variant Pointer to the recipe data block. Refer to "Recipe DB example
(Page 370)" for details. The DB name characters must follow the
Windows file system naming restrictions. Characters \ / : * ? " < > | and
the space character are not allowed.
DONE OUT Bool The DONE bit is TRUE for one scan, after the last request was
completed with no error. (Default value: False)
BUSY OUT Bool
• 0 - No operation in progress
• 1 - Operation on progress
ERROR OUT Bool The ERROR bit is TRUE for one scan, after the last request was
terminated with an error. The error code value at the STATUS
parameter is valid only during the single scan where ERROR = TRUE.
Execution condition code (Default value: 0)