(Parte 1 de 3)

TIA Portal Introduction 1

Example "PID control" 4 Example "Motion" 5

TIA Portal STEP 7 Basic V10.5

Getting Started

Legal information Legal information Warning notice system

This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.

DANGER indicates that death or severe personal injury will result if proper precautions are not taken.

WARNING indicates that death or severe personal injury may result if proper precautions are not taken.

CAUTION with a safety alert symbol, indicates that minor personal injury can result if proper precautions are not taken.

CAUTION without a safety alert symbol, indicates that property damage can result if proper precautions are not taken.

indicates that an unintended result or situation can occur if the corresponding information is not taken into account.

If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.

Qualified Personnel

The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation for the specific task, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.

Proper use of Siemens products Note the following:

Siemens products may only be used for the applications described in the catalog and in the relevant technical documentation. If products and components from other manufacturers are used, these must be recommended or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and maintenance are required to ensure that the products operate safely and without any problems. The permissible ambient conditions must be adhered to. The information in the relevant documentation must be observed.

Trademarks

All names identified by ® are registered trademarks of the Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.

Disclaimer of Liability

We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Industry Sector Postfach 48 48 90026 NÜRNBERG GERMANY

Copyright © Siemens AG 2009. Technical data subject to change

1 TIA Portal Introduction5
1.1 Overview5
1.2 TIA Portal basics7
1.2.1 TIA Portal overview7
1.2.2 Engineering concept8
1.2.3 Data management9
1.3 Views in the TIA portal1
1.3.1 Navigation in the TIA portal1
1.3.2 Portal view12
1.3.3 Project view13
1.4 Example projects15
1.4.1 Overview15
1.4.2 Loading a project17
2 Simple example21
2.1 Introduction21
2.2 Create project21
2.3 Inserting and configuring a PLC23
2.3.1 Inserting a PLC23
2.3.2 Overview of device and network editor26
2.3.3 Configure PLC29
2.4 Create program31
2.4.1 What are organization blocks?31
2.4.2 Open organization block32
2.4.3 Overview of the program editor34
2.4.4 What are networks?35
2.4.5 Inserting LAD instructions37
2.4.6 What are tags?42
2.4.7 Defining and interconnecting PLC tags4
2.5 Test program48
2.5.1 Loading the program to the target system48
2.5.2 Test program with program status54
2.6 Create HMI screen57
2.6.1 Visualization in the TIA portal57
2.6.2 Create HMI device with HMI screen57
2.6.3 What are graphic objects?65
2.6.4 Creating and configuring graphic objects6
2.6.4.1 "Machine ON/OFF" button6
2.6.4.2 Graphic objects "LEDs"69
2.6.4.3 Graphic object "Conveyor"74
2.6.4.4 Graphic object "Bottle" with motion simulation7
2.6.4.5 Modify visibility of motion animation82
2.7 Testing HMI screen85
2.7.1 Load HMI screen to the HMI device85

Table of contents 2.7.2 Simulate runtime ..........................................................................................................................87

Table of contents

STEP 7 Basic V10.5 4 Getting Started, 12/2009, A5E02651459-01

3 Extended example89
3.1 Introduction89
3.2 Expanding the program91
3.2.1 Declaring tags in the PLC tag table91
3.2.2 Programming the conditions for starting the conveyor95
3.2.2.1 Querying the status of the machine95
3.2.2.2 Querying the position of the bottle and the status of the heating chamber97
3.2.2.3 Query pasteurization progress9
3.2.2.4 Control conveyor101
3.2.3 Programming the conditions for stopping the conveyor103
3.2.4 Programming the PLC of the heating107
3.2.5 Programming the heating period110
3.2.6 Programming the status light113
3.3 Test expanded program with program status117
3.4 Expand HMI screen123
3.4.1 Graphic object "Heating chamber"123
3.4.2 Graphic object "Heating chamber LED"125
3.4.3 Graphic objects "Light barriers"127
3.5 Simulate HMI screen132
4 Example "PID control"135
4.1 Introduction135
4.2 Set organization block for PID controller138
4.3 Create technological object PID controller141
4.4 Load simulation block143
4.5 Configure PID controller147
4.6 Changing the heating chamber control152
4.7 Integrate temperature comparison as condition in control program154
4.8 Adjust HMI screen158
4.9 Active PID controller in online mode161
5 Example "Motion"165
5.1 Introduction165
5.2 Insert technological object "Axis"168
5.3 Configure technological object "Axis"170
5.4 Enable axis173
5.5 Position axis relative176
5.6 Expand HMI screen180
5.6.1 Change graphic object conveyor180
5.6.2 Create second graphic object bottle182
5.6.3 Connect HMI objects with motion instruction186
5.7 Simulate HMI screen189
5.8 Start diagnostics view191

