ch4 v70 system_configuration_en

44
Training Center for Automation and Drives SIMATIC PCS 7 System Training System Config Page 1 Date: 15.11.2006 File: ST-PCS7SYS_V70_systkonf.1 SIMATIC PCS 7 Siemens AG 2003. All rights reserved. SITRAIN Training for Automation and Drives SystemConfiguration PROFIBUS DP AS 414, AS 416, AS 417 Central Engineering System (ES) CFC library: Proxy blocks, for field devices and distributed I/O, faceplates for WinCC, Network configuring: DP master OS Ind. Ethernet SIMOVERT SIMOCODE SIPART SIPOS 3 MC ET 200 M Operator control & monitoring Reporting Reading measured values and writing manipulated variables Configuring Configuring ET 200 iS ET 200 X Content Page System Configuration for PCS 7 Components .................................................................................. 3 Configurable Components ................................................................................................................ 4 Using HW Config to Configure the AS .............................................................................................. 6 Exercise: AS HW Config (Central AS) .............................................................................................. 8 Task: AS HW Config (PROFIBUS DP CiR Compatibility) ................................................................. 11 Exercise: AS HW Config (PROFIBUS DP Set Parameters for CiR Object) ........................................ 12 Exercise: AS HW Config (Set Parameters for PROFIBUS DP CiR Module) ...................................... 14 Exercise: AS HW Config (CPU Process Image Partition) .................................................................. 15 Exercise: AS HW Config (Driver Concept/Symbolic Channel Names) ............................................... 17 Compiling and Downloading the AS HW-Config ............................................................................... 19 Setting the PG/PC Interface for the First AS Download ..................................................................... 20 Compiling the AS HW Config and Downloading in STOP Mode ........................................................ 21 Exercise: Download the AS Hardware Configuration in RUN ............................................................ 22 Exercise: Download the AS HW Config to the PLC Check CiR Compatibility-1) ................................. 23 Configuring the PC Station (Overview) ............................................................................................. 26 Set the PC Station (Modules) ........................................................................................................... 28 Set PC Station (Access Point) .......................................................................................................... 29 SCE (Station Configuration Editor Option) ........................................................................................ 30 Exercise: SIMATIC PC Station/OS HW Config ................................................................................. 32 Calling Up NetPro ............................................................................................................................ 37 Setting Up a Connection ............................................................................................................. 40 Downloading a Connection ............................................................................................................... 42 Cross-Project View .......................................................................................................................... 43 S7 Connections (Stations in Unknown Projects) ............................................................................... 44

Upload: romanholo

Post on 07-May-2015

199 views

Category:

Technology


2 download

DESCRIPTION

treinamento automação siemens, pcs7 v7

TRANSCRIPT

Page 1: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 1

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.1

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

SystemConfiguration

PROFIBUS DP

AS 414, AS 416, AS 417

Central Engineering System (ES)

CFC library: Proxy blocks,for field devices and distributed I/O,

faceplates for WinCC,Network configuring: DP master

OS

Ind. Ethernet

SIMOVERTSIMOCODE SIPARTSIPOS 3 MC ET 200 M

Operator control &monitoring

Reporting

Reading measured values andwriting manipulated variables

Configuring

Configuring

ET 200 iS ET 200 X

Content Page

System Configuration for PCS 7 Components .................................................................................. 3Configurable Components ................................................................................................................ 4Using HW Config to Configure the AS .............................................................................................. 6Exercise: AS HW Config (Central AS) .............................................................................................. 8Task: AS HW Config (PROFIBUS DP CiR Compatibility) ................................................................. 11Exercise: AS HW Config (PROFIBUS DP Set Parameters for CiR Object) ........................................ 12Exercise: AS HW Config (Set Parameters for PROFIBUS DP CiR Module) ...................................... 14Exercise: AS HW Config (CPU Process Image Partition) .................................................................. 15Exercise: AS HW Config (Driver Concept/Symbolic Channel Names) ............................................... 17Compiling and Downloading the AS HW-Config ............................................................................... 19Setting the PG/PC Interface for the First AS Download ..................................................................... 20Compiling the AS HW Config and Downloading in STOP Mode ........................................................ 21Exercise: Download the AS Hardware Configuration in RUN ............................................................ 22Exercise: Download the AS HW Config to the PLC Check CiR Compatibility-1)................................. 23Configuring the PC Station (Overview) ............................................................................................. 26Set the PC Station (Modules) ........................................................................................................... 28Set PC Station (Access Point) .......................................................................................................... 29SCE (Station Configuration Editor Option) ........................................................................................ 30Exercise: SIMATIC PC Station/OS HW Config ................................................................................. 32Calling Up NetPro ............................................................................................................................ 37Setting Up a Connection ............................................................................................................. 40Downloading a Connection ............................................................................................................... 42Cross-Project View .......................................................................................................................... 43S7 Connections (Stations in Unknown Projects) ............................................................................... 44

Page 2: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 2

Page 3: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 3

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.3

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

System Configuration for PCS 7 Components

PC

ES/OS

Terminal bus

Plant bus

ApplicationWinCC applicationLAN onboard

PC

OS

WinCC applicationCP 1613

NET-Pro

Set PC stationStation Configuration Editor (SCE)

AS01

CPU

CP

PS AS

02CPU

CP

PS

HW Config

Configuration A PCS 7 environment consists of ASs (S7 components with suitable I/O), PCs used as an ES or OS and networks between these components. There is an actual configuration and a preset configuration for each component. In addition communication connections must be set up between the stations.

Actual configuration With an AS, this is determined by the specific structure of the available hardware (rack, power supply, CPU etc.). In our case, the hardware was provided in our training room.With a PC (used as ES or OS), a virtual structure is created using SIMATIC tools for the workstation configuration (Set PC station, or Station Configuration Editor). You need to set up the structure yourself (this is generally done when the PCS 7 software is installed on the PC). With V7.0 and higher, this can be simply carried out from the central ES (Configure Station).

Preset configuration The preset configuration is created in the SIMATIC Manager within a project on the ES by using the HW-Config tool in the project. It contains project-specific parameter settings for the devices used. After completion, the preset configuration must then be transferred via the network from the ES to the respective station (AS or PC). In doing so, the load procedure must find the components of the preset configuration in the actual configuration.

