pro1_02e [읽기 전용] [호환 모드]

Upload: nguyen-anh-tu

Post on 02-Jun-2018

246 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/10/2019 PRO1_02E [ ] [ ]

    1/19

    From Process to Project ...................................................................................................................... 2STEP 7 Tools ............................................................................................................................... 3

    Starting the SIMATIC Manager ........................................................................................................... 4

    SIMATIC Manager Menus and Toolbars ............................................................................................. 5

    The Toolbar in the SIMATIC Manager ............................................................................................... 6

    STEP 7 Project Structure .............................................................................................. 7

    Offline/Online View in the SIMATIC Mana er ..................................................................................... 8

    Storage Location for Projects .............................................................................................................. 9

    Creating a Project ........................................................................................................................... 10

    Inserting an S7 Program ................................................................................................................. 11

    Inserting an S7 Block ................................................................................................................... 12

    STEP 7- Help System ..................................................................................................................... 13

    Context Sensitive Help in STEP 7 ........................................................................................................ 14Standard Libraries ............................................................................................................................... 15

    Exercise: Creating a Project ................................................................................................................ 16

    xerc se: nser ng an rogram ......................................................................................................

    Exercise: Inserting an S7 Block ........................................................................................................... 18

    Exercise: CPU Memory Reset ............................................................................................................. 19

    Training Centerfor Automation and Drives

    ST-7PRO1The SIMATIC ManagerPage 1

  • 8/10/2019 PRO1_02E [ ] [ ]

    2/19

    Process When you take a closer look at a process you want to automate, you will find that its ma e up o a mu u e o sma er sec ons an su -processes, w c are ainterlinked and dependent on one another.

    The first task is therefore to break down the automation process as a whole intoseparate sub-tasks.

    Hardware and Each sub-task defines certain hardware and software requirements which mustSoftware be fulfilled by the automation system:

    Hardware:

    - um er an ype o npu s an ou pu s- Number and type of modules- Number of racks- Capacity and type of CPU- HMI systems- Networking systems

    Software:- Program structure- Data management for the automation process- Configuration data- Communication data- Program and project documentation.

    Project In SIMATIC S7 all the hardware and software requirements of an automationprocess are managed within a project.A project includes the necessary hardware (+ configuration), network(+ configuration), all the programs and the entire data management for anautomation solution.

    Training Centerfor Automation and Drives

    ST-7PRO1The SIMATIC ManagerPage 2

  • 8/10/2019 PRO1_02E [ ] [ ]

    3/19

    SIMATIC Manager The SIMATIC Manager manages the STEP 7 projects. It is the main program anda so appears on e es op.

    Notes "STEP 7 - Readme" provides detailed information about the version, installationprocedure, etc.

    LAD, STL, FBD Tool for writing STEP 7 user programs in the Ladder Diagram", Statement List" or"Function Block Diagram programming languages.

    Memory Card You can save your user programs on EPROM cards by either using theParameter programming device or an external prommer.Assignment. Different drivers are required, depending on the application.

    Configuring Network configuration is discussed in the chapter on Communication.Networks

    Setting the PG-PC This tool is used for setting the local node address, the transmission speedInterface and the highest node address in the MPI network.

    PID Control The basic STEP 7 software package also includes blocks for solving PIDParameter (closed-loop) control problems. You choose "PID Control ParameterAssignment Assignment" to start the program for assigning parameters to the closed-loop

    control blocks.

    Converting S5 Files STEP5 programs can be converted into the corresponding STEP 7 programs withthe help of the S5/S7 converter.

    Confi ure SIMATIC This o tion rovides facilities for confi urin multi-user s stems.

    Training Centerfor Automation and Drives

    ST-7PRO1The SIMATIC ManagerPage 3

    Workspace

    Converting TI Files SIMATIC TI programs can be converted into the corresponding STEP 7 programwith the help of the TI/S7 converter.

  • 8/10/2019 PRO1_02E [ ] [ ]

    4/19

    Introduction The SIMATIC Manager is a graphic user-interface for online/offline editing of S7o ec s pro ec s, user program es, oc s, ar ware s a ons an oo s .With the SIMATIC Manager you can:

    manage projects and libraries, activate STEP 7 tools, access the PLC online, edit memory cards.

    Starting the There is an icon "SIMATIC Manager" on the Windows 95 desktop and aSIMATIC Manager "SIMATIC Manager" program item under SIMATIC in the Start menu.

    -clicking on the icon or via the Start menu

    START -> SIMATIC ->

    User-interface After installation, the main tool is available as an icon on the Windows 95 desktop.The SIMATIC Manager manages the S7 objects such as projects and user

    .By opening an object, the associated tool for editing is started. A double-click on aprogram block starts the Program Editor and a block can be edited (object-orientedstart)

    Note You can always obtain online help for the current window by pressing the F1function key.

    Training Centerfor Automation and Drives

    ST-7PRO1The SIMATIC ManagerPage 4

  • 8/10/2019 PRO1_02E [ ] [ ]

    5/19

    Titlebar The titlebar contains the window title and the buttons for controlling the window.

    Menubar Contains all the menus available for the current window.

    Toolbar Contains the most frequently used tasks as symbols. These symbols are self-explanatory.

    Statusbar Displays the current status and further information.

    as ar e as ar con a ns a open app ca ons an w n ows as u ons.The taskbar can be positioned on either side of the screen by using the right mousebutton.

    Training Centerfor Automation and Drives

    ST-7PRO1The SIMATIC ManagerPage 5

  • 8/10/2019 PRO1_02E [ ] [ ]

    6/19

    Training Centerfor Automation and Drives

    ST-7PRO1The SIMATIC ManagerPage 6

  • 8/10/2019 PRO1_02E [ ] [ ]

    7/19

    Project Structure Data is stored in a project in the form of objects. The objects in a project are

    arranged in a tree structure (project hierarchy). The tree structure displayed in the

    project window is similar to that in the Windows 95 Explorer. Only the icons for the

    objects are different.

    Project Hierarchy 1st. Level: The first level contains the project icon. Each project represents a

    database where all the data relevant to the project is stored.

    2nd. Level: Stations (e.g. S7-300 Station) are where information about

    the hardware configuration and parameter assignment data

    of modules is stored.

    Stations are the starting point for configuring the hardware.

    S7 Program folders are the starting point for writing

    programs. All the software for a parameter-assignable

    module from the S7 range is stored in an S7 Program

    folder. This contains further folders for the blocks andsource files of the program.

    Subnets MPI Profibus Industrial Ethernet are art of an

    overall network.

    3rd. and subsequent levels: Depends on the object type of the next-higher level.

    Training Centerfor Automation and Drives

    ST-7PRO1The SIMATIC ManagerPage 7

  • 8/10/2019 PRO1_02E [ ] [ ]

    8/19

    Offline The offline view displays the project structure stored on the hard disk of theprogramm ng ev ce. sp ays s n e pro ec w n ow o e anager.

    The "S7 Program folder contains the objects Source Files" and "Blocks".

    The "Blocks" folder contains the system data created with HWConfig and the blockscreated with the LAD/STL/FBD Editor.

    Online The online view displays the project structure stored in the CPU. It displays this inthe project window of the SIMATIC Manager.

    The "S7 Program" folder only contains the object "Blocks".

    The "Blocks" folder contains:

    system data blocks (SDB)

    user blocks (OB, FC, FB)

    system-own blocks (SFC, SFB).

    Switch-over Switching between offline and online view takes place: via the menu items View -> Offline or View -> Online or

    w e correspon ng sym o n e oo ar:

    Online

    Offline.

    Training Centerfor Automation and Drives

    ST-7PRO1The SIMATIC ManagerPage 8

  • 8/10/2019 PRO1_02E [ ] [ ]

    9/19

    Menu Options SIMATIC Manager -> Options -> Customize

    Language" Tab Language: You can select the language you want to use for the SIMATIC

    Manager, menus, dialog boxes, help, etc.Only the languages that have been installed appear in the list.

    Mnemonics: You can select the mnemonics you want to use forprogramming the S7 blocks.

    "General" Tab Basic settings for editing projects and libraries:

    want to store your user projects.

    Storage location for libraries is where you specifiy the directory in which youwant to store your user libraries.

    Further options for inserting objects, opening projects and for windowarrangement will be dealt with later.

    Deactivated system messagesBy pressing the button Activate you can reactivate all system messagesthat were switched-off in a window when the option Always display thismessage. was chosen.

    "View" Tab This is where you specify what is to appear in the online display.

    "Columns" Tab This is where you specify which columns are to be displayed when the Detail view isswitched-on (see Help).

    "Archive" Tab The archiving of projects will be discussed in the Chapter Documenting, Saving,Archiving.

    Training Centerfor Automation and Drives

    ST-7PRO1The SIMATIC ManagerPage 9

  • 8/10/2019 PRO1_02E [ ] [ ]

    10/19

    Creating a Project Select the menu options File -> New or the symbol in the toolbar to open the

    "New" dialog box for creating a new project or a new library.

    Enter the project name in the "Name" box and confirm by clicking the "OK button.

    Notes 1. The Storage location (path) displays the path that was preset in the

    SIMATIC Manager under Options -> Customize.

    2. As of STEP 7 V3.2, there is the 'New Project Wizard to help you create a

    new project.

    Training Centerfor Automation and Drives

    ST-7PRO1The SIMATIC ManagerPage 10

  • 8/10/2019 PRO1_02E [ ] [ ]

    11/19

    Inserting a Program Select the menu options Insert -> Program -> S7 Program to insert a new programn o e curren pro ec .

    When you insert an object, the system automatically gives it a relevant name, e.g.

    "S7 Program(1)".You can then change this name if you like.

    Note You use the method described above to create a hardware-independent program.

    Programs assigned to particular hardware are dealt with in the Chapter "HardwareConfiguration".

    Training Centerfor Automation and Drives

    ST-7PRO1The SIMATIC ManagerPage 11

  • 8/10/2019 PRO1_02E [ ] [ ]

    12/19

    Inserting a Block Select the menu options Insert -> S7 Block to display a list of block types:

    Organization blocks (OB) are called by the operating system.They form the interface between operating system and user program.

    Functions (FC) and function blocks (FB) contain the actual user program.They enable a complex program to be divided into small, easy-to-followunits.

    Data blocks contain user data.

    After you have chosen the type of block you want, the "Properties" dialog box opensso that you can enter the block number and the programming language you want touse (LAD, STL or FBD).There are other settings you can make, depending on the type of block, but thesewill be discussed later.

    When you have made your settings and confirmed them by clicking the "OK" button,the new block is inserted in the current program.

    Training Centerfor Automation and Drives

    ST-7PRO1The SIMATIC ManagerPage 12

  • 8/10/2019 PRO1_02E [ ] [ ]

    13/19

    Obtaining Help There are various ways of obtaining help:

    1. The general help is activated via the menu options Help - > Contents.

    2. The context-sensitive help can be started with the F1 function key or via the

    symbol in the toolbar.

    Tabs Contents" - Displays a list of help topics under general headings.

    "Index" - Allows you to access the help information by displaying a listof terms available in alphabetical order.

    Find" - Enables you to look for certain words or expressions in thehelp topics.

    Hot words Certain words are hi-lighted in green and are underlined with a broken line in thehelp texts (so-called "Hot words"). A mouse click on these "Hot words" leads to afurther help text with detailed information.

    Training Centerfor Automation and Drives

    ST-7PRO1The SIMATIC ManagerPage 13

  • 8/10/2019 PRO1_02E [ ] [ ]

    14/19

    Context-Sensitive The context-sensitive help gives application-specific information about hi-lightedo ec s, oc s, menu comman s, a ogs e c.

    You can jump from the context-sensitive help to the general help via the button

    "Help on STEP 7".

    Note You can find additional information on STEP 7 in the electronic manuals. These can

    be opened when you choose the menu options Start -> Simatic -> S7 Manuals .

    Training Centerfor Automation and Drives

    ST-7PRO1The SIMATIC ManagerPage 14

  • 8/10/2019 PRO1_02E [ ] [ ]

    15/19

    Introduction Libraries are used to store blocks without project assignment. These blocks can becrea e n e rary, can e cop e n o an ou o , u canno e es e . elibrary structure is set up as hierarchical just as the project structure.

    Standard STEP 7 contains a Standard Library, that was stored in the STEP 7 SoftwareLibrary folder e.g. C:\Siemens\Step7\S7libs\stlib30 after STEP 7 was installed. You can

    access these standard blocks from the SIMATIC-Manager with Open->Libraries".

    Communication FCs for communication between the CPU and the distributed I/O viaBlocks communication processors with S7-300.

    Organization Blocks Organization blocks (OBs).

    S5-S7 Converting Blocks for converting STEP 5 programs.Blocks

    TI-S7 Converting Generally usable standard functions such as analog value scalingBlocks

    unc on oc s or unc ons : n erna ona ec ro ec n ca omm ss on ,Blocks such as for processing time and date, for comparison operations, for string

    processing and for selecting maximum and minimum.

    PID Control Blocks Function blocks (FBs) for PID closed-loop controls.

    System Function System functions (SFCs) and System function blocks (SFBs).Blocks

    Training Centerfor Automation and Drives

    ST-7PRO1The SIMATIC ManagerPage 15

    Note Additional libraries are added when option software are installed.

  • 8/10/2019 PRO1_02E [ ] [ ]

    16/19

    Remember! A project contains all the programs and data for the entire automation task. It cancon a n one or more programs w c can e use n one or more s.

    Goal To delete an existing project and create a new one.

    What to Do 1. Open the SIMATIC-Manager.

    2. Select the menu options File -> Delete -> Projects.

    3. Select My Project from the list of projects and confirm with OK.

    4. After the project has been deleted, select the menu optionsFile -> New -> New Project.

    5. In the box provided enter the project name "My Project".

    Training Centerfor Automation and Drives

    ST-7PRO1The SIMATIC ManagerPage 16

  • 8/10/2019 PRO1_02E [ ] [ ]

    17/19

    Remember! An S7 program is a combination of program blocks, data blocks, comments andsym o s w c are a connec e w an app ca on. en you crea e a programyou create a structure that includes all these program sections.

    What to Do 1. In the project "My Project, select the menu options Insert -> Program -> S7Program.or (instead of point 1.):

    1a.Click the right mouse button. In the menu that appears, select the optionsInsert New Object -> S7 Program to insert a new program.

    " . .

    3. Change the name of the program to My Program.

    4. In the My Program folder you will find the S7 program itself with the objects:Blocks (user program), Source Files (source programs) and Symbols(symbol table).

    Results A new S7 program is created within the project "My Project.In the SIMATIC Manager you can see the subdirectory My Program in thedirectory "My Project".An empty OB1 block is automatically created in the user program:

    Training Centerfor Automation and Drives

    ST-7PRO1The SIMATIC ManagerPage 17

  • 8/10/2019 PRO1_02E [ ] [ ]

    18/19

    Remember! In simple terms, a block in a CPU is a program section that has a particular functionan a par cu ar s ruc ure.Block OB1 is called cyclically by the operating system and provides access to the

    S7 program. It can contain both program statements and calls to other blocks.

    Goal Inserting an empty block (FC1).

    What to Do 1. Select the user program (Blocks) in which you want to create the new block.

    2. Select the menu options Insert -> S7 Block ->Function. .

    2a.Click the right mouse button. In the menu that appears, select the optionsInsert New Object -> Function to insert a new function.

    3. Enter the block number in the Name" box (in this case: FC1), and enterthe programming language you want to use (LAD/STL/FBD) in theLanguage box.

    4. Enter any additional information, such as Author etc., if required.5. Check all entries and confirm with OK.

    Result You have created a new, empty block called FC1.

    Training Centerfor Automation and Drives

    ST-7PRO1The SIMATIC ManagerPage 18

  • 8/10/2019 PRO1_02E [ ] [ ]

    19/19

    General Before you download the user program to the S7 PLC, you should reset the CPU memory o ma e sure ere are no o oc s e n e .

    The following takes place during a memory reset:

    All user data are erased(with the exception of the MPI parameter assignment).

    Hardware test and initialization

    If an EPROM memory card is inserted, the CPU copies the contents of theEPROM back into the internal RAM after memory reset.

    If no memory card is inserted, the set MPI address is retained. If, however, amemory card is inserted, the MPI address entered on the card is loaded.

    The contents of the diagnostic buffer (can be viewed on the PG) areretained.

    Note The CPU must be in the STOP mode for a memory reset:

    Mode selector in STOP or Mode selector in RUN-P and mode changed to STOP by selecting the

    menu options PLC -> Operating Mode -> Stop.

    Exercise Perform a memory reset of the CPU (with the keyswitch or from the PG).You can check if the memory reset was performed successfully by checking thecontents of the block folder in the Online view. Only system blocks (SDB, SFC andSFB) should now exist.