1.1 Overview

Introduction Welcome to the "STEP7 Basic V10.5 Getting Started".

Getting Started uses an example project to show you the easy operation of the TIA Portal.

Example project

The example project that is created in this Getting Started is a station for pasteurizing milk in a heating chamber. To illustrate this process in simple terms, the individual bottles are moved on a conveyor belt in the heating chamber and transported to the next stage after completion of the heating process.

TIA Portal Introduction 1.1 Overview

STEP 7 Basic V10.5 6 Getting Started, 12/2009, A5E02651459-01

Structure of the Getting Started

The example project is expanded with each chapter. Starting from a simple project in which you use only the basic functions of the TIA Portal, you expand the project step by step using increasingly complex functions of the TIA Portal. Experienced users can skip certain chapters; the "Simple Example" chapter offers beginners additional background information on programming and visualization.

TIA Portal Introduction 1.2 TIA Portal basics

1.2 TIA Portal basics

1.2.1 TIA Portal overview

Introduction

The Totally Integrated Automation Portal (TIA portal) integrates various SIMATIC products in a software application with which you can increase your productivity and efficiency. The TIA products work together within the TIA portal and support you in all areas required for the creation of an automation solution.

A typical automation solution encompasses: ● A PLC that controls the process with the aid of the program.

● An HMI device with which you operate and visualize the process.

3URFHVV

Tasks

The TIA portal supports you in creating an automation solution. The most important configuration steps are:

● Creating the project

● Configuring the hardware

● Networking the devices

● Programming the PLC

● Configuring the visualization

● Loading the configuration data

● Using the online and diagnostic functions

TIA Portal Introduction 1.2 TIA Portal basics

STEP 7 Basic V10.5 8 Getting Started, 12/2009, A5E02651459-01

Benefits The TIA portal offers the following advantages:

● Common data management

● Easy handling of programs, configuration data and visualization data

● Easy editing using drag-and-drop operation

● Easy loading of data to the devices

● Easy operation

● Graphic supported configured and diagnostics

1.2.2 Engineering concept

Engineering system

You can use the TIA Portal to configure both the PLC and the visualization in a uniform engineering system. All data are stored in one project. The components for programming (STEP 7) and visualization (WinCC) are not separate programs, but rather editors of a system that accesses a common data base. All data are stored in a common project file.

You use a common user interface for all tasks to access all programming and visualization functions at all times.

TIA Portal Introduction 1.2 TIA Portal basics

1.2.3 Data management

Central data management

In the TIA Portal, all data are stored in one project. Modified application data, such as tags, are automatically updated within the complete project even across several devices.

Symbolic addressing across project parts

If you use a process tag in several blocks of various PLCs and in HMI screens, the tag can be created or modified from any place in the program. In this case it is of no importance in which block of which device you make the modification. The TIA Portal offers the following options for defining PLC tags:

● Definition in the PLC tag table

● Definition in the program editor

● Definition by means of a link with the inputs and outputs of the PLC

7HPS

All defined PLC tags are listed in the PLC tag table and can be edited there. Modifications are performed centrally and updated continuously. The consistent data management eliminates the need for synchronization between the project participants within a project, for example, between the programmer and the HMI designer.

TIA Portal Introduction 1.2 TIA Portal basics

STEP 7 Basic V10.5 10 Getting Started, 12/2009, A5E02651459-01

Library concept

Project parts can be used again via the library both within the project and also in other projects.

● Elements such as blocks, PLC tags, PLC tag tables, interrupts, HMI screens, individual modules or complete stations can be stored both in local and in global libraries.

● Devices and defined functions can be reused.

● The global library allows for an easy exchange of data between projects.

TIA Portal Introduction 1.3 Views in the TIA portal

1.3 Views in the TIA portal

Introduction

You will use different views when you create projects. The following section provides you with a preliminary overview of the various views in the TIA portal.

Views of the TIA portal

For your automation projects, the TIA portal offers two different working views that provide fast access to the toolbox and the individual project components:

● Portal view: The portal view supports task-oriented configuration.

● Project view: The project view supports object-oriented configuration.

Navigation

You can use the link in the bottom left corner of the user interface to switch between the portal view and the project view at any time. During the configuration the view is also automatically switched depending on the type of task being executed. For example, if you want to edit an object listed in the portal view, the application switches automatically to the corresponding editor in the project view. When the object has been edited you can switch back to the portal view and continue your work there with the next object or the next activity.

Global saving of project data

When you save a project the complete project is always saved, regardless of which view or editor is open.

TIA Portal Introduction 1.3 Views in the TIA portal

