Extended instructions
9.9 Recipes and Data logs
S7-1200 Programmable controller
498 System Manual, V4.2, 09/2016, A5E02486680-AK
When you select the "Allow runtime modification of the cycle time" check box, the TIA Portal
automatically selects a new address for the output address. The new output address cannot
be the same as the default address for that pulse generator. The TIA Portal uses the next
available block of six consecutive bytes. If the search does not find an available block of Q
memory before it reaches the end of Q memory, the search starts over at address "0" of Q
memory and continues searching for an available block.
A pulse generator configured for PTO does not use the Q-word address.
Recipes and Data logs
9.9.1
Recipe overview
Recipe data storage
● A recipe data block that you create in your project must be stored in CPU
memory.
Internal CPU memory or an external memory "Program" card can be used.
● Another DB that you must create is the active recipe data block. This DB must be in
memory, where one active recipe record is read or written with your program logic.
The recipe DB uses an array of product recipe records. Each element of the recipe array
represents a different recipe flavor that is based on a common set of components.
● You create a PLC data type or struct that defines all the components in one recipe record.
This data type template is reused for all recipe records. Product recipes vary according to
the start values that are assigned to the recipe components.
● One of the recipes can be transferred at any time from the recipe DB (all recipes in load
memory) to the active recipe DB (one recipe in work memory) using the READ_DBL
instruction. After a recipe record is moved to work memory, then your program logic can
read the component values and begin a production run. This transfer minimizes the
amount of CPU work memory that is required for recipe data.
● If the active recipe component values are adjusted by an HMI device during a production
run, you can write the modified values back to the recipe DB, using the WRIT_DBL
instruction.
Recipe export (from recipe DB to CSV file)
The complete set of recipe records can be generated as a CSV file using the RecipeExport
instruction. Unused recipe records are also exported.