SIMATICPCS 7 V4.x to PCS 7 V5.0 Migration Guide03/2000A5E00064939Edition 01Copyright © Siemens AG 2000 All rights reservedThe reproduction, transmission or use of this document or itscontents is not permitted without express written authority.Offenders will be liable for damages. All rights, including rightscreated by patent grant or registration of a utility model or design,are reserved.Siemens AGBereich Automatisierungs- und AntriebstechnikGeschaeftsgebiet Industrie-AutomatisierungssystemePostfach 4848, D- 90327 Nuernberg Disclaimer of Liability We have checked the contents of this manual for agreement with the hardware and software described. Since deviations cannot be precluded entirely, we cannot guarantee full agreement. However,the data in this manual are reviewed regularly and any necessary corrections included in subsequent editions. Suggestions forimprovement are welcomed.©Siemens AG 2000Technical data subject to change.Siemens Aktiengesellschaft A5E00064939Safety GuidelinesThis manual contains notices which you should observe to ensure your own personal safety, as well as toprotect the product and connected equipment. These notices are highlighted in the manual by a warningtriangle and are marked as follows according to the level of danger:Danger indicates that death, severe personal injury or substantial property damage will result if properprecautions are not taken.Warning indicates that death, severe personal injury or substantial property damage can result if properprecautions are not taken.Caution indicates that minor personal injury or property damage can result if proper precautions are not taken.draws your attention to particularly important information on the product, handling the product, or to a particular part of the documentation.Qualified PersonnelOnly qualified personnel should be allowed to install and work on this equipment. Qualified persons aredefined as persons who are authorized to commission, to ground, and to tag circuits, equipment, andsystems in accordance with established safety practices and standards.Correct UsageNote the following:WarningThis device and its components may only be used for the applications described in the catalog or thetechnical descriptions, and only in connection with devices or components from other manufacturerswhich have been approved or recommended by Siemens.This product can only function correctly and safely if it is transported, stored, set up, and installed correctly, and operated and maintained as recommended.TrademarksSIMATIC®, SIMATIC HMI® and SIMATIC NET® are registered trademarks of SIEMENS AG.Some of other designations used in these documents are also registered trademarks; the owner’s rights maybe violated if they are used by third parties for their own purposes.Migration from PCS7 V4.x to PCS7 V5.0A5E00064939-01iiiContents1Remarks concerning migration.................................................................................1-11.1Extent of migration........................................................................................1-11.2Backup before migration................................................................................1-22Migration without using the new functions..............................................................2-13Complete migration using new functions.................................................................3-13.1Hardware update...........................................................................................3-13.1.1Updating the operating system on the S7-CPU(s) 416-2DP...........................3-13.1.2Updating your IM153-1 and IM153-2 (ET200M).............................................3-23.1.3Handling GSE files........................................................................................3-33.2PCS 7 libraries..............................................................................................3-43.2.1Backup when reusing V4.02 PCS7 libraries...................................................3-43.3Converting the PLC.......................................................................................3-53.3.1SIMATIC Manager: Converting the Plant Hierarchy.......................................3-53.3.2HW Config: Adjust hardware .........................................................................3-53.3.3SIMATIC Manager: Integrate and adapt the blocks from the new libraries....................................................................................3-63.3.4CFC: Integrating and adapting blocks from new libraries................................3-73.3.5CFC: Migration to value labels.......................................................................3-93.3.6CFC: Migration from text attributes to block I/Os..........................................3-103.3.7CFC: Run sequence after changing block types..........................................3-103.3.8SIMATIC Manager: Migrating from CFC library blocks to basic operations (optional)..........................................................................3-113.3.9Converting a project to the new driver blocks (optional)...............................3-133.3.10Updating the sampling interval (option)........................................................3-16ContentsMigration from PCS7 V4.x to PCS7 V5.0iv A5E00064939-013.3.11SFC: Non-latching behavior........................................................................3-163.3.12SFC: SFCs in runtime groups......................................................................3-173.3.13SIMATIC Manager TH: Checking PLC-OS assignment................................3-173.3.14CFC or SFC: Compile and load...................................................................3-183.3.15SIMATIC Manager TH: Checking OS area identifier before transferring data to the OS..........................................................................3-183.4Import-Export Wizard (IEW)........................................................................3-193.5PLC-OS Engineering...................................................................................3-203.6Information on the new driver concept.........................................................3-213.6.1General.......................................................................................................3-213.6.2Partial process images................................................................................3-213.6.3Power up delay by n cycles.........................................................................3-223.6.4Effect of dynamic response on closed-loop control......................................3-223.6.5Operator interface capability........................................................................3-233.6.6Process interrupts.......................................................................................3-233.6.7Redundancy in the I/Os...............................................................................3-233.6.8V4.02 blocks at the same time as new blocks in a CPU...............................3-233.7WinCC: Converting the OS .........................................................................3-243.7.1Customizing the computer name in the WinCC data....................................3-243.7.2Checking the system parameters for the communication driver...................3-243.7.3Libraries......................................................................................................3-253.7.4Converting Global Script.............................................................................3-253.7.5Base Data...................................................................................................3-253.7.6Lifebeat Monitoring .....................................................................................3-263.7.7Alarm Logging.............................................................................................3-263.7.8Converting images......................................................................................3-273.7.9Picture Tree Manager .................................................................................3-273.7.10Time synchronization..................................................................................3-273.7.11Signal module.............................................................................................3-273.7.12Chipcard.....................................................................................................3-27ContentsMigration from PCS7 V4.x to PCS7 V5.0A5E00064939-01v3.7.13User archive conversion from V4.x to V5.0..................................................3-283.7.14Migration from Client to MultiClient..............................................................3-293.7.15The ProjectConverter – Tool........................................................................3-324Quick description - Migration steps..........................................................................4-14.1Converting the PLC data...............................................................................4-14.2Converting the OS data.................................................................................4-2ContentsMigration from PCS7 V4.x to PCS7 V5.0 vi A5E00064939-011 Remarks concerning migration1.1 Extent of migrationWhen upgrading from PCS 7, version 4.x, to V5.0 you can judge for yourself theextent to which you will use the new functions and how much time you will devoteto them. You can vary the extent of the migration accordingly. Some likelysituations are listed below:Migration, situation 1You have a project, version 4.x, and wish to upgrade just the OS to V5.0 so thatyou can use the new OS blocks, but without immediately updating or upgrading thePLC in your project. When upgrading your system in this way no PLC-OS transferis permissible.You would rather choose a later and more convenient moment at which to updatethe PLC data in your project so that you can utilize the many corrections andimprovements.In that case, see Section 3.7 (except Sections 3.7.14 and 3.7.15).Migration, situation 2You have a project, version 4.x, and want to use the new V5.0 ES software (CFC,SFC, PH, IEW). You prefer to acquire the current functional scope now, so thatoperations will not be interrupted for long at the time of migration. The new V5.0functions will only be used when the system is upgraded later on, at which time itwill also be used to carry out new project planning.In this instance you will need to make some small adjustments, compile the wholeprogram, put the CPU in STOP mode and carry out a full download. It will also benecessary to transfer the PLC-OS connection data. If you have already performedsituation 1, not all the steps of Section 3.7 will be necessary.For this situation, see Section 1, Migration without using the new functions.Migration form PCS 7 V4.x to PCS 7 V5.0A5E00064939-011-1Remarks concerning migrationMigration, situation 3You have a project, version 4.x, and want to upgrade your system. You wish notonly to implement the new V5.0 ES and OS software, but also to use the full scopeof the new functions (or possibly just certain options) including the new blocklibraries. This upgrade can also include bringing new CPUs into use and updatingthe operating system.For this situation, see Section 1, Migration including the use of the new functions.You should also note in this connection that when you migrate from Client toMultiClient certain functions can only be used in a restricted form. For moreinformation see 3.7.14Quick descriptionThe quick descriptions for converting the PLC and OS are intended for users whohave already converted projects from V4.x to V5.0 and only need a "checklist" ofsome kind for further conversions.For converting PLC data, see Section 4.1.For converting the OS data, see Section 4.2.1.2 Backup before migrationBefore migration you should take a backup of all your existing data if you have notalready done so. This means:•Create a backup copy of the whole project or create an image of the hard disk (produce documentation for the project).•Save your old V4.02 or customized project libraries (see also Section 3.2.1).Also refer to "Data integrity and consistency" in PLC-OS Engineering 3.5.Migration form PCS 7 V4.x to PCS 7 V5.0 1-2A5E00064939-01Migration form PCS 7 V4.x to PCS 7 V5.0A5E00064939-012-12 Migration without using the new functions(Situation 2) You have installed the V5.0 software (ES and OS) and wish tocontinue using your old project for the time being. Program adaptations need to bekept to the absolute essentials. You must now set the CPU to STOP :1. Convert the Plant Hierarchy. For information on this procedure: seeSection 3.3.1.2. Open a CFC or SFC in your project and write something to the chartconcerned (e.g. change the value for a connection).The result is that the data in the chart folder is converted to the new format.3. Copy the new FB300 (SFC_INTP) from library SFCLIB into the block folder forthe project.The result is that the sequential control system takes on a different runtimebehavior ("non-latching behavior", i.e. consecutive termination and initializationactions are executed within a single cycle).From then on an update compilation and online download can no longer be carried out.If you need information on adapting SFCs, see Section 3.3.114. Place the MSG_CSF block (FB44) in a new chart. It is used to generate controland instrumentation technology messages that are not generated in drivers orfunction modules. Please refer to the online Help for further information.5. Check whether your project includes SFCs that- contain runtime attributes which differ from the default "scan rate = 1","phase offset = 0". You need to install charts of this kind in runtime groups that exhibit these attributes. For information on this procedure: seeSection 3.3.12-are not installed in the run sequence. You will need to install charts of thiskind, otherwise the program cannot be compiled.6. Compile the whole program.7. Download the program to the CPU (full download: CPU at STOP).8. Bring the CPU up to RUN mode (complete restart).9. Carry out a PLC-OS data transfer (Options > PLC-OS connection data >Transfer...).Migration without using the new functions10. Converting the OS (see Section 3.7).This includes starting ProjectConverter (see Section 3.7.15). In this case, thepictures do not have to be converted (see Section 3.7.8), since this is alsodone by ProjectConverter.If you have already performed situation 1, the following sections are notnecessary:- 3.7.1 Customizing the computer name in the WinCC data- 3.7.2 Checking the system parameters for the communication driver- 3.7.3 Libraries- 3.7.6 Lifebeat Monitoring- 3.7.8 Converting images- 3.7.13 User archive conversion from V4.x to V5.0.Migration form PCS 7 V4.x to PCS 7 V5.0 2-2A5E00064939-013 Complete migration using new functions(Situation 3) The sections that follow cover all the migration steps for the newfunctions complete with the measures for upgrading to V5.0. Not every step ismandatory, since some of them are optional. You are assumed to have alreadycarried out the steps described in Situation 2.3.1 Hardware update3.1.1 Updating the operating system on the S7-CPU(s) 416-2DPYou need the following application:A PG 720/740/760 programming device with STEP7 >= V3.1 installed and a CD-ROM drive or alternatively a PC of the same type with a multipoint interface andexternal PROMMER installed. Use it to program a 2 MB S7 Memory Card (6ES7952-1KL00-0AA0).•Install the latest firmware (version A2) from the Internet to a directory on your computer. Address: www.ad.siemens.de /-> Support, Training & Services ->Simatic -> Product Support -> Simatic S7 -> General -> S7-400 -> Downloads -> Operating system update for the S7-400 CPUs as of 3/98.• Note:Not all new functions can be achieved by means of a firmware update.Replacement of hardware may be inevitable - for example, for the new driverconcept described in Section 3.3.9. After downloading the desired CPU file,extract it by double-clicking on the file name.•Erase your S7 Memory Card by selecting the following menu command in SIMATIC Manager: File > S7 Memory Card > Clear.•Now program your S7 Memory Card. To do this, go to SIMATIC Manager and select:PLC > Update operating system.•Select the appropriate firmware update for your CPU by switching to thedirectory with the new firmware and selecting file Cpu_hd_.upd.•Click on "Open" to start programming your Memory Card. Wait until thestandard mouse pointer reappears. When this happens the programming iscomplete and your Memory Card is ready for the update of your CPU operatingsystem.CautionThe next steps will irretrievably delete all the data in your CPU!Complete migration using new functions•Turn the mains switch on your CPU power supply (PS4xx) to OFF and remove the Memory Card from your CPU.•Insert the Memory Card you have just prepared into the CPU and turn the mains switch back to ON. The operating system is now transferred from theMemory Card to the internal Flash EPROM. During this process all the displayLEDs on the CPU light up (INTF, EXTF, FRCE, CRST, RUN, STOP). Thedownload procedure takes about 2 minutes to come to an end. When thishappens, the STOP LED on the CPU flashes slowly => system-generatedmemory reset request.•Turn the mains switch on your CPU power supply to OFF, exchange the Memory Card with the update for the original Memory Card and turn the mainsswitch back to ON. The CPU carries out an automatic memory reset afterwhich it is operational once again.3.1.2 Updating your IM153-1 and IM153-2 (ET200M)Before you can upgrade the driver blocks for the ET 200M modules to V5.0, youneed to check their compatibility with the IM 153 modules in your system and ifnecessary do an exchange to make sure they are compatible. In order to operatethe PLC driver blocks with ET 200M on-line (S7-300 SM modules),the firmwarerelease number of the IM 153-1 must be greater than or equal to Z05, or in thecase of the IM 153-2 it must be greater than or equal to Z03. You can find out theproduct version of your IM by looking on the front panel, lower right. There you willfind the following information:X567The cross specifies the current product version. The IM 153 cards will have to beexchanged in their entirety. Please contact your Siemens sales partner to arrangethis.Complete migration using new functions3.1.3 Handling GSE filesWith STEP 7 version 5, stricter checks are carried out on GSE files (i.e. devicemaster files). In the case of GSE files from an earlier project, syntax errors orunknown errors may be reported. If the following measures do not succeed,contact the manufacturer of the device and ask for a new GSE file. The followingerrors may be displayed:•Install new *.GSE filesThe GSE file (path\file name) contains syntax errors. This makes itimpossible to interpret.- Create a backup copy of the file and open it with a text editor (such asWordpad)- Check Vendor_Name. A maximum of 32 characters and no specialcharacters are allowed between the double quote marks.- Correct the name, save the file and restore it to the system again.•InsertIn the ’SIMATIC 400(1)’ station, transmission rate ’187.5 kbit/s’ is notsupported by node ’MBK-P’.- Find out the GSE file name and path via the object properties of the DPslave- Create a backup copy of the file and open it with a text editor (such asWordpad)- The decimal separator for the transmission rate must be entered as apoint, not a comma (change ’187,5_supp = 1’ to ’187.5_supp = 1’)’- Start HWCONFIG and choose menu command Options > UpdateCatalog.Note: If an entry reading ’187,5_supp = 1’ is not present, it means thetransmission rate is not supported in reality and you will need to contact themanufacturer of the device.•Path\EXTRP.GSD contains syntax error. This makes it impossible to interpret.- Open the file with a text editor (such as Wordpad) and check whether there is a diagnostic data length entry for the DP slave. For safety’s sake youshould enter the highest possible value for this:Max_Diag_Data_Len = 244- Start HWCONFIG and choose menu command Options > UpdateCatalog.Complete migration using new functions3.2 PCS 7 librariesIn the case of the PCS 7 libraries, certain changes have been made (some blockshave been amended, some moved to other libraries and some new ones added).The "PCS 7 Basis Blocks" library has been omitted and a new PCS 7Communication Blocks library has been added.Comprehensive details on the changes in V5.0 compared with V4.x can be foundin the README file for the PCS 7 libraries.Note: When using the new Technological Blocks, please be aware that with theseblocks message texts 6 to 10 and associated values 8 to 10 are omitted and in thecase of the instance data blocks are lost when migration takes place.3.2.1 Backup when reusing V4.02 PCS7 librariesAt the time of installing V5.0 PCS 7 libraries, the previous state is automaticallydeleted during setup in each case.If you want to continue having the PLC blocks from the previous version availablefor a limited period, go to Windows Explorer and copy the directories:...Siemens\Step7\S7libs\PCS7 Technological Blocks or \PCS7 Basis Blocks or\PCS7 Fielddevice Blocks or \PCS7 Driver Blocks to a directory other than theSiemens directory and rename the copied directories, e.g. by adding V402. Thenopen the libraries in SIMATIC Manager and enter the new library names in theObject Properties (max. 24 characters).So that you still have access to the online help for the previous states, copy thefollowing:...Siemens\Step7\S7hlp\S7jtec_a.hlp, S7jtec_t, S7jtec_b.hlp, S7jtec_t,S7jtec_c.hlp, S7jtec_tto ...Directory\PCS7 Technological Blocks V402...Siemens\Step7\S7hlp\S7jbab_a.hlp, S7jbab_t, S7jbab_b.hlp, S7jbab_t,S7jbab_c.hlp, S7jbab_tto ...Directory\PCS7 Basis Blocks V402...Siemens\Step7\S7hlp\S7jfdb_a.hlp, S7jfdb_t, S7jfdb_b.hlp, S7jfdb_t,S7jfdb_c.hlp, S7jfdb_tto ...Directory\PCS7 Fielddevice Blocks V402...Siemens\Step7\S7hlp\S7jdrv_a.hlp, S7jdrv_t, S7jdrv_b.hlp, S7jdrv_t,S7jdrv_c.hlp, S7jdrv_tto ...Directory\PCS7 Driver Blocks V402Complete migration using new functions 3.3 Converting the PLCNote:Before migration it is important to check whether there are enough free resourcesin the PLC for the migration to take place. This concerns the memory for the codeand the data including number locations, local data and run time.3.3.1 SIMATIC Manager: Converting the Plant HierarchyThis conversion requires no project planning measures.For information on this procedure:•Open SIMATIC Manager•Open the project•When Component View is displayed, use View > Plant View to go to the Plant View dialog. The following message is displayed:•Click "Yes" to confirm conversion of the Plant Hierarchy.3.3.2 HW Config: Adjust hardware•Customize the hardware configuration for the project, save/compile it and download it to the SIMATIC station.Complete migration using new functions3.3.3 SIMATIC Manager: Integrate and adapt the blocks from the newlibraries•Create a separate library specifically for the project.•From the new libraries, copy all the blocks that are being used in your project into this library.•The symbolic name of a block must not exceed 16 characters. If the name is longer than 16 characters, proceed as follows:- Go to Component View, click on "S7 program" and double-click on"Symbols" in the right hand window.- Symbol editor: Shorten the names to max. 16 characters and then save the symbol table.•Perform the necessary project-specific changes in the separate library you created specifically for the project:- Check the values for the attributes in the FB parameters for changesbetween your V4.x project and the new V5.0 library blocks. Double-click onthe FB in the block folder (offline) to display the declaration table for theFB. If you click the little symbol in the same row as the parameterconcerned, the "Properties - Parameters" dialog box is displayed:Example:Complete migration using new functions- Change your values as necessary if you wish to keep the parameterproperties.- Caution: By default, many attributes are set to "false" or are not present.In this way, you can delete connections from the CFCs, for example, if the"S7_link" attribute then has "false" as its value. You must therefore checkthe block attributes carefully.- The value of the attributes - for example, "S7_shortcut" - must not exceed16 characters.- Due to the new message attribute, "S7_alarm_ui" (in the message concept for EDC), message text for operator input messages is no longerdisplayed. In other words, you can no longer generate you own operatorinput messages with the message block, as with all the other message-compatible blocks in the PCS7 libraries.It became necessary to use the "S7_alarm_ui" message attribute formessage blocks owing to the message concept for EDC.•From your own library, copy all the blocks that will be used in the project into the block folder for the program.•If necessary, check by the last modification date (in the block folder in View: Details) whether all the blocks to be updated have been copied.•Now insert a CFC ("Dummy") in the chart folder for your project.3.3.4 CFC: Integrating and adapting blocks from new libraries•Double-click on the chart to open it.A message is displayed (if conversion has not already been carried out, forinstance at the time of a CPU change in the HW configuration), to the effectthat the data was created with CFC version 4.x and that editing is only possibleafter conversion.•Click "Yes" to confirm and the charts will be converted.•In the chart, select menu command Options > Block Types... and import all the blocks into the chart folder (in the left hand window "Block folder offline",select the blocks and click the "Å" button).•Rename the CFC called "Dummy" to "MSG_CSF" and place in it the block called MSG_CSF (FB44).It is used to generate control and instrumentation technology messages thatare not generated in drivers or function modules. Please refer to the onlineHelp for further information.Complete migration using new functionsNote:In the case of large projects (>30K PowerTags) use the WinNT Task Manager inthe "Processes" register during block-type importing for process S7JCFCAX.EXEto note the number of handles you are using.If the number rises above 10000, cancel type importing once the current block hasbeen processed and exit the CFC. Restart the CFC and continue type importingfrom the next block. Otherwise in some circumstances there could be anexception error on accessing the project database.If the new versions of the blocks have different properties than the current versionin the CFC, the following dialog box is displayed:。