STEP 7 Basic V10.5 12 Getting Started, 12/2009, A5E02651459-01

1.3.2 Portal view

Portal view

The portal view provides a task-oriented view of the toolbox. The goal of the portal view is to provide a simple navigation in the tasks and data of the project. This means the functions of the application can be reached via individual portals for the most important tasks. The following figure shows the structure of the portal view:

① Portals for the different tasks:

The portals provide the basic functions for the individual task areas. The portals that are provided in the portal view depends on the products that have been installed.

② Actions for the selected portal:

Here, you will find the actions available to you in the portal you have selected. You can call up the help function in every portal on a context-sensitive basis.

③ Selection panel for the selected action:

The selection panel is available in all portals. The content of the panel adapts to your current selection.

④ Switch to project view: You can use the "Project view" link to switch to the project view.

⑤ Display of the project that is currently open: Here, you can obtain information about which project is currently open.

TIA Portal Introduction 1.3 Views in the TIA portal

1.3.3 Project view

Project view

The project view is a structured view of all components of a project. In the project view the various editors are available that you can use to create and edit the corresponding project components.

The following figure shows the structure of the project view:

① Menu bar: The menu bar contains all the commands that you require for your work.

② Toolbar:

The toolbar provides you with buttons for commands you will use frequently. This gives you faster access to these commands than via the menus.

③ Project tree:

The project tree gives you access to all components and project data. You can perform, for example, the following tasks in the project tree:

Add new components

Edit existing components

Scan and modify the properties of existing components

④ Work area: The objects that you can open for editing purposes are displayed in the work area.

TIA Portal Introduction 1.3 Views in the TIA portal

STEP 7 Basic V10.5 14 Getting Started, 12/2009, A5E02651459-01

⑤ Task cards:

Task cards are available depending on the edited or selected object. The task cards available can be found in a bar on the right-hand side of the screen. You can collapse and reopen them at any time.

⑥ Details view:

Certain contents of a selected object are shown in the details view. This might include text lists or tags.

⑦ Inspector window:

Additional information on an object selected or on actions executed are displayed in the Inspector window.

⑧ Switching to portal view: You can use the "Portal view" link to switch to the portal view.

Note

You open and close individual windows of the project view with the key combination "<Ctrl> + 1-5". You will find an overview of all key combinations in the information system of the TIA Portal.

TIA Portal Introduction 1.4 Example projects

1.4 Example projects

Introduction

The Getting Started is divided into four chapters each of which is based on the one before it. The current status at the end of a chapter is saved in a project file. To skip a chapter, you can load the respective status of the preceding chapter.

Contents of the example projects

The following overview describes the target group of the respective chapter. The projects are saved as ZIP files and are available for download at the following address:

http://support.automation.siemens.com/W/view/en/40263542 Click on "Info" to see the ZIP files. ● Simple example

These chapters are intended for beginners without prior knowledge. In the easy example you configure the PLC and one HMI device, create a short program and one HMI screen for visualization. At the end of the chapter the machine can be switched on and off using the HMI device.

● Extended example

If you have prior knowledge you can load the easy example and continue from this point. In this extension of the easy example you create a complete program in LAD and the HMI elements required for visualization of the process.

The project status after the "Simple Example" chapter is stored in the "Simple_Example.ZIP" file.

● Extended example PID controller

In this chapter you add the technological object "PID controller" to the extended example. You use the PID controller to automatically control the temperature in the heating chamber.

If you only want to use the function of the technological object "PID", you can load the project status after the "Extended Example" chapter from the "Extended_Example.ZIP" file.

● Extended Example Motion Control

In this chapter you add the technological object "Axis" to the extended example. You use the technological object "Axis" to control a second conveyor. You use a motion control instruction to modify the position of the bottle on the conveyor. The project status before this chapter is stored in the "Extended_Example_PID.ZIP" file.

TIA Portal Introduction 1.4 Example projects

STEP 7 Basic V10.5 16 Getting Started, 12/2009, A5E02651459-01

The project status at the end of the complete Getting Started is stored in the "Extended_Example_Motion.ZIP" file.

WARNING Use the example projects only for test purposes

The supplied examples and descriptions are only intended to provide you with an introduction to the basic functions of the TIA Portal.

Use the examples only in a test environment and not in a machine that is operational.

Loading the supplied example programs in a machine that is operational can cause malfunctions, program errors and serious property damage and personal injuries!

TIA Portal Introduction 1.4 Example projects

1.4.2 Loading a project

Introduction

The Getting Started starts with the chapter "Simple example (Page 21)". If you do not want to work your way through the Getting Started from the very beginning, the following steps will show you how to load a project status.

Procedure Proceed as follows to load a project:

(Parte 1 de 3)

Comentários