Hide thumbs Also See for S7-1200:
Table of Contents
Extended instructions
8.7 Recipes and Data logs
RecipeImport (Recipe import) instruction
Table 8- 155 RecipeImport instruction
LAD/FBD
Table 8- 156 Data types for the parameters
Parameter and type
REQ
IN
RECIPE_DB
In/Out
DONE
OUT
BUSY
OUT
ERROR
OUT
STATUS
OUT
376
SCL
"RecipeImport_DB"(
req:=_bool_in_,
done=>_bool_out_,
busy=>_bool_out_,
error=>_bool_out_,
status=>_word_out_,
Recipe_DB:=_variant_inout_);
Data type
Description
Bool
Control parameter REQUEST: Activates the import on a positive edge.
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.
Bool
The DONE bit is TRUE for one scan, after the last request was
completed with no error. (Default value: False)
Bool
0 - No operation in progress
1 - Operation on progress
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.
Word
Execution condition code (Default value: 0)
Description
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
result.
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
Table of Contents
loading

Table of Contents