Tài liệu chuẩn của Siemens cho khóa đào tạo PCS7 PCS7 on Tour Practice Instruction V2.0 Table of Content Copyright © Siemens AG 2008 All rights reserved – For internal use only Instruction_PoT5 V2.0.doc Table of Content 1 ENGINEERING DOCUMENTS..................................................................................................................... 11 1.1 PID – PROCESS AND INSTRUMENT DRAWING ......................................................................................... 11 1.2 INSTRUMENT LIST ...................................................................................................................................... 12 1.3 CONTROL SYSTEM CONFIGURATION.......................................................................................................... 12 2 GETTING START ............................................................................................................................................ 21 2.1 START “NEW PROJECT WIZARD” ............................................................................................................... 21 2.2 CONFIGURATION IN THE COMPONENT VIEW.............................................................................................. 23 2.3 PLANT HIERARCHY GENERAL SETTINGS .................................................................................................... 26 2.4 NAMING IN THE PLANT VIEW..................................................................................................................... 27 2.5 CREATE A CFC FOR A VALVE CONTROL..................................................................................................... 28 2.6 CONFIGURE SFC “TRANSFERIN”............................................................................................................. 210 2.7 COMPILE AND DOWNLOAD AS PROGRAM ............................................................................................... 212 2.8 COMPILE OS............................................................................................................................................. 212 2.9 OPEN OS PICTURE “RMT1” IN GRAPHIC DESIGNER ............................................................................... 213 2.10 TESTING OS RUNTIME.............................................................................................................................. 213 2.11 TEST THE BASIC OS FUNCTIONS:.............................................................................................................. 214 2.12 ARCHIVE PROJECT.................................................................................................................................... 214 2.13 “SAVE AS…” TO REORGANIZE PROJECT DATABASE................................................................................. 215 3 HARDWARE CONFIGURATION ................................................................................................................ 31 3.1 PC CONFIGURATION................................................................................................................................... 31 3.2 AS CONFIGURATION................................................................................................................................... 32 3.2.1 IO module configuration ..................................................................................................................... 32 3.2.2 Activate CiR (Change in Run) .............................................................................................................. 34 3.3 CONFIGURE CONNECTION IN NETPRO ....................................................................................................... 34 4 DESIGN DEVICE TYPE WITH CFC ........................................................................................................... 41 4.1 ASSIGN SYMBOL TO THE IO ADDRESS:....................................................................................................... 41 4.2 CHANNEL DRIVER BLOCKS ........................................................................................................................ 42 4.3 OPTIMIZE RUN SEQUENCE.......................................................................................................................... 43 4.4 IMPORT PROCESS TAG TYPES FROM STANDARD LIBRARY ........................................................................ 43 4.5 TEST DEVICE TYPE CONFIGURATION .......................................................................................................... 44 4.6 “CLEAN” BLOCK TYPE ............................................................................................................................... 45 5 CONFIGURE ALL DEVICES IN RMT1 ...................................................................................................... 51 5.1 CREATE DEVICE TYPE (PROCESS TAG TYPE) BASED ON NK110............................................................... 51 5.2 ASSIGNCREATE IMPORT FILES.................................................................................................................. 52 5.3 IMPORT PROCESS TAG TYPE ...................................................................................................................... 54 5.4 COPY PROCESS TAG TYPES FROM MASTER DATA LIBRARY ..................................................................... 55 5.5 CONFIGURATIONS FOR OS PICTURE ........................................................................................................... 56 5.5.1 Configure Device Orientation .............................................................................................................. 57 5.5.2 Configure measurement unit ................................................................................................................ 58 5.5.3 Create new measurement units in the project library.......................................................................... 59 5.6 CREATE CFC “MODE_RMT1” FOR OPERATION MODE.............................................................................. 59 5.7 PO VIEW FOR INTERCONNECTION CONFIGURATION................................................................................. 511 5.7.1 Select IO for ParametersSignals...................................................................................................... 511 5.8 PO VIEW FOR EDITING COMMENTS AND OTHER SETTINGS....................................................................... 512 5.9 CREATE CFC “SIM_TANK” WITH “CHARTINCHART”........................................................................... 513 5.10 CONFIGURATION FOR “FC111”................................................................................................................ 514 6 CONFIGURE FUNCTIONS (SFC TYPE) .................................................................................................... 61 6.1 CREATE A SFC TYPE “TRANSFEROUT” IN MASTER DATA LIB ................................................................ 61 6.1.1 Define Interface (characteristics)......................................................................................................... 61 6.1.2 Use Enumerations for “Reactor” selection, ........................................................................................ 62 6.1.3 Configure Steps..................................................................................................................................... 63 6.2 CRATE FUNCTION “TRANSFEROUT” FOR RMT1 ...................................................................................... 64 V2.0 Table of Content Copyright © Siemens AG 2008 All rights reserved – For internal use only Instruction_PoT5 V2.0.doc 6.3 UPDATE BLOCK AFTER “SFC TYPE” CHANGED.......................................................................................... 65 6.4 CONFIGURE HOLD AND ABORT SEQUENCER .............................................................................................. 66 6.4.1 Abort Sequencer.................................................................................................................................... 66 6.4.2 Hold Sequencer..................................................................................................................................... 67 7 OS CONFIGURATIONS ................................................................................................................................. 71 7.1 STATIC OBJECT DRAWING .......................................................................................................................... 71 7.2 OBJECT DYNAMIC CONFIGURATION .......................................................................................................... 72 7.3 TREND WINDOW ......................................................................................................................................... 73 7.4 ALARM WINDOW ........................................................................................................................................ 74 7.5 USER ADMINISTRATION – SIMATIC LOGON............................................................................................. 75 7.6 TIME SYNCHRONIZATION ........................................................................................................................... 76 7.6.1 Set OS as Time Master.......................................................................................................................... 76 7.6.2 Set AS to Time Slave ............................................................................................................................. 76 8 OS SERVERCLIENT CONFIGURATION ................................................................................................. 81 8.1 CHANGE OS PROJECT TO MULTIUSER PROJECT ........................................................................................ 81 8.2 OS SERVER CONFIGURATION ..................................................................................................................... 82 8.3 OS CLIENT CONFIGURATION ...................................................................................................................... 82 8.4 DOWNLOAD OS STATION ........................................................................................................................... 85 9 MULTIPROJECT ENGINEERING .............................................................................................................. 91 9.1 MULTIPROJECT CONFIGURATION ............................................................................................................... 91 9.2 CREATE NEW PROJECTS IN MULTIPROJECT ................................................................................................ 91 9.3 MOVE AS STATION BETWEEN PROJECTS.................................................................................................... 92 9.4 MOVE CFC CHARTS BETWEEN PROJECTS .................................................................................................. 93 9.5 UPDATE PLANT HIERARCHY AMONG PROJECTS......................................................................................... 94 9.6 MERGE PROJECT SUBNETWORKS............................................................................................................... 94 9.7 SINGLE PROJECT ENGINEERING AFTER REMOVED FROM MULTIPROJECT ................................................. 96 9.8 MERGE MODIFICATIONS FROM ALL SINGLE PROJECTS ............................................................................... 97 9.9 ASAS COMMUNICATION ........................................................................................................................... 98
Trang 32 GETTING START 2-1
2.1 START “NEW PROJECT WIZARD” 2-12.2 CONFIGURATION IN THE COMPONENT VIEW 2-32.3 PLANT HIERARCHY GENERAL SETTINGS 2-62.4 NAMING IN THE PLANT VIEW 2-72.5 CREATE A CFC FOR A VALVE CONTROL 2-82.6 CONFIGURE SFC“TRANSFERIN” 2-102.7 COMPILE AND DOWNLOAD ASPROGRAM 2-122.8 COMPILE OS 2-122.9 OPEN OSPICTURE “RMT1” IN GRAPHIC DESIGNER 2-132.10 TESTING OSRUNTIME 2-132.11 TEST THE BASIC OS FUNCTIONS: 2-142.12 ARCHIVE PROJECT 2-142.13 “SAVE AS…” TO REORGANIZE PROJECT DATABASE 2-15
3 HARDWARE CONFIGURATION 3-1
3.1 PCCONFIGURATION 3-13.2 ASCONFIGURATION 3-2
3.2.1 I/O module configuration 3-2 3.2.2 Activate CiR (Change in Run) 3-4
3.3 CONFIGURE CONNECTION IN NETPRO 3-4
4 DESIGN DEVICE TYPE WITH CFC 4-1
4.1 ASSIGN SYMBOL TO THE IO ADDRESS: 4-14.2 CHANNEL DRIVER BLOCKS 4-24.3 OPTIMIZE RUN SEQUENCE 4-34.4 IMPORT PROCESS TAG TYPES FROM STANDARD LIBRARY 4-34.5 TEST DEVICE TYPE CONFIGURATION 4-44.6 “CLEAN”BLOCK TYPE 4-5
5 CONFIGURE ALL DEVICES IN RMT1 5-1
5.1 CREATE DEVICE TYPE (PROCESS TAG TYPE) BASED ON NK110 5-15.2 ASSIGN/CREATE IMPORT FILES 5-25.3 IMPORT PROCESS TAG TYPE 5-45.4 COPY PROCESS TAG TYPES FROM MASTER DATA LIBRARY 5-55.5 CONFIGURATIONS FOR OS PICTURE 5-6
5.5.1 Configure Device Orientation 5-7 5.5.2 Configure measurement unit 5-8 5.5.3 Create new measurement units in the project library 5-9
5.6 CREATE CFC“MODE_RMT1” FOR OPERATION MODE 5-95.7 POVIEW FOR INTERCONNECTION CONFIGURATION 5-11
5.7.1 Select I/O for Parameters/Signals 5-11
5.8 POVIEW FOR EDITING COMMENTS AND OTHER SETTINGS 5-125.9 CREATE CFC“SIM_TANK” WITH “CHART-IN-CHART” 5-135.10 CONFIGURATION FOR “FC111” 5-14
6 CONFIGURE FUNCTIONS (SFC TYPE) 6-1
6.1 CREATE A SFCTYPE “TRANSFEROUT” IN MASTER DATA LIB 6-1
6.1.1 Define Interface (characteristics) 6-1 6.1.2 Use Enumerations for “Reactor” selection, 6-2 6.1.3 Configure Steps 6-3
6.2 C F “T OUT” RMT1 6-4
Trang 47 OS CONFIGURATIONS 7-1
7.1 STATIC OBJECT DRAWING 7-17.2 OBJECT DYNAMIC CONFIGURATION 7-27.3 TREND WINDOW 7-37.4 ALARM WINDOW 7-47.5 USER ADMINISTRATION –SIMATICLOGON 7-57.6 TIME SYNCHRONIZATION 7-6
7.6.1 Set OS as Time Master 7-6 7.6.2 Set AS to Time Slave 7-6
8 OS SERVER-CLIENT CONFIGURATION 8-1
8.1 CHANGE OS PROJECT TO MULTIUSER PROJECT 8-18.2 OSSERVER CONFIGURATION 8-28.3 OSCLIENT CONFIGURATION 8-28.4 DOWNLOAD OS STATION 8-5
9 MULTIPROJECT ENGINEERING 9-1
9.1 MULTIPROJECT CONFIGURATION 9-19.2 CREATE NEW PROJECTS IN MULTIPROJECT 9-19.3 MOVE ASSTATION BETWEEN PROJECTS 9-29.4 MOVE CFC CHARTS BETWEEN PROJECTS 9-39.5 UPDATE PLANT HIERARCHY AMONG PROJECTS 9-49.6 MERGE PROJECT SUB-NETWORKS 9-49.7 SINGLE PROJECT ENGINEERING AFTER REMOVED FROM MULTIPROJECT 9-69.8 MERGE MODIFICATIONS FROM ALL SINGLE PROJECTS 9-79.9 AS-AS COMMUNICATION 9-8
Trang 61.3 Control System Configuration
• Record the hardware information for the workshop practices:
Note:
You can find the Workshop documents under \Workshop-PoT5\Design Documents\
Trang 72.1 Start “New Project Wizard”
• From SIMATIC Manager, File > ’New Project’ Wizard…
• Step 1 of 4: (click “Next”)
• Step 2 of 4: Select CPU:
2 Select OS objects
Trang 82 Project Folder Location
(Do not select system Driver C:)
3 Start Wizard
Always this option for PCS7
Trang 9• This is how it looks after the wizard:
• Start PLCSIM for AS simulation
2.2 Configuration in the Component View
1 Name your AS (01 06)
2 S7Prog (use
No Spaces)
3 your PC Name
4 OS Project (01 06)
5 <double click> to open AS01 Configuration Start PLCSIM
Trang 10• Open AS01Æ Hardware Æ CP 443-1 Æ Properties
• Configure CP443-1 Parameters as follows:
1 Enable ISO protocol
2 Disable IP protocol
3 Create a network
1 Open Properties
Trang 11• Open PC Station “Configuration”, insert a “IE General” from Catalog:
• Configure “IE General” Properties as follows:
Note: You can find your PC MAC address by using the DOS command:
“ipconfig/all” in the DOS Window:
Fill in with your
PC Network MAC Address
Enable MAC address
Disable IP Protocol
Link to the Ethernet(1)
Trang 122.3 Plant Hierarchy general settings
• Open Plant Hierarchy > Settings…
Trang 13• Customize the settings as follows:
2.4 Naming in the Plant View
• In the Plant View, create new objects in the plant hierarchy (Folders, CFCs, SFCs, Pictures…)
Num of level = 3
OS Level = 2
Enable this option
Trang 14• Configure the plant hierarchy structure as follows:
2.5 Create a CFC for a valve control
• In the “Plant View”, insert a new CFC under “Plant1\RMT1” and name it as
“NK110”
Create a new CFC chart NK110 under RMT1
Trang 15• Insert Function Blocks: Valve, CH_DI, CH_DO from library “PCS 7 Library V71”
• Make interconnections between Function Blocks
• Name the Blocks as V, fb_close, fb_open, cmd respectively
1 Toggle the view
of “Catalog”
2 Select “Libraries”
3 Drag & Drop the
function block “Valve”
4 Name the
block as”V”
Compile & Download
Trang 16• Your Task: to create an auto sequence to charge materials into the tank
• From Plant View, open the SFC Chart “TransferIN” (under the plant hierarchy
“Plant1\RMT1\Functions\”)
1 Use “Element Bar” to create SFC steps
Trang 182.7 Compile and Download AS Program
2.8 Compile OS
• Follow the step-by-step instructions to finish the OS compilation
Compile and Download
Buttons in CFC
Compile and Download
Buttons in SFC
Online Button in SFC Online Button in CFC
Trang 192.9 Open OS Picture “RMT1” in Graphic Designer
• Modify picture as follows:
2.10 Testing OS Runtime
You can find
“Tank” object from Display
Trang 20• SIMATIC Manager Æ File Æ Archive…
Note: It is important to archive your project regularly
OS Screen Selection
Open Valve Faceplate
by clicking its block icon.
Trang 212.13 “Save as…” to reorganize project database
• In case “internal errors” occur in the project database, you can try to use following function to recover the database integrity
Project reorganization
Trang 22• Refer to 2.2, verify the PC configurations:
• From component view, open the PC Station > Object Properties
Put the local PC name in this field
Trang 233.2.1 I/O module configuration
• Look at your AS hardware and record the order numbers and locations for each component
• Configure your AS hardware similar like the following figure:
1 Configure PC
2 Download PC
1 Select PCS7 Profile
2 Connect DP master with CP443-5 Ext
3 Insert IM 153-2 HF with node address 3
Status
Trang 24• Digital Input Module Properties:
• Analog Input Module properties:
• Download your hardware configuration to CPU and correct the errors if found
Enable Diagnostic
interrupt
Disable unused channels
Disable unused channels
Enable Diagnostic
interrupt
Trang 253.2.2 Activate CiR (Change in Run)
• Right-click on the PROFIBUS line:
• Delete or add some IO modules, download new hardware configuration without stopping the CPU
3.3 Configure Connection in NetPro
Trang 26• Test OS runtime with this “Name Connection”
Open
Connection list
Trang 274 Design Device Type with CFC
4.1 Assign Symbol to the IO address:
• Assign Digital Input channels with symbols
Trang 28• Assign Digital Output channels with symbols
4.2 Channel Driver Blocks
• Open CFC “NK110” and modify it as follows:
Channel Blocks from
PCS7 Library
Link VALUE
with IO sysmbol
Enable SIM_ON for fb_close
Trang 294.3 Optimize Run Sequence
4.4 Import Process Tag Types from Standard Library
• Open PCS7 Standard Library from SIMATIC Manager > File > Open…
Select Libraries
Trang 304.5 Test device type configuration
• Open/Close Valve NK110 and monitor the channel status in IO module of the ET200M
Trang 314.6 “Clean” Block type
• Use button Clean Up… to delete Blocks that are no more used in the projects
Trang 325.1 Create Device Type (Process Tag Type) based on NK110
• From SIMATIC Manager > Plant View, select NK110 to start the wizard:
• Define the I/O points in the wizard step 2
1 Name of the Type
2 Select the
IO from the list
3 Use this button to put the selections into the I/O list
4 Define the IO as
Parameter/Signal
5.Finish the wizard
Trang 335.2 Assign/Create Import Files
• From Plant View Æ Master Lib Æ Process tag types Æ Valve_Typ1
This is the project
Master Data Library
Trang 34• Create File Template in the wizard:
• In following dialogs, define the columns as follows:
• Open file for modifications:
1 Create File Template
2 Open File
1 Duplicate 4 rows
2 define new Chart name
3 define symbol and Address
Trang 355.3 Import Process Tag Type
• Start wizard from Master Library Æ Process tag types Æ Valve_Typ1:
• Verify the import file:
Open the Import file for
modification
Select this option to create symbol table with this wizard
Trang 365.4 Copy Process Tag Types from Master Data Library
• Copy following Process Tag Types into Project RMT1 and rename them:
DOSE_LIQ Æ FC111 ANAMON Æ LI111 MOTOR Æ NP111
• Compile & download to AS
Trang 375.5 Configurations for OS picture
• Compile OS and open picture RMT1, reposition the components as follows:
Trang 385.5.1 Configure Device Orientation
• Open CFC NK113 and NK114, open valve block properties,
• Update block icons in picture RMT1:
Put 2 here to change
the Valve in horizontal position
Trang 39• Define settings for block icon update:
5.5.2 Configure measurement unit
• Compile OS to make these settings effective
1 Tag Name format
2 Leve of hierarchy
1.open properties of
input U
2 select Unit for input U
3 configure
Archiving for
input U
Trang 405.5.3 Create new measurement units in the project library
• Create New Unit “Kg” in the Master Data Library
• Synchronize between Master Library and projects:
5.6 Create CFC “Mode_RMT1” for operation mode
• Define unit operation modes for RMT1:
All devices are in Manual mode Device operations are only from OS
• Design the logical interconnections
AUT_L 0 x 1
Trang 41Mode.Q2 Æ [Not] V.LIOP_SEL Mode.Q3 Æ V.AUT_L
Change I1 to I3 properties Text 1 as
MAN, Maint, AUTO
OP_D3 from Lib,
name it as Mode
Trang 42• Test the logic in the OS run time
5.7 PO View for interconnection configuration
RMT1:
Mode_RMT1\Mode.Q2 Æ [Not].LIOP_SEL Mode_RMT1\Mode.Q3 Æ AUT_L
5.7.1 Select I/O for Parameters/Signals
1.Sort I/O name
2 Select all
LIOP_SEL as Parameters
Trang 43• Open CFC to verify the interconnections
5.8 PO View for editing comments and other settings
Set Filter
Copy Device Descriptions from engineering documents
Set Block Icon
1.Select level
Plant1
2.Set Filter
3.Copy-Paste interconnections
Select Blocks
Trang 445.9 Create CFC “Sim_Tank” with “Chart-in-Chart”
Plant1\RMT1
1 Open Chart I/O
2 Define Chart I/O
by drag-drop
SEL_R from BOP
SUB_R from CFC Library
INT_P from PCS7 Library
Link to
LI111.SIM_V
Trang 45Dose.Q Æ NP111.Auto_ON Dose.REVERSE = yes
Trang 466.1 Create a SFC Type “TransferOUT” in Master Data Lib
• From Component View Æ PoT_Lib Æ S7 Program Æ Charts, create a new
SFC type and name it as “TransferOUT”
• Open TransferOUT for editing
6.1.1 Define Interface (characteristics)
• Control Strategy: Fast, Slow
• Setpoints: Amount, Destination
Open
Characteristics
windows
Trang 47• Block contact: NK1, NK2, NK3, NK4, NP1, DOSE
6.1.2 Use Enumerations for “Reactor” selection,
Trang 496.2 Crate Function “TransferOUT” for RMT1
Trang 506.3 Update Block after “SFC type” changed
1 Select
Charts
Trang 51• Follow the wizard to update the Block Types…
6.4 Configure Hold and Abort sequencer
6.4.1 Abort Sequencer
• Abort sequencer will close all devices and cancel the dose function
• Insert a new sequencer and name it as Abort
• Define Start condition
OR
Trang 52• Holding Sequencer will close all valves but pause the Dose function
• Define Start condition
• Configure steps for Hold Sequencer
OR
Trang 537.1 Static Object drawing
• Disable the Global color scheme
• You may follow the table below to define the project color scheme:
Dark red: Steam, heating system
Width Wide: Main product cables (line width 4)
Narrow: Other cables (line width 2)
1 Select the object and open its Properties
2 Set Global color
scheme = No
3 Define object colors individually
Trang 547.2 Object Dynamic Configuration
• Your Task: to create animations to display the Tank level dynamically
• Use the dialog to browse and select the process tag:
1 Create a Rectangle
object on top of the Tank,
open its Properties
2 Select Filling
property
4 Link the Fill
Level with the
Trang 55• Your Task: Configure a trend window for tank level LI111
Select Archive Tags for Trending
Trang 56• Define message Selection as follows:
1 Select Message lists
Create Message Selection (Filter)
Trang 577.5 User administration – SIMATIC Logon
• Open windows Control Panel Æ Administrative Tools Æ Computer Management,
Create Groups with same name as in WinCC
Trang 587.6.1 Set OS as Time Master
7.6.2 Set AS to Time Slave
Trang 59Enable
Forward time
of day
Trang 608.1 Change OS project to MultiUser Project
• Change project Type into Multi-User Project
• DO NOT delete the Startup list in the dialog below:
Select Multi-User
Project
Select NO
Trang 62• Open this new PC Station object properties, fill in the PC name as follows:
• Open this PC Configuration, insert an object WinCC Application Client, and
compile the station
Note: System will be generating the OS client object The compilation may take 5-10 minutes
to complete depends on your PC performance
Client PC Name
Compile Station
Trang 63• Assign OS server… to the OS client object
• Select OS severs that this OS client will be connected to
Trang 641 Share the Floder
2 Configure Permisions
3 Full permissions for Everyone
1 Add Everyone
in the user list
2 Assign Full permissions
for Everyone
Trang 65• SIMATIC Manager Æ OSC client object Æ Object Properties, set up the
download path to the target PC
• Download OS client object to the Client PC
• Activate the OS server and OS client projects and verify your Sever-Client configuration
Use Search to
find the path from the client
PC
Trang 66• Distribute the projects engineering as follows:
• You will re-organize the project as follows:
9.2 Create new projects in Multiproject
Trang 679.3 Move AS Station between projects
• Answer the dialog with default setting:
Trang 68• Create new AS station in AS02_Proj
9.4 Move CFC charts between Projects
Reator2 and move (cut-paste) them from AS01_Proj into AS02_Proj
1 Create new network to CP443-1
2 Disconnect/Add Master System for CP443-5
Trang 699.5 Update Plant Hierarchy among projects
9.6 Merge project sub-networks
• Open NetPro for each project, check or create network for each network component:
Add network for
AS02
Trang 70• NetPro Æ Edit Æ Merge/Unmerge Subnets Æ Ethernet Subnet…
• Merge all three sub networks
Trang 71• Compile and Save NetPro configuration
9.7 Single Project Engineering after removed from MultiProject
Create/update connections
Trang 72• Open AS02_Proj as a single project Make some modifications, e.g create a
new CFC TI141 for temperature indication in Reactor2 Compile the AS02
program Close the project
9.8 Merge modifications from all single projects
• From Plant View, select Multiproject level, inset AS02_Proj into Multiproject
again
• If there is any plant hierarchy changes from AS02_Proj, update it in the Multiproject
Create a CFC TI141 for Reactor2