Connection NetPro is used for this. Connections are created between:ES-AS, OS-AS, AS-AS (if the latter need to exchange data among themselves). You also need to download these connections to the respective stations.

Remark All tools are integrated in the ES software and can either be called directly or in the context of the components to be configured.

Page 4: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 4

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.4

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

Configurable Components

AS ES/OS

Configuration Hardware components are used within the project. These include the automation systems (AS), PCs as operator stations (OS) or engineering stations (ES), and the networks.

Components In the multiproject, select the required project, thenright-click and select select Insert New Object and then as required:

"SIMATIC 400 Station" for an AS

"SIMATIC PC Station" for an ES or OS

"Industrial Ethernet" for the plant bus or terminal bus, etc.When you select the object to insert, a symbol is generated to represent each device and serves as access point to the configuration.

HW Config The "Hardware Configuration" tool or "HW Config" for short is used for this. HW-Config is used in the same way for both AS and ES.

AS To configure the AS, use the mouse to select the symbol representing the required AS in the SIMATIC Manager (component view), then

right-click and select Open ObjectThe tool is launched. As an alternative, you can also double-click the hardware symbol in the right pane.

ES To configure the ES, use the mouse to select the symbol representing the required PC in the SIMATIC Manager (component view), then

right-click and select Open ObjectThe tool is launched. As an alternative, you can also double-click the configuration symbol in the right pane of the SIMATIC Manager.

Page 5: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 5

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.5

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

AS HW Config

HW-Config To start, the configuration should reproduce the configuration of the devices. The example in the slide shows an AS configuration. The components shown here offer settings screens (usually accessible via the object properties). If the configuring engineer is knowledgeable about the options available and application at hand, he or she can optimize the components' settings offline first. Then these settings need to be supplied to the devices (by online download to the target systems).

Page 6: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 6

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.6

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

Using HW Config to Configure the AS

1

3

4

2 Hardware catalog

Using HW ConfigYou have created one project with an AS and one with an OS. The hardware configuration must be adapted to the AS and OS you are using. In doing so, the parts lists for the ASs and PCs in use must be taken into account.

Terms The HW Config tool refers to a station (AS or PC). In the right pane, a tree structure displays the SIMATIC components (hardware catalog). After selecting a component (arrow 2 in the slide), the associated Order No. and a brief description are displayed in the comment field (arrow 3). If you have not been able to locate the module (as it is not a current PCS 7 module or is an older module) select the "Standard" hardware profile (arrow 1 in the slide) and search again. There you will find all S7 modules that are known in the current version of the SIMATIC Managers.

Tip If you know part of the order number or designation, you can enter it in the Find box and click the button (arrow 4) to find the module. The search is only conducted for the selected profile. Please note that the part designation can occur multiple times! (If this is the case, continue the search.)

Pasting In the SIMATIC Manager select the station/AS in component view, then right-click and select Open

to open the HW Config.

Page 7: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 7

Then proceed as follows:

Search in the catalog and check the order number and if necessary the firmware version of the racks, power supply, and CPU in use (arrow 3).

Use a drag-and-drop operation to insert the located modules in the left window.

Select the module in the left screen, then

– right-click and select Object Properties… then set the parameters for the module.

Replace To replace a rack (or a module inserted in the rack) search for the new, required module in the hardware catalog. Take the hardware profile setting into account when doing so. The comment field (arrow 3) displays the corresponding order number and brief description for the selected component (arrow 2).Select the correct component, "drag" it with depressed left mouse button across to the rack/module symbol and drop it there. If the exchange is possible, a message is displayed with the order numbers of the two components and must be acknowledged. If the exchange is not possible (because the old/new components are not compatible), the mouse pointer will change to a crossed circle.In this case, the settings of the old module should be documented before deleting the module and replacing it with a new one. Then transfer the settings as appropriate or make new settings.

Note If you have selected an incorrect slot, you can drag the module to another location with the mouse. The new location must be free and wide enough (i.e. correspond to the number of slots required by the module to be displaced).

Remark The catalog profile (arrow 1 in the slide) was set up with the PCS 7 installation. You can edit the profile (s7hpro0) that is automatically created by selecting

Options -> Edit Catalog ProfileHere you use the familiar Windows procedure to copy objects from the standard profile (one window) to the new profile (the other window). After completion, the new profile can be saved via

Profile -> Save as...The newly created profile is offered for selection in the profile box.

Page 8: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 8

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.8

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

Exercise: AS HW Config (Central AS)

CPDP

CPU 417-4DP

PS IM153-2

SMSM SM SM

MPIDP

ET 200M

( UR1 or UR2)

CPEth

PS 407

Slot 1 3 5 6

PROFIBUSaddress

X1

X2

Exercise Configure the modules for the central part of your AS. Use the parts list for your AS as your guide! (The example refers to the "Saarbrücken" training room in the Mannheim Training Center.)---------------------------------------------------------------------------------------------------------

Steps 1. Insert the rack (UR=Universal Rack)2. Insert the power supply (PS=Power Supply)3. Insert the CPU or supplement the integrated DP interface.

Rename the DP subnet and check properties4. Insert and set CP for PROFIBUS DP (if available)

Register CP 443-5 Ext as DP masterRename the DP subnet and check properties

5. Insert and set CP for EthernetCreate a new Ethernet network for the plant bus and rename itAssign or verify MAC address, disable TCP/IP protocol

----------------------------------------------------------------------------------------------------------ProcedureOpen HW Config In the project, select the ASxx to be configured (your AS), and

right-click and select Open objectUse the hardware catalog to locate and configure the components (rack, PS, CPU, CP and I/O modules) in the HW Config for the station.If you cannot see the catalog, select

View -> Catalog to activate it.

Page 9: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 9

Rack In the hardware catalog select the desired rackSIMATIC 400 -> RACK 400 -> UR1 thenuse drag & drop

to move it to the top left window.Notice! For the catalog component you have highlighted, check the detail specifications

in the lower catalog window pane (order No. and comment) so you can insert the correct components. It is possible that the CPU will not start up if you insert a component incorrectly!The slots in the rack are listed in rows. You can now populate each slot (you can also use "drag & drop").

Power supply Select slot "1". In the hardware catalog, selectSIMATIC 400 -> PS 400 -> e.g. PS 407 10A

and position it on row 1. This 10 A power supply occupies 2 slots.CPU Select the correct CPU from the hardware catalog (for example)

