Main_Recipe" Organization Block - Siemens SIMATIC S7-1200 Manual

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

Advertisement

4 Mode of Operation
4.3 Recipe blocks
For the proper functioning in connection with the SFBs "RecipeImport" and
Note
"RecipeExport", the recipe DB has to consist of a one-dimensional array of a
PLC data type or of a struct and it has to have the "Only store in load memory"
attribute in the block properties.
"UDT_Wall_anchors" PLC data type
The "UDT_Wall_anchors" PLC data type includes the elements of a recipe data
record.
Table 4-4
Name
Data type
productname
String[20]
diameter
USInt
quantity
UInt
piece_weight
Real
tolerance
Real
The elements in the recipe data record can be individually adjusted in the PLC data
type.

"Main_Recipe" organization block

4.3.2
The system instructions and functions are called from the "Main_Recipe" OB:
READ_DBL (recipe data from the relocated recipe DB in the load memory to
the main memory)
WRIT_DBL (write recipe data from the main memory into the relocated recipe
DB in the load memory)
SFB 1003: RecipeExport (exporting relocated recipe data as csv file on the
web server)
SFB 1004: RecipeImport (importing recipe data from uploaded csv file on the
web server into the exported recipe DB in the load memory)
In addition, the teach function to determine the individual weight of a wall anchor is
also executed in the "Main_Recipe" OB.
For this purpose, the total weight of the counted sample is divided by its number.
The thus calculated arithmetic average is saved in the selected recipe data record
as individual weight.
Note
Further information about the system instructions and functions can be found in
the chapter 3.2, as well as in the S7-1200 Programmable controller System
Manual (\3\).
Weighing, Controlling and Logging (Set 6)
Entry ID: 82454336,
V2.0,
Name of the recipe data record
Wall anchor diameter in mm
Pieces
Individual weight (unit depends on the "Quick Start" configuration)
Tolerance (unit depends on the "Quick Start" configuration)
10/2017
Description
21

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Siwarex wp231

Table of Contents