show the entry list
S7-1200 CPU 12xx -- Setting up and parameterizing hardware -- Initializing and parameterizing modules
Which settings do you have to make in the TIA Portal to read out messages and status information over the CPU's web server and display them in the web browser?
What is the meaning of the system constants in STEP 7 (TIA Portal) with S7-1200/1500?
How can the CPU analog inputs of the SIMATIC S7-1200 also measure currents of 0-20mA?
How do you program the "GET" and "PUT" instructions in the user program of the SIMATIC S7-1200 CPU in order to transfer more than 160 bytes of data?
Why must you never remove a memory card when the S7-300/S7-400/S7-1200 CPU is in operation (RUN)?
How in STEP 7 (TIA Portal) do you access the unstructured data types bit-by-bit, byte-by-byte or word-by-word and symbolically?
How does startup work in an S7-1200?
What is the connection between subnet masks and IP addresses with regard to subnetting and supernetting (Classless Inter Domain Routing CIDR)?
How can you prevent data loss of runtime-generated parameters when updating your S7-1200 PLC program?
How can you share runtime-generated parameters between several S7-1200 PLCs with a KTP Basic Panel?
How can you change the IP address of an S7-1200 without using STEP 7 Basic?
How can you delete the IP address and reset your S7-1200 to factory settings using the SIMATIC MC memory card (2MB or 24MB)?
How can you download to a network of several S7-1200 PLCs with the same IP address?
How can you reset the IP address of your S7-1200 PLC using STEP 7 Basic software?
Basic Panels -- Operation and maintenance -- Saving data
How can you share runtime-generated parameters between several S7-1200 PLCs with a KTP Basic Panel?
How can you share runtime-generated parameters between several S7-1200 PLCs with a KTP Basic Panel?
Part number:

Description
Your application consists of one master project which you want to run simultaneously on several PLCs. While commissioning the first PLC, miscellaneous specific parameters will be generated which shall be used for all other PLCs. Archive these parameters in your KTP Basic Panel, and retrieve them on your other PLCs, instead of commissioning every single PLC. The KTP Basic Panel allows for the archiving and retrieving of these parameters, while being connected to an S7-1200 PLC, using its retentive recipe function.

The recipe function of the KTP Basic Panel is used for this task. To use this "Parameter sharing" feature, follow these steps:

  1. Integrate the recipe function into your HMI program, and link the parameter tags you want to archive / retrieve.
  2. Download your master project to all of your PLCs.
  3. Assign unique IP addresses to each of your PLCs.Youcan use either STEP 7 Basic or the "IP TOOL" which you will find in entry ID 41737436.
  4. Download your HMI program to your KTP Basic Panel.
  5. Connect your KTP Basic Panel to your first S7-1200 PLC.
  6. In the configuration of the KTP Basic Panel, adjust the IP address (for example, 192.168.0.1) for communications with your first S7-1200 PLC.
  7. Commission your first PLC, and generate specific runtime parameters.
  8. Archive the commissioned parameters in your KTP Basic Panel.
  9. Connect your KTP Basic Panel to your next S7-1200 PLC.
  10. In the configuration of the KTP Basic Panel, adjust the IP address (for example, 192.168.0.2) for communications with your next S7-1200 PLC.
  11. Retrieve your parameters from your KTP Basic Panel.
  12. Repeat steps 9 through 11 until all your S7-1200 PLCs are updated.

To integrate this feature into your program, follow the steps described in the "Integrating the recipe function" section of this article.

An overview on the use of this feature can be found in the "Applying the parameter sharing feature" section of this article.

 
Fig. 01

Integrating the recipe function
 
No. Integrating the recipe function
1. Prepare the projects
Follow these steps:
  • Open your own project with STEP 7 Basic.
  • Download, unzip and open the attached STEP 7 Basic project " DataStore".

This project is designed to match the following devices:

  • S7-1200 PLC with CPU 1214 (6ES7 214-1BE30-0XB0)
  • KTP600PN Basic Panel (6AV6 647-0AD11-3AX0)
2. Copy the HMI device and the data blocks into your project
Follow these steps:
  • Drag and Drop the "HMI_DataStore" HMI project from the "DataStore" project to your own project.
  • Drag and Drop the "DataStore" global data block from the "DataStore" project to your own project.
  • Drag and Drop the "RuntimeParameters" global data block from the "DataStore" project to your own project.
  • Compile the data blocks of "PLC_1".

The "RuntimeParameters" data block holds the parameter tags for the example project. It is used to demonstrate this feature. In your own project any data tag capable of holding numerals can be used.


Fig. 02

Important

  • Compile the data blocks of "PLC_1".
  • Make sure the used data tags are "rententive". Otherwise the restored data will not survive a PLC STOP or a power-cycle dondition.
3. Delete HMI tags
Follow these steps:
  • Browse the "Project tree" for the "HMI tags" editor.
  • Select all "HMI_connection_x" entries, and click "Delete" in the context menu. 


