Program Instructions That Transfer Recipe Data - Siemens S7-1200 System Manual

Hide thumbs Also See for S7-1200:
Table of Contents
Extended instructions
8.7 Recipes and Data logs
8.7.1.3

Program instructions that transfer recipe data

RecipeExport (Recipe export) instruction
Table 8- 152 RecipeExport instruction
LAD/FBD
A recipe DB must be created before a recipe export is possible. The name of a recipe data
block is used as file name of the new CSV file. If a CSV file with an identical name already
exists, then it is overwritten during the export operation.
You can use the File Browser page (Page 622) of the CPU's built-in Web server to access
the recipe CSV file. The file is put in the recipe folder in the root directory of CPU load
memory.
Table 8- 153 Data types for the parameters
Parameter and type
REQ
IN
RECIPE_DB
In/Out
DONE
OUT
BUSY
OUT
374
SCL
"RecipeExport_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 export on a positive
edge.
Variant
Pointer to the recipe data block. Refer to the "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
RecipeExport execution
0: No operation in progress
1: Operation on progress
Description
The "RecipeExport" instruction exports all
recipe records from a recipe data block to
the CSV file format. The CSV file contains
product names, component names, and start
values. The CSV file is stored in internal load
memory or external load memory, if an
optional external "program" memory card is
installed.
The export operation is triggered by the
"REQ" parameter. The BUSY parameter is
set to "1" during export processing. After the
execution of RecipeExport 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