Extended instructions
9.9 Recipes and Data logs
S7-1200 Programmable controller
504 System Manual, V4.2, 09/2016, A5E02486680-AK
RecipeImport (Recipe import)
Table 9- 197 RecipeImport instruction
req:=_bool_in_,
done=>_bool_out_,
busy=>_bool_out_,
error=>_bool_out_,
status=>_word_out_,
Reci-
pe_DB:=_variant_inout_);
The "RecipeImport" instruction im-
ports 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 comple-
tion of the operation is indicated with
"1" at the DONE parameter. If an
error occurs during execution, then
parameters ERROR and STATUS
Table 9- 198 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 499)" for details. The DB name characters must follow the Win-
dows 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 com-
pleted 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 ter-
minated 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)