Siemens S7-1200 System Manual page 371

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

Advertisement

Creating a recipe data block
Note
Rules for recipe data blocks
• The recipe DB must contain a single dimension array of either a PLC data type or a
• In the example, the data type of the component ingredients are all the UINT data type.
First, create a new PLC data type
Add a new PLC data type whose name is the recipe type. In the following image,
"Beer_Recipe" is the new complex PLC data type that stores a sequence of simple data
types. The "Beer_Recipe" PLC data type is a data template that is reused in each recipe DB
record and also in the active recipe DB. Enter the component names and data types that are
common to all the example recipes. The individual component values are added later in the
recipe DB.
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
struct. The recipe example shows how to create a recipe DB with a PLC data type.
The component data types may also be a mix of any data type except for structs. In a
recipe DB array element, a struct in a PLC data type or a struct in a struct is not allowed.
Extended instructions
8.7 Recipes and Data logs
371

Advertisement

Table of Contents
loading

Table of Contents