Migration F-Program DOC V10 en
Migration F-Program DOC V10 en
Migration F-Program DOC V10 en
https://support.industry.siemens.com/cs/ww/de/view/109475826
Warranty and Liability
Note The application examples are not binding and do not claim to be complete with
regard to configuration, equipment or any contingencies. The application
examples do not represent customer-specific solutions. They are only intended
to provide support for typical applications. You are responsible for the correct
operation of the described products. These application examples do not relieve
you of the responsibility of safely and professionally using, installing, operating
and servicing equipment. When using these Application Examples, you
recognize that we cannot be made liable for any damage/claims beyond the
liability clause described. We reserve the right to make changes to these
Application Examples at any time and without prior notice. If there are any
deviations between the recommendations provided in this Application Example
and other Siemens publications – e.g. catalogs – the contents of the other
documents have priority.
We do not accept any liability for the information contained in this document.
Any claims against us – based on whatever legal reason – resulting from the use of
the examples, information, programs, engineering and performance data etc.,
described in this application example will be excluded. Such an exclusion will not
apply in the case of mandatory liability, e.g. under the German Product Liability Act
(“Produkthaftungsgesetz”), in case of intent, gross negligence, or injury of life, body
or health, guarantee for the quality of a product, fraudulent concealment of a
Siemens AG 2015 All rights reserved
Security Siemens provides products and solutions with industrial security functions that
informa- support the secure operation of plants, solutions, machines, equipment and/or
tion networks. They are important components in a holistic industrial security
concept. With this in mind, Siemens’ products and solutions undergo continuous
development. Siemens recommends strongly that you regularly check for
product updates.
For the secure operation of Siemens products and solutions, it is necessary to
take suitable preventive action (e.g. cell protection concept) and integrate each
component into a holistic, state-of-the-art industrial security concept. Third-party
products that may be in use should also be considered. For more information
about industrial security, visit http://www.siemens.com/industrialsecurity.
To stay informed about product updates as they occur, sign up for a product-
specific newsletter. For more information, visit
https://support.industry.siemens.com.
Table of Contents
Warranty and Liability ................................................................................................. 2
1 Introduction ........................................................................................................ 4
1.1 Overview............................................................................................... 4
1.2 Requirements ....................................................................................... 5
2 Migration to TIA Portal STEP 7 V13 ................................................................. 6
2.1 Migration steps ..................................................................................... 6
2.2 Compiling and loading the project ........................................................ 8
2.2.1 Signature of the safety program ........................................................... 8
2.2.2 Compiling and loading without changing the safety program .............. 8
2.2.3 Compiling and loading with changes on the safety program ............. 10
3 Migration to S7-1500........................................................................................ 12
3.1 Hardware components ....................................................................... 12
3.2 Migration steps ................................................................................... 12
3.3 Project adaptation .............................................................................. 16
3.3.1 Error list .............................................................................................. 16
3.3.2 Devices & networks ............................................................................ 17
3.3.3 Protection ........................................................................................... 18
3.3.4 F-runtime group .................................................................................. 18
3.3.5 Update of the elements of the system library ..................................... 19
3.3.6 Value status ........................................................................................ 20
Siemens AG 2015 All rights reserved
1 Introduction
1.1 Overview
This application example shows the migration of a safety program using a sample
project. You can use this migration instruction for you own project.
1. Migration of the STEP 7 project from STEP 7 Professional V5.5 with Distributed
Safety V5.4 to STEP 7 Professional V13 with STEP 7 Safety Advanced V13.
Figure 1-1
Distributed Safety
Safety V5.4 Advanced V13
Siemens AG 2015 All rights reserved
Figure 1-2
Table 1-1
Source project Target project
1. STEP 7 project V5.x with CPU S7-300F STEP 7 project V13 with CPU S7-300F
and ET 200S and ET 200S (target project 1)
2. STEP 7 project V13 with CPU S7-300F STEP 7 project V13 with CPU S7-
and ET 200S (target project 1) 1500F and ET 200S (target project 2)
1.2 Requirements
To be able to use the migration function integrated in TIA Portal, the software
mentioned below must be located on one computer even if the source project was
created on a different computer.
Note In the case of the required project being located on a different computer than the
one it was created on, the migration process might terminate with the information
that the option packages on STEP 7 V5.5 are missing. Then, perform the steps
Siemens AG 2015 All rights reserved
Hardware to be migrated
To migrate your project to STEP 7 V13, the used hardware components must be
supported by STEP 7 V13. This applies to most hardware components actively
marketed on Oct 1st, 2007. Use the Readiness Check Tool to check if your
hardware can be migrated, see \6\.
3. Under “Source”, select the unzipped STEP 7 project with the extension “s7p”.
4. Enter the desired project name and the path under “Target”.
The project on hand now is the target project 1 (see Figure 1-1).
If you would like to migrate the CPU as well, you can proceed directly with
chapter 3.
When migrating to STEP 7 V13, the signature of the safety program will be
maintained and a new approval of your safety program is not required if you do not
change anything nor compile the program.
The signature can be found in STEP 7 V13 under “Safety Administration”.
If you do not want to change the safety program and do not want to migrate the
F-CPU, you can exclude the safety program when compiling and loading the
project, which will maintain its signature.
To do this, proceed as follows:
Figure 2-6
4. Right click the “CPU 315F-2PN/DP” in the project navigation and select
“Download to device > Hardware and software (only changes)”.
5. When prompted for the password for the safety program, do not enter the
password and click Cancel.
6. Select the respective interface and click “Start search”.
Figure 2-7
Siemens AG 2015 All rights reserved
7. Select the CPU based on the address and then click “Load”.
Note The IP address and the device name are automatically assigned when
downloading the project into the CPU.
Figure 2-8
Siemens AG 2015 All rights reserved
The project will now be loaded into the F-CPU without changing the safety program
signature.
If you perform modifications on the safety program, the password for the safety
program will be requested upon the first modification and then the signature of the
safety program will be changed.
Migrating to STEP 7 V13 also makes a new version of system library elements
available. If you are applying modifications to the safety program, it is advisable to
update the elements to the latest versions.
This option can be found in the project navigation under “Safety Administration >
Settings”.
Figure 2-9
You can then compile and load the program like described above. The password
will not be requested again in this case.
Figure 2-10
3 Migration to S7-1500
Prerequisite
Your source project is available in STEP 7 Professional V13.
Objective
This chapter illustrates the steps necessary for migrating from an S7-300F to an
S7-1500 F.
The migrated project with S7-1500F (target project 2) is also available for download
at \2\.
Table 3-1
Components of target project 1 Components of target project 2
Designation Article number Type Article number
Siemens AG 2015 All rights reserved
Figure 3-1
4. Select the respective CPU (in this case CPU 1516F-3PN/DP) and confirm with
“OK”.
Be sure to select the correct CPU version.
Figure 3-2
Siemens AG 2015 All rights reserved
Figure 3-3
5. Now specify how PtP instructions from the ET 200S will be handled.
If there are no PtP instructions in the program, the selection will not impact the
migration. If your program does contain these instructions, you have two
options. In this example, the new instructions are selected.
With the sample project the migration is carried out. However, there are error
messages:
Siemens AG 2015 All rights reserved
Figure 3-5
7. Unfold the error messages. You will receive the following error messages in
the sample project:
Figure 3-6
Siemens AG 2015 All rights reserved
Despite the errors, the migration was performed. Now, both controls are in your
project.
Note The error OBs OB85 and OB87 are not supported in the S7-1500 anymore,
because the controller would not go into STOP mode due to the errors caught by
them.
These function blocks are not migrated, but are still available in the “CPU 315F-
2PN/DP” folder in case they need to be accessed.
The next chapter describes the steps for rectifying these errors.
In order to find and rectify the errors as fast as possible, the project of the migrated
S7-1500F will be compiled. This makes a complete error list available and you can
simply jump directly to the error.
To do this, proceed as follows:
1. Right click “PLC_1” in the project navigation and select “Compile > Software
(rebuild all blocks)”.
You will receive the following error message in the sample project:
Figure 3-7
Siemens AG 2015 All rights reserved
Note You can return to the error messages by clicking “Info” on the bottom of the
screen and select the “Compile” tab.
Process the displayed error messages. For the sample project, proceed as
follows:
Figure 3-8
3. Click on “Not assigned” and select “PLC_1” to connect the ET 200S to the
S7-1500F.
Siemens AG 2015 All rights reserved
Figure 3-9
3.3.3 Protection
Figure 3-10
Siemens AG 2015 All rights reserved
4. Click “PLC_1” with the right mouse button in the project navigation and select
“Compile > Hardware (rebuild all)”.
In STEP 7 Safety Advanced, the call of the F-runtime group is configured via
“Safety Administration”. A new, fail-safe organization block is created to call the F-
runtime group, which can be configured as desired. The safety program call in
OB35 must therefore be deleted.
To do this, proceed as follows:
Figure 3-11
Figure 3-12
3. Delete the unused instance data block from the project navigation.
4. Open the block which was called from your safety program until now and
delete the call of FC “F-CALL”. In this application example, this is done in
OB35, which can be deleted completely.
Siemens AG 2015 All rights reserved
Migrating to STEP 7 V13 also makes a new version of system library elements
available. If you have not done this in a previous step, it is advisable to update the
elements to the latest versions now.
This option can be found in the project navigation under “Safety Administration >
Settings”.
Figure 3-13
In the newer controllers S7-1200 and S7-1500, the channel granular QBAD bit is
replaced by the value status. The following rules apply for the value status:
FALSE: Substitute values are output.
TRUE: Process values are output.
The value status behaves inversely to the QBAD bit and is entered into the process
image of the inputs (PII).
For more information on the value status, please refer to \3\.
As this QBAD bit cannot be accessed anymore, the compiler reports the following
error:
Figure 3-14
Siemens AG 2015 All rights reserved
Use the following steps to replace the QBAD bit by the value status:
1. Open “PLC_1 > PLC tags > Show all tags” in the project navigation.
2. Create the following new tags for the value status bits of the respective
channels:
Table 3-2
Name Address
posSwitch1VS %I2.1
posSwitch2VS %I2.5
contactorsVS %I7.0
Figure 3-15
Figure 3-16
Siemens AG 2015 All rights reserved
6. Interconnect the “QBAD_FIO” input of the FDBACK block with the newly
created tag “contactorsVS” and negate the input, as the value status is inverse
to the channel granular QBAD bit.
Figure 3-17
Figure 3-18
Siemens AG 2015 All rights reserved
5. Select the CPU based on the address and then click “Load”.
Note The IP address and the device name are automatically assigned when
downloading the project into the CPU.
Figure 3-19
Siemens AG 2015 All rights reserved
After migration, the safety program must be tested. The inputs and outputs used
can be checked with regard to their functionality if the following conditions are met:
The hardware components are wired.
The STEP 7 project has been loaded into the S7-CPU.
Figure 4-1
Siemens AG 2015 All rights reserved
4. Close STEP 7 V5.x and start the migration in STEP 7 V13 again.
4. Due to the missing option packages you receive the information that the project
cannot be filed entirely under the new name. Click “Yes” to create it anyway.
5. Start the migration again.
If you would like to change a device in addition to migrating to TIA Portal, you can
migrate your project even if it contains hardware which is not supported by
excluding the hardware configuration from the migration, see Figure 2-2.
Chapter “Migrating an
S7-300/400 F-CPU”
\8\ SIMATIC Safety - https://support.industry.siemens.com/cs/ww/en/view/
Configuring and 54110126/72015573387
Programming:
Chapter “Migrating an
S7-300/400 F-CPU”
6 History
Table 6-1
Version Date Modification
V1.0 11/2015 First version