You are on page 1of 143
Compiling the AS HW Config and Downloading in STOP Mode aT ‘ethee oni Dawe ncn nde 1 Comins aoe oh Coes | tl f Sinarig foe @ Alien BUR Mpa mea meees Exercise Compile Download Remark Compile and download your AS's hardware configuration to your target module. Click the Save and Compile icon ("1" in the slide). Or, altematively, you can use the menu command Station > Save and Compile Ensure that the CPU is in STOP mode and that the keyswitch is set to STOP or RUN_P. Click the icon *2" or, aitematively, use the menu command PLC Download to Module The first time you download, the AS is downloaded with the CPU in STOP mode (ifitis stil running with an old configuration, the downoad 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. 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 simi procedure must also be performed for the PC stations that are being used as ES 0r OS (Se8 the saction "Configuring the PC Station” in this chapter). Training Center {or Automation and Drives SIMATIC PCS 7 System Training Page 21 ‘System Config Example [eam] Unit Noz A Unit 2: Unit 3: Unite 4E101 sre ‘Convention for tag narnes a SIMATIC PCS 7 ates ses13t08 SITRAIN Tanna Seren 16208 soe mee Fitanectata via soe Race ne ee Process description (using the equipment in Group 1, Unit A1 as an example): Component X The reactor must first be empty and cold. Valve 1U101 is used to fil this, ‘component up to the L1=20% Lmax level. Mixer The mixer motor 1£101 is tumed on. ‘Component Y Valve 1102 is used to mix this second component until the L2=80% Lmax level is reached, Heating The mixture is heated up to 90°C. The temperature controller 17101 must maintain this temperature for at least two minutes. Draining After the heating is turned off, product Z must be drained completely, and the mixer 1€101 must be tured off, In addition The fill level is monitored (1L101 and 1L102). The inlet valves 1U101 and 10102 must be closed when the upper level limit (Lmax) is reached. The drain valve must be closed when the reactor is empty. There must be a signal when the level monitor responds, Both the temperature controller and the mixer must be ‘operated and monitored in the control room. Training Center SIMATIC PCS 7 System Training for Autorvalion and Drives Page 2 Configuration SIEMENS Exercise: Download the AS Hardware Configuration in RUN 4 SN Bia) 4 dt nuert A vow Cough Window tle isi) ‘Dial g 6) aie| (alas a= wel WF Sarr reserssong) =] 1] Pari =} a weruara a | © Doras oxeicongussco FL ne © DomiexenSTOP rade | cme | ep TA ST TATE Cf ae Bi SIMATIC PCS 7 baw tsa. me SITRAIN nai tr ‘Serst AG 200 ARE er Pier pc$rova, Vem Receaon Download to target system in RUN Requirements 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 Moduls or 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 caplure the ‘triggered events. This problem is automatically solved by using the PCS 7 driver blocks. Training Center SIVATIC PCS 7 System Training fbr auotvatcer and Orta Page 22 ‘System Config SIEMENS Exercise: Download the AS HW Config to the PLC (Check, CiR Compatibility-1) | Lita sane [ : t i Description of Error: Due 1a mesifcaton othe confgratin, an SDB was 1 Sounaades tote mesa ‘To Correct or Avoid Error: Ure th enanges. iba hi | : 3 ® SIMATIC PCS 7 ae 31208, SITRAN rig Sere AG 208 Air eso, PiPersceevanre notent29 ‘Ramatonane Sout 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 itis 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 HWY Config Station > Check CiR Compatibility This 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 offiine. An online connection is not required. If the check returns a negative result, we recommend discarding the changes. ‘You are lucky if you ciin’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 Recommendation After 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 fo resort fo downloading with the CPU in STOP mode and then reboot. For a detailed descristion, please refer to the manual "STEP 7 - Modifying the ‘System During Operation via CiR” that was installed on your ES. ‘The programming instructions in thet manual can be disregarded under PCS 7, as the PCS 7 driver blocks take care of the specific cases, Training Center SIMATIC PCS 7 System Training foraubomaiorand Dives Page 23 ‘System Config SIEMENS Exercise: Download the AS HW Config to the PLC (Check CiR Compatibility-2) minx) 1 Smo Ea Dee LC tw Op ras I Tet Geel fsa) eb} soe) eal! FADS! 9) 2) Samana er T SMa ade Miasrat iaatar ae g saan a ad Stnaeiae Stanners fda aner SIMATIC PCS 7 ae sto SITRAIN Tare Soren 462058 Jape teres Fister rcRia8 Vo enterica ‘Aeoaie toe aves ‘Some properties that are relevant for the CiR are already checked during ‘configuration. In the above example, the address range reserved by the CR ‘Module is not sufficient to allow insertion of another analog module. Itis not possible to download changes made to the reserved range in RUN (see next page). SIMATIC PCS 7 System Training Training Center ‘raining Center Page 24 System Config for Automation and Drives Q\.temecnetne en oor RUN madera 1\ coesepeae Soywahvet ocho teeey? en eS ay ew Aires ceas Scant 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 stil has sufficient address room for slaves, an additional ET 200M can be inserted there and fitted with modules. In the latter caso, you should croate sufficient reserve addresses so that the now rack can be completely equipped. Training Center SIMATIC PCS 7 System Training for Adomnton and Daves Page 25 System Gonfig SIEMENS Configuring the PC Station (Overview) | Haranare description Hardware description on the PC station | inthe Pcs 7 project Station ! HW Config Configuration Editor 2 of the PC station (part of PC installation) | (part of project) © Setpe wan Indexitype Indextype eee operation” 1 Application ¥ Application 2 [ WinCC appitcation 2 | WinCC application [| Leex aEPE. a GR ——~-| +| [ery c Py 4 Py Taamona ie Station Manager 125[_Slalion Manager mode* SIMATIC PCS 7 STRAIN nant PC Station The PC can be used 2s 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 determines. the behavior of the GP (actual configuration). "PG Operation’: In this case, the CP is configured via the properties. orvia START-> 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 Moce’” 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, itis 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 slotiindex in the SCE via’ Select CP and Edit ‘or by moving it with the mouse. Training Center SIMATIC PCS 7 System Training ‘parma eitise Page 26 ‘System Config Note 4 Note 2 the Station Configuration Editor (it is automatically switched to PG Operation) or add one (itis 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. ‘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. 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 Ethemet 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 nelther in the SCE nor in the HW Config. Training Center {for Automation and Drives SIMATIC PCS 7 System Training Page 27 ‘System Config SIEMENS Set the PC Station (Modules) ‘rave aster acon Tr a nroon pad (Died Cone scan CCE SIMATIC PCS 7 ‘Serr AG 2063 Area Set PC Station Modules cP 5611 CP y (see page 26) oPx Remark ‘ 2 be ue tase STRAIN Taree Peers NS Mio aerate ‘Aermoves ne 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. All communication modules detected by the Commissioning Wizard are listed here. ‘The CP can be used for interconnection via MP! or PROFIBUS DP. Itis set to PG. Operation, as it fs only used for PCS 7 V6.1 in some specific cases. In the example, "Configured Mode" is displayed as the made 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 ‘fom the project after the HW Config is opened. ‘The module is required as a connection to the plant bus. 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. To change the operating mode (PG Operation <->Configured Mode) you must have administrator righis under Windows. In Configured Mode, the parameter settings for the module are loaded from the project. In "PG Operation’, you set the parameters. Training Center {or Auioration and Drives SIMATIC PCS 7 System Training Page 28 ‘System Config SIEMENS Set PC Station (Access Point) om we > OB BP tree} eons Grae | cr? TEE sparicner Cougs [ISO amen Boss sine Solu. crest Born Piapymeycoven [Bet seem Costes Oh. (Dey 22 ae ssi scape creanioed “o_o |e SIMATIC PCS 7 Ome 16 712K6 SITRAIN Training for SMATC ESS. ae saa napa 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 STONLINE is set to "PC intemal(local)", the SIMATIC Manager tries to find the path to the other components on the basis, of the configured networks. If several paths/gatoways ate possible, then a soreen 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 “io the PC", Itis also used for central configuring in large-scale projects (multiprojects). ‘Training Center SIMATIC PCS 7 System Training for Aulormalion and Drives Pege 29, ‘System Config SIEMENS SCE (Station Configuration Editor Option) re SIMATIC PCS 7 Porr.rcSiane io natert30 Exercise (info option) Set up the Station Configuration Editor so that Index 2 (row 2) contains a WinCC. Note 4 Procedure Delete Move Application pplication while Index 3 (see slide) contains the Ethernet CP for the plant bus. inter the Windows name of your PC as the station name. The SCE initially only shows the communication modules that the Commissioning Wizard has found that are in "Configured Mode". Start the Station Configuration Editor from the desktop (or alternatively, via the icon in the Windows taskbar). ‘Select the row with the contents you wish to delete, then right-click and select Delete to remove the contents, If twas a CP, ts removed from the Statton Configuration Ealtor but remains In the Set PC Station tool where it is switched to PG Operation mode. 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. If you want to add a new component, select the row in the table, right-click and solect Add, A screen form opens where you can select the component you wish to insert. An application should run on the PC according to its function in the network. Ifthe PC is used as ES, it needs a slot/index af type "Application" or "WinGC application” in the SCE, If the PC is used as OS, itneeds a slovindex of type “WinCC application”, ‘WinGC 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 ifthe OS is Used as a terminal (client). Training Center {or Aviornalion and Drives SIMATIC PCS 7 System Training Page 30 ‘System Config Note Note 2 (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) Later when the connection is configured, the application represents the contact ‘on the PC side for the CPU from the AS side. 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. Training Conter for Automation and Dives SIMATIC PCS 7 System Training Page 31 ‘System Config Exercise: SIMATIC PC Station/OS HW Config Windows network connections (via START > Settings ‘> Control Panel > Network Connections) Lilla High Speed rtemat Connected Reskeh ATLOL39 Fay PCL Fan, Latter HghsomedIterat Nezwerkcable unpaged recon siheretAdscterifto0 {attr ighSpeedIrterat_ Comactd 1304 Adactor erro oa ‘Meaningful names for the LAN connections Installed Ethernet CPs SIMATIC PCS 7 bass 3041 ato SETRAIN rag Sen A208 Ai wasn Pater ec SAS ene cee 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 tho SIMATIC PC station from the SIMATIC Manager project OS_PRO, ‘and add to the components in the virtual rack 3. Configure the station (afler setting the PC. interface)! 4. Download the PC station Network connection —_ 1. From the Windows task bar, select START > Settings > Control Pane! > Network Connections to open the screen form shown above. Depending on the connection of the Ethemet CP, change the Windows default names to "Plant bus" and "Terminal bus" Training Center SIMATIC PCS 7 System Training Er Aunt and Bria Page 32 System Config 1. System Overview SIEMENS SITRAIN Training for Industry 2. Configuration Overview 3. Project Structure 4 System Configuration SIMATIC PCS 7 System Course Course ST-PCS7PRG AL: ECON: N 7 Sct eerie of Eu 8. Operator Control and Monitoring ETE oe te cect a sey meet ercaraeere | 9. Muliproject Scere cee Se ny Seoein eres ewes Brae fae ee eae Seema | 10, Append Bre cnstiton noe Gants ts teeper eereson le Sere ssaros ro resersoiy er seas ‘est ton anny toners wi beable tr magn ray ip ota oy son ran sree 09 wy mou doug SIEMENS AS 2022 Name: SIMATIC $7 PCS7 PRG Course: from 10 to 14/12/2012 Trainer: Sr-Rémuto Duarte Infotne Tel: 4351 21 4178704 Fax: $351.21 4178089 Internet: hitp//wawsiomons.comisitain | ID Nos Release V7.0 (lor PCS 7 Version 7.0) ‘SIEMENS Exercise: SIMATIC PC Station/OS HW Config Ce SO aon Wh Sater CH Dent MC tow Conre vn rb al Tle Cd Test AC ew prs wed Ve Dios) Be) Bitale) dal (9 Se) 2ol lela at ousted pes Zin x) SIMATIC PCS 7 ‘Severs A200 AP as, SIMATIC PC station Components WinCC Application Ps SITAAI ng ee Fle rreaiays. Vo yet 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 vievr of SIMATIC Manager, select the SIMATIC PC station, right-olick 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). The components are as follows: This corresponds to the OS software. However, the Index (slot within the rack) does not match the position in the SCE (Station Configuration Editor). 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 pago) if itis still empty. In the latter case, the slovindex in the HW-Contfig is now irrelevant. 2. Communications processors for connecting the PC to the networks (MPI, PROFIBUS, Ethernet) In our exercise do not configure CP §611 as itis running in "PG Operation” and not loaded. Select the Ethernet CP installed in your ES/OS PC configuration and drag it onto the PC rack. Set the Ethemet address (MAC address) in the CP properties according to the parts list for your workstation In our example, deactivate the Internet protocol (TCP/IP). Training Center for Auiomation and Drives SIMATIC PCS 7 System Training Page 33 System Config Note PGIPC interface fan IE General CP/Sottnet GP is used (e.g. 3Com or LAN onboard), then it is generally not possible to change its address and the address in the HW Config must match the address displayed in the “Set PC interface" tool. After you compile or complete the HWV-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 Properties ‘Then, the station as "OSxx", where xx is the number of your station (@.9. S01). (Change the STONLINE interface to "PC internal (local)”. While this setting is imelevant at the moment, you can make it now since you already have the SIMATIC Manager open. Training Center {er Automation and Drives SIMATIC PCS 7 System Training Page 34 ‘System Config ‘SIEMENS Exercise: SIMATIC PC Station/OS HW Config xi eed nae sermon SIMATIG PCS 7 me nas SSITRAN rang ‘Sere A626 Ao sm Airc pees police cid Configuring the PC Station 3.0 Select the PC (your ES/OS) in the PRO_OS project in the SIMATIC Manager, then’ right-click and select Target system -> Configure to open the screen form (see above) 3.4 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, ineluding 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. 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. Training Conter SIMATIC PCS 7 System Training for Automation and Dives Page 35 System Config SIEMENS Exercise: SIMATIC PC Station/OS HW Config Station Configuration Editor SIMATIC PC station ‘was created when HW Config is configured in the PCS 7 was installed on the PC Set PG/PC interface ‘Access point S7ONLINE -> PC internal (local) Compile from the HW-Config Too! (symbol 1 in the slide). ‘The compilation process can fake several minutes (depending on the computer), as a complete WinCC project is generated for the WinCC application. To download the PC configuration, select symbol 2 (see slide). Acknowledge the dialog boxes that appear. Iferror 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"? 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 muttiproject 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. Treining Center for Aviomaiion and Drives SIMATIC PCS 7 System Training Page 38, System Config ‘SIEMENS Calling Up NetPro [ora 0° so SMSTICS7 "SUC? Waa [eC SIMATIC PCS 7 Stet AG 203 AS esi. Brercise Steps Procedure ww, sen zie SITRAIN Tanger Rev nc eM netonar ‘Ascraten sree Launch NetPro for both projects (PRO_OS and PRO_AS) and merge the Ethemet subnets there. Then create an $7 connection from the OS to the AS and download the connection to both devices (AS and OS). 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 0801_AS01 between the OS and the AS and download this to both stations. 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 NetPro icon. 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 Vertically ‘o 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). ‘Training Center for Aulorvaion and Drives SIMATIC PCS 7 System Training Page 37 ‘System Config SIEMENS A) ole) Bsa 1) ve) iD vo det Oe SIMATIC PCS7 Date s8 112000 'SITRAIN Tina to ‘Seen 0 2068 scons Perec Mo aston Alonetnerd Oo 3. The Industrial Ethernet-type subnets are visible but still need to be merged. Select Edit > Merge/Unmerge Subnetworks.....> Ethemet Subnets. Anew 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 subneis, you can rename the cross-project subnet. Training Center SIMATIC PCS 7 System Training {or Automation and Drives Poge 38, ‘System Config ‘SIEMEN: Click twice -with 2 pause between clicks - ‘and then rename. Porcitnacmet __Patce Swctned abt eae ae ae eel ee SIMATIC PCS 7 ox, sna SITRAIN rater Sere A629 Aan Perec ERE Nhe natonan ‘israton se Internally the merged subnets are assigned a common ID (identifier) so that they are available as if they were a uniform subnet. One resutt of the common 1D is that the setting for the access point "S7ONLINE > PC intemal (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, Training Center SIMATIC PCS 7 System Training System Config for Autorvalion and Drives Page 39 SIEMENS Setting Up a Connection (1) 1 22 6 | [el wie! | oi Balt) —————— = roo pee eee ro ce passe eles de Times eae Chie hesetee.__eetenen Comet : Ty Froaretzm a] ei I F Dirlgpeenerbeterinns teeta my ceri narra he Ga gee SIMATIC PCS 7 oa sastanee SITRAW rete ‘Severs AG 2063 re ee Bera BRM yetotso Alontonss Sens 4. In NetPro, go to the OS project window and select the WinCC application within the PC symbol, then right-olick and select Insert New Connection A selection box appears. Select the partner for this connection (in our example your ASO1). Remark The yellow arrow in the PC symbol has two meanings: «The PC interface is set to "PC intemal (local)" and The displayed PC is the local ES you are working on. SIMATIC PCS 7 System Training Training Center for Automation and Drives Page 40 ‘System Contig SIEMENS ES (PC) STONLINE PCS Hardware Os (PC with Wincc) jaan t Automating = Closed-loop control + Open-loop control = Monitoring - Signaling OP bus Distributed process signal converters Sensors. and actuators SIMATIC PCS 7 ‘Seek AG 208 AN em Info Flow ET 200M DP bus AS (S7 417-4) Plant bus. 08 (Winco) ES (STEP 7) tae: SSITRAN natin Sensors, transducers, and DP process signal converters modules acquire process information. The AS processes this information and uses the same path to pass it on to the actuater. in parallel, commands are sent from the OS to the AS. AS information is displayed graphically on the OS. ‘The IM 153-2 interface module converts the process signal converter (VO module) information into message frames for and from the AS. The bus (PROFIBUS DP) transports the message frames between the AS (DP ‘master interface} and the ET 200M interfaces. The DP master interface reads in the message frames in the AS. The driver blocks convert and process the message frames into process values. That is, ‘open-loop control algoritims and closed-loop control algorithms convert the message frames Into commands and send the commands back to the VO using the same path. The values are also monitored, and messages are sent to the OS when defined events occur. “The plant bus can be MPI (Multi-Point-interface), PROFIBUS or Industrial Ethernet. The plant bus is used for communication between the AS-OS, AS-AS, 22s well as between the ES and the above mentioned nodes for the purpose of configuring and commissioning. Data coming from the AS - embedded in process displays- are displayed graphically as measured values with a time-based sequence and as messages with classification, The plant operator's commands are passed on to the relevant AS and the response information displayed. ‘The configuring and commissioning steps shown on the following pages are structured on this basis. The entire project is carried out on the Engineering Station (ES). The software ‘accesses the plant bus via "S7ONLINE”. Access can be established via different hardware components and is settable. Training Center for Automation end Drives SIMATIC PCS 7 System Training Page 3 Configuration ‘SIEMEN: Setting Up a Connection (2) Srreveries 57 cenmacten a Grea | ie rman Leclerc Pst i haromaien C vee £ ‘Change to, for example S01_ASO* ‘SIMATIC PCS 7 am ‘Sees A620 At ea, Par rc bttNe Mio gtoctet ‘Xaneton ont Does Each connection is assigned an ID: ID is a name (e.g. S7_Connection_1) © On the PC (application) side, * Onthe AS (CPU) side, the ID is a value. ‘Change the default name to a meaningful name(e.g. OS01_ASO1). This makes it Recommendation 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 Training Center SIMATIC PCS 7 System Training Page 41 ‘System Config, for Auloraion and Drives SIEMENS Downloading a Connection fiavcel ES teat fC sar Ontrs Winona oe.) 6 EE evtecormton sans Secedenc Pore Sate SIMATIC PCS 7 ate ses os SITRAN resnoa te ‘Severs AG 203 A see Pi erectia v9 even Ronson we bee 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 fo Current Project > Selected Stations to 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. Tp Ifyou do not want the AS to go to STOP (for exampla, if this is not permissible for the process), use a different method: Select the AS and download by selecting PLC > Download io Curreni Project -> Connections and Gateways. For the OS select the relevant connection in the connection table and download it by selecting: PLC > Dovmioad to Current Project > Selected Connections. Training Center SIMATIC PCS 7 System Training {or Automation and Drives Page 42 ‘System Config Cross-Project View Cross-Project View ‘Standard View ee AES ie a ol le lel 3 lll wh ee ae —e [acter eee a ee UR 6) Se) wid! a 22) (6 SS a SIMATIG PCS 7 ome sth SITRAN nag te Sees A029 Ag Perec Min nanotss pce boc 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 View This 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) hes 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 Stations However, as described above, the stations must be set to STOP for a brief duration! Training Conter SIMATIC PCS 7 System Training for Automation and Drives Page 43 ‘System Config SIEMENS $7 Connections (Stations in Unknown Projects) — arma sae inte mst CLR Ps nate conection Dats Sesconerg nce omc gen, CTR Commie tee one cour Sane pores tmece [Saag J [dT SIMATIC PCS 7 ae ists reese ‘Sterne A208 Aber Fi sr rcBPSV5. VO enter 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 pariner, and each one is automatically assigned a separate ID {or this connection. If the partner is not yet available, you can reserve an ID as described in the next section ‘Connections in Unknown Project To do this, highlight the CPU in your project, the connection table appears, select an empty line, right-click and activate Insert Nev Connection to start the process. Then select as your Connection Partner: the option “In unknovm project" and then the Properties of the S7 connection Under Properties, enter a connection namefreference (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. Ifthe 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 multipcoject, 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... SIMATIC PCS 7 System Training Training Center n Page 4d. ‘System Config for Auiortation and Drives Cinfiguring Sequences with SFC Faimncing — [A= | henna] fests Banco) None FRaeomien ——onmee aeons ——— : (Esa) ket urd leer Se Keenan: faiwekER VanseaMn “Agora [Bodner O5 Foner) ane [nett Delsansom Awol tm stint [men] ot] 4] =| ctor foucracten SITRAIN receatee SIMATIC PCS 7 ‘Sears AG 2008 As es, Content Overview Sequenes Structures ‘Action and Transition Preprocessing and Postprocessing for a Sequencer ... Operating State Logic of a Sequencer Exercise: Sequence Control - Temperature ‘Open SFC (in Test Mode) ‘Sequence Control -Reactor Parameter Control via the SFC Notes. SFC Operating Mode Logic Run Behavior of an SFC a Restart Behavior of the SFC(1) Restart Behavior of the SFC(2) External View of SFC in 2 17 Exercise: Adding Two Sequencers to the Sequential Control 18 Holding Sequencer with Data Block for Values to be Saved .. 19 Creating an SFC Type 20 Creating an SFC Instance sone 21 Miscellaneous Reference Data " 2 Training Center SIMATIC PCS 7 System Training for Automaton and Crives, Page 1 Configuring with SFC SIEMENS Overview Menu bar Element bar S1 to $4 Steps START 71...74 Transitions eon st cr $2 S3 = 3 S4 cS END SIMATIC PCS 7 ug SITRAIN taco pales play Bae wea FN rioe ‘SFC Flow Chart ‘The chart topology, the action functions of the steps, the switching conditions of the transitions and the runtime properties specify the flowchart created with SFC. Editor Graphics are used to structure the flow chart. Connections with block parameters already present in the CFC charts are used to configure the individual ‘components (steps ang transitions). Therefore, there is no programming; instead, ‘you just access templates. Insert ‘You can select the structure symbols from the step symbol bar. You click the symbols to insert them (before/atter a transilion). Steps are always inserted fogether with the necessary transitions. Step Double click the step symbol to begin configuring the step. You must fill out the tabs for this. When configuring actions, you can use the "Browse..." button to display the blocks contained in the CFC charts ("Magnifying glass") and transfer their parameters to the action list. Transition Double-click the transition symbol to begin configuring the transition. You must fll ut the tabs for this. The same things apply to configuring actions as to configuring steps. Runtime Properties The chart will be automatically inserted into the OB where the pointer for the runtime sequence is positioned. Compile/Download — Compilation and download are performed in the same way as for CFC. All chart information is maintained in the chart folder. The compilation result is entered in the block folder and downloaded from there to the CPU Test The sequencer can be run and tested when the CPU is connected and test mode is selected (Test menu). Double-click the step/transition symbol to display the current states. Training Center SIMATIC PCS 7 Systom Training fo: Automaton ard Orives Page 2 Configuring with SFC SIEMENS Sequence Structures Linear Parallel Alternative Loop Jump ! | ! j St St i i } I Ti2 aa St I 72] (3. i T T 1 (r2] $22 s2 83 pag) |p| pea T $2 1 T24 134 1 123 L 7 T23 ! | 83 84 7 T SIMATIC PCS 7 ae tate sven aneg te Sees AG 206 A peeves Linear Sequence Parallel Branch Start position: $1 and T12 are active. ‘Step enabling: if T12 is fulfilled, then S1 becomes inactive, and $2 and T23 become active. Start position: S1 and T12 are active. Step enabling: if T12 is fulfiled, then $1 is inactive, and 21, $22 and 723 become active. Alternative Branch —_ Start position: $1, T12 and 713 are active. Step enabling: 1, If 712 is fulfilled, then $1 is inactive, and S2 and 724 are active (113, S3, T34 Inactive). 2. If T13 is fulfilled, then S1 is inactive, and S3 and T34 are active (112, S2, T24 inactive) 8.1 T12 and 713 are fuliled, priority to the eftis higher; the left branch is active Loop ‘Start position: S1 and T12 are active. Step enabling 1. If T12 is fulfilled, then S2 is active, and T23 and T2 are active. 2. T23 i fuifiled, S2 terminates and 83 is active 3. 72s fullled, $2 terminates and is inialized again. 4, \fT23 and T2 are fulfilled, then to $3. Jump Start position: $1, 712 and T13 are active. Step enabling: 1. If T12 is fulfilled, then S2 and T23 are active. 2. If T2 is fulfilled, then S3 and its following transition are active. 3.712 and T2 are fulflled, priority to the lefts higher; normal sequence (no Training Center IEE ‘SIMATIC PCS 7 System Training for Automation and Drives Page 3 Configuring with SFC SIEMENS Action and Transition ‘Step active et 27a 1 acon TORR [= 2 ies ae = a ‘Transitign fulfilled Hb oes > SIMATIC PCS 7 ao tate SITRAW riot Berane A623 Atm PatrrcSrste sea Rinao moar Actions — ‘Actions that detormine what stops must do in the process (such as specify parameters and trigger switching operations) must be configured within the step. ‘You can enter up to 50 actions per step section. ‘Step A step consists of actions that run in three sections: Initialization Initialization is carried out once (for one program run from the OB) when the step becomes active. ‘Processing, This section is carried out for every run from the OB until the next transition is fulfilled. If the transition is fulfilled, the terminating section (see below) is carried out during the next OB run of the sequence. ‘Termination This section is carried out once, after the next transition is fulfilled. After the last ‘command, the step bacomes inactive and simultaneously, the following step becomes active (with its initialization), depending on the topology. ‘Transitions Transitions contain the step enabling conditions for the next step in the sequence. You can evaluate the validity of up to 16 conditions using five logical gates. If you mouse-click the gale or connecting line, you can convert it to AND, NAND, OR or NOR. Training Center SIMATIC PCS 7 System Training ‘or Automaton and Drives Page 4 Configuring with SFC SIEMENS Pas Fea Preprocessing and Postprocessing for a Sequencer Possible for oach individual Blue background Tab content has been changed SIMATIC PCS 7 Sener AGING At need, SFC Sequencers Start Conditions. Preprocessing Postprocessing Run sequence Remark ae BREN SITRAIN rag tr When created, an SFC chart has a sequencer (called RUN). It can be extended to include other sequencers (which can be inserted, moved or deleted in the chart in the lower ber using the right mouse button). After insertion. the sequencer can be displayed by clicking the associated tab, A logic can be constructed in the sequencer properties same as for with the transition. In this tab, you can define the conditions for the SFC chart/type that are to start the sequencer (e.g. "SFCName.RUN = Active" starts the sequencer if the SFC charts in "Active" mode). At any one time there Is always a maximum of ONE sequencer being processed (active) in an SFC chart. If the start conditions are fulfilled for several soquencers, the "Priority" property decides which ‘sequencer is executed (1 is the lowest and 255 the highest priority). If sequencers with start conditions that are futfled at the same time also have the same priority, the sequencer which is located further to the left is initiated first. In this tab, you can define the actions for the SFC chart or type _that must be carried out before each sequencer processing call (regardless of whether the respective current step is in initialization, processing or finishing). Each line constitutes one statement. Up to 50 statements are possible in each case. You ‘an change the selection of displayed statements (10) using the vertical scroll bar at the right-hand side. In this tab, you can define the actions for the SFC chart or type that must be carried out after each sequencer processing call. Here, too, up to 50 statements are permitted. ‘The preprocessing and postprocessing tabs are actuated before and after each ‘sequencer cycle, as long as the sequencer is active, The recommended rule here is: the SFC is called after the blocks that it queries in the transitions, but before the blocks that it writes with commands (to the extent possible). You will first create an SFC chart with one sequencer. Then, after more information is provided, you will add acditional sequencers to the SFC chart. Training Center forAutoation and Dives SIMATIC PCS 7 System Training Page 5 Configuring with SEC SIEMENS Operating State Logic of a Sequencer (Online Help > Index: operating state logic or OSL) Step Control Modes T with Transition TorO with Transition or Operation TandO — with Transition and Operation B with Operation WT and O with step-specific operation bene Operating mods Operator commands SIMATIC PCS 7 Dates o7.t2.2008 SITRAIN rang tr ‘Serre AG 2S Ate eed FinsrecSie Vo se0 ‘amet ees States Following the download operation to the CPU, the sequential control system is in a defined state. This defined state is specified with the SFC Editor (default: Ready). Now the sequential control can begin either automatically (SFC Chart Properties -> Start Options -> Autostart) or after a start command (menu Chart -> Properties -> Start Options -> Operating Parameters). ‘Sequencer Operating State Logic (OSL) Processing of the sequencers is controlled by the sequencer operating state logic. The sequencer’s operating stats logic is defined in the diagram of the state transitions for sequencer OSL. Operator Commands You can use commands to change the sequential control system between states (eg. Start, Hold, Resume, Abort, Complete). Step Control Modes The different step control modes modify the behavior of prepared or fulfilled transitions. A change in the step control modes is possible in all of the operating states. The individual step control modes mutually exclude each other. The following step control modes ere available: T with Transition TorO with Transition or Operation TandO with Transition and Operation B ‘with Operation T/T and O with step-specific operation ‘Training Center SIMATIC PCS 7 System Training for Automaton and Dives Page 6 Configuring with SFC SIEMENS Solution Principle (AS) Hardware | Software (Module crivers with diagnostics (WO modules) | Ere genarated automatically by (Other) CFC) Al CHAI SFC J Library Graphic | config. tool Diagnostic Process | 2——~ |AO ~ module (Channel CTRL_PIO (Reactor) drivers, drivers are Oy connected toe. ' CPU bad the prooses tea Librery t pl measurement] individually in { the CFC) ' (System REACTOR I | | performance) enna 1 ao [CH.DO | Program, 1 Library SCL 1 ' | Le Possible process simulation * SIMATIC PCS 7 ate sa 209 SITRANN anna ‘Servs A620 esr Piston co soe ‘arate eee AS solution The block libraries contain different blocks that form individual parts of the solution. Drivers, operator control blocks and technological blocks (closed-loop controllers, motors) are used. Inputting/outputting process signals The single-channel drivers (CH_AI, CH_AQ, CH_DI and CH_DO) are located in ‘the PCS 7 library. Those drivers are inserted in the CFC in which the process Value is needed. The symbolic name of the value is used to select the connection to the process value (via the symbol table). ‘The name is assigned to the individual hardware channel during the hardware configuration. No additional parameters must be set, except for the measuring range. After CPU selection, the CFC generates the necessary module drivers during compilation, elong with all of the necessary parameter settings (which are read from HW Config). ‘With V7.0 and higher, the CFC also inserts the CPU_RT block, which can carry out runtime measurements and avoid a CPU stop in the event of an overload. Remark With V5.2 and higher, you can also use universal drivers (CH_U_Al, CH_U_AO, CH_U_DI and CH_U_DO). They can be used for $7-400, ET 200M or Profibus PA field devices. If you want to configure an older CPU (from V4) using PCS 7 V6.0, you must continue to use the V4 libraries, or the CPU will be upgraded. Temperature control You can implement temperature control, for example, by using the CTRL_PID block from the same library. This block also has the faceplate necessary for ‘operator control and monitoring (for WinCC). Signaling You can use the MEAS_MON block, for example, for this. This block monitors the level and signals a limit violation to the OS. The controller block itself can also ‘monitor its own process variable and signal limit violations to the OS. Training Center SIMATIC PCS 7 System Training for Automation and Dives Page 4 Configuration SIEMENS zo Exercise: Sequence Control - Temperature START | Start step nt Step enabling condition: — PV_IN Process value PV_IN loss than 337 ‘sP=70 | Action’ + Test + Linear sequence T + Conditions in transitions SPa0 + Actions in steps T | : Set setpoint SP_EXT to 70 = Step enabling condition: Be t eer Process value PV_IN greater than 67] SP=50 | 1<53 I END SIMATIC PCS 7, Server 402008 A oie Exercise ‘Steps Procedure Configure steps wees seria anes Bec wer A seaaee Create a setpoint control for the temperature controller of reactor A (800 slide). If ‘specific process values are not reached or are exceeded, the setpoint must be set to defined values. 1. Create the SFC chart "SFC_Temp’ in the same folder containing the CFC chart for the temperature controller. 2. First create the layout of the sequencer as per the above illustration, with the prescribed names for the steps and transitions. 3. Then configure the steps and transitions, 4. Next, compile ("Changes") and download ("Changes") the program. 5. Test the sequence in test mode. Procedute for configuring the steps: Soloct a stop from the sequencer and open it by double-clicking. In the "Generat" tab, enter the name, min. and max. runtime, the step comment in the control, the step comment in the visualization, and acknowledgment information (if leaving the stop has to be acknowledged). The “Initalization”, "Processing" and "Termination" tabs must be used to configure the actions in this step. Go to the "Processing" tab, place the cursor in the first free line, and click t "Browse" button (at the bottom of the screen) to look the charts in either the view" or "Component view" tab until you reach the controller block. Select this, block and select the required parameter in the right pane, ¢.9. The SP_EXT parameter from the CTRL_PID block for the reactor heating control Training Center for Automaton and Drives SIMATIC PCS 7 System Training Page 7 Configuring with SFC Configure transition You now have to assign a value to the selected parameter in your statement (to the right of := ). Enter the temperature value, e.g. 70.0, in accordance with the function of the step. Select a transition from the sequencer and open it by double-clicking. In the "Generat" tab, enier the name, the comment (ES), the OS comment and the acknowledgment information. ‘The “Condition” tab is used to configure individual conditions within the step enabling condition. Here too you can use "Browse" lo select the required parameter from the CFC charts and then use the symbols to compara it with a specific value or another parameter, ©.9. PY_IN from CTRL_PID < 33.0 (degrees) Compile and Download ‘The program is compiled and downloaded (as desoribed in detail in the CFC section) from the SFC chart using the same procedure as for the CFC. Compile and download the changes. ‘The compile and download operation always applies to all CFC and SFC charts inthe program to which the SFC chart belongs, i.e. from where you are initiating the procedure (they form a common program). Testing the SFC Test mode is enabled and disabled using the command Debug > Test Mode Compared to edit mode, the SFC chart window in test mode is expanded to show an operating and display section at the bottom of the window. In addition fo selection of the operating mode (MANUAL, AUTO); you can also see the following buttons for the SFC: - Start -Hold = Resume -Abort Complete - Stop + Restart -Reset — - Error (handling) When the steps and transitions are cycled through, they will display different colors depending on their state: Step active pale green Step held yellow Step contains errors red (e.g. maximum runtime exceeded) Step is inactive but has been processed — dark green Step is inactive and has not yet been processed gray Transition fulfilled dark green Transition not fulfilled dark red Transition inactive gray Training Center SIMATIC PCS 7 System Training ‘or Automation and Dives Page 8 Configuring with SFC SIEMENS Menu: Dobug Tost Modo Debug > Open SFCs. ‘Soloct statuses = Muttpie selection possible No selection means no limitation ‘Select the operating mode = [B] ss coe ef cet [s] Select and open snare tes. Pico BEE we aes Benes AC 206 Aenea Analyze SFC In test mode itis possible to display SFCs that correspond to a defined ‘combination of statuses. To do this, open any SFC and set it to test mode. Only then is the menu item Debug > Open SFCs offered. The required steps are shown in the above slide. Remark The conditions are linked by logical ANDing. Training Center SIMATIC PCS 7 System Training for Autornation and Drives Pago 9 Configuring with SFC SIEMENS Sequence Control - Reactor (Papeete core trmperature — 10:90 degrees: ee Tilicongorntx eater tesbyjoa)| | emraive tin —] SaOR EAT) [eer] temperature contol Speed monkor formar ON ‘Open dain va, statsen tmaer OFF, dose tempersture corti Fi sozond component av cone = (ES tases SIMATIC PCS 7 2 pe, GBA SRAM rage Samer A026 Mar Were se Pl ors ome Exercise Requirement Steps Procedure The sequence for the manufacturing procedure in Reactor A was described in the “Configuration Overview" tad, page 2. Now implement this sequence using an SFC chart. Configure, compile, download and test this SFC chart. ‘You have implemented and fested the example in the chart "Exer_Reaci" with the MOTOR, VALVE and CTRL_PID blocks. 1. In the plant hierarchy under "Reactors\UnitA’, create an SFC chart, "SFC_Roach" 2. Establish the sequence of the SFC (see picture above). 3. Configure the actions in the individual steps and the signals fo be queried in the transitions. 4. Compile and download the program. 5, Test the project. ‘You can derive the sequence from the above picture. Control the filing valves and the drain valve using the VALVE blocks. Control the mixer via the MOTOR block For the "heating" step, set the controller to AUTOMATIC and the external setpoint t0 90°C. ‘You can include waiting times by inserting an empty step (with a minimum. runtime setting) and an empty transition Training Center {for Autorvation and Drives SIMATIC PCS 7 System Training Page 10 Configuring with SFC SIEMENS Parameter Control via the SFC eet | VALVE MOTOR CTRL_PID | Remark ‘SFC control assumes the control of the blocks (operator cannot operate) ‘Assur contrclof | LIOP_SEL=t or seL=i UOPMANSEL=1 | SFC aetermines broek operating mode ‘Operating mode (Lik is ‘elie, not OPeratort ‘SetAvtomaticmode | AUTI=t AUT Lt AUT ‘Setexternal sipoint WOR INT _SEL=t Forcontrelios only SPEKON Let ‘Gutput commands | AUTOG(tmoper) | AUTON It=on) ‘SP_EXT = (value) ‘SFC control relinquishes control of the blocks (operator can operate again) FRolinquish control of | LIOP_SEL=0 Lior _SEL=0 UOP MAN 6EL-0 | SFO releases the Blocks operating mode a ‘parating move Lor nT sess Shancnover again (but {does not change te Spereting moss) Active outputs of the blocks Passio ate ‘aconTROL GSTART Da SIMATIC PCS 7 om 8748 sirmamn nner Benes AH Maersk Preeti m ‘iomnaueee Operating Modes. For the SFC to be able to pass its commands to the valves or motors via the above listed blocks, it must be able to influence the blocks’ operating mode (set the operating mods to AUTOMATIC) and write commands to the suitable inputs, It must also be possible for the plant operator to intervene manually whon tho control has finished. This means the control must relinquish its control over the blocks again Training Center SIMATIC PCS 7 System Training for Automaton and Drives Page 11 Configuring with SFC SIEMENS Notes SIMATIC PCS 7 one eran SITRAW tatea te Sener AG 2 Mie ee Prec EISE vee Sonumoasos Training Center SIMATIC PCS 7 System Training {for Automation and Drives: Page 12 Configuring with SFC SFC Operating Mode Logic (Online Help > Index: operating state logic or OSL) Buttons for testing the SFC >I stort WY Hols 10 Resume AI abort Ai complete 33) stop Bl Restart BA recat Bl error SIMATIC PCS 7 Sere AG 26 ALmaNEreemes. Operating State Logic for SFC The current operating state of the SFC OSL can be modified by the following ‘State events: um rae SITRAIN rag Plebr resis VP se t8 ‘Azerstonans ore - Commands (Start, Resume, Hold, eto.) in operating modes "MANUAL" or "AUTO". + External signals (SFC inputs, commands from another SFC, etc.) - Internal signals (commands from custom sequencers, from test mode or SFC visualization), - Implicit state change. Step enable commands Start Complete. Hold Resume Error Abort Stop Restart Reset Trigger start processing ‘Trigger complete processing Trigger hold processing Trigger continue processing, e.g. after an error Trigger error processing ‘Trigger cancel processing Trigger stop processing Trigger start processing Change to Ready state Training Center for Auloraion and Drives SIMATIC PCS 7 System Training Page 13 Configuring with SFC If you also want to openiciose the valves manually, you can use simple operator Operation control blocks for digital values (OP_D) or the valve blocks (VALVE) with built-in operator contro! and monitoring. Plant simulation You can simulate the plant using the REACTOR block (in a user library). Use the SFC Editor for this, This editor can only access data that were configured ‘Sequential control previously, such as with the CFC Editor. Training Center SIMATIG PCS 7 System Training for Aulomation and Dives Page 5 Configuration SIEMENS Run Behavior of an SFC SITRAN traning te ‘amas wees SIMATIC PCS 7 ae 122000 Seon 16206 saris eee FisSrecS ie Vi se Interaction with Basic Automation (CFC) ‘The sequential control in the AS is connected to the basic automation via the action and transition functions. A specific runtime behavior is assigned to each ‘SFC. Basic automation using the blocks contained in the CFC charts can have a different runtime behavior than the SFC. You can control an SFC chart using the ‘external view of the SFC chart contained in the CFC chart. The structure of the ‘sequence system makes it possible for the sequential control and the basic automation blocks to run in different cycles, thereby reducing the cyclical load. In the same way, SFCs can be integrated into runtime groups, and can be given a different scan rate or phase offset via these groups. ‘SFC Runtime Options You can set the sequential control behavior in the runtime options. These can be set in the dialog field “SFC > Proportios > Tab: Operating Parameters CPU’ Instruction Output On: The actions of active steps will be processed. Off: The actions of active steps will not be processed. Cyclic Execution With "Cyclic Execution: On* the program will automatically revert to "Starting” following the "Completed" operating state. With "Cyclic Execution: Off, the program remains in “Completed” state, Time Monitoring With "Time Monitoring: On", the active time of the step is continuously compared against the monitoring time after the step is activated (object properties for the step, "General" tab, "Maximum Runtime" option), and a step error is reported if the time is exceeded. Training Center SIMATIC PCS 7 System Training ‘for Automaton and Drives Page 14. Configuring with SFC SIEMENS Restart Behavior of the SFC(1) Properties SFC chart ewe SSC pnotrgPamelen [06 | Vevon) Doiets Seocuncinate Sowsra rose —) wana] SPC tap ae Use © inde RtanSFC ate © Comms Ole meen 7 Twenenceng Sat epins Us dla open pint SFC cats SIMATIC PCS 7 ‘Sees AG 218 Arora Restart Behavior Training Center {for Aviomation and Drives om gr Ke PierecdtSva vi we 16 SITRAIN nasi With PCS 7 Version 7.0 and higher there is an additional possibility for setting the behavior following a CPU restart (see arrow in slide). In the previous versions, the SFC was always initialized, and the data valid prior to the stop were lost (this is now the default setting). In the new version, the SFC status can be retained. Following a CPU restart, the SFC then retains its status. Using the SFC and process states, the operator can then decide how the SFC is to continue working. Page 15 SIMATIC PCS 7 System Training ‘Configuring with SFC SIEMENS Peat ies Restart Behavior of the SFC(2) SIMATIC PCS 7 ‘Sere £6208 AG ese Exercise ‘Steps SITRAIN rang Pace ve Set the SFC from the pravious exercise such that it retains its state following a CPU restart. Test the restart behavior of the SFC (by means of CPU stop followed by a CPU restart) in the "Component X" and "Heat" step. What happens. to the configuration due to this behavior? What happens, for example, with the filing of component X in the reactor in the meantime (between the CPU Stop and Resume command by plant operator, once the CPU is running again)? 1, Open the SFC, select the menu SFC > Properties > "Operating parameters CPU" tab and select the "Retain SFC status" option. 2. Compile and download the changes. 3. Switch on test mode, and start the SFC. 4. When the "Component X" step is reached in the SFC, stop the CPU (using PLC -> Operating Mode-> Stop). ‘What is output by the output modules to which the valves (simulation) are connected? What does this mean for ¢ real plant? 5, From the last screen form, carry out the CPU restart. You must then decide at some time whether the SFC is to continue or stoplabort, ‘Anew command is not output by the SFC up to this point. What commands are ‘output by the valve, motor and controller blocks? Note that the biooks mentioned, ‘also exhibit @ restart behavior when the CPU Is restarted, but they then call their program cyclically in the cyclic interrupt OB with the parameters which they find there. Training Center ‘for Automation and Drives SIMATIC PCS 7 System Training Pege 18 Configuring with SFC SIEMENS. External View of SFC FEeaneane =) LockHoLe o—{tocrapon rockstar SIMATIC PCS 7 ‘Serve A020 Ae ea, External View Representation Interconnection Tip Pier ocSiOVE NR we17 The SFC chart has a standard interface through which it can be controlled using CFC interconnections. This interface is represented as a graphic "external view" of the chart, Activate the following manu command in the SFC View > Extemal View to open the CFC with an external view window. ‘The external view shows the SFC as a block with an SFC chart symbol in the block header. The biock name is the SFC chart name and cannot be changed. Inputs can be interconnected to other objects, global addresses or textual interconnections. Please refer to the online help for more information about the individual parameters (Halp on SFC > External View... > See also... Standard interface for ‘SFC charts). There the parameters are listed both alphabetically and according to their use. You cannot add further objects to the CFC chart showing the extemal view of the SFC. All interconnections must pass over the edge of this chart. Open the extemal view of the SFC (= a CFC window) and the CFC chart from which the control is to be influenced (= 2 second CFC window). Arrange both windows side by side. Interconnest the blocks as described in the CFC chapter. Training Contor for Automation and Drivos SIMATIC PCS 7 System Training Page 17 Configuring with SFC ‘SIEMENS Exercise: Adi ig Two Sequencers to the Sequential Control ‘SFC_Reach HOLD! Start condition RUN sequencer ‘Start condition DB: HOLD Sequence I cont __| = Ly Sate stato Output commands i Set operating modes for operation ‘Sian sovaition Resuming sequencer ea a Restore state SIMATIC PCS 7 Sees A626 Aorta, Exercise Stops Procedure Training Center {for Automation and Drives SITRAIN trig tr pate ersuance Neria te Supplement the sequential control for Reactor A as follows: {f the plant operator issues a hold command for the SFC control, a second "HOLD. sequencer" will start up. This is to ensure that valves V1, V2 and V3 close, the mixer is switched off and the temperature controller is set to manual operation with a preset manual value, The HOLD operating state must not be reached until the two above-mentioned commands have become effective. This state must be saved ina DB. The operator can perform operations in the HOLD state. If the control is to exit the "HOLD" state, the valves, mixer and controller must be switched back to the state saved in the DB, i.e. the state they were in when the HOLD command was issued. This is achieved by using a third "CONTINUE sequencer’ which resets the blocks to the desired state and is only exited after a check has been performed. 1. Insert additional sequencers in the SFC_ReacA. 2 Set the chart properties for the two adcitional sequencers 3. Create data block to save data when control is in HOLD state. 4. In SEC_ReacA complete programming of the "HOLD" and "CONTINUE" sequencers, 4. Insert two additional sequencers in SFC_ReacA. With the SFC open, go to the "RUN’ tab (below) right-click end select insert Sequence at End ‘0 insert another sequencer. One SFC can process up to eight sequencers in alteration With the SFC open, set the chart properties via Chart > Properties -> Operating Parameters tab as follows: Step Control Mode: T, Operating mode: MANUAL; Instruction Output: checked, Use default operating parameters when SFC chart starts: checked, SIMATIC PCS 7 System Training Page 18 Configuring with SFC SIEMENS Holding Sequencer with Data Block for Values to be Saved FUE Fis Et Inert AC Oohis now ORERE Wrebr Hele leis) af Jlole) 1c) la fe Sled oe OS adress [Mane [five [initiat vanicoseeat ta [scat 6.0) [Flown faoos [raise __Walve 1 open “ai [ruoweae soon [raise [veave 2 open 76.3) [Drain [soo JPa.se valve 9 open 40.5) fixe oor [raise —_frxer om soca) [conccotier sorepoox raise _|crRi-Pip om niconatie 72.0] |secoosnt [put o.o000n0esGlaaved setpeine $6.0) [tan vaine neat Jo. 000000es0anved xanual_ valon a0. [no _=iRorT ‘Normal” reactor sequencer SIMATIG PCS 7 Sere AG 25 A om Create Data Blook Pir ncSE wte Stora Create a data block (DB) (e.g., 081 with a symbolic name, "ReacA_DB"). This block is to be used to save the necessary states when the main sequencer is held (see above for possible structure). To do this, you need to switch to the project component view. Select the block folder, then right-click and select New Object.» Data Block to create the global DB1. Enter the symbolic name “ReacA_DB" in the Properties window. Then select the block, right-click and solect Open to start the data block editor (see above). Define the necessary parameters in the corresponding data formats. Configuring SFC with Two Additional Sequencers, HOLDING SFC "Save" Step Transition RESUMING SFC "Restore" Step Configure the HOLDING SFC and the RESUMING SFC. ‘This is started when a command is received to hold the RUN SFC. In the "Save" step, the relevant pending commandsidata are saved in DB1 (see above, content of DB1) and then the desired settings are mado. This checks whether the operating modes and values that were set as a precautionary measure have become effective. The sequencer is completed only after the transition is fulfilled. The SFC chart then changes to HOLD state. This is started when a command is received to resume the RUN SFC. ‘The "Restore" step is the opposite to the "Save" step in the HOLDING sequencer, i.e. the data is read from DB1 and distriouted across the relevant block parameters/inputs (from right to left). Transition This checks whether the saved states have become effective again before the RUN sequencer resumes activity. Training Contr SIMATIC PCS 7 System Training for Automation and Drives Page 19 Configuring with SFC SIEMENS Creating an SFC Type Several sequencers possible for ‘one SFC type SDB se ies Pres Pt fete. = SIMATIC PCS 7 dae eras SITRAWN rorng x Seno ne 286 Agr saves PaterecSttee ts woz0 ‘Ronan ane SFC Type In SFC V6.1 there is an SFC type in addition to the SFC chart. This makes it possible to define sequential controls, including an interface. The runtime logic of the SFC type is based on the interface of the SFC type, ie. the SFC type cannot access just any process signals. Like function blocks, SFC types must be placed on a CFC chart, where they are given an SFC instance. Creating an SFC Type ‘SFC types cannot be inserted into the plant hi their own. Instead, they are created using Insert new object -> SFC tyne in the component view in the SIMATIC Manager or SFC-> New (select "SFC type" in the "Object type" field) in the SFC editor. rarchy, since they cannot run on Manipulating the SFC Type ‘The SFC type is a manipulable object like the SFC chart; however, it has its own symbol to distinguish it from the lalter. The attributes necessary for the SFC type (e.g. S7_m_c) ate preset. Seven messages requiring acknowledgement and five that do not require acknowledgement can be configured for each SFC type. The other available messages are required by the SFC type itself. Configuring Using the SFC Type ‘Only the interfaces for the SFC type can be used to configure actions in the steps ‘and the start and step enabling conditions. in other words, external access is via the SFC type interface only. Training Contor SIMATIC PCS 7 System Training for Automation and Drivos Page 20 Configuring with SFC SIEMENS Creating an SFC Instance Frc wereucn 707 prinenziieat) erating mode Operating stato Fault indisnion Execution option Group play oni sirstegy “dee. Ge oe) SIMATIC PCS 7 ome erane STRAW nacre Sees AG 2 Maa PibrecSte sen ston SFC Instance it an SFC type is used, itis inserted into a CFC chart. An SFC instance will be assigned to it at this point. SFC instances are therefore always assigned to the CFC chart and are addressed via the chart. By assigning the CFC chart to the plant hierarchy, the instances that it contains are also indirectly assigned to the plant hierarchy. Messages SFC instance messages can be configured in the SFC via SFC > Message or in the CFC in the object proparties dialog box. The messages are PCS-7- compliant and can also be provided with associated values, for instance. Configuration ‘When you configure SFC instances, the interface and the sequencers must not be changed, as they are specified identically for all instances through the SFC type. Changes that are made directly to the instances may be loaded at any time, even if the SFC instance is currently being processed in the automation system. After you have configured any changes, you must use the function 08> Compile to ensure that the current data are also available on the OS. Compile If the program is compiled on the ES side, the SFC instances will be compiled along with them. For any given SFC instance, ‘+n data blocks will be created (where n = number of sequencers within an SFC). Training Center SIMATIC PCS 7 System Training for Attra and Dives Page 21 Configuring with SFC SIEMENS Miscellaneous Reference Data EE Bie dr0 £6 Ye Yas ta (So) Sisim) nay o) ©0B1_O@)_L3) [ 1640) Deqvatiiceacan| curncinsedT— Run Sequence = a ema e.(01300) EF cy ru 417-41 [ SUBNET | SuANeT Function Bk 1 £ Wwe raver spt [SUBET | SUBET Rincon Beck} = gos_06.0) 160) Teewar(so) a Deemed to} Cosefernmee: Chet Genet 280% = 2 cet 8@).)(180) owtafres $C-> Chat Ehret | Boca sia jnicenateni neces GM. I5H2_pes_t | RACY | RACK Functon Be, AMEE Tape get gent Boas Tab ‘ore etrtee chon Urenh > Ratna frovivss As (801 Sete Bf eomauaat_.3(40] ee Hf oomenannt(a01 eae B ogmmoenzmn Lan0 1 wae B eveoace 258 3(M0) sana BF ogimeccen int [Mb] . os ane ost ine F SIMATIC PCS 7 oa 2 SITRAN roscoe Sones AGN wig weed Proc ase Rota Seer Calling up Reference Data When you have opened a CFC or SFC chert, you can use Options > Chart Reference Data... or the symbol in the function bar to display end print the information shown below in list form or in tree structure. You can seerch for the desired output using the View menu command Run sequence Graphic representation of the entire run sequence of a CPU. Cross References Chart Element > Address A list of all global addresses used in the project, with the elements that have access to them. Cross References SFC > Chart Element This displays the existing accesses to the block interfaces in the CFC from any SFC charts, Block interconnections List of all interconnected chart elements. Access in SFC types List of all read and write accesses of the SFC types to their own interface. Gross References Chart Element -> Runtime Groups Existing accesses from any CFC and SFC charts for all runtime groups. Cross References Block Types ‘The block types used and the locations (CFC chart) where they are used. S7 Resource Allocation “The assignment betweon CFC configuration objects and $7 resources. Training Center SIMATIC PCS 7 System Training for Automation and Drives Page 22 Configuring with SEC Local Data All OBs in the program, with the calculated local data requirement and the local data sizes for the individual priority classes as configured offline, and those actually available online, Block Call Hierarchy Graphic representation of the call hierarchy for all blocks in the current program. Textual Interconnections All open textual interconnections are listed. Statisties Number of all objects used by CFC, SRC; S7 resources and the time stamp from the current program, as well as the HM|-relevant block instances for the project. You can use this information to check your configuration structure. For example, you can use the "Cross-References Chart Element > Addresses" list to dotermino which symbols are used and how offen, and whether write accesses are synchronized. See the online help for further information. Note The "Reference Data’ function is also available in SIMATIC Manager. With PCS 7 projects it is only offered in the context of the chart folder of the CPU SIMATIC PCS 7 System Training Training Center 7 Sys for Automation and Drives Page 23, ‘Configuring with SFC SIEMENS Configuration Steps (AS) i ‘Select block libraries 1 Create plant hierarchy Icreale project-specific ' brary | | (GM view-> Plant hierarchy or x | | 8M view-> Process object view) ! zs Create project (SM") 1 ! Assign resources Hl (SM both views: oS ! PH or PO) Create resources ! a (SM view 1 > Component view) * 1 Configure SW | (CFC, SFC, SCL, a ! messages, archive tags) I Configure hardware | oe (SM view ' > Component view) * 1 Test+commission t- { (Configuration too!s) ‘SM*~ SIMATIC Manager Document SIMATIC PCS 7 aim, a8 12008, 'SITRAIN Tain tor Senor A 206 Ave ae Perec BEMe w 206 Rinne oes Introduction The steps described below are a simplified representation. For more detailed Block libraries Create project Resources Hardware Plant hierarchy Assign resources Software Test + Commission information about the sequences and what needs to be taken into account at the outset, please refer to the "PCS 7 - Engineering System Configuration Manual", Chapter 3 "Planning the Plant Engineering’. The libraries that are not used should be hicden via the SIMATIC Manager file management function. It can be advantageous to create a separate library for ‘each project in the same project directory (master data library). To start, the blocks that will be used later in the project are collected there. If in the future the software is upgraded, this library can be updated across all subprojects. Use the SIMATIC Manager to create the new project. The Manager handles all of the data generated during configuration. Resources include the ASs in the project (with their hardware), the S7 programs (with blocks in the user program and with chart containers and the blocks imported to these chart containers vie CFC), networks, as well as the ES/OS PCs. Within the project, the AS/PC hardware components (CPU, CP, and I/O modules) must be configured in accordance with the hardware structure. This configuration downloaded to the AS and assigns the parameters for the modules. (PH) A hierarchy (with @ maximum of eight levels) is used to display the configured plant in the project. This hierarchy can correspond to the HID system (comparable to a diractory tree). ‘One AS and/or one OS can be assigned to each hierarchy level. The subordinate levels can inherit the assignment. CFC/SFC charts, OS displays, reports or documents belonging to the assigned AS/OS can be inserted in each level (as "leaves" on the "branch"). ‘AS-specific or OS-specific tools are used fo configure the software as needed From the AS, you open the abject in the plant hiorarchy to start the software. The software must be loaded onto the configured hardware for this. Each configuration tool you use provides testing opportunities for online operation. Training Center SIMATIC PCS 7 System Training ferAtzomation and Dives Page 6 Configuration SIEMENS Project Environment ‘ om, ‘ Fela 4 1, Factory 2 /\ \ materials Dyes wi SIMATIC PCS 7 ae tame SITRAWN Taco Ses AG 26 Ach oe Perec aM. 207 Sinaneaoees Project Environment Our project is part of a dye manufacturing plant, The basic materials are manufactured in Factory 1 and are transported from there to Factory 2. In Factory 2, the basic materials are stored in dedicated storage tanks. After undergoing the manufacturing process, the end product is stored in @ different section of the tank farm for transport purposes. Training Center SIMATIC PCS 7 System Training for Automation and Drives Page? Configuration Our Plant (Factory 2) Factory 2 ‘Tank Farm Noth To Top Tank Farm East 3|3)5 a OOO lH] §gee9 — SG ae eet oooo |alsls|s| QGO00 lsd lase! Mixed plan 0000 {8/8/88 OO Tank farm SISISNS Shipping | Group 3 |as3|/AS7 Group 7 Tank Farm sour] ([ 1) | ———/ " ee OOO I sd Group2 jas, Groupe | go8e ae ~~ \ aroun tinctfasy asd coups / i = \ roup 1 inc! up / ooo S—— \ “ont y 0000 Shisping—~_ uae e000 mount . Factory 1 SS SIMATIC PCS 7 eves AG 2003 Atrgue ees Plant Overview Automation systems Note STRAIN nasa‘ Puech vio. p08 ‘amatonon ores The plant to be automated Is part of Factory 2 and is broken down into several different zones (see above): ‘« Tank Farms North, South and East « Shipping # Control building « Groups 1,2, 3, 4.5.6.7 Each configured with the following reactor units: Unit A, Unit B, Unit C, Unit D ‘You can specify this breakdown in the plant view (on additional pages) and retrieve it again later. Eight automation systems are used to carry out the automation tasks. The task iment is displayed in the picture at the top right. “Tasks that wore originally assigned to an AS or OS can be reallocated over the Plant hierarchy in a later project phase with minor configuration effort. Each participant takes on/configures a group in accordance with the training ‘station number. Training Center for Auloration and Drives SIMATIC PCS 7 System Training Page 8 Configuration SIEMENS Configuration Steps (OS) f Create resources ! (SM view i => Component view) * ! Compile and download OS = i i a Setup OS/oroject ecitor ! (optional) i Test+commission oS ' (configuration tools) Create OS objects 1 s Via plant hierarchy or i process object view ! Document a ' 1 Exit individual objects 1 (pictures, reports) i I ' ' ‘SM*~ SIMATIC Manager SIMATIC PCS 7 Dat, 3811208, TRAN range Sere M0208 A ae Pitarectibavin e209 Note The OS is created as a SIMATIC PC. The PC is also set up using the HW Config tool (like an AS). The basic data for a PCS 7 OS are configured using the project editor (within WinCc). Individual objects are inserted via the plant hierarchy or process object view and then completed in the appropriate editors (of WinCC). ‘The OS must also be compiled and downloaded (like an AS). The OS PC must be notworked with the ES PC for the download to work. You can find details about this in the section "HMl/Operator Control and Monitoring’. Training Contor SIMATIC PCS 7 System Trainir for Automation and Drives Page 9 Configuration SIEMENS ProjectStructure SIMATIC PCS 7 paw 15312006 SITRAIN Trig Serr 40208 Alin oe, Favor rcbrava ap seus Sonos ae Content Project Environment Our Plant (Factory 2) un Creating @ Multiproject (MP) Creating Projecis inthe MP... Setting the Language for Display Devices Assigning the Plant Hierarchy PH Settings Updating the Plant Hierarchy. Piant View - Settings/Propertios PH Assignment HID Generation 8 Hierarchy (AS/OS) OS Hierarchy (Picture Structure) Names in the Component View Training Center SIMATIC PCS 7 System Training {for Automaton and Diives Page 1 Project structure SIEMENS Project Environment Factory 4 oe Factory 2 materials Dyes ae as\ eee SITRAIN rare Se a, ned na eee ee Repeat ‘We shall repeat the project environment as in the previous chapter in order to create a suitable project structure for it. We will take into account the plant Structure for this, while also considering the specific AS and PC equipment available in the training room. Project environment Our project is part of a dye manufacturing plant. The basic materials are manufactured in Factory 1 and are transported from there to Factory 2. In Factory 2, the basic materials are stored in dedicated storage tanks. After undergoing the manufacturing process, the end product is stored in a different section of the tank farm for transport purposes. Training Center SIMATIC PCS 7 System Training for Automaton and Dives Page 2 Project structure SIEMENS Our Plant (Factory 2) Factory2 Tank Farm North Ts [To ~~ ‘Tank Farm East — a O00 li} sees -—~ ~ O19 Boone. => ae # 9900 |8/3/3/3| 9000 / Wize pon ©0000 8181218) O0 {Group 4 Tank farm \ SIGLots f Shipping \ Tank Farm South] (| 1 co | Groups Group 7 \ O00 am cc Groun2 [Asa las, Ground 0000 Control eet | | 0000 buiing ~~ Frou 1 incifa84}|a8§ Groups / 0000 \ unt / 0000 Shipping Nec ute 0000 Xun. Factory 1 ed SIMATIC PCS 7 am, 50208 STRAIN na ‘Sere AG 2003 Aeron eae, Peorectnete ares Plant overview The plant to be automated Is part of Factory 2 and is broken down into several different zones (see above): Tank Farms North, South and East Shipping + Control building = Groups 1, 2, 3, 4, 5, 6,7 Each of which is configured with the following reactor units: Unit A, Unit B, Unit C, Unit D You can specify this breakdown in the plant view (on additional pages) and reltieve it again later. ‘Automation systems Eight automation systems are used to carry out the automation tasks. The task assignment is displayed in the picture at the top right. O i i ise. usi s os. Note ‘Tasks that were originally assigned to an AS or OS can be reallocated over the Plant hierarchy in a later project phase with minor configuration effort Each participant takes on/con‘igures a group in accordance with the training station number. Training Center SIMATIC PCS 7 System Training for Automation and Drives Page 3 Project structure SIEMENS Creating a Multiproject (MP) Tooltip shows ‘storage lo Muttigroject symbol SIMATIC PCS 7 Date, 95.51.2008 SITRAIN reaing tr Soran AG 200 A ane Pianeta a swe Rion esoire Objective A project containing an AS and OS is to be created in such a way that it can be simultaneously edited on different ES systems at a later time. The "multiproject” is the project type of choice for this application. Exercise Create a PCS 7 muttiproject in which one project is created for the AS side and one for the OS side. in each project, configure the hardware for the devices used (AS or PC) and download the configuration to the devices. Steps 1. Create the multiproject using the SIMATIC Manager. 2. Create the two projects in the multiproject (one project for the AS, the other project for the OS). 3. Set the language for the display devices (in which language the plant operator will read his textual information). 4. Configure the hardware used in each of the projects. 5, Compile and dovnload the configurations to the devices. Remark Stops 4 and 5 can also be performed after the entire configuration has been completed, at the latest before debugaing and startup. As we want to test online a5 soon as possible, we will carry oUt these steps even before creating the soflware. Procedure 1.1 Start the SIMATIC Manager by clicking the icon on the desktop or by selecting ‘the following in the task bar: START -> SIMATIC > SIMATIC Manager 1.2 Select File -> New In the "Multiprojects" tab, specify the storage location and enter a name for the multiproject (e.g. storage location = "PCS/courses_V61" directory on the data drive, and name = "DYE". Training Center SIMATIC PCS 7 System Training for Automation ad Dives Page 4 Project structure Creating Projects in the MP Sees Cpr eee ey Caneneeal — Project symbols Multiproject symbol SIMATIC PCS 7 om, ena SITRAIN Tig ‘Sere AG 200 Ata eo Proc BARN e oes osmatons one Note Always use a directory on a drive other than the installation drive of Windows and PCS 7. If the Windows and PCS 7 hard disk partition is restored or reinstalled, the previously implemented projects will be retained! 2.1 Select the muttiproject icon, then right-click and select Multiproject -> Create in Multiproject. Then, go to the User Projects tab and specify the storage location and the name for the AS project (the path of the mulfiproject is already preset for the storage location, the name can be "PRO_AS", for example). 2.2. Now carry cut the same procedure for the OS project. Name it *PRO_OS", for example SIMATIC PCS 7 System Training ‘Training Center for Automation and Drives Page § Project structure SIEMENS CRAM | TFAeD| evewn sms naclotin mtv tet esiteematee Capetog 1 * STEARNS swe = fegesmee eterna 0°78 Project language SIMATIC PCS 7 Sees AG 208 A ene Remark win wat ane STRAIN rasta er PiPoreckiaa ve pane ‘Asemstonand Bes 3.1 First, select the AS project, and then select Options -> Language for Display Devices If you have not already specified the message number concept in the SIMATIC. Manager, you will be prompted to do so. Select the default setting (for V6). This query is necessary as the subsequent language selection will affect the message texts offered during configuration. 3.2 Provided you only want to use German, all you have to do is set it as the default language. I you want the project to be available in multiple languages, itis advisable to set ‘the default language to English (USA). Provision is also made for French, Italian and Spanish in PCS 7 libraries and in WinCC. You can easily add these languages to the “installed languages” If you want to uss the project in a different language (other than German, English, French, Italian, or Spanish), we recommend setting English as the default language ((,e., do not enter any additional languages in the “Installed Languages in Project” box) and installing the required language in WinCC later (this is explained in detail for the OS project). The English texts found there {in WinCC) can be exported, translated and reimported. The language setting must be made for each project within the multiproject! The project language displayed in the properties of the project corresponds to the Windows language when the project was created, and cannot be subsequently changed. For steps 4 and 5 mentioned at the beginning, please refer to Chapter 4 "System Configuration”. As these steps do not have to be performed but, rather, can be performed later, they have been included elsewhere, as indicated. Now we will return to configuring the system. Training Center fer Automation and Drives SIMATIC PCS 7 System Training Page 6 Project structure SIEMENS “Brust, Assigning the Plant Hierarchy Levelt» | 3 Bosra 2 Bm Level 2 ~ Hace: eer Level3 —+ + ger = Gus Level 44. ———» = i nn 2G tenin ies A802 ASO1 ASO3 pa esate ASO | in the exercise you wil assign your AS instead of AS06 | tre ASO3 or AS07. Use your 960 te OSES > pow S fitetes gaPicture Acur = Sifeao een féPicturo acre [Bos sb Picture ee (pP Picture ~ ‘A808 SIMATIC PCS 7 we, ene SITRAIN Paige Ser 6 AG 20S ANS ea, Perc BRM ora? eons Objective You have carried out the system configuration. The automation and HMI stations are in the foreground. The piant presented at the beginning of the chapter is to be reflected in the project In a so-called "Plant view" (also known as Plant Hierarchy). The AS ("ASxx") you configured a litle while ago will be used to automate the two structurally identical “A and °B" reactors, the OS ("OSxx)" you configured will be used for operator control and monitoring, Plant hierarchy You can call a plant-related view (through PCS7) in the project (in the SIMATIC Manager) View -> Plant View This view is intially emoty. Select the project name, then right-click and select New Object -> Hierarchy Folder You can then rename the new folders. After selecting a hierarchy folder, you can structure the secondary plant hierarchy in the same manner. Result: The piant view mirrors the structure of the plant. In our exercise we will create a PH with 4 levels. ‘We will use Level 1 as the factory designation. This level is present for overview purposes only 2s the plant is large; itis not used in the AS andor OS (nor is it part of the \er Level Item Designation - HID) It is included in a printout of documentation. Training Centor SIMATIC PCS 7 System Training for Automation and Drives Page 7 Project structure ASIOS assignment Note 1: os Name the tasks Note 2: We will use Level 2 to divice the factory into plants, such as reactors, tank farms, ete. We will use Level 3 for the units (e.g. as Unit A, Unit C or Reactor A, Reactor C) Level 4 will describe the function (e.g., temperature control or inflow) The plant folders must each be assigned to one AS and/or one OS so that the ‘automation task runs in the correct AS (the one that is "wired directly” to the plant) and the monitoring objects (pictures) are created in the correct OS. Select a hierarchy folder, then right-click and select Object Properties - AS-OS Assignment. Ifyou select the "Lower-level objects...” check box, the lower-level directories will algo inherit the assignment. When the AS is assigned, its chart folder is recorded (containing all CFC and SFC charts that run on the assigned AS). Select the AS ("ASxx") The reason for assignment to the chart container and not to the CPU is as follows: Ifyou have not yet specified the hardware, you can insert an $7 program (software only) into the project. You can assign the program's chart folder to the Plant View. After you specify the hardware, you can cut and paste this S7 program into the CPU, which is now known. It replaces the (still empty) S7 program of this CPU configured using HW-Config. The already configured plant hierarchy and software also migrate. Select the OS ("OSx') The pictures configured later in the hierarchy folder are kept in this OS. Select a hierarchy folder, then right-click and select New Object -> (CFC, SFC, pictures, etc. ) to insert and name the relevant objects. These objects are implicitly inserted in the assigned AS (chart folder) or OS, where the objects are also loaded and must be executed. PH assignments can only refer to devices (AS/OS) that are located in the same project. However, identical names of the PH in different projects of a multiproject refer to the same plant component to be configured within the multiproject. Training Center for Automation and Drives SIMATIC PCS 7 System Training Page 8 Project structure PH Settings (1) Pre eae eee te (costae Plat eran ny Devepoueliaryian bepan macy SPEEA eal RC te 1 dmv degrote ern tah SIMATIC PCS 7 Ste AG 268 A ames, Exercise Note Steps Procedure: Ow ie ‘ Dene Pinas: ton tenmescl Yet crear = oe © DetiePhnme on tecometid tehadie anowerte ae F705 East aa paw sst12m6 See Pierrot eho pane ‘screw es For the entire multiproject, set the plant hierarchy so that level 2 is defined as the OS area, levels 2, 3 and 4 are part of the higher-order item designation, and the picture hierarchy and diagnostics screens are derived from the plant hierarchy. For instructional purposes, we will deactivate the "Diagnostics screens..." option again after checking the automatically generated structure. At the end of the second week of training, when we have completed the automation and HM exercises, we will activate this option again and take a look at the end result. 1. Solect the muttiproject and open the settings screen. 2. Select the project thet is to serve as the template for the PH. 3._ Define the OS that is to be used as a maintenance station (MS), Le., your ESiOS. 4. Check the changes that have been made. 1. Inthe SIMATIC Manager open the plant view of the multioroject and select the name of the multiproject To open the screen form, right-click and select Plant Hierarchy > Settings ‘Then set the options according to the requirements for the exercise, 2. In the next screen, select the AS project as the template. (The goal is to avoid having to create the PH again for each project if the selected project already contains a PH.) Training Contor for Automation and Drives SIMATIC PCS 7 System Training Page 9 Project structure SIEMENS TB Ale Ft Ive RC Wow Overs War Hep Bice} sree) + lola) dal fe PH Settings (2) SRIF EM Pee IC vow plane Wren ep IES &) alslefe ©) ne 1 One Feiss) SIMATIC PCS 7 ‘Seen 46208 At eve 3. 4. Remark SITRANN raneo te Petre Sain pa Define your OS (ES) 2s a maintenance station. After confirming prompis, an operation is triggered, which performs the following actions: © Afirst hierarchy folder is created in all projects included in the multiproject (e.g. "Plant(1)") which you can expand or adapt for each project as required. © Assecond hierarchy folder is created in all projects included in the muttiproject for diagnostic purposes (2.9. "Diagnostios"). It is later automatically adapted after the software Is used to access the hardware. In the slide above you can see the different breakdown of the diagnostic hierarchy in the two projects. ‘While in the AS project only AS objects contribute to the diagnostics, the OS project contains folders for the AS, network and PC objects (full insirumentation and control setup). ‘The maintenance station that is running on the OS must provide the entire instrumentation and control diagnostics. ‘Whereas CFC charts with diagnostics drivers are created in the diagnostics folder of the AS project (the hardware-related software must run in the AS), pictures are created in the OS project and ere displayed with graphic symbols when appropriate. The user accesses the OS diagnostics information for the status of the device via these symbols ‘The symbols are generated by the PCS 7 MS software. Training Center {or Aulomation and Drives SIMATIC PCS 7 System Training Page 10 Project structure SIEMENS sa reste Updating the Plant Hierarchy Right-click and select Plant Hierarchy > Update in Multiproject oo 3 NeoetieTl talporcs nlemtyree ( Erpattott dove pied nae acs Sabor bbe eat aera PaaS Pros een eat een Result: both projects PRO_AS and PRO_OS have the same plant hierarchy SIMATIC PCS 7 Ses AG 208 Ap ees Exercise Action Remark SITRAN rig te ees Seen Posty smu Create the hierarchy tree from the above slide in the PRO_AS project in the plant view. Update the PH in the multiproject to avoid having to make the entries again in the OS project. In the plant view, click the multiproject, right-click and select Plant Hierarchy > Updete in Muttiproject to open the update soreen, ‘The option selected in the above slide will create the PH folders with identical names in all projects A identically-named PH folder in the projects represents the (identically named) assigned plant section, The second option enables limited updating of selected projects. This is necessary, for example, if different plant sections are to be monitored on OSs in different projects. Different plant hierarchies are required in that case. If you would like to rename the PH folder later, do this in the template project. Folders that were generated through an update will be automatically renamed. Training Contor {for Automation and Drives SIMATIC PCS 7 System Training Page 11 Project structure SIEMENS Plant View - Settings/Properties x SIMATIC PCS 7 be s5at2t08 SITRAIN rancor Sere 162008 gwen rap eu8 ‘Ronee wc PH settings ‘The settings are taken from screen "1" for each hierarchy level of the current project. You can set the naming conventions for your project (number of levels, name length per level, whether the name of the level is added to the hierarchy identification and whether the screen hierarchy in the OS or the diagnostic pictures are derived fromthis plant view). With the OS area, you specify which hierarchy level is applicable as the OS area level. You have set level 2 (see circular mark). Note: ‘When you assign a name, note that the process tag name on the OS must not exceed 128 characters. The name is a combination of the names of the folders in the hierarchy path, the chart name, the block name, the separator, and the ‘connection name (parameter name of the block). Hierarchy folder - Properties After selecting a plant hierarchy (usuelly in level 4), right-click and select Object Properties to set the properties. SIMATIC PCS 7 System Training Training Center for Automation and Drives Page 12 Project structure ‘SIEMENS PH Assignment SHPe ER eek AE Yer Genel] Ctolimeduiegatbses ASOSéripct {S60 TypeDetton) Dios) SPS) SIs escrU bonnet ‘S5Fe Eo tet RC Yew O Bgprcrusi.ne7 atone asf ete] Zimlely oemiont bec ———~ : hear bytes nth town rnin F PasronSeeietéesrner tote Lovato Choc Loweebeleaech = Tee bre-trelaiacs weet nig pes IF Panna element he Lem eelDvcs SIMATIC PCS 7 am ss41 2008 SRAM rnin ter Sern AG 28 Aon eave Pierre Sere gata ASIOS Assignment Select the following in the AS/OS Assignment tab (see above): The AS (its CPU chart folder) in which the CFC and SFC charts are stored, ‘* The OS in which the pictures and reports are stored, This assignment can be passed on to the lower level hierarchy folders, unless other assignments are necessary in lower lovels.. Remark You can only assign those ASs or OSs that are locatad in the same project as the PH folder that is currently being assigned. HMI Attributes ‘The OS area ID for the hierarchy folder of the level selected as the OS area is displayed in the Control and Monitoring Attributes tab. The ID is preset with the name of the PH folder for this level. The area ID is passed on to (i.e. inherited by) all of the lower level hierarchy folders, OS pictures, OS reports and messages. This means that all lower-level hierarchy folders with their pictures belong to one plant area in the OS. This affects the arza-spectfic authorizations for operating personnel IF the picture hierarchy is to be based on the plant hierarchy, the "Order..." button and the *Picture name for OS" field are active ("Picture name for OS" only if the S area ID is not active). The name of the hierarchy folder is entered as tho default setting for the picture name. The operator sees this name displayed in the WinCC picture hierarchy. Remark All of the settings are associated with the AS/OS that you have assigned. SIMATIC PCS 7 System Training Training Center im Project structure for Automation and Drives Page 13 SIEMENS HID Generation ROC eee = (Dj x} ‘Sy CORP “fr Dna = By COLA Pi eT 6 (COTES of HID on ES = 1111222\30044415551606 sog00 HID on OS = 414/2221339/444/555/660 oe a4 Selectable combination ol 11/2221333/444)555/666.777 Process tag on O: SIMATIC PCS 7 ate asta SITRANN rig or ‘Stree AG 208 Mg on Fierce ho ana Ribeaton se Bae HID formation The Higher-level ItemDesignation (HID) is formed from the following components: a. Path name from the plant hierarchy b. Chart namo ¢. Block name Whereas the string the plant view contributes to the HID is the result of linking selectable combinations of the hierarchy folder names (components 4 to 4 in the slide), the chart name (5) and block name (6) are always present in the HID. Process tag If individual parameters of the module are to be visualized in WinCC, the parameter name (7) is appended behind the previously described components, separated by a period. Examples incre In the chart reference data of CFC, block 2U301 is displayed as part of Factory2\Reactors\UnitC\Drain\\Dr201. The chart name is separated from the hierarchy path by "\", In Win (HID) ‘The name of the block is displayed as Factory2/Reactors/UnitC/Drain/Dr301/2U304 (if all PH levels contribute to the HID). In our example, “Do not include in HID" was solected for Level 1 in the PH settings. Therefore, the resulting HID for the same block: Reactors/UnitC/Drain!Dr301/2U304 In WinCC (process tag) Ifa parameter of the above block is addressed, itis identified as a process tag ‘and displayed in WinCC as follows: Reactors/UnitC/Drain/Dr301/2U301.QCONTROL, Training Center SIMATIC PCS 7 System Training for Automation and Dives Page 14 Project structure SIEMENS OS Hierarchy (AS/OS) peeSlMATICManecer vg, Woes Wine RT ReerFitoge toy a SIMATIG PCS 7 am, eat SITRAW Toate Sones Ad 28 ge oe Perrot Mia ts stan Relationship I you have derived the picture hierarchy from the plant view (preceding slide, soreen "t") the above slide shows the relationships. To start the OS compilation from the SIMATIC Manager, select the OS, then right-click and select Compile The picture hierarchy is automatically provided to the "Picture Tree Manager” in WinCC CS (Configuration System) During runtime, in WinCC RT (Run Time) the plant operator can select an area, launch the graphic display of the picture hierarchy, and look at the desired sub- area. ‘Training Center SIMATIC PCS 7 System Training for Automation and Diives Page 15 Project structure SIEMENS OS Hierarchy (Picture Structure) (Crank torn [11] (Reactors? TTT] (Reactors? [111] [Reactors Reacoet 11 Shi T (eomFiant Group display [A] [| Overview of the reactors (REACTORS1.PDL) Reactors’ Unit A1,81,C1,D1 (UnitA1'PDL...) | Detaiis (ifnecessary) SIMATIC PCS 7 Datu 18112008, SITRAIN Tevsng fer ‘Serers AG 2003 Aro eas Faerecerova v0 erate ‘tonatorans Sone ‘You can derive this OS picture hierarchy from the piant view. ‘You must use the plant view to insert the pictures for the relevant plant ‘component in the hierarchy folders end provide them with meaningful names You can then use OS (Graphics Designer) tools to configure these pictures. Tp: The following method is more efficient ~ Start by inserting and renaming only one pieture in the PH. - Open this picture in the Graphios Designar (WWinCC) and change to the desired dimensions (height, width) there using its properties. = Copy this modified picture (vrhich is stil empty) in the PH, and then insert it into the various PH folders. Training Genter SIMATIC PCS 7 System Training for Automation and Drives, Page 16 Project structure

You might also like