Recipe Example Program - Siemens S7-1200 System Manual

Hide thumbs Also See for S7-1200:
Table of Contents

Advertisement

Extended instructions
8.7 Recipes and Data logs
8.7.1.4

Recipe example program

Prerequisites for the recipe example program
● A recipe DB that stores all recipe records. The recipe DB is stored in load memory.
● An active recipe DB that stores a copy of one recipe in work memory.
Refer to the "Recipe DB example (Page 370)" for details about the recipe DB and the
corresponding CSV file.
Create the active recipe DB
On the "Add new block" window:
● Select the "Data block" button on the "Add new block" window
● On the "Type" drop-down menu, select the "Beer_recipe" PLC data type that you created
previously.
Start values are not required. The DB data values are set when one recipe is transferred
from the recipe DB to the active recipe DB. In the example, the active recipe DB is the
destination for READ_DBL data and provides source data for WRITE_DBL. The following
image shows the Active_Recipe DB.
Instance DBs
The instance DBs used by instructions RecipeExport ("RecipeExport_DB") and RecipeImport
("RecipeImport_DB") are created automatically when you place the instructions in your
program. The instance DBs are used to control instruction execution and are not referenced
in the program logic.
378
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG

Advertisement

Table of Contents
loading

Table of Contents