SIMATIC 400 -> CPU 400 -> CPU 417-4 -> V3.1 and drag it to the next free row (row 3).The CPU with the integrated DP interface occupies two slots. The Properties screen opens. Select the

New buttonto create a new DP network and enter a meaningful name (e.g. DP_subnet1, or DP_AS01_int1, or DP_AS01_ext3). In the properties for the selected network check whether the DP protocol and the desired baud rate are set (default 1.5 Mbaud). The image displayed now represents the PROFIBUS DP with the "DP master system (1)" identifier. The ET 200M is later appended to this.

Networking CPU via MPI This is no longer necessary with Version V6 and higher.

Remark The new Ethernet CP from 6GK7 443-1EX11-0XE0 V2 supports direct addressing of the card via the known MAC address of the Ethernet CP, therefore, the initial loading via MPI is no longer necessary.

Additional DP subnet If an additional CP is connected in the rack for another DP subnet (such as the CP 443-5 Ext), this CP must be inserted in the rack in HW Config and be connected with a DP subnet (as the second DP master).In the HW catalog, select:

SIMATIC 400->CP 400-> CP 443-5 Ext, select the correct CP and use "drag & drop" to move the CP to the correct rack slot.In the screen overlaid for the PROFIBUS interface for the CP, select

NEW to create a new DP network and then rename the network (for example, DP_Subnet2).

Page 10: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 10

CP as DP master Highlight the CP 443-5 Ext in the rack,right-click and select Insert DP Master System

to name this system as the master for the new subnet. You can use the graphically displayed subnet for additional ET 200M devices or for PROFIBUS PA devices via DP/PA link/coupler modules. If you do not want to configure the CP (no DP hardware is connected, for example), you must disconnect it from the power source (remove it from the rack). If it is present in the rack but not in the hardware configuration, the CPU (depending on the firmware version) may not start up (remain in STOP mode) or may not be downloaded.Therefore, if this CP exists in the hardware, it must also be entered in the HW Config.

Ethernet CP Ethernet is used as the plant bus by default. Insert the CP in the HW Config. In the HW catalog, select

SIMATIC 400->CP-400->CP 443-1-> "Concrete CP" and position it in the rack. In the overlaid "Ethernet Interface Properties" screen -> Parameters tab, click the

New buttonThen, create a new Ethernet subnet (if you have not already done so), rename the subnet (e.g., "Plant bus") and select this bus to identify the CP as being networked.Set a unique MAC address in the project, taking into account other nodes physically present on the bus that are not part of this project.It is advisable to use the ISO transport protocol for small networks as it provides higher performance. However, if you want to communicate over more spread-out networks that are connected with routers, use the ISO-on-TCP transport protocol instead.Please note the address suggestion made in the parts list of your training automation system and deactivate the IP protocol (clear the check box).

Remark The hardware configuration is downloaded in a later part of the exercise.Here, the AS is loaded directly via the known MAC address of the Ethernet CP for the first time. For this to work, the access point S7ONLINE must be active on an Ethernet-capable CP that is connected to the plant bus. (additional settings are described in the chapter "Configuring the Workstation" under Setting the PC Interface).The download also provides the CPU its parameter settings via the Ethernet CP (therefore the CPU is configured during this procedure).If you change the PC interface to the integrated Ethernet CP (LAN card or CP 1613), you can then download and debug additional data (hardware configuration and subsequent software) over the plant bus.

Page 11: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 11

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.11

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

Task: AS HW Config (PROFIBUS DP CiR Compatibility)

PS 407 CPU417-4DP

PS IM153-2

SMSM SM SM

MPI

DP

PROFIBUSaddress

ET 200 M

(UR1 or UR2)

CPDP

CPEth

CiR

Exercise Configure the distributed I/O (ET 200M). The configuration is to allow changes in runtime (CiR=Configuration in Run). Please refer to the parts list for your training automation station. -------------------------------------------------------------------------------------------------------

Steps 1. Activate CiR compatibility2. Set parameters for CiR object (reserve address range)3. Set parameters for CiR module4. Insert and configure I/O modules5. Set process image partitions (CPU and I/O modules)6. Assign symbolic names for the I/O channels7. Compile and download (after changing the PC interface)!---------------------------------------------------------------------------------------------------------

CiR Compatibility (For Distributed I/O Only)CiR Additions are to be made to the distributed I/O during runtime, without stopping

the CPU. Select the DP master system (1) shown in the preceding graphic on the integrated DP interface of the CPU,

right-click and select Activate CiR compatibilityAs a result a so-called CiR object is represented on the PROFIBUS DP. This object needs to be parameterized with regard to future additions of I/O.

Page 12: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 12

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.12

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

Exercise: AS HW Config (PROFIBUS DP Set Parameters for CiRObject)

10 x 244 = 2440 I / 2440 O

Max. bytesper slave

Must be madeavailable

as PII/PIQ via the CPU

properties!

CiR Thenright-click and select Properties

to open the screen form above.The CiR object must retain resources for future DP/PA slaves. Each slave requires up to 244 bytes (can also be less, depending on the actual I/O modules). There is also a maximum limit for the number of slaves that can be inserted in the subnet online.1. The guaranteed number of DP slaves (ET200, DP field devices) must be parameterized in relation to future additions. If no "Extra Settings" are selected, the sum of input and output bytes is automatically displayed. 2. They must be taken into account as sum values for the settings in

CPU Properties -> Cycle/Clock Bit Memory tab -> Size of the process images

(for all DP slaves on all subnets).The CPU properties cannot be changed online!

Note The maximum CiR synchronization time has a default setting of 1000 ms. The time associated with the current configuration is displayed in the properties of the CiR object. The default time and the CiR download process can be influenced in the software. To this end, the system function SFC104 "CiR" can be called in a CFC (from the "Standard Library"). By parameterizing and downloading this, the CiR process can be influenced without stopping the CPU.

Page 13: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 13

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.13

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

In the HW catalog, under PROFIBUS DP -> ET 200M

select your version (e.g. IM153-2) and use the mouse to drag it onto the CiRobject. Specify the PROFIBUS DP address for the ET 200M on the displayed screen (as set on the address switches for the IM). After closing the screen, the associated frame is displayed with a maximum of 11 slots (for I/O modules you can use slots 4 to 11).