Fig. 03

Note
Do not delete the "s_ipAddress" internal tag.

4. Configure HMI Connection
Follow these steps:
  • Browse for "Device&Networks" and click the "Connections" button. Select the "Connections" tab, and delete the HMI connection of the "HMI_DataStore" panel by clicking "Delete" in the context menu. Acknowledge the following dialog window.


    Fig. 04
     
  •  Connect the Ethernet ports of the  "HMI_DataStore" panel and the "PLC_1" S7-1200 PLC. A new HMI connection is established.


    Fig. 05
 5. Configure the HMI area pointer
Follow these steps:
  • In the context menu of the "HMI_connection_2" select the "Go to Connections editor.." item (see Fig. 05).
  • In the "Area pointers" tab, check the Data record area pointer active, and assign the "aw_dataRecord"  tag from the "DataStore" data block.
  • Check the "Job mailbox" area pointer, and assign the "aw_jobMailbox" tag from the "DataStore" data block.
     

    Fig 06
6. Add the tags to recipe function
Follow these steps:
  • Browse the "Project tree" for the "Recipes" item of the "HMI_dataStore" HMI device.
  • In the recipe view, select "Recipe 1"
  • Change to the "Elements" tab, and assign the tags you want to share with your other S7-1200 PLCs to the elements of this recipe.

Note
Any invalid tag needs to be deleted or to reassigned. Invalid tags are highlighted in red.


Fig. 07

Note
You can configure the tags stored in the HMI by adding new elements to the "Elements" view of the "Recipe_data_record_1".

  • There are up to 5 recipes available for you to configure 5 different sets of tags.
  • One recipe holds up to 20 data records with 20 elements each. Therefore you can store 20 different setups in one recipe.
7. Configure the screen tags
Follow these steps:
  • Browse the "Project tree" for the "Screens" folder of the "HMI_DataStore" device, and open the "root screen".
    Assign the "aw_dataRecord[3]" word tag to the status output field.

     
    Fig. 08
     
  • Assign the "HMI_connection_2" connection to the "Release" event of the Change IP button.


    Fig. 09
Table 01

Applying the "parameter sharing" feature
The following overview is based on the attached "DataStore" project.
 
No. Applying the "parameter sharing" feature
1. Download your program to all of your PLCs
Follow these steps:
  • Select the "PLC_DataStore" S7-1200 PLC. 
  • Click the "Download to device" button and acknowledge the following dialog windows.


    Fig. 10
2. Assign unique IP addresses
Assign unique IP addresses to all of your S7-1200 PLCs. You can use either STEP 7 Basic or the IP TOOL. Please find the IP TOOL in entry ID 41737436.
3. Download your HMI program to your HMI device
Follow these steps:
  • Select the "HMI_DataStore" HMI device.
  • Click the "Download to device" button. See Fig. 10 for details.
4. Change IP address
To address an S7-1200 PLC with your KTP Basic Panel, you need to use the IP address of the S7-1200 PLC in your HMI device:
  • Connect your KTP Basic Panel to your S7-1200 PLC.
  • On your KTP Basic Panel, enter  the IP address of the S7-1200 PLC (for example, "192.168.0.1") in the input field.
  • Click the "Change IP" button.


    Fig. 11
 5. Store parameters in HMI
Follow these steps:
  • On your HMI display, select "Recipe_1", and click the "OPEN" button. The "Recipe_data_record_1" opens.
  • Press the "PLC>>HMI" button to read the parameters from the S7-1200 PLC. The "Save as" window opens.


    Fig. 12
     
  • To save the data record number "1", enter the number "1" in the "Number" input field, and click the "OK" button.


    Fig. 13
     
  • Click the "Open" button to see the parameter values of this data record.


    Fig. 14

Your parameters are now stored in your panel.

Note
It is also possible to archive / retrieve parameter elements.

6. Restore data in PLC
  • On your HMI display, select "Recipe_1", and click the "OPEN" button. The "Recipe_data_record_1" opens. See Fig. 11/12 for details.
  • Press the "HMI>>PLC" button to write the parameters to your S7-1200 PLC.
Table 02

Note
You can also use the "Runtime" feature of STEP 7 Basic instead of a KTP Basic Panel.

Requirements

  • S7-1200 PLC
  • Ethernet cable
  • PG / PC
  • STEP 7 Basic V10.5
  • KTP600PN basic panel

   S71200_DataStore.zip ( 3137 KB )

 Entry ID:43997871   Date:2010-07-26 
I regard this article....as helpfulas not helpful                                 
mySupport
My Documentation Manager 
Newsletter 
CAx-Download-Manager 
Support Request
To this entry
Print
Create PDF 
Send to a friend
QuickLinks
Compatibility tool 
Topics
Help
Online Help
Guided Tour