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/S7-1500 CPU is in operation (RUN)? 
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? 

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?Go to beginning
Part number:

Description
The CPUs with integrated PROFINET interface have a web server. The web server gives you the option of monitoring your CPU via the internet or via the internal company intranet.
This enables evaluation and diagnostics over great distances.

Messages and status data are displayed on HTML pages. You need a web browser to access the HTML pages.
The web server function is disabled in the basic settings. You must select the relevant option in order to read out information from the CPU about the module status, topology and the messages over the web server and have them displayed properly on the HTML pages of the CPU.

In the TIA Portal you go to the Network, Device or Topology view and select the CPU. In the inspector window you go to "Properties > General > Web Server" and select the "Activate web server on this module" option.


Figure 01

When the web server has been activated, a query is displayed for the S7-300/S7-400 CPUs asking whether the system diagnostics (Report System Errors) is to be enabled. Click "Yes" if you want to migrate the necessary blocks and texts to "Report System Errors" and make the message texts available in the web browser during operation. System diagnostics is always activated in S7-1500 CPUs and cannot be switched off.


Figure 02

Note

  • Entry 50597484 describes which settings you have to make in STEP 7 so that the information about the module status, topology and messages can be read out over the CPUs web server and displayed on the HTML pages of the CPU.
  • In the TIA Portal the "Report System Error" function is replaced by the integrated system diagnostics.

Additional Information
Detailed information about the TIA Portal is available in Entry ID 77991795.

What is the meaning of the system constants in STEP 7 (TIA Portal) with S7-1200/1500?Go to beginning
Part number:

Description
Unlike S7-300/400, in which the hardware and software components are identified through logical addresses or diagnostics addresses, in S7-1200/1500 the identification is over the system constants. All the hardware and software components (like interfaces, modules, OBs, ...) of the S7-1200/1500 have their own system constants. The system constants are generated automatically when the device configuration is created for the central and remote IOs.

The "PLC tags" dialog gives an overview of the system constants generated for your S7-1200/1500 controller or for your station. Under "PLC tags" you double-click "Show all tags" and then select the "System constants" tab in the window that opens. Fig. 01 shows the system constants with their symbolic names, data types and associated values. The system constants cannot be edited.


Fig. 01

The system constants are needed as parameters on blocks, for example for the reading and writing consistent user data for Siemens devices and third-party devices. Unlike S7-300/400, in the S7-1200/1500 the associated system constants of the input and output areas of the module are used for addressing and not the logical start address of an IO area.

With an S7-1200/1500 you must parameterize all the instructions with the parameters like "LADDR", "HSC", "PWM" and "PORT" with their associated system constants. You can configure these symbolically or with the value of the hardware ID. An example of the parameterization with a system constant is available in Entry ID: 67396336.

The symbolic name can also be selected in the selection window.


Fig. 02

Creation environment
The screens in this FAQ response were created with STEP 7 (TIA Portal) V12.

How can the CPU analog inputs of the SIMATIC S7-1200 also measure currents of 0-20mA?Go to beginning
Part number:

Description
The two analog inputs of the S7-1200 CPUs are factory-set for voltage measurement (0..10V).
In order to be able to use the inputs as current inputs as well you must incorporate a 500 Ohm resistor between terminals "0" and "2M" (or "1" and "2M").


Fig. 01: Connection of a sensor to a voltage source as a 2-conductor connection


Fig. 02: Connection of a sensor to a voltage source as a 3-conductor connection


Fig. 03: Connection of a sensor to a voltage source as a 4-conductor connection


Fig. 04: Connection of a measuring transducer with voltage output to a current source as a 4-conductor connection

Note
To avoid damage you must ensure that the external current source has short-circuit protection in all conductor cases.

The external resistor is a source of error because of its dependency on temperature and its inaccuracy.
In order to obtain measuring results that are as precise as possible it is recommended to use resistors with tolerances that are as small as possible.

With a 500 Ohm resistor you must pay attention to the measurement of the power dissipation.
With a power supply of 24V the resistance should be configured for at least 1.16W.
Commercially available resistors have a power dissipation of 0.25W to 0.5W.

Additional Information
The SIMATIC S7-1200 provides analog signal modules for measuring currents.
These are available in the system manual Entry ID: 36932465:

How you connect a sensor to the analog signal modules of the SIMATIC S7-1200 is described in Entry ID 40913432.

Additional Keywords
Current measuring, Measuring transducer

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?Go to beginning
Part number:

Instructions
You must call the instructions below in the user program in order to transfer data with the SIMATIC S7-1200 CPU over a configured S7 connection:

  • GET for reading data from the partner CPU
  • PUT for writing data to the partner CPU

The S7 connection does not have to be configured on both sides, because the communication over S7 connections using "GET" and "PUT" is based on the server-client principle.

Description of the S7 program
This sample program shows how to call the "GET" and "PUT" instructions sequentially in the user program of the SIMATIC S7-1200 CPU in order to transfer more than 160 bytes of data over an S7 connection.

The "GET" instruction is called three times in a row with the same connection number so that 400 bytes of data can be received.

The "PUT" instruction is called twice in a row with the same connection number so that 240 bytes of data can be received.

The file below gives a detailed description of the user program.

PUT_GET_Sequencer_S7-1200_en.pdf ( 1104 KB )

User program download
The download includes the "PUT_GET_Sequencer_S7-1200.zip" project.
Copy the "PUT_GET_Sequencer_S7-1200.zip" file into a separate folder and then start the file with a double-click. After unpacking the project data you can then use STEP 7 V11 SP2 to open and process the project.

The project includes the following:

  • Configuration of the SIMATIC S7-1200 CPU
  • Configuration of the S7 connection
  • User program for sequential calling of the "GET" and "PUT" instructions so that the SIMATIC S7-1200 CPU can receive 400 bytes of data and send 240 bytes of data over a configured S7 connection.

PUT_GET_Sequencer_S7-1200.zip ( 3581 KB )

Creation environment
The screens and downloads in this FAQ response were created with STEP 7 V11 SP2 (TIA Portal).

Why must you never remove a memory card when the S7-300/S7-400/S7-1200/S7-1500 CPU is in operation (RUN)?Go to beginning
Part number:

Instructions
If you remove the memory card from the CPU during a write process, this can make the content of the memory card invalid. The memory area retentivity might be lost as well. Under circumstances you might have to delete the memory card on the PG and reload the program. Observe the notes below before removing the memory card:

  • Always remove the SIMATIC memory card only in STOP mode.
  • Switch off the power supply.
  • If there is no write access through the PG, you can also remove the memory card when the power is switched on in STOP mode. In this case it is better to disconnect all communication connections beforehand.

More information is available in the TIA Portal Online Help under

  • "Accessing memory cards"
  • "Add user-defined card reader"
  • "Information about memory cards (S7-1200)"
  • "Information about memory cards (S7-1500)"
  • "Information about memory cards for S7-300 (S7-300/400)"

Additional Keywords
Memory cards

How does startup work in an S7-1200?Go to beginning
Part number:

Description
The startup mode "Warm restart - operating mode before POWER OFF" is set by default in the device configuration. This prevents the CPU from changing unintentionally to the RUN mode during the commissioning phase when the power returns. An unintentional change to the RUN mode will set the outputs and start any machines to which the outputs are connected. However, with this default setting you need a PG with STEP 7 V10.5, STEP 7 V11 or the S7-1200 Tool (see Entry ID 41737437) to be able to change the CPU from STOP mode to RUN mode. The CPU can change to STOP mode for one of the following reasons:

  • Inserting an SD card
  • Failure of an expansion module
  • Other reasons

If STOP mode occurs, you need software for changing to RUN mode.

Remedy
We recommend setting the startup mode "Warm restart – RUN". Then, the CPU changes automatically back into RUN mode when power returns. In this way, neither you nor your customers need customer support’s assistance to set the CPU back into RUN mode.

The table below shows the startup modes of the S7-1200 CPU.
 
Startup mode CPU behavior
No startup CPU remains in STOP mode.
Warm restart – RUN CPU goes into RUN mode when power returns.
Warm restart - operating mode before POWER OFF CPU goes into the same mode as before loss of power.

Note
As from STEP 7 V11 and firmware version V2.0 you have the option of changing operating modes using the web server if activated.
Proceed as follows.

  1. Open the internet browser and start the web server.
  2. Log on as "admin".
  3. Select the "Start page".
  4. Use the "Go to RUN" and "Go to STOP" buttons to change the operating mode accordingly.

What is the connection between subnet masks and IP addresses with regard to subnetting and supernetting (Classless Inter Domain Routing CIDR)?Go to beginning
Part number:

Configuration Notes
With CIDR, there is no fixed assignment of an IP address to a network class and possible subnetting in other networks or supernetting of several networks in a class. There is only one network mask that splits the IP address into a network part and a host part.

The CIDR function (Classless Inter Domain Routing) thus includes subnetting and supernetting.

The following Industrial Ethernet CPs support the subnetting and supernetting functions:

  • 6GK7343-1EX21-0XE0 as from FW V1.2
  • 6GK7343-1EX30-0XE0
  • 6GK7343-1GX21-0XE0 as from FW V1.1
  • 6GK7343-1GX30-0XE0
  • 6GK7343-1GX31-0XE0
  • 6GK7343-1CX10-0XE0
  • 6GK7343-1FX00-0XE0
  • 6FL4343-1CX10-0XE0
  • 6GK7443-1EX20-0XE0
  • 6GK7443-1EX30-0XE0
  • 6GK7443-1EX40-0XE0 as from FW V2.4
  • 6GK7443-1EX41-0XE0
  • 6GK7443-1GX20-0XE0
  • 6GK7443-1GX30-0XE0

The following CPUs with integrated PROFINET interface support the subnetting and supernetting functions:

  • IM151-8(F) PN/DP CPU
  • IM154-8(F) CPU
  • CPU314C-2 PN/DP
  • CPU315(F)-2 PN/DP as from FW V2.3
  • CPU317(F)-2 PN/DP as from FW V2.3
  • CPU319(F)-3 PN/DP
  • CPU412-2 PN
  • CPU414(F)-3 PN/DP
  • CPU416(F)-3 PN/DP
  • CPU412-5H PN/DP
  • CPU414-5H PN/DP
  • CPU416-5H PN/DP
  • CPU417-5H PN/DP
  • S7-1200 CPUs as from FW V1.0

The following Industrial Ethernet PC modules support the subnetting and supernetting functions:

  • CP1616 as from V2.0
  • CP1604 as from V2.0
  • CP1613 (A2) as from SW V7.1
  • CP1623
  • CP1628
  • CP1612 and IE General

For the remaining Industrial Ethernet PC modules like CP1613 (A2) < SW V7.1, CP1604 V1, CP1616 V1 and CP1512 it is only possible to configure the "Subnetting" function. It is not possible to configure the "Supernetting" function for these modules in STEP 7 / NCM PC. This is prevented in STEP 7 / NCM PC by an error message (see Fig. 05).

In these modules that support the TCP/IP protocol it is possible to set both the IP address and the associated subnet mask in the hardware configuration of STEP 7. The IP address and associated subnet mask are entered in the Properties window of the CP's or CPU's Ethernet interface. After inserting the Industrial Ethernet CP or CPU with integrated PN interface in the hardware configuration, you are offered the following default settings (see Fig. 01) in the Properties window of the CP's or CPU's Ethernet interface.

  • IP Address: 192.168.0.1
  • Subnet mask: 255.255.255.0


Fig. 01

If you wish to change these default settings for the IP address and subnet mask, you need information about the connection between classes of IP addresses and subnet masks. The following demonstrates the connection between classes of IP addresses and subnet masks.

Connection between class of the IP address and subnet mask
In principle there are 5 classes of IP addresses. These are the classes A to E. Each class has its own subnet mask. The connections are given in the table below.
 
Class Class bits IP address range Subnet mask Network share Node share
A 0xxxxxxx 0.x.x.x - 127.x.x.x 255.0.0.0 1 byte 3 bytes
B 10xxxxxx 128.0.x.x - 191.255.x.x 255.255.0.0 2 bytes 2 bytes
C 110xxxxx 192.0.0.x - 223.255.255.x 255.255.255.0 3 bytes 1 byte
D

1110xxxx

224.0.0.0 - 239.255.255.255

---

Multicast addresses

E 1111xxxx 240.0.0.0 - 255.255.255.255 ---

Reserved addresses
(for future purposes)

Class A network
IP addresses from Class A begin with the bit sequence 0-...; for example, the IP address range lies between 0.x.x.x and 127.x.x.x.
The subnet mask identifies the range that includes the address information for identifying the subnet. In Class A networks the first byte, that is to say the first 8 bits, corresponds to the IP address of the subnet address. Thus Class A networks are defined by the following subnet mask: 255.0.0.0 = 1111 1111 0000 0000 0000 0000 0000 0000. The last three bytes (24 bits) of the IP address identify a node in this subnet.

The total number of Class A networks can be calculated as follows:

  • 28-1-2 = 27-2 = 126 networks (since the IP address always begins with the bit sequence 0-..., 0.0.0.0 and 127.0.0.0 are not permitted)

The number of computers in a Class A network can be calculated as follows:

  • 224-2 = 16 777 214 computers (x.0.0.0 -> network address and x.255.255.255 -> broadcast address are not permitted)


Fig. 02

Class B network
IP addresses from Class B begin with the bit sequence 1-0-... and the address range lies between 128.0.x.x and 191.255.x.x. In Class B networks the first two bytes, that is to say the first 16 bits correspond to the IP address of the subnet address. Thus Class B networks are defined by the following subnet mask: 255.255.0.0 = 1111 1111 1111 1111 0000 0000 0000 0000. The last two bytes (16 bits) identify a node in this subnet.

The total number of Class B networks can be calculated as follows:

  • 216-2 = 214 = 16384 networks (since the IP address always begins with the bit sequence 1-0...)

The number of computers in a Class B network can be calculated as follows:

  • 216-2 = 65534 computers (x.x.0.0 -> network address and x.x.255.255 -> broadcast address are not permitted)


Fig. 03

Class C network
IP addresses from Class C begin with the bit sequence 1-1-0... and the address range lies between 192.0.0.x and 223.255.255.x. In Class C networks the first three bytes, that is to say the first 24 bits correspond to the IP address of the subnet address. Thus Class C networks are defined by the following subnet mask: 255.255.255.0 = 1111 1111 1111 1111 1111 1111 0000 0000. The last byte (8 bits) identifies a node in this subnet.

The total number of Class C networks can be calculated as follows:

  • 224-3 = 221 = 2 097 152 networks (since the IP address always begins with the bit sequence 1-1-0...)

The number of computers in a Class C network can be calculated as follows:

  • 28-2 = 254 computers (x.x.x.0 -> network address and x.x.x.255 -> broadcast address are not permitted)


Fig. 04

Class D subnetwork
The class D subnetwork consists of special addresses that are used for multicast addressing.

Summary
The splitting up of IP addresses in network share and node share leads to the following conclusions:

  • A Class A network is larger than a Class C network, because there is a greater address area available for addressing the computers.

  • There are much less Class A networks than Class C networks because the address area of the subnets is smaller.

Reserved addresses

  • The Class A network address 127.x.x.x is reserved for the Loopback function of all computers, which means that
    all IP addresses that have the value 127 in the first byte may only be used for internal tests of computers.

  • The value 255 in the last byte (Byte 4) is reserved asBroadcast Address. Thus, for example, the address 140.80.255.255 is a broadcast address to all nodes in the Class B network 140.80.0.0.

  • The following ranges are reserved for private networks. All IP addresses from these ranges are not routed in the Internet.
    10.0.0.0 - 10.255.255.255
    172.16.0.0 - 172.31.255.255
    192.168.0.0 - 192.168.255.255

Until now, the connection between the class of the IP address and subnet mask has been explained. Furthermore, it is possible to extend the subnet mask with the so-called "subnetting" procedure.

Subnetting
Subnetting can be implemented in a Class A network, for example. It is possible to divide the computers of this Class A network into further logical units (subnets). We will observe the Class A network 86.x.x.x as an example. The subnet mask of this Class A network is 255.0.0.0 (1111 1111 0000 0000 0000 0000 0000 0000). The address area can be divided further into logical subnets by extending the subnet mask by 1 bit. The subnet mask is then 255.128.0.0 (1111 1111 1000 0000 0000 0000 0000 0000).

This means the following for addressing:

  • Only the addresses 86.0.0.1 to 86.127.255.254 can communicate directly with each other, that is without router, because these computers have the same value (in this case "0") in the first bit after the subnet mask.

  • Only the addresses 86.128.0.1 to 86.255.255.254 can communicate directly with each other, that is without router, because these computers have the same value (in this case "1") in the first bit after the subnet mask.

  • The address area of the computers in this Class A network has been divided into two subnets.

Conclusion
By extending the subnet mask you can divide the address area of the computers into more logical units (subnets). The address area has been divided into two subnets in the example. By adding more bits you can quickly multiply the number of subnets.

Supernetting
Supernetting is the grouping together of multiple networks with partially the same network share in one subnet. The underlying technology is the opposite to subnetting and in principle means a procedure for addressing a large number of nodes within one subnet. With supernetting the node share of a network class is increased. Thus the network share of this network class is decreased.
We will observe the Class C network 192.168.178.0 as an example. The subnet mask of this Class C network is 255.255.255.0 (1111 1111 1111 1111 1111 1111 0000 0000). Now 2 bits are added to the node share. The subnet mask is then 255.255.252.0 (1111 1111 1111 1111 1111 1100 0000 0000).

  • The lowest IP address of the network to be assigned is
    192.168.176.1 (1111 1111.1111 1111. 1011 0000. 0000 0001)

  • The highest IP address of the network to be assigned is
    192.168.179.254 (1111 1111.1111 1111. 1011 0011. 1111 1110)

  • The addresses 192.168.176.1 to 192.168.179.254 can communicate directly with each other, this means without router.

Requirement
The use of "Supernetting" requires that the modules in the network support the "Classless Inter Domain Routing" (CIDR) function.

Note
If the module configured in STEP 7 does not support the subnetting function or the supernetting function, then use of these functions is prevented by the following error message in STEP 7


Fig. 05


Fig. 06

The STEP 7 Online Help indicates that the subnet mask in the incorrect format as follows.


Fig. 07

How can you prevent data loss of runtime-generated parameters when updating your S7-1200 PLC program?Go to beginning
Part number:

Description
You need to apply changes to your user program running on a S7-1200 PLC, but you do not want to loose your runtime-generated parameters. Buffer your runtime-generated parameters in the HMI "Runtime" recipe function of STEP 7 Basic and download your program changes to your S7-1200 PLC.

To apply this feature, execute the following steps:

  • Prepare your STEP 7 Basic HMI project to buffer your parameters. No changes to your PLC program are necessary.
  • Buffer your parameters in the HMI "Runtime" recipe function of STEP 7 Basic.
  • Download your changed program to your S7-1200 PLC.
  • Retrieve your parameters from the HMI "Runtime".

Capacity of the recipe function:

  • You can buffer up to 20 elements (tags) per recipe.
  • You can use up to a maximum of 5 recipes.

Each recipe allows you to buffer different sets of tags (total sum of tags: 5x20=100). Please find an example project in the attached file.

 
Fig. 01

Configuring the buffering feature in your project
In the following description, the HMI project of the attached STEP 7 Basic project is used.
 
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)
  • KPT600PN Basic Panel (6AV6 647-0AD11-3AX0)

The panel type is not important as the HMI "Runtime" can simulate any configured type of KPT Basic Panels.

2. Copy the HMI device into your project
  • Drag and Drop the "HMI_DataStore" HMI project from the attached "DataStore" STEP 7 Basic project into 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 "retentive". Otherwise the restored data will not survive a PLC STOP or a power-cycle condition.
3. Delete the 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 the 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.
  • The default setting for decimal places is zero. Increase the number of decimal places up to the resolution you need.
  • Configure up to 20 elements per recipe.

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


Fig. 07

7. Configure the screen tags
  • 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

Buffering and retrieving the parameters with HMI "Runtime"
 
No.

Buffering and retrieving the parameters

1. Start the HMI "Runtime" of STEP 7 Basic
Follow these steps:
  • Select the "HMI_DataStore" HMI device.
  • Click the "Start runtime" button.


    Fig. 10
2. Buffer the parameters in the HMI
Follow these steps:
  • On your HMI display select "Recipe_1" and click the "OPEN" button. The "Recipe_data_record_1" opens.

     
    Fig.11
     
  • 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 Runtime.

Note
You can also archive / retrieve parameter element values.

3. Download your program
Click the "Download to device" button to download your program to your S7-1200 PLC.


Fig. 15

4. Restore the parameters to the PLC
Follow these steps:
  • 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

Adjusting the IP address
Change the IP address, that is configured in the HMI connection, if you want to access another S7-1200 PLC (for example, PLC_2). Each S7-1200 PLC has a unique IP address.
 
No. Adjust the IP address
1. If the IP address of the S7-1200 PLC in the project does not match the IP address of the actual S7-1200 PLC you are using, you must change the IP address configured in the HMI "Runtime" (for example, you run the same project on several S7-1200 PLCs).

Follow these steps:

  • On your HMI "Runtime", 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. 16
Table 03

Requirements

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

S71200_DataStore.zip ( 3134 KB )

How can you share runtime-generated parameters between several S7-1200 PLCs with a KTP Basic Panel?Go to beginning
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 )

How can you change the IP address of an S7-1200 without using STEP 7 Basic?Go to beginning
Part number:

Description
The S7-1200 tool enables you to specify the IP address of one or several S7-1200 CPUs without using the STEP 7 Basic software.
This tool is particularly useful for mass filling; if, for example, you download a project by means of a memory card to multiple CPUs in a network and then have to change the IP address for each CPU.

Setting the PG/PC interface
 
No.  
1. Click the "PG/PC Interface" button.


Fig. 01

2.
  1. Select the access point below for the application: "S7IPTool".
  2. For "Interface Parameter Assignment Used:" you select "TCP/IP" and the network card you are using. You achieve the best results with the "TCP/IP(Auto)" for automatic configuration of the network card you are using.
  3. Apply the settings with "OK".


Fig. 02

Table 01

Manual assignment of an IP address for your S7-1200
 
No.  
1. Double-click the "Update accessible devices" button to update the list of accessible nodes.


Fig. 03

2. The S7-1200 tool displays the MAC address of CPUs without an assigned IP address.


Fig. 04

3.
  1. Select the CPU to be configured from the list of accessible devices.
  2. Click the "Flash LED lights" button to flash the status LEDs of the CPU selected.


Fig. 05

4. Click the "Stop CPU" button to put the CPU into STOP mode.


Fig. 06

5.
  1. Specify the IP address, subnet mask and gateway address for the CPU selected.
  2. Then click the "Set" button.
    If you enable the "Set as Default" option, the current settings are saved as "Default" settings when you click the "Set" button.
  3. Click the "Use Defaults" button to load the saved "Default" settings.


Fig. 07

6. Click the "Start CPU" button to put the CPU into RUN mode.


Fig. 08

Table 02

Network Mapping
 
No.  
1. Mark the network card folder in the tree view.
A table is displayed listing all the connected S7-1200 CPUs.


Fig. 09

2. Click the "Export..." button to generate a CSV file with the current network settings of all the connected S7-1200 CPUs.
Save this file on your computer.


Fig. 10

3. Open the exported CSV file with Notepad.
Each line in the CSV file contains a MAC address, IP address, subnet mask and gateway address for each separate S7-1200 CPU.
You can change the network settings of each CPU as required. You must not change the MAC address.
You can use the "#" character to insert comments in the CSV file.


Fig. 11

4. Click the "Import..." button and select the modified CSV file from Step 3.


Fig. 12

5. Your changes are shown in the Network Mapping table .
Click the "Update" button to apply the new network settings of all the CPUs.


Fig. 13

6.
  • A green circle next to the S7-1200 CPU indicates that the update has been successful.
  • A red circle indicates that the update has failed.
  • A yellow circle indicates that the S7-1200 CPU is in the process of being updated.


Fig. 14

Table 03

Additional Functions
 
No.  
1. Click the "Fault Capture" button to read out system information from the selected S7-1200 CPU. This information can be forwarded to Siemens for analysis.


Fig. 15

2. Click the "Reset To Factory Defaults" button to reset the selected S7-1200 CPU back to its original factory settings. All the data including the IP address will be deleted.


Fig. 16

Table 04

Requirements

  • Operating system: Windows XP, Windows Vista or Windows 7 (32-bit versions are supported)
  • S7-1200
  • Ethernet cable
  • PC/PG with Ethernet interface
  • S7-1200 Tool V2.0.0.5 

S7-1200Tool.zip ( 55566 KB )

Keywords
IPTool, IP TOOL, IP-Tool

How can you delete the IP address and reset your S7-1200 to factory settings using the SIMATIC MC memory card (2MB or 24MB)?Go to beginning
Part number:

Description
Even without the STEP 7 Basic software and without knowing the IP address you can delete the IP address and reset your S7-1200 up to and including firmware V2.1.2 to the factory settings using the SIMATIC MC memory card.

Disable write protection
Make sure that the memory card is not write-protected. For this you move the protection switch out of the lock position.


Fig. 01

Using an empty memory card
There are two ways of obtaining an empty memory card.

  • Use a new empty SIMATIC MC memory card from Siemens.
  • If your SIMATIC MC memory card is not empty, delete the "SIMATIC.S7S" folder and the "S7_JOB.S7S" file on the memory card, using Windows Explorer, for example.

Deleting the IP address
Proceed as below to delete the IP address and reset the S7-1200 up to and including firmware V2.1.2 to the factory settings.

  1. Slot an empty memory card in the S7-1200.
  2. Switch S7-1200 off and on again.

This reboots the S7-1200. After restarting and re-evaluation of the SIMATIC MC memory card the load memory, this means the device configuration including the IP address, the user program and all the force values are copied to the memory card. The memory card turns into a program card containing the data and the IP address stored previously in the internal load memory. When the copying procedure has been completed, the internal load memory of the S7-1200 is deleted. The S7-1200 now switches into the configured operating mode for startup (RUN or STOP). 
When the procedure has been completed, the service LED of the S7-1200 flashes to indicate that you can remove the memory card.

  1. Remove the memory card from the S7-1200.
  2. Switch the S7-1200 off and on again.

The internal load memory including the IP address is now deleted and the S7-1200 up to and including firmware V2.1.2 has been reset to the factory settings.


Fig. 02

Note
As from firmware V2.2.0 you delete the internal load memory of the CPU by slotting an empty transfer card. However, the IP address is retained.

Additional information
More information is available in the system manual under "Using Memory Cards" in Entry ID: 36932465.
The firmware versions of the S7-1200 CPU are here.

How can you download to a network of several S7-1200 PLCs with the same IP address?Go to beginning
Part number:

Description
When you first download a PLC program of a STEP 7 Basic project to a network which contains several S7-1200 PLCs, a situation may occur in which more than one PLC shares the same IP address.
This means you will miss one or more PLCs. In this case, delete the IP addresses of all PLCs to be able to access them by their MAC addresses.

 
Figure 01

Deleting the IP address
Delete the IP address of an S7-1200 PLC using a SIMATIC MC memory card.
Please find a detailed description of the procedure in entry ID 40588092.

Identifying PLCs by their MAC address
To address a PLC by its MAC address, enable the checkbox "Show all accessible devices" in the  "Extended download to device" dialog box and select a MAC address from the list.

Downloading to the PLC
Select a MAC address from the list of accessible devices and click the "Load" button.

 
Figure 02

Note
A new, unconfigured PLC has no preset IP address.

How can you reset the IP address of your S7-1200 PLC using STEP 7 Basic software?Go to beginning
Part number:

Description
You can reset the IP address of your S7-1200 PLC using the function "Reset to factory settings" of the STEP 7 Basic software. Therefore you need online access to your S7-1200 PLC. This means the IP address of your S7-1200 PLC needs to be the same as the IP address in your STEP 7 Basic project. Otherwise you cannot go online.

Adjustingthe IP address

  1. To figure out the IP address of your S7-1200 PLC, highlight your S7-1200 PLC in the project tree. Browse the menu bar for "Online > Extended download to device..." and check the "Show all accessible devices" check box. The IP address of your S7-1200 PLC is listed in the "address" column.


Figure 01

  1. Change the IP address of the S7-1200 PLC in your project. Browse the project tree for the "Device configuration" of your S7-1200 PLC and click the Ethernet port in the work area. Open the "Ethernet addresses" properties and enter the IP address which you figured out in step 1.


Figure 02

Resetting the IP address

  1. Launch STEP 7 Basic, and open the project containing the S7-1200 PLC whose IP address you want to reset.
  2. In the project tree, browse for the S7-1200 PLC and highlight it.
  3. Click the toolbar command "Go online". The title bar changes to orange. You have online access to the S7-1200 PLC now.


Figure 03

  1. Double-click item "Online & Diagnostics" in the PLC folder in the project tree. The "Online access" dialog window of your PLC opens.
  2. In the Navigation area, browse for "Functions > Reset to factory settings".
  3. Select the radio button "Reset IP address" in the work area, and click the "Reset" button.


Figure 04

  1. A "Reset to factory settings" dialog box opens. Click the "OK" button.

The IP address is erased.

Note
Make sure that no SIMATIC MC memory card is inserted in your S7-1200 PLC while deleting the IP address.

Keywords
CPU

 Entry ID:40725842   Date:2014-10-10 
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