hit counter script
Siemens SIMATIC C7-621 Manual
Siemens SIMATIC C7-621 Manual

Siemens SIMATIC C7-621 Manual

First steps with step 7-mini and protool/lite
Hide thumbs Also See for SIMATIC C7-621:

Advertisement

SIMATIC
SIMATIC C7-621 Control System
First steps with STEP 7-Mini and ProTool/Lite
Guide
Edition 07/1999

Advertisement

Table of Contents
loading

Summary of Contents for Siemens SIMATIC C7-621

  • Page 1 SIMATIC SIMATIC C7-621 Control System First steps with STEP 7-Mini and ProTool/Lite Guide Edition 07/1999...
  • Page 3: Table Of Contents

    Example program ..........................47 Microsoft and Microsoft MS are registered trademarks, and Windows is a mark of Microsoft Corporation in the United States and other countries. SIMATIC is a registered trademark of SIEMENS AG. First Steps with the C7-621 6ZB5610-0AF02-0BA0...
  • Page 4 Introduction A 03/99 SIEMENS COROS OP3 SIMATIC S7-300 SHIFT ENTER MPI Interface PG connection and communication On-Board I/O 16 digital inputs 24 V DC 16 digital outputs 24 V DC 4 analog inputs 1 analog output External I/O Expansion Interface to connect an...
  • Page 5: Introduction

    Introduction Introduction The SIMATIC C7-621 provides you with a wide range of features to automate your process in a convenient, clearly structured system with a fully functional man-machine interface. This booklet shows you just how easily and quickly you can create your own application for Windows 95...
  • Page 6: Hardware

    SIMATIC documentation on CD-ROM 6ES7 398-8AE00-8YE0 in 5 languages PC/MPI cable 6ES7 972-0CA22-0XA0 RS232 cable 6ES7 901-1BF00 0XA0 SIMATIC C7-621 control system 6ES7 621-1AD01-0AE3 C7-DI/DO simulator module 6ES7 620-0AA00-4AA0 PS307+24V power supply 6ES7 307-1BA00-0AA0 First Steps with the C7-621 6ZB5610-0AF02-0BA0...
  • Page 7: Checklist For Startup

    A 03/99 Introduction Checklist for startup The following basic steps are necessary in order to start up the SIMATIC C7: Þ Install STEP 7 or STEP 7-Mini on a PC/programming device Þ Install ProTool or ProTool/Lite in STEP 7 or STEP 7-Mini on the PC/programming device Connect the PC/MPI cable (C7 ↔...
  • Page 8: Example Machine: Quickmix

    Example machine: Quickmix A 03/99 Example machine: Quickmix Quickmix is a mixing and filling plant which takes orange and mango concentrate from two separate tanks, mixes them with water to produce orange or mango juice and then bottles the finished product. First Steps with the C7-621 6ZB5610-0AF02-0BA0...
  • Page 9 A 03/99 Example machine: Quickmix The diagram shows the configurable aspects of the example machine. We will develop a PLC program for this machine and get to know the steps involved in interfacing the integrated C7 operator panel. For machine monitoring ->...
  • Page 10: Preparations For Programming

    Preparations for programming A 03/99 Preparations for programming Start STEP 7 When you install STEP 7, an icon for the SIMATIC Manager appears on the Windows 95 desktop and the SIMATIC program group is included in the start menu. Like any Windows 95 application, you start the program by double-clicking the SIMATIC Manager icon or selecting Start menu →...
  • Page 11 A 03/99 Preparations for programming You also have to set the PC/programming device interface. To do this, select the menu item Options → Set PG/PC-Interface... Set the PC Adapter(MPI) in the dialog box that appears. If the PC Adapter is not displayed in the window, you can install it now. Activate the Install button and follow the instructions.
  • Page 12: Create A Project

    Preparations for programming A 03/99 For the local connection, select the COM port to which you connected the PC/MPI cable. Save the settings with OK . You can now start to create your project. Create a project Select the menu item File → New . In the dialog box that appears, create a new project with the name Getstart.
  • Page 13: Define The Hardware

    A 03/99 Preparations for programming Define the hardware Open the Quickmix station by double-clicking. Select the Hardware folder and open it by double- clicking again. In the Hardware Configurator call up the hardware catalog with Insert → Hardware Components . In this box, select the C7-621 from SIMATIC 300 →...
  • Page 14 Preparations for programming A 03/99 To save the configuration, select Station → Save and Compile . To quit the Hardware Configurator, select Station → Exit . The folder C7 CPU621, which contains the S7 program, is created automatically by the SIMATIC Mana- ger.
  • Page 15: Program Development

    A 03/99 Program development Program development Start by programming the operating modes for the filling plant. Conveyor control I 124.0 Start Manual/automatic mode I 124.3 Manual/automatic I 124.4 Accept mode I 124.5 Jog forward I 124.6 Jog back Bottle sensor Filling hopper Bottle sensor I 125.0...
  • Page 16: Insert A Block

    Program development A 03/99 Insert a block Select the Blocks folder in the SIMATIC Manager and select Insert → S7 Block → 3 Function Block to insert a new function. In the dialog box that appears, allocate the internal identifier FC15. Select STL as the programming language and close the dialog box with OK.
  • Page 17: Insert A Network

    A 03/99 Program development FC15: Mode Network 1 : Plant ON/OFF 124.0 // Start (if input 124.0 on /off) 125.0 // Plant ON (plant is then switched on/off) Insert a network To insert a new network, click on the tool bar. You will program the MANUAL mode in this network.
  • Page 18: Save The Block

    Program development A 03/99 Save the block The mode section of the filling plant is now fully programmed. Now save function FC15 by activating the symbol For an executable program you still need to call FC15 in organization block OB1. Open OB1 in the SIMATIC Manager and insert the following program line in the first network: OB1 : Filling plant Network 1 : Mode section...
  • Page 19: Load Blocks

    Manager and load this block into the CPU of Manager and click the symbol on the the SIMATIC C7-621. You only need to click tool bar once. symbol on the tool bar once. Then load organization block OB1 into the CPU following the same procedure.
  • Page 20: Extend The Program

    Program development A 03/99 Extend the program Now extend the program with the filling process. The plant should operate as follows: The conveyor drive motor is switched on (Q 125.3) in Automatic mode and remains switched on until the stop switch opens or the sensor (I 125.0) detects a bottle. The filling process starts when a bottle is positioned underneath the filling hopper.
  • Page 21 A 03/99 Program development You now need to allow for the filling cycle in the mode section. Insert the program line O M 5.0 in Network 4 of Function FC15. The complete network then appears as follows: Network 4 : Conveyor forward 125.1 // If MANUAL mode is set 124.5...
  • Page 22: Copy Ram To Rom

    Program development A 03/99 Copy RAM to ROM Since the PLC program is only saved in volatile load memory and not automatically in the C7 CPU flash memory when it is loaded into the C7-CPU, the program would be lost if you restarted the C7-621. To prevent this from happening, you must copy the PLC program explicitly into the flash memory.
  • Page 23: Preparations For Op Configuration

    A 03/99 Preparations for OP configuration Preparations for OP configuration Start ProTool, create a configuration There are two ways to create an OP configuration. You can create a new (empty) configuration and add all the necessary system functions manually (e.g. change mode, allocate passwords, etc.), or you can base your project on a standard configuration supplied with ProTool.
  • Page 24: Online Help

    Preparations for OP configuration A 03/99 To check and, if necessary, correct the PLC parameters, display the dialog box with the PLC para- meters from the Driver window by activating the Parameters button (see dialog box directly below). When you have entered all the settings, close the dialog box by activating the button OK . In the Projekt Wizard confirm this step with Continue>.
  • Page 25: Display And Enter Values In Screens

    A 03/99 Display and enter values in screens Display and enter values in screens You can start by configuring your first screen. Open the Screen Editor with the menu item Insert → Screen . This action calls up the Screen-PIC_6. (1.
  • Page 26: Transfer The Configured Data

    Display and enter values in screens A 03/99 Transfer the configured data Before the actual transfer, you need to perform three steps: Save Generate the project Define the transfer parameters (once). To save the project, select the menu item File → Save . Then activate the menu item File →...
  • Page 27: Extend The Configuration

    A 03/99 Display and enter values in screens SIMATIC C7-621 plant Quickmix DC5V STOP FRCE S H IF T ENTER If the transfer was unsuccessful, repeat the steps beginning on Page 23. Extend the configuration Now add another screen to your configuration.
  • Page 28 Display and enter values in screens A 03/99 Configure an input field Use the cursor to select the first line of the first screen entry. Using the cursor control keys, position the cursor behind the text Filling time. Activate the menu item Insert → Input/Output Field or press in the function bar.
  • Page 29 A 03/99 Display and enter values in screens Configure an output field Position the cursor in the first line of the second screen entry behind the configured text Full bottles. Activate the menu item Insert → Input/Output Field. In the Input/Output field dialog box, set the Field Type: Output and Field Length : 4. Then click the button .
  • Page 30 Display and enter values in screens A 03/99 Create data word 4 with the name Messages, type Word initial value W#16#0. You will need this data word later in order to configure the event messages. You have now created DB46. Save the block and load it into the C7-621. You now need to change Function FC16.
  • Page 31: Link The Screens And Enable Navigation Via Softkeys

    A 03/99 Display and enter values in screens The following figure shows the relationship between the value entered, the PLC program and the current number of full bottles. DB46 SIMATIC C7-621 Control program Filling time :STL DBW0 DC5V L DB46.DBW 0...
  • Page 32 Display and enter values in screens A 03/99 Click the button <<Add . The dialog box Parameters - Select Screen appears. In this dialog box, select the name of the screen you want to call up: Plant_QM. Do not change the parameters Entry Number or Field Number .
  • Page 33 A 03/99 Display and enter values in screens Label the softkey To inform the operator of the C7 which softkey is assigned, create a text for this softkey. The text will be displayed in the appropriate screen. The procedure is as follows: Position the text cursor in the second line of the screen above the softkey you have assigned.
  • Page 34 Display and enter values in screens A 03/99 SIMATIC C7-621 plant Quickmix DC5V FRCE STOP S H IF T ENTER Then press Softkey F5 to call up the plant screen. Enter a value in the input field and, using the simulator, check the value change.
  • Page 35: Include Standard Screens In The Configuration

    A 03/99 Include standard screens in the configuration Include standard screens in the configuration When you started configuring, you selected standard screens as the basis for your configuration and saved the file under the name Quickmix. You need the standard screens if you want to use the standard functions of the C7-621. These functions are, for example, Change mode, Edit password, Log on and off with password, etc.
  • Page 36: Configure Event Messages

    Configure event messages A 03/99 Configure event messages Your plant is now virtually complete. The only missing element is event messages. These provide infor- mation during operation of the plant. Enter communication areas To enable the PLC to communicate with the OP, you must define data areas which can be accessed on both sides.
  • Page 37 A 03/99 Configure event messages Configure event message texts Open the Message Editor with the menu item Insert → Message → Event Message . Configure six messages numbered from 001 to 006, e.g. Plant ON, Mode MANUAL, Mode AUTO, Conveyor forward, Conveyor back and Filling in progress. In the status line you will see the address which links the message to the PLC.
  • Page 38 Control program DBX 4.7 ..4.0 DBX 5.7 ..5.0 L QW0 Assigned message number T DB46.DBW4 Bit area for messages SIMATIC C7-621 Area pointer DC5V FRCE STOP S H IF T ENTER The relationship between the PLC and the OP on the occurrence of a message is shown in the figure above.
  • Page 39 A 03/99 Configure event messages SIMATIC C7-621 plant works DC5V STOP FRCE S H IF T ENTER You have now completed the configuration. The Quickmix plant has introduced you to some of the functions of the C7-621, programming with STEP 7-Mini and configuration with ProTool/Lite. The full functionality of the C7-621, STEP 7-Mini and ProTool/Lite is described in the C7-621, STEP 7-Mini and ProTool/Lite manuals.
  • Page 40: Symbolic Addressing

    Symbolic addressing A 03/99 Symbolic addressing When you program a PLC with STEP 7, you use operands such as I/O signals, bit memories, counters, timers, data blocks and function blocks. Up to now, you have used absolute addresses to reference these operands in your program (e.g.
  • Page 41: Set Symbolic Representation

    A 03/99 Symbolic addressing Set symbolic representation To enable the symbolic names to be displayed in your program, you must set the appropriate type of representation. Open Function FC15 in the offline database. In the LAD/STL/FBD Editor that appears, select the menu item View →...
  • Page 42 Symbolic addressing A 03/99 Open the Properties - C7 CPU621 window in the Hardware Configurator by double-clicking the C7 CPU621 symbol. Open the Properties - MPI Nodes window by clicking the button Properties ... , and select the Subnet: MPI(1) . Accept the settings with OK , save and compile the hardware configuration, and load it into the C7 CPU again.
  • Page 43 A 03/99 Symbolic addressing Now open your C7-621 ProTool configuration and select the folder Controllers . Open the PLC Quickmix by double-clicking . Click the Parameters... button. Select MPI(1) under Connect OP to network. MPI(1) appears under Choose a communication peer/symbol list , a nd the network parameters are displayed on a gray background.
  • Page 44 Symbolic addressing A 03/99 Open the Plant screen, double-click the variable Time and click the Edit button in the Input/ Output field dialog window . In the dialog window that now appears, the symbolic names are displayed under Symbol . Select the name DB_OP.fill_time under DB_OP in the variable list.
  • Page 45 A 03/99 Symbolic addressing You must now assign the symbolic names to the event messages. To do this, open the Area Pointers window in ProTool from the Target System menu. Click the Edit... button in the Area Pointers window. In the Event Messages window, select the symbolic name DB_OP.messages and confirm the entries with OK .
  • Page 46: How To Operate The C7-621

    How to operate the C7-621 A 03/99 How to operate the C7-621 To facilitate operation of the C7-621, here is a brief description of the main keys on the C7-621 and their meaning. SIMATIC C7-621 Display Cursor control keys DC5V Softkeys...
  • Page 47: Example Program

    A 03/99 Example program Example program You will have created and started up the following STEP 7 program by following the instructions. DB46: Address Declaration Name Type Initial Value Comment stat Fill_Time Word W#16#2003 +2.0 stat Full_Bottles Word W#16#0 +4.0 stat Messages Word...
  • Page 48 Example program A 03/99 FC16 : Filling cycle Network 1 : Fill bottles 125.0 // Bottle sensor 1 has detected a bottle DB46.DBW0 // Load filling time (3s) // Set extended pulse (3s) // When timer 1 reaches level 1 125.5 // Open inlet valve Network 2 : Scratchpad memory for conveyor, AUTO...

Table of Contents