Note Not all IM 153-2 modules are CiR-compatible (pay attention when ordering). Currently (V6.1) the 153-2 HF and 153-2 HF FO in the V6.1 hardware profile are suitable for CiR.

Page 14: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 14

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.14

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

Exercise: AS HW Config (Set Parameters for PROFIBUS DP CiRModule)

As the selected IM 153-2 supports CiR, a CiR module is offered in the lower part of the window from slot 4.

I/O Modules Take the I/O modules and position them on top of this CiR module in the ET 200M table (as previously for the station, but now with modules from the ET 200M / IM 153-2 directory). This way the CiR module is shifted one place to the right, ready to receive the next I/O module.

Note: Addresses The CiR module reserves an address range for inputs and outputs (the total of which is less than 244 bytes - they can be addressed via the slave). Using the module properties, you should reserve sufficient address space for modules to be inserted at a later point in time. If you want to add address space later, you must switch the CPU to Stop mode.For example, if the planned configuration is one ET 200M for 8 modules (the corresponding bus modules (hardware) must be installed right from the start), and if the initial installation is equipped with 5 AI modules (8-channel), this means that 5x8x2=80 bytes input addresses are used. If you would like to add identical modules to the three remaining slots while the CPU is in Run mode, you will need to have reserved 8x8x2=128 bytes input addresses during the initial setup. 1 word=2 bytes per analog value are required.

Note about module replacementWhen using PCS 7 you can replace modules during operation. Select the ET 200, and

right-click and select Object Properties -> Operating Parameters tabThen select the option "Module replacement during operation". The bus modules listed here must be installed in the rack. If you forget to set this option and replace a module later during runtime, a rack failure message is issued (as if all modules had failed).

The power supply for IM is not configured, but an external 24 V supply is possible.

Page 15: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 15

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.15

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

DP masterbuffer

Inputs

Outputs

Exercise: AS HW Config (CPU Process Image Partition)

AI

PIP1

DO

PIP2

IM153

PIPI1

OB32

PIPO1

PIPI2

OB35

PIPO2

OB32

PIP1

OB35

PIP2

CPUOS

1

2

3

PIP Process image partition=

PIPI (inputs)+

PIPO (outputs)

Trt

Process Image The DP master (CP or integrated DP interface on the CPU) cyclically scans the PROFIBUS DP subnet (circular arrow 1 in the slide). In doing so it passes data to the slaves (e.g. ET 200M for passing to the output modules) and reads back data from the slaves (which acquired them from the input modules). The data are passed through an IM internal buffer.

Ttr During each cycle, the DP master writes/reads values to/from all its slaves. The buffer content forms an image of the inputs and outputs of the modules. The cycle time is called Ttr = Target rotation time and is displayed in the properties of the CiR object, here IM 153. The DP update cycle runs independently of the CPU program, but must be at least as fast as the fastest program that processes the process values. For evaluation in the user programs, the intermediately stored input data from the operating system are copied at a defined point in time from the buffer to a CPU memory area and output data copied from there are written back to the buffer at a different point in time. The programs can then gain read (I) and write (O) access to this "process image" memory area.

Synchronization This ensures that the programs are working with consistent process data. This means that the operating system must provide for the updating of the process input image and freeze it, before starting the program. After the program has been executed and commands have been written in the process output image, the output image is sent to the DP master. However, as process signals and their associated processing operate at selectable repetition rates (slow/fast processes), it is necessary for their synchronization to match as well.

Page 16: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 16

Process image partitionThe CPU offers OBs with different speeds in which the user can execute programs. You can assign a process image partition to the OBs in the CPU properties - Assign PIPs (e.g. OB32<->PIP1, OB35<->PIP2, OBx<->PIPs, where n=1 to 16 is dependent on the CPU). At the same time a suitable PIP must be assigned for the individual I/O modules in their properties.Driver blocks are used in the PCS 7 software to input and output process data. These driver blocks must run in the same OB that updates the PIP of the scanned I/O module.

Note It is useful when wiring the signals between modules to differentiate between slow and fast signals. A module should be assigned to a PIP that is capable of delivering signals to the software at sufficient speeds such that the fastest connected signal is processed currently. If signals are mixed on the module, this causes slow signals to be read quickly, wasting computing time.

Remember: If you want many, it cannot be fast. If you want fast, it cannot be many. The CPU cannot continuously work in overload. After a programmed, but limited time this leads to CPU stop!

Page 17: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 17

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.17

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

Exercise: AS HW Config (Driver Concept/Symbolic ChannelNames)

CPDP

CPU 417-4DP

PS IM153-1

SMSM SM SM

MPI

DP

PROFIBUSaddress

(UR1 or UR2)

CPEth

PS 407

PIP1

PIP1

PIP1

PIP1

OB 32 <-> PIP 1

OB 35 <-> PIP 2

Name_channel_0Name_channel_1

Exercise The process image partitions are to be updated on the CPU: PIP "1" by OB32 and PIP "2" by OB35. The I/O modules (in the example) must be assigned to process image partition "1." Give the individual channels of the I/O modules symbolic names as listed in the parts list for your AS.----------------------------------------------------------------------------------------------------

Steps 1. Select CPU symbol, open object properties2. Cyclic Interrupt tab: assign PIP to the OBs3. Cycle/Clock Bit Memory tab -> check OB85 call 4. Assign symbolic names for I/O channels------------------------------------------------------------------------------------------------------

Process image partitionThe CPUs (from about 1998) support process image partitions. The process image partition is defined in the CPU and for each I/O module (see next section). The process image is updated by the system through connection to an OB you selected. The procedure is as follows.Select the CPU. Open its Object Properties. Select the "Cyclic Interrupt" tab.

For example, for OB32, select process image partition "PIP1".For OB35, select process image partition "PIP2".

Select the "Cycle/Clock Bit Memory" tab.Check or make the following settings:

OB85 call with I/O access error: With incoming or outgoing errors onlySize of process input (output) image: both >= 1024 (default setting depends on the CPU used)

Page 18: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 18

Setting parameters for I/O modulesIn the upper window, select the ET 200M you want to configure. In the lower window, select the individual line for the relevant module. Then,

right-click and select Object Properties -> Addresses tab Click the "Process Image" field. Select the process image partition you want (such as "PIP1," according to the OB - process image partition assignment for the CPU made in the previous section).Repeat the procedure for each I/O module. This is how you determine how quickly and frequently the CPU updates the data for the individual module.

"Inputs/Outputs" tabHere you can make individual adaptations to the connected process signals and their characteristics for the module and its inputs/outputs.

Symbolic channel namesSelect the line with the I/O module. Then,

right-click and select Edit Symbolsto add the symbolic name and possibly a comment for each channel. You enter this symbolic ID in the symbol table for the S7 program. When you insert the new driver blocks in a CFC chart, you "only" have to recognize this name again. The drivers automatically take the settings on the modules, their inputs/outputs, and their slots into consideration. Additional specifications are not needed. Based on this unambiguous signal name for CFC, all additional settings are read from the HW-Config and parameterized on the drivers.

Proposal Name the module inputs as follows:Module Symbol CommentAnalog input AI_CH0 Analog input channel 0

AI_CH1 Analog input channel 1 etc.Analog output AO_CH0 Analog output channel 0

AO_CH1 Analog output channel 1 etc.Digital input DI_CH0 Digital input channel 0

DI_CH1 Digital input channel 1 etc.Digital output DO_CH0 Digital output channel 0

DO_CH1 Digital output channel 1 etc.

Caution: The channel driver to be used later in the CFC must run in the OB that also updates the process image partition for the module (in our example OB32).

Page 19: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 19

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.19

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

Compiling and Downloading the AS HW-Config

Download the hardware configuration only after the following steps have been carried out with NetPro:

The network is configured and connections have been set up from the OSs to the monitored ASs.Connections were also configured between the devices (AS, AS) toallow data exchange during process control. See also chapter "Network Configuration".

For testing purposes, you can also compile and download the AS configuration in the exercise now (the ES is not yet configured). For this to work, the Ethernet CP of the ES must be in "PG Operation" mode (see also the section "Configuring the Workstation").

Page 20: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 20

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.20

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

Setting the PG/PC Interface for the First AS Download

S7ONLINE (STEP 7) ISO Ind Ethernet Realtek…

Exercise Change the PG/PC interface S7ONLINE to the plant bus CP. Test this setting by determining the accessible nodes.-----------------------------------------------------------------------------------------------------

S7ONLINE This is the symbolic name used by the SIMATIC Manager and its lower-level applications for the interface for communicating with other devices. Based on the setting, the CP (communication path) that was assigned in the screen shown above is selected.

Procedure In the SIMATIC Manager, select the menu itemOptions -> Set PG/PC Interface.

In our exercise we shall select the Ethernet CP with ISO protocol which is connected to the plant bus. Click OK to confirm the setting.

Accessible nodesAfter changing the interface, click the Accessible Nodes icon in the SIMATIC Manager. A window opens listing the Ethernet partners that can be reached via the ISO protocol. In the slide above, a CP 443-1 and an OSM are detected and displayed.

Page 21: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 21

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.21

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

Compiling the AS HW Config and Downloading in STOP Mode

1 2

Exercise Compile and download your AS's hardware configuration to your target module.---------------------------------------------------------------------------------------------------

Compile Click the Save and Compile icon ("1" in the slide). Or, alternatively, you can use the menu command

Station Save and CompileDownload Ensure that the CPU is in STOP mode and that the keyswitch is set to STOP or

RUN_P.Click the icon "2" or, alternatively, use the menu command

PLC Download to ModuleThe first time you download, the AS is downloaded with the CPU in STOP mode (if it is still running with an old configuration, the download dialog box offers a stop and restart option).If you make changes later, they can also be downloaded with the CPU in RUN mode (certain rules apply). This assumes that suitable PCS 7 driver blocks are already running in the CPU.

Remark For the sake of completeness, a description of downloading in RUN mode is provided on the following pages. If you need to make changes to the hardware configuration during the course of the project, follow the download procedure described there.

Now the configuration of the AS from the first project is complete. A similar procedure must also be performed for the PC stations that are being used as ES or OS (see the section "Configuring the PC Station" in this chapter).

Page 22: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 22

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.22

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

Exercise: Download the AS Hardware Configuration in RUN

1

3

Download to target system in RUNRequirements After the station configuration was downloaded with CPU STOP, you made

changes to the configuration and have not saved them yet.In the hardware configuration select

PLC -> Download to Moduleor click the icon (point 1 in the slide)The CPU keyswitch must be set to RUN_P.Then download in RUN state is offered.Should the CPU nevertheless go to STOP as a result of downloading in RUN, this is an indication that the CPU software is incomplete or does not capture the triggered events. This problem is automatically solved by using the PCS 7 driver blocks.

Page 23: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 23

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.23

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

Exercise: Download the AS HW Config to the PLC(Check CiR Compatibility-1)

CiR Compatibility After the download procedure is started in RUN, STEP 7 first checks whether the changes can be downloaded in RUN. The current online configuration of the CPU is also taken into account. If it is not possible to download the changes (e.g. offline changes to the CPU parameters, such as e.g. PIP assignment), a screen is displayed indicating the cause. You can then press the Help button to display a description of the error and how it can be eliminated (if this is possible).

Note You can also start a preliminary check of the CiR compatibility by activating the menu option in the HW Config

Station Check CiR CompatibilityThis checks whether the configuration changes that were made since the last download can be downloaded to the automation system in RUN. The check is performed offline. An online connection is not required.If the check returns a negative result, we recommend discarding the changes.You are lucky if you didn't save the modified configuration before the check! You can now exit the HW Config. You are prompted whether you want to save the changes. Respond with NO! This way you can discard all changes that are not CiR-compatible.

General RecommendationAfter a successful download, make small changes to the HW Config and note or remember the changes you have made. Should the result of the CiR check be negative, there is no major loss when you discard the changes.If, however, the changes are necessary, you will have to resort to downloading with the CPU in STOP mode and then reboot.For a detailed description, please refer to the manual "STEP 7 - Modifying the System During Operation via CiR" that was installed on your ES.The programming instructions in that manual can be disregarded under PCS 7, as the PCS 7 driver blocks take care of the specific cases.

Page 24: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 24

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.24

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

Exercise: Download the AS HW Config to the PLC(Check CiR Compatibility-2)

Some properties that are relevant for the CiR are already checked during configuration. In the above example, the address range reserved by the CiRmodule is not sufficient to allow insertion of another analog module.It is not possible to download changes made to the reserved range in RUN (see next page).

Page 25: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 25

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.25

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

Exercise: Download the AS HW Config to the PLC(Check CiR Compatibility-3)

?

Any subsequent changes to the reserved range for this ET 200M cannot be downloaded in RUN, i.e. if insufficient address space was allocated before the first download.

How should we proceed now? If the CiR object on the DP subnet still has sufficient address room for slaves, an additional ET 200M can be inserted there and fitted with modules. In the latter case, you should create sufficient reserve addresses so that the new rack can be completely equipped.

Page 26: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 26

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.26

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

Configuring the PC Station (Overview)

Hardware description on the PC stationHardware descriptionin the PCS 7 project

Actual configuration Preset configuration

With"PG

operation"

Commissioning Wizard

Set PC station

CP y

CP x

1

2Application

WinCC application

CP x

CP y

Station Manager

StationConfiguration Editor

(part of PC installation)

1

2

3

4

125

Index/type

3

with "configuredmode"

Application

WinCC application

CP x

CP y

Station Manager

1

2

3

4

125

Index/type

HW Configof the PC station(part of project)

4

PC Station The PC can be used as ES or OS or both. It must however be set up once, immediately following installation of PCS 7. Then it can be changed later.

Commissioning Wizard The Commissioning Wizard appears after the installation and detects (via Win2000 functionality) the network cards (CPs) on your computer. You need to make settings for the CPs (explained in more detail later) It is also automatically started if new or different communications cards (CP) were installed on the PC after it was last shut down.

Set PC Station After the Commissioning Wizard has finished, this tool opens and the modules/CPs recognized by the Commissioning Wizard are displayed. For each module, the operating mode is displayed in the "General" tab:

"Configured Mode": The CP (module) is loaded from the project by the Hardware Config (configured). The preset configuration created there determinesthe behavior of the CP (actual configuration).

"PG Operation": In this case, the CP is configured via the properties.or viaSTART-> SIMATIC->SIMATIC NET->Settings -> Set PG/PC interface (as you may already be familiar with from the previous

PCS 7 version)SCE The Station Configuration Editor is displayed in the form of a table. Only the CPs

that are set in "Configured Mode" initially by the "Commissioning Wizard" (or later by "Set PC Station") are entered in the table. If a CP is switched from "PG Operation" mode to "Configured Mode" in the "Set PC Station" tool, it is automatically recorded in the SCE table. When the mode is set back to "PG Operation", the CP is removed from the SCE again.

Remark Each component (also the individual CP) is assigned an index in the SCE (like a "slot" in the table). You can change the slot/index in the SCE via:

Select CP and Editor by moving it with the mouse.

Page 27: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 27

You can also delete a CP in the Station Configuration Editor (it is automatically switched to PG Operation) or add one (it is switched to "Configured Mode" again).

Software components can also be inserted in the SCE - as substitutes for the applications that are to run on the PC.These include, for example, "Application" to set up connections from this PC to other network stations, "WinCC Application" for the WinCC software to communicate (if the computer is used as an OS). The "Application" also has an index/slot and can be moved if necessary.

Note 1 The SCE table can be viewed as a rack whose components have to be loaded from the PCS 7 project. The individual component in the SCE must have the same index as its counterpart in the HW-Config of the project.

Note 2 In SCE there is a bottleneck with regard to the Softnet modules. It is not able to administer two Softnet modules with the same protocol if they are both in "Configured Mode" at the same time. This is the case, for example, if Ethernet communication in PCS 7 is running over BCE and Softnet modules are being used.Remedy: In the "Set PC Interface" tool, set the Ethernet connection for the plant bus in "Configured Mode", while the terminal bus connection remains in "PG Operation". This means that the systems bus connection in the PCS 7 project is configured in the HW Config of the PC station and is also loaded. The terminal bus connection, however, appears neither in the SCE nor in the HW Config.

Page 28: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 28

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.28

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

Set the PC Station (Modules)

Set PC Station The Set PC Station tool is launched via the Windows Start bar Start SIMATIC SIMATIC NET Set PC Station.

The "Modules" and "Access points" tabs are of interest for PCS 7.Modules All communication modules detected by the Commissioning Wizard are listed

here. CP 5611 The CP can be used for interconnection via MPI or PROFIBUS DP. It is set to PG

Operation, as it is only used for PCS 7 V6.1 in some specific cases.CP y (see page 26) In the example, "Configured Mode" is displayed as the mode type for the internal

LAN interface (Intel). Index "4" means that this module was entered in the SCE on "Slot 4". It can be moved there if required. The settings for the module are loaded from the project after the HW Config is opened.The module is required as a connection to the plant bus.

CP x In the example, "PG Operation" is displayed as the mode type for the 2nd LAN interface (Xircom). This module is not displayed in the SCE, is not used in the HW Config, and is not loaded from the project.The module is used as a connection to the terminal bus.

Remark To change the operating mode (PG Operation <->Configured Mode) you must have administrator rights under Windows. In Configured Mode, the parameter settings for the module are loaded from the project. In "PG Operation", you set the parameters.

Page 29: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 29

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.29

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

Set PC Station (Access Point)

Access Point The available access points are listed here. The assigned interface parameter settings and module are displayed for each access point.Applications that use the protocol libraries (DLLs) directly use the name of an access point to access the module. Double-clicking on an access point opens a dialog where you can make changes to the assignment.The access point "S7ONLINE" is the relevant access point for online operation of the ES. Which device (interface) the SIMATIC Manager uses to communicate with the ASs is determined by the access point.For example, if S7ONLINE is set to CP5611(MPI), the SIMATIC Manager will only try to access the other components via this module with its MPI settings.On the other hand, if the access point S7ONLINE is set to "PC internal(local)", the SIMATIC Manager tries to find the path to the other components on the basis of the configured networks. If several paths/gateways are possible, then a screen form will appear offering a selection of the available gateways.

Remark This setting is also required in order to download the configured ES/OS configuration "to the PC".It is also used for central configuring in large-scale projects (multiprojects).

Page 30: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 30

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.30

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

SCE (Station Configuration Editor Option)

Exercise (info option) Set up the Station Configuration Editor so that Index 2 (row 2) contains a WinCCapplication while Index 3 (see slide) contains the Ethernet CP for the plant bus. Enter the Windows name of your PC as the station name.------------------------------------------------------------------------------------------------

Note 1 The SCE initially only shows the communication modules that the Commissioning Wizard has found that are in "Configured Mode".

Procedure Start the Station Configuration Editor from the desktop (or alternatively, via the icon in the Windows taskbar).

Delete Select the row with the contents you wish to delete, thenright-click and select Delete

to remove the contents.If it was a CP, it is removed from the Station Configuration Editor, but remains in the Set PC Station tool where it is switched to PG Operation mode.

Move If the correct component was already entered, but in the wrong row, you can move it to the correct row with a drag-and-drop operation.

Add If you want to add a new component, select the row in the table,right-click and select Add.

A screen form opens where you can select the component you wish to insert.Application An application should run on the PC according to its function in the network.

If the PC is used as ES, it needs a slot/index of type "Application" or "WinCCapplication" in the SCE. If the PC is used as OS, it needs a slot/index of type "WinCC application", "WinCC application (stby)" or "WinCC application client" in the SCE. Which option to select depends on whether the OS is configured as a single server or redundant server, or if the OS is used as a terminal (client).

Page 31: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 31

Once the configuration is completed on the PC, it must be loaded from the HW Config (which is contained in the project). Then the PC is ready to assume the role assigned to it (ES or OS)

Note Later when the connection is configured, the application represents the contact point on the PC side for the CPU from the AS side.

Note 2 The previously described procedure also functions in Version 7.0. A disadvantage is the double configuration (once as SCE on the PC and additionally in the hardware configuration of the PC station, in the PCS 7 project).With Version 7.0 and higher, the SCE can be derived from the project once the hardware configuration has been created in the project. Initial creation of the SCE is then omitted.

Page 32: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 32

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.32

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

Exercise: SIMATIC PC Station/OS HW Config

Windows network connections (via START Settings Control Panel Network Connections)

Meaningful names for the LAN connections Installed Ethernet CPs

Exercise Configure your PC station as an ES/OS ----------------------------------------------------------------------------------------------------------

Steps 1. Open the network connections of the PC under Windows, and provide them with meaningful names.2. Open the SIMATIC PC station from the SIMATIC Manager project OS_PRO, and add to the components in the virtual rack3. Configure the station (after setting the PC interface)!4. Download the PC station----------------------------------------------------------------------------------------------------------

Network connection 1. From the Windows task bar, selectSTART Settings Control Panel Network Connections

to open the screen form shown above. Depending on the connection of the Ethernet CP, change the Windows default names to "Plant bus" and "Terminal bus"

Page 33: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 33

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.33

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

Exercise: SIMATIC PC Station/OS HW Config

SIMATIC PC station 2. The OS was created as a SIMATIC PC station. The PC station was also configured as a component with the HW Config tool.In the component view of SIMATIC Manager, select the SIMATIC PC station,

right-click and select Open Object (or double-click the configuration icon).In the hardware catalog, open the node "SIMATIC PC Station", select the components and use the mouse to drag them onto the PC rack. You need to match the slot in the rack with the Station Configuration Editor (SCE). The matching must take place before downloading the configuration to the PC (see next page).

Components The components are as follows: WinCC Application This corresponds to the OS software. However, the index (slot within the rack)

does not match the position in the SCE (Station Configuration Editor). It needs to be adjusted as follows:- Use the mouse to drag the WinCC application to the same position in the HW Config rack as in the previously configured SCE, - Or, the SCE is automatically configured (see next page) if it is still empty.In the latter case, the slot/index in the HW-Config is now irrelevant.

CPs 2. Communications processors for connecting the PC to the networks (MPI, PROFIBUS, Ethernet). In our exercise do not configure CP 5611 as it is running in "PG Operation" and is not loaded.Select the Ethernet CP installed in your ES/OS PC configuration and drag it onto the PC rack. Set the Ethernet address (MAC address) in the CP properties according to the parts list for your workstation.In our example, deactivate the Internet protocol (TCP/IP).

Page 34: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 34

Note If an IE General CP/Softnet CP is used (e.g. 3Com or LAN onboard), then it is generally not possible to change its address and the address in the HW Configmust match the address displayed in the "Set PC Interface" tool.

OS After you compile or complete the HW-Config with with a Save operation, an OS station is created in the component view of the SIMATIC Manager under the SIMATIC PC station.Select the station,

right-click and select Object PropertiesThen, the station as "OSxx", where xx is the number of your station (e.g. OS01) .

PG/PC interface Change the S7ONLINE interface to "PC internal (local)". While this setting is irrelevant at the moment, you can make it now since you already have the SIMATIC Manager open.

Page 35: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 35

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.35

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

Exercise: SIMATIC PC Station/OS HW Config

12

0

63

45

Configuring the PC Station3.0 Select the PC (your ES/OS) in the PRO_OS project in the SIMATIC Manager, then

right-click and select Target system Configureto open the screen form (see above)3.1 Select your terminal bus under "Local network connection". Only connections with a TCP/IP setting are offered.3.2 Click "Update". The computers accessible under Windows are displayed, including your own computer.3.3 Select "Use configured target computer". The name is automatically entered into the "Target computer" box.3.4 Click "Display". The current SCE of the PC is displayed (check). If something has already been configured, the hardware configuration must match it. If it is empty, carry out the next step. If necessary, components can be deleted by calling the SCE directly before the next step is carried out.3.5 Click "Configure". The SCE is structured according to the hardware configuration, and matches it!3.6 Check the messages to see if errors have occurred.

Page 36: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 36

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.36

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

Exercise: SIMATIC PC Station/OS HW Config

Station Configuration Editorwas created when

PCS 7 was installed on the PCIs configured according to the

subsequent use of the PC as an ESand/or OS

SIMATIC PC stationHW Config is configured in the project in the SIMATIC Manager

and downloaded to the target PC.

S7ONLINE PC local

1 2

PC Interface 4. You can only download the PC if the access point S7ONLINE was set to "PC internal (local)". Set the access point accordingly via Set PC Station. As an alternative, you can also set the access point from the SIMATIC Manager via

Options Set PG/PC interfaceAccess point S7ONLINE PC internal (local)

Compile Compile from the HW-Config Tool (symbol 1 in the slide).Note 1 The compilation process can take several minutes (depending on the computer),

as a complete WinCC project is generated for the WinCC application.Load To download the PC configuration, select symbol 2 (see slide).

Acknowledge the dialog boxes that appear.If error messages are displayed, this could indicate that the PRESET and ACTUAL states are incongruent. Open the Station Configuration Editor and look at the symbols in the Components tab, Status column. For more information, activate the help button in the Station Configuration Editor.Also check the Diagnostics tab!Have you obtained the SCE through "Configure station"?

Note 2 In order to enable all AS and OS of the projects contained in a multiproject to be downloaded from the central ES, the PC interface must remain set to PC internal (local) for the duration of the project. It is necessary, however, to merge the different networks of the projects (make them known). The NetPro tool is used in the multiproject for this purpose. You can also use it to set up the S7 connections required for the online data transfer between the AS and OS. The next pages show you how to merge Ethernet networks and create the S7 connection between AS and OS.

Page 37: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 37

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.37

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

Calling Up NetPro

Exercise Launch NetPro for both projects (PRO_OS and PRO_AS) and merge the Ethernet subnets there. Then create an S7 connection from the OS to the AS and download the connection to both devices (AS and OS).---------------------------------------------------------------------------------------------------------

Steps 1. Start NetPro for the OS project.2. Start NetPro for the AS project. For clarity, arrange both windows side by side.3. Merge the Ethernet subnets.4. Create the S7 connection called OS01_AS01 between the OS and the AS and download this to both stations.----------------------------------------------------------------------------------------------------------

Procedure 1. Select the PRO_OS project in the SIMATIC Manager. Click the NetPro icon (see slide). NetPro opens with a window displaying the networks from the PRO_OS project.2. Select the PRO_AS project in the SIMATIC Manager. Click the same NetProicon. As NetPro is already open, it appears in the foreground again and displays a second window with the networks from the PRO_AS project. Select the menu command

Window Arrange Tile Verticallyto display both project-specific networks side by side. At this point they are still independent even if, for example, the Ethernet subnet has the same name in both projects (plant bus, see next slide).

Page 38: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 38

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.38

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

3. The Industrial Ethernet-type subnets are visible but still need to be merged. Select

Edit Merge/Unmerge Subnetworks… Ethernet Subnets.A new screen opens. Select the subnet of one project in the left window and click the arrow keys to move it to the right window. After having moved both subnets, you can rename the cross-project subnet.

Page 39: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 39

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.39

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

Click twice-with a pause between clicks -

and then rename.

Internally the merged subnets are assigned a common ID (identifier) so that they are available as if they were a uniform subnet.One result of the common ID is that the setting for the access point "S7ONLINE

PC internal (local)" is sufficient for the SIMATIC Manager to find and suggest a route for loading the devices!You just need to download this new information (e.g. from the HW Config) to the ES first! Then you can download an AS too with the same setting.

Page 40: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 40

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.40

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

Setting Up a Connection (1)

4. In NetPro, go to the OS project window and select the WinCC application within the PC symbol, then

right-click and select Insert New ConnectionA selection box appears. Select the partner for this connection (in our example your AS01).

Remark The yellow arrow in the PC symbol has two meanings:

The PC interface is set to "PC internal (local)" and

The displayed PC is the local ES you are working on.

Page 41: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 41

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.41

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

Setting Up a Connection (2)

Change to, forexample

OS01_AS01

Each connection is assigned an ID:

On the PC (application) side, this ID is a name (e.g. S7_Connection_1)

On the AS (CPU) side, the ID is a value.Recommendation Change the default name to a meaningful name(e.g. OS01_AS01). This makes it

easier to see who the connection partner is in the connection table of an AS (CPU).Moreover, it is advantageous for the online test of a configured OS on the ES-PC (keyword "Start OS Simulation") before the active OS is loaded.

Page 42: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 42

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.42

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

Downloading a Connection

Initial Download When downloading the connection for the first time, select the stations (AS and PC) you would like to download, then select

PLC Download to Current Project Selected Stationsto download the stations.

Notice This method requires you to stop the CPU/application for a short duration (seconds) and then restart it! The network configuration is downloaded independently of the HW Config download.

Tip If you do not want the AS to go to STOP (for example, if this is not permissible for the process), use a different method:Select the AS and download by selecting

PLC Download to Current Project Connections and Gateways.For the OS select the relevant connection in the connection table and download it by selecting:

PLC Download to Current Project Selected Connections.

Page 43: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 43

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.43

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

Cross-Project View

Standard View

Cross-Project View

Standard View The standard view (left window) displays the devices of the individual project only. The subnets are displayed both with their project-specific name and their merged name. You can select the different components and set them via the relevant menus (usually Object Properties).

Cross-Project ViewThis view serves mainly to view information that is relevant at the level of the project (no configuration of the components). For example, from here, you can download the connection data to the listed components.

Remark Each node (CPU or application) has its own, limited connection table. Individual, downloaded connections cannot be deleted online. Should you need to delete them, you first need to delete the connection in the offline table and then download the full table by selecting

PLC Download to Current Project Selected StationsHowever, as described above, the stations must be set to STOP for a brief duration!

Page 44: Ch4 v70 system_configuration_en

Training Centerfor Automation and Drives

SIMATIC PCS 7 System TrainingSystem ConfigPage 44

Date: 15.11.2006File: ST-PCS7SYS_V70_systkonf.44

SIMATIC PCS 7Siemens AG 2003. All rights reserved.

SITRAIN Training forAutomation and Drives

S7 Connections (Stations in Unknown Projects)

Additional Information When configuring connections, the SIMATIC Manager provides them with IDs in the same sequence as they were created. If both nodes exist in the multiproject, you can select the partner, and each one is automatically assigned a separate ID for this connection. If the partner is not yet available, you can reserve an ID as described in the next section.

Connections in Unknown ProjectTo do this, highlight the CPU in your project, the connection table appears, select an empty line,

right-click and activate Insert New Connectionto start the process. Then select as your Connection Partner:

the option "In unknown project"and then the Properties of the S7 connection.Under Properties, enter a connection name/reference (circled on the slide) and specify whether the local CPU is to establish the connection (circled on the slide). Only one partner in the connection is permitted to establish an active connection.If the connection has not been closed, it will be displayed as an error when NetPro is terminated, by way of a reminder.Later, when the other projects have been incorporated into the multiproject, connections from the various projects with the same reference are merged when the projects are adjusted. After that point, the address details are known for both stations and the connections can be loaded into both.

Note The project merge can either be started from the multiproject or - like with the subnet merges - in NetPro by activating the menu command

Edit Merge Connections…