sitrain pcs 7 training

27
Date: 21.05.22 File:ST-PCS7SYS_V6_mp.1 SIMATIC PCS 7 Siemens AG 2003. All rights reserved. SITRAIN Training for Automation and Drives Multiproject

Upload: ayman-qunaibi

Post on 16-Dec-2015

713 views

Category:

Documents


95 download

DESCRIPTION

chapter

TRANSCRIPT

PCS7_templateMultiproject
Create MP .......................................................................................................................................... 3
Adjusting Projects ................................................................................................................................. 8
Exercise: Project Structure .................................................................................................................... 12
Exercise: Archive, Dearchive and Move MP.......................................................................................... 16
Exercise: Download Changes ............................................................................................................. 27
PCS 7- Multiproject
Server ES
Multiproject The folder where all the projects and libraries are stored for an automation solution is called multiproject; it contains one or more STEP 7 projects and optionally also libraries. The projects within the multiproject can contain objects with cross-project relationships (e.g. cross-project S7 connections).
Benefits of Multiprojects
If projects are part of a multiproject, they can be created with a smaller size and clearer structure. Using multiprojects, you can e.g. create one project for each operator and divide the stations among the operators for distributed execution. Cross-project functions allow you to handle a multiproject almost like one single project.
Examples for Cross-Project Functions
- Save as (store multiproject with all projects at another location)
- Archive (multiproject with all projects)
- Match cross-project networking (e.g. merge subnets)
- Update view (all projects of a multiproject)
Other cross-project functions (with PCS 7, SIMATIC BATCH)
- Compile OS (transfer AS-OS connection data)
- Export SIMATIC BATCH plant data
Date: * File:ST-PCS7SYS_V6_mp.*
Creating Multiprojects
ES server
MP
P1
LIB
ES-x
P2
MP = Multiproject, stored on the hard disk of the server ES
P1 = Project within the MP, stored on the server ES
P2 = Project within the MP, stored (alternatively) on the server ES or on the distributed ES
LIB = Master data library, within the MP
Create a Multiproject There are two ways to create a multiproject:
1. On the ES which is used as server ES, you can create the multiproject with the individual projects and the master data library. All folders are saved on the hard disk of the server ES (MP, P1, P2 and LIB)
2. The multiproject and part of the projects are created on the server ES. The folders MP, P1 and LIB are saved here. Another project (P2) is created on another ES (ES-x) and later included in the multiproject.
Caution Before creating the multiproject and associated projects, create a directory on each local hard disk of the participating ESs and enable it for sharing with all the participating configuring engineers. All other access paths are handled via the Windows network environment, the computer name and share name for the directories.
Each project can contain an AS, OS or a combination of several ASs and OSs. The combination is created in such a way that the individual projects can later be distributed among the individual ESs (configuring engineers). The library remains on the server ES so it can be accessed by all.
The server ES should be entered in one project of the multiproject; this allows you to perform compiling and downloading centrally.
As long as the PC interface of the respective ES is set in PG operation in the distributed, individual projects (via "Set PC Station" and "Set PG/PC Interface"), there is no need for the explicit presence of an ES in these projects. The final network configuration is performed later in the multiproject after the projects have been synchronized.
Note Immediately after creating the projects in the multiproject, set the display language for each project/library via
Options -> Display Language...
ES server
UNC path
1. Move
2. Edit
Move On the server ES go the multiproject and select the project (P2), then activate
File-> Save as...
to copy it to the distributed ES x. In doing so, please apply the settings shown on the slide.
The purpose of the procedure is to store a copy of the project on the hard disk of the distributed ES x (P2). The selected options set up a link in the multiproject to the project on the distributed ES x. The multiproject version is updated via this link. The old version of the project remains on the hard disk of the server ES under its original name (P2 old version).
In the event of an error occurring on the ES x, this older version can be used as the backup for project P2.
Edit Project P2 which is saved on the distributed ES x can be locally processed. In doing so, from the SIMATIC Manager you can also access the master data library and charts of the other projects beyond the MP.
Note If a project that was received on another ES is to be included in a multiproject, this is possible from the multiproject itself as described below.
After highlighting the MP,
The selected project is now included in the multiproject.
Date: * File:ST-PCS7SYS_V6_mp.*
Multiproject (Save/Archive MP - 1)
MP.ZIP
P1
P2
LIB
Save MP As For secure backup, you can also save a multiproject explicitly. To do so, in the SIMATIC Manager, open the multiproject and highlight its symbol .
Then
File-> Save as...Option with (without) reorganization
to copy the multiproject in another directory of your choice and open it there.
Note 1 If you use this procedure, the projects are also saved in the same directory and the links to the distributed ESs are removed!
This means that you then need to use "Save as..." again to distribute the individual ESs (see previous slide).
Archive MP After closing the multiproject, activate
File -> Archive
to initiate archiving. First the multiproject you want to archive is selected. In another step, the directory and archive name you want so save the archive as are selected/entered.
The result is a "zip" file containing the entire MP contents.
Dearchive MP You first need to prepare the directory (share) or as an alternative, empty the directory (delete MP).
Choose the menu command:
File -> Dearchive
First the multiproject to be dearchived is selected, then the target directory where you want to save the extracted files is selected.
Note 1 applies here too, i.e. links are removed.
Date: * File:ST-PCS7SYS_V6_mp.*
Multiproject (Save/Archive MP - 2)
Windows
taskbar
Note 2 If when trying to save, reorganize or archive the multiproject, a message is displayed "...being processed by another application. Close and restart..." one of the following tips may help:
- For archiving, you must first close the multiproject and each project. Then exit the SIMATIC Manager and launch it again. Now start archiving again.
- If an OS is present in the project, you need to stop the MS SQL server service (see slide). You can run the Service Manager from the Windows taskbar, by double-clicking on the symbol there (circled in the slide). Then click the "Stop" button.
After archiving, when you select the project again in the SIMATIC Manager the SQL service is automatically restarted (see checkbox in slide).
Date: * File:ST-PCS7SYS_V6_mp.*
Multiproject (Sending Back Single Projects)
ES server
Sending Back Single Projects
To send back a project that was decentrally processed to the server ES (e.g. to distribute it to another ES), proceed as follows:
First delete the old project (P2-old) - either using the SIMATIC Manager, as a single project or via the Windows Explorer)
Select the current project (P2) in the MP and activate
File-> Save as... (see options in the slide)
to copy it to the location to replace the deleted project in the multiproject directory. The previous project version (P2) remains on the distributed ES-x and can either be deleted or used as an additional backup copy until the process is completed.
.
Multiproject (Adjust Projects)
Connection 1
Refer.: XYZ
Connection 1
Refer.: XYZ
Project 1 If project 1 on the ES1 is not yet included in the multiproject, you can use NetPro e.g. to configure "Subnet 1" as system bus. Connections originating from AS01's CPU to a station that is not in the same project are set up as connections to a station in an "unknown project". For this type of connection, you need to enter a "Connection name (reference)" in the Properties dialog box (e.g. "XYZ"). It is called an "open connection".
Project 2 If project 2 on the ES2 is not yet included in the multiproject, you can use NetPro e.g. to configure "Subnet 2" as system bus. Connections originating from AS02's CPU to a station that is not in the same project 2 are set up as connections to a station in an "unknown project". For this type of connection, you need to enter a "Connection name (reference)" in the Properties dialog box (e.g. "XYZ").
Note Connections different projects that are later merged in the multiproject, must have the same connection names (references="XZY"). The above described procedure is not necessary if the projects were already inserted in the multiproject when the connection was created. If this is the case, when you set up a connection in NetPro, the other station is selected via the multiproject (it is offered for selection in the screen).
Adjust Projects Via
File -> Multiproject -> Adjust projects
you can merge subnets and connections that were originally created in separate projects - as part of the "project adjustment". The subnets that originally had different names (e.g. "Subnet 1" and "Subnet 2") are merged under a new name (e.g. "system bus").
"Open connections" set in both projects with the same reference are also merged.
Date: * File:ST-PCS7SYS_V6_mp.*
Multiproject: (Requirements)
D:
Multi
External
Single
PCS7_MP
Sharing
---------------------------------------------------------------------------------------------------------
Steps 1. Use the Windows Explorer to create the directory " PCS7_MP" on hard disk D.
2. Enable it for sharing (full access).
---------------------------------------------------------------------------------------------------------
Create Folder 1. Open the Windows Explorer (right-mouse click on the START button in the Windows taskbar and select "Explore").
Select hard disk D, click in the right pane and
RMC: New -> Folder
2. Point to the new folder and
RMC: Sharing...
Permissions button
to ensure the other configuring engineers can access the directory (and subdirectories) from other ESs.
Note You only set sharing for the main directory. Do not change the permissions for the subdirectories!
Date: * File:ST-PCS7SYS_V6_mp.*
Multiproject: (Aim of Exercise - 1)
ES server
What are we going to practice?
Two adjacent workstations are going to work together. The slides will refer to one station as ES server and the other as ES-x. After completion of the four steps described below, change roles with the other team.
Step 1 On the ES server (also called "Your ES") create a multiproject in the "PCS7_MP\Multi" directory. Your AS1 and ES1 are created in the multiproject. The master data library is taken from the PCS 7 library.
On ES-x (other team's ES) create a simple project in the "PCS7_MP\ Extern" directory. Configure your own AS2 and the associated OS2 (own PC).
The contents of the projects are described in more detail later.
Step 2 On the ES server, the project from the ES-x (other team's ES) is inserted in the multiproject. Changes are made on both sides.
Step 3 Archiving and dearchiving of the multiproject (backup) are performed on the ES server followed by distribution.
Date: * File:ST-PCS7SYS_V6_mp.*
Multiproject: (Aim of Exercise - 2)
Adjust projects in multiproject
PC1
PLC
01
C
P
U
C
P
P
S
PC2
PLC
02
C
P
U
C
P
P
S
(your ES)
(your ES)
Step 4 Separately on each ES, subnets and (open) connections are set up (e.g. from the OS in one project to the AS in the other project). To do this, you need the adjust the projects in the multiproject (on the ES server), i.e. you need to merge subnets and open connections.
Step 5 On the ES server (as central ES) compile and download the ASs and OSs one after the other. Changes are made and downloaded offline.
Date: * File:ST-PCS7SYS_V6_mp.*
Project Structure
Exercise 1 (Step 1) Create projects separately (MP1 and P2).
---------------------------------------------------------------------------------------------------
Procedure The steps were listed in the previous overview. The steps are now executed as follows. Use your knowledge from the previous project.
1. Create a new multiproject "MP1" (in the prepared directory).
Insert project P1 in this multiproject, highlight it and
RMC: Multiproject -> Create in multiproject
Enter the path and name. The project will contain AS1 and the PC station as ES in the component view.
In the same way insert library "LIB" and define it as master data library via
RMC: Multiproject -> Define as master data library
2. Export the hardware configuration of your AS from the preceding project as a file and import it into the current project P1.
To do this, go to the old project and open the hardware configuration, then activate
Station -> Export (with the default options)
and save the configuration under a name of your choice. Then insert an S7-400 station in the project P1, open the (still empty) hardware configuration and import the previously exported file. Check the addresses on the bus systems.
3. In project P1, insert your ES as PC station and configure it in accordance with the parts list for your workstation.
Date: * File:ST-PCS7SYS_V6_mp.*
Siemens AG 2003. All rights reserved.
SITRAIN Training for Automation and Drives
4. In the SIMATIC Manager open library "PCS 7 Library V60". From this library copy its S7 program to the master data library "LIB" in the multiproject. If additional blocks are needed, open the other library and copy the required block (FBs, FCs) from there to the block folder in your master data library. This master data library is kept in the multiproject and maintained there.
5. In project P1 create the plant hierarchy for plant 1. You can assign this PH to AS1 only (in your own project P1), as OS2 is created in another project (P2 on ES-x).
6. Insert a CFC chart "CFC11" in subsystem 11. Derive it from the measuring point type PIDCTRL from the previously created master data library. You can do this either by importing measuring points or by copying and adapting the chart.
7. Open NetPro and set up S7 connections via Industrial Ethernet:
-From AS1 to ES1 (in P1)
-From AS1 to AS2 (in unknown project, as ES-x has not yet been linked, reference: AS1_AS2)
Note 1 When creating a connection in your own project, the partner is selected (as known). If you insert a connection to the partner "in unknown project" (the project on the other ES), you need to agree with the other group upon a "reference name" for this connection. Later both connections that were initially created separately are merged on the basis of this reference name.
----------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
Procedure The steps were listed in the previous overview. The steps are now executed as follows. Use your knowledge from the previous project.
1. Create a new multiproject "P2" in the directory prepared for it. The project will contain AS2 and your PC station as OS2 in the component view.
2. Export the hardware configuration of your AS from the preceding project as a file and import it into the current project P2.
To do this, go to the old project and open the hardware configuration, then activate
Station -> Export (with the default options)
and save the configuration under a name of your choice. Then insert an S7-400 station in the project P2, open the (still empty) hardware configuration and import the previously exported file. Check the addresses on the bus systems.
3. In project P2, insert your PC station as OS2 and configure it as single-user OS in accordance with the parts list for your workstation.
4. In project P2 create the plant hierarchy for plant 1 and plant 2. In this PH you can only assign plant 2 to AS2 (in your own project P2) while plant 1 and plant 2 are assigned to OS2 (AS1 is configured in project P1 and is not yet known).
Date: * File:ST-PCS7SYS_V6_mp.*
Siemens AG 2003. All rights reserved.
SITRAIN Training for Automation and Drives
5. Insert a CFC chart "CFC21" in subsystem 21. Derive it from the measuring point type PIDCTRL from the "PCS 7 Library V60". You can do this either by importing measuring points or by copying and adapting the chart. As you are not yet able to use the master data library from the MP1, use the original library instead.
6. Insert a picture in each PH folder (see previous slide). In the "Object properties" for each picture, go to the "Block symbol" tab and check the "Derive block symbols from the plant hierarchy" checkbox.
7. Open NetPro and set up S7 connections via Industrial Ethernet:
-From AS2 to OS2 (in project P2)
-From AS2 to AS1 (in unknown project, as ES-x has not yet been linked, reference: AS1_AS2)
.
Insert Project in Multiproject
Exercise 2 (Step 2) Insert project in multiproject
---------------------------------------------------------------------------------------------------
Requirements Project P1 must first be closed on the ES-x.
Open multiproject MP1. Highlight the multiproject then
RMC: Multiproject -> Insert in multiproject
Use the Windows network (terminal bus) to search for the other team PC (ES-x). After logging in (use login and password from the team next to you) and select project P2 from the shared directory (PCS7_MP\External).
Result As a result, a link is entered in the multiproject on the server ES to project P2 on the ES-x. Now the project data from P2 is also available for project P1 in MP1. If project P2 is edited on ES-x, the changes are saved there, on the local hard disk (higher performance). If data is required for project P1 on the server ES, the data is transferred via the terminal bus - this is slower.
----------------------------------------------------------------------------------------------------------
ES-x Close project P2. Once the project is in the multiproject, open it again. You can see in the SIMATIC Manager that project P2 is now part of multiproject MP1.
Date: * File:ST-PCS7SYS_V6_mp.*
Archive, Dearchive and Move Multiprojects
ES server
Exercise 3 (Step 3) Archiving and dearchiving a multiproject
Server ES Archive the multiproject MP1 in the directory PCS7_MP\Archive under the new name MP2. Then dearchive the project to directory PCS7_MP\Multi.
Now move project P2 back to ES-x.
---------------------------------------------------------------------------------------------------------
Requirements Both multiproject MP1 and project P2 must be closed.
Archiving Go to the SIMATIC Manager and activate
File -> Archive -> Multiproject tab
to select your multiproject MP1 and archive it as "MP2.zip" in the "Archive" directory.
Dearchiving Go to the SIMATIC Manager and activate
File -> Dearchive
to select the previously archived version MP2.zip and dearchive it to the "PCS7_MP\Multi" directory. A new subdirectory (MP2) is created in the directory and the individual directories for the individual projects and libraries are set up here.
--------------------------------------------------------------------------------------------------------
ES-x First close your project P2. After backing up the MP from the server ES, delete your project P2 on the ES-x. Dearchive the project from the MP and move it back to your ES. Then check it.
Date: * File:ST-PCS7SYS_V6_mp.*
Adjust Projects (Subnets)
Exercise 4 (Step 4) Multiproject -> Adjust projects
Server ES Synchronize the projects imported in the MP with regard to the subnets and connections. The originally separately configured Ethernet buses (in our example called Systembus and Systembus_IE) are to form one bus.
The separately configured S7 connections (AS1 to AS2) are to be merged via the common bus.
--------------------------------------------------------------------------------------------------------
Requirements Project P2 must be accessible on the ES-x (can also be closed).
Note Each subnet has a "subnet ID" (see circled sections) and a name. The subnet ID is automatically assigned by the SIMATIC Manager and consists of two parts:
- The first part differentiates S7 projects
- The second part differentiates subnets within the same project
After merging subnets within a multiproject, the parts that belong together are given a common subnet ID.
Date: * File:ST-PCS7SYS_V6_mp.*
Merging Subnets (1)
1. Next slide
2. Slide after
next
1
2
Start Synchronization In the SIMATIC Manager select the multiproject symbol MP, then
RMC: Multiproject -> Adjust projects
to open the entry screen. Each subnet type is merged separately.
In our example, only the Ethernet subnet is to be merged.
The MPI and PROFIBUS subnets are not merged!
1. Select the Ethernet subnet and click "Execute".
After selecting the subnets (other screens, next page) click "Save" in the above dialog box and go to the next network or connection.
2. Select "Merge connections" and click "Execute". How to proceed from here is described in the slide after next.
Date: * File:ST-PCS7SYS_V6_mp.*
Merging Subnets (2)
Select Subnets In the left pane, one after the other select the subnet and click the arrow button
"->" to move the subnet to the right pane. Under a temporary name "Ethernet_wide(1)", the right pane lists the subnets for the individual projects that were merged. If you want to change the name, select the temporary name, then after a short wait click the name again and overwrite it with the new name.
Date: * File:ST-PCS7SYS_V6_mp.*
Merging Connections
Error log
Merging Connections
Select "Merge connections" and click "Execute". If errors are found (e.g. no suitable open connection was found for the connection with reference AS1_ASX from P1), the error log is displayed.
If on the other hand, merging was successful, this is logged in a success message (see slide).
Merging only becomes effective when you click "Save"!
Date: * File:ST-PCS7SYS_V6_mp.*
Connections (Table)
Additional Connections The stations are entered for the system bus in the above table.
The system bus was merged in the previous part of the exercise by adjusting the project. Each line represents one S7 connection with two nodes. The end points (partners) of the connection are marked by the entries "a,a", "b,b" etc. Additional connections must be set up via NetPro (see "Note" column).
1. In the second row enter the computer name and AS designation for the stations used in your projects P1 and P2 (e.g. R222PC01 for ES or AS04 for the AS).
2. Open NetPro for project P1 and select the CPU for AS1. A connection table is displayed. Take the IDs of the already created connections and enter them in the table in the slide above.
3. For the remaining connections select the partner in project P1,
RMC: and activate Insert new connection.
A dialog box is displayed where you can select the partner from the other project P2.
Please ensure the PC station (ES,OS) activates the connection ("Active connection setup" option). Then complete the above table.
The connections are now configured. In a later step they will be downloaded to the stations.
Project P1
Project P2
b
b
Was created as open connection in P1 and P2 "in unknown project" and then adjusted.
C
C
E
E
f
f
Date: * File:ST-PCS7SYS_V6_mp.*
Compile and Download Objects (1)
Exercise (only from the server ES )
--------------------------------------------------------------------------------------------------------
Steps Open HW Config for the AS/PC and load the target system.
--------------------------------------------------------------------------------------------------------
Load HW Config First - if you haven't already done so - load the HW Config of the stations contained in your multiproject. As an alternative, you can also perform a general reset of the ASs and download again.
Open the configuration for each individual station and download it by activating
PLC -> Download to module.
S7 Connections Load the S7 connections from NetPro. To do this, open NetPro for the individual project, select the AS and PC station and activate
PLC->Download in current project->Connections and gateways
Download them to the selected station.
Date: * File:ST-PCS7SYS_V6_mp.*
Compile and Download Objects (2)
1
2
Compile and Download Target System
There are several ways to do this. The one shown here is suitable for central compilation and downloading as you can preset everything and the process can then be executed automatically.
1. Select the chart folder for each AS. The lower part of the screen offers some options for settings for compilation/download (see also next slide). They are the same screens as the ones you have already used in the previous exercises. You can define which action is to take place after "Start" by checking the required checkbox in the "Compile" and/or "Download" columns.
2. The settings are made in the same way for each OS before activating Start.
Date: * File:ST-PCS7SYS_V6_mp.*
Compile and Download Objects (3 - AS CPU)
AS Setting Settings must be made in both tabs (see above). See also the comments in the information box!
The first time the entire program is compiled and downloaded.
Then you can restrict compilation and downloading to only the objects where changes were made (the latter is important for loading the AS in RUN mode).
Date: * File:ST-PCS7SYS_V6_mp.*
1
2
3
OS Setting The first time, you need to assign the S7 programs to the OS (using the arrow buttons).
Then you need to select a connection for each S7 program (assigned to the AS - for the OS this is the "Named connection").
Date: * File:ST-PCS7SYS_V6_mp.*
4
5
Scope of the Compilation
The first time everything all the options are selected (if available) and for the scope select entire OS with general reset (screen 4)
After that, activate "Changes" instead.
Click "Accept". After a short delay the screen with the download options is overlaid.
The first time you download the OS, the entire WinCC project is downloaded. This requires that the WinCC project is not open (screen 5)
The changes in the WinCC project are downloaded online (the WinCC project is active).
Note The option "Create block symbols..." (circled in the slide above) is PH-wide. Any PH paths with identical names in the different projects of a multiproject are placed in parallel.
This means, e.g. that in all AS projects whose PH "PlantX/SubsystemY" is searched for CFC/SFC charts and the OS-relevant blocks contained in there are detected.
Then the PH with the same name "PlantX/SubsystemY" is searched in the OS projects for an existing picture and the block symbols are inserted there together with the already detected blocks.
If the changes are compiled, the symbols/their interconnections are updated.
Date: * File:ST-PCS7SYS_V6_mp.*
Download Changes
Make Changes and Download
Change the name of the controller block from the CFC11 chart for plant1/subsystem11.
Insert an additional HMI block in the CFC21 chart (e.g. OP_A_LIM)
Start the process by selecting the multiproject symbol and
RMC: Target system -> Compile and download objects
to open the screen.
In the above example, the option "Update automatically" queries the status of the CPU and computer and the AS1 is displayed as "not obtainable" (because it was disconnected from the system bus for testing purposes).
If all stations are accessible, select the required options in the compilation and download screen to compile and download these changes while the plant is running.
Project P1
Project P2
the MP
the MP
the MP