20
Tecnomatix Plant Simulation Worldwide User Conference 2015 Siemens Industry Software © Siemens AG 2015 Realize innovation. Virtual Commissioning using Tecnomatix Plant Simulation Guido Groß © Siemens AG 2015 2015-06-03 Page 2 Siemens PLM Software Preconditions, Hardware and Software Defining a Project in the TIA Portal Connecting Plant Simulation Contents

Virtual Commissioning using Tecnomatix Plant Simulation...We need the following software packages to be installed: • Totally Integrated Automation Portal Version 13 SP1 Update 3

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Virtual Commissioning using Tecnomatix Plant Simulation...We need the following software packages to be installed: • Totally Integrated Automation Portal Version 13 SP1 Update 3

Tecnomatix Plant Simulation Worldwide User Conference 2015

Siemens Industry Software

© Siemens AG 2015 Realize innovation.

Virtual Commissioning using TecnomatixPlant SimulationGuido Groß

© Siemens AG 2015

2015-06-03Page 2 Siemens PLM Software

• Preconditions, Hardware and Software

• Defining a Project in the TIA Portal

• Connecting Plant Simulation

Contents

Page 2: Virtual Commissioning using Tecnomatix Plant Simulation...We need the following software packages to be installed: • Totally Integrated Automation Portal Version 13 SP1 Update 3

Tecnomatix Plant Simulation Worldwide User Conference 2015

Siemens Industry Software

© Siemens AG 2015 Realize innovation.

Preconditions, Hardware, and Software

© Siemens AG 2015

2015-06-03Page 4 Siemens PLM Software

Hardware

Assign fixed IP addresses to the hardware components

134.244.153.61 134.244.153.60

134.244.153.62

Page 3: Virtual Commissioning using Tecnomatix Plant Simulation...We need the following software packages to be installed: • Totally Integrated Automation Portal Version 13 SP1 Update 3

Tecnomatix Plant Simulation Worldwide User Conference 2015

Siemens Industry Software

© Siemens AG 2015

2015-06-03Page 5 Siemens PLM Software

Installed Software

We need the following software packages to be installed:• Totally Integrated Automation Portal Version 13 SP1 Update 3

(TIA Portal). The installation will take more than one hour• Simatic Net• Tecnomatix Plant Simulation Version 12.0 or higher

After the installation you should have at least threeicons on your desktop:• TIA Portal V13• Automation License Manager• Tecnomatix Plant Simulation

© Siemens AG 2015 Realize innovation.

Defining a Project in the TIA Portal

Page 4: Virtual Commissioning using Tecnomatix Plant Simulation...We need the following software packages to be installed: • Totally Integrated Automation Portal Version 13 SP1 Update 3

Tecnomatix Plant Simulation Worldwide User Conference 2015

Siemens Industry Software

© Siemens AG 2015

2015-06-03Page 7 Siemens PLM Software

Defining a TIA Project

Double-click the TIA icon on the desktop.

Enter the project name.You also can define the folder where the project datawill be stored.Click the button Create. The project files will becreated. This will take some time.

© Siemens AG 2015

2015-06-03Page 8 Siemens PLM Software

Defining a TIA Project

After the project was generated, the dialog showsthe next page.

Click Open the project view to open the dialog inwhich you can define the devices.

Page 5: Virtual Commissioning using Tecnomatix Plant Simulation...We need the following software packages to be installed: • Totally Integrated Automation Portal Version 13 SP1 Update 3

Tecnomatix Plant Simulation Worldwide User Conference 2015

Siemens Industry Software

© Siemens AG 2015

2015-06-03Page 9 Siemens PLM Software

Add a New Device

The project view of the TIA portal shows yourproject name as a folder.

Double-click Add new device in this folder.

This opens a dialog in which you can definethe devices.

© Siemens AG 2015

2015-06-03Page 10 Siemens PLM Software

Defining a Controller

Click the button Controllers in this dialog to add acontroller to your project.

Select the controller you want to use.You need the article number of the controller to makesure that you select the correct controller.

Make sure that you selected the correct firmwareversion of the controller you are using.

Click OK to add the device to your project

This closes the dialog.

Page 6: Virtual Commissioning using Tecnomatix Plant Simulation...We need the following software packages to be installed: • Totally Integrated Automation Portal Version 13 SP1 Update 3

Tecnomatix Plant Simulation Worldwide User Conference 2015

Siemens Industry Software

© Siemens AG 2015

2015-06-03Page 11 Siemens PLM Software

Defining a Controller

Double-click Devices & networks.Select the Profinet Interface.

On the Properties Tab on the Tab General,select Ethernet addresses and enter theEthernet address of your device.Click the button Add new subnet.

© Siemens AG 2015

2015-06-03Page 12 Siemens PLM Software

Configuring the Controller

The controller will then be shown with a connection tothe network called PN/IE_1

Click the Compile button to check if everything worksas intended.

Page 7: Virtual Commissioning using Tecnomatix Plant Simulation...We need the following software packages to be installed: • Totally Integrated Automation Portal Version 13 SP1 Update 3

Tecnomatix Plant Simulation Worldwide User Conference 2015

Siemens Industry Software

© Siemens AG 2015

2015-06-03Page 13 Siemens PLM Software

Adding a PC Station

Double-click Add new device again to add a PC Station.

In the dialog Add new device, click the button PCsystems.Click PC general and PC station.Click OK.

This adds a PC Station to your project.

© Siemens AG 2015

2015-06-03Page 14 Siemens PLM Software

Configuring the PC Station

In the window Hardware catalog, selectIE general in the folder Communicationsmodules -> PROFINET/Ethernet.

Use drag and drop to add the interface toyour PC Station.

In the folder User applications, select theOPC server. Use drag and drop to addthe OPC server to your PC Station.

Page 8: Virtual Commissioning using Tecnomatix Plant Simulation...We need the following software packages to be installed: • Totally Integrated Automation Portal Version 13 SP1 Update 3

Tecnomatix Plant Simulation Worldwide User Conference 2015

Siemens Industry Software

© Siemens AG 2015

2015-06-03Page 15 Siemens PLM Software

Configuring the Profinet Interface

Select the Profinet Interface of the PC Station.

Click the tab General and select Ethernet address.

Enter the Ethernet address of the PC Station.Select the existing sub net PN/IE_1.Make sure that the check box Use IP protocol is selected.

In Network view your project should now look like the picture below.

© Siemens AG 2015

2015-06-03Page 16 Siemens PLM Software

Component Configurator

Start the Component Configurator from the task bar.The name of the PC station must be identical in TIA and inComponent Configurator.Make sure that the components have the same slots asshown in the figure below.

Page 9: Virtual Commissioning using Tecnomatix Plant Simulation...We need the following software packages to be installed: • Totally Integrated Automation Portal Version 13 SP1 Update 3

Tecnomatix Plant Simulation Worldwide User Conference 2015

Siemens Industry Software

© Siemens AG 2015

2015-06-03Page 17 Siemens PLM Software

Adding an S7 Connection

Select the Network view in your project.Select Connections.In drop-down list of the connection types select the S7connection.

Select the Profinet Interface of the CPU, hold down the leftmouse button, drag the mouse to the Profinet interface of thePC station and let the mouse button go.

A S7 connection, called S7_Connection_1, will be generated.

© Siemens AG 2015

2015-06-03Page 18 Siemens PLM Software

Compile PC Station

Select the PC station in the project window.

Click Compile.

If everything works correctly, the compile windowshould look like this.

Page 10: Virtual Commissioning using Tecnomatix Plant Simulation...We need the following software packages to be installed: • Totally Integrated Automation Portal Version 13 SP1 Update 3

Tecnomatix Plant Simulation Worldwide User Conference 2015

Siemens Industry Software

© Siemens AG 2015

2015-06-03Page 19 Siemens PLM Software

Download the Configuration to the Device

Click Download to Device.

Click Start search.

Clear Show all compatible devices.

© Siemens AG 2015

2015-06-03Page 20 Siemens PLM Software

Installed Software

After finishing the search process, the list should looklike the figure to the left.

Click Load to download the configuration to the device.Click Load in preview window.

Page 11: Virtual Commissioning using Tecnomatix Plant Simulation...We need the following software packages to be installed: • Totally Integrated Automation Portal Version 13 SP1 Update 3

Tecnomatix Plant Simulation Worldwide User Conference 2015

Siemens Industry Software

© Siemens AG 2015

2015-06-03Page 21 Siemens PLM Software

PLC Program

In the project tree select PLC_1->Program blocks.Double-click Add new block.This opens the dialog for adding a new block.Click Data block and rename the data block to OPC_Data.

© Siemens AG 2015

2015-06-03Page 22 Siemens PLM Software

PLC Program

Select OPC_Data in the project tree, click the right mouse button andselect Properties,Click Attributes in the properties window and clear Optimized blockaccess.Data blocks with standard access have fixed structure. The dataelements defined in a block can then be accessed by symbolic namesand absolute addresses.

Page 12: Virtual Commissioning using Tecnomatix Plant Simulation...We need the following software packages to be installed: • Totally Integrated Automation Portal Version 13 SP1 Update 3

Tecnomatix Plant Simulation Worldwide User Conference 2015

Siemens Industry Software

© Siemens AG 2015

2015-06-03Page 23 Siemens PLM Software

Defining a Static Variable

Double-click OPC_Data in the project tree.Define a variable called static_01 of type Boolean.

Click Compile on the menu bar. This will enter the offset of the variable.Compile

© Siemens AG 2015

2015-06-03Page 24 Siemens PLM Software

Defining the PLC Program

Double-click Main[OB1] to open the of the main program

Page 13: Virtual Commissioning using Tecnomatix Plant Simulation...We need the following software packages to be installed: • Totally Integrated Automation Portal Version 13 SP1 Update 3

Tecnomatix Plant Simulation Worldwide User Conference 2015

Siemens Industry Software

© Siemens AG 2015

2015-06-03Page 25 Siemens PLM Software

Editing the PLC Program

Click the symbol for opener contact, drag it over the line and drop it there.

Note that there are some question marks above the opener contact.Click them, enter M1.0 and press the Enter key.

The ’%‘ sign and ‘Tag_1’ will be added automatically.

© Siemens AG 2015

2015-06-03Page 26 Siemens PLM Software

Editing the PLC Program

Select the SR Flip Flop in the Basic Instructionswindow, drag it over the line in the program windowand drop it there.

Double-click the red question marks above the SR FlipFlop, click the selection button, click OPC_Data andthen click Static_01.

Page 14: Virtual Commissioning using Tecnomatix Plant Simulation...We need the following software packages to be installed: • Totally Integrated Automation Portal Version 13 SP1 Update 3

Tecnomatix Plant Simulation Worldwide User Conference 2015

Siemens Industry Software

© Siemens AG 2015

2015-06-03Page 27 Siemens PLM Software

Editing the PLC Program

Next, select an opener contact, drag it to the R1entrance and drop it there.Enter M1.1 and press the Enter key.

Select the Assignment, drag it over the Q exit lineand drop it there.Enter M2.0 and press the Enter key.

© Siemens AG 2015

2015-06-03Page 28 Siemens PLM Software

Compiling and Downloading of the PLC Program

Download to device

Click Download to device.

Click Start Search in the window that opens,Your device (PLC_1) will be listed after a few seconds.Click the button Load.

Page 15: Virtual Commissioning using Tecnomatix Plant Simulation...We need the following software packages to be installed: • Totally Integrated Automation Portal Version 13 SP1 Update 3

Tecnomatix Plant Simulation Worldwide User Conference 2015

Siemens Industry Software

© Siemens AG 2015

2015-06-03Page 29 Siemens PLM Software

Compiling and Downloading of the PLC Program

A new window opens, telling you that all devices are stopped.Click Load.

After downloading the program to the device, the device willbe started again.Click Finish to finish downloading the program.

© Siemens AG 2015

2015-06-03Page 30 Siemens PLM Software

Adding a Watch Table

Click Add new watch table in the project tree double to create a newwatch table.We will use this table to set and watch the values in the PLC.

Open the created watch table Watch table_1.

Page 16: Virtual Commissioning using Tecnomatix Plant Simulation...We need the following software packages to be installed: • Totally Integrated Automation Portal Version 13 SP1 Update 3

Tecnomatix Plant Simulation Worldwide User Conference 2015

Siemens Industry Software

© Siemens AG 2015

2015-06-03Page 31 Siemens PLM Software

Adding a Watch Table

Click the Select button in the column Name andselect a variable which is defined in the PLCprogram.

Do this for all three variables.

Click Monitor all.

This will activate the online connection to the PLC.You will recognize this because the color of the frameof the window changes to orange.

As you will see, all variables are false.

© Siemens AG 2015

2015-06-03Page 32 Siemens PLM Software

Testing the Program

To test the PLC program, enter TRUE into the columnModify value and press the Enter key.Click Modify all selected values now.

The SR Flip Flop will be set now and the exit of theFlip Flop will be true.Tag_3, which is the exit, will also be true.

Page 17: Virtual Commissioning using Tecnomatix Plant Simulation...We need the following software packages to be installed: • Totally Integrated Automation Portal Version 13 SP1 Update 3

Tecnomatix Plant Simulation Worldwide User Conference 2015

Siemens Industry Software

© Siemens AG 2015 Realize innovation.

Using the OPC Scout

© Siemens AG 2015

2015-06-03Page 34 Siemens PLM Software

OPC Scout

You will find the OPC Scout in the folderSiemens Automation > SIMATIC > SIMATIC NET > OPC Scout V10of the Windows 7 start menu.

Page 18: Virtual Commissioning using Tecnomatix Plant Simulation...We need the following software packages to be installed: • Totally Integrated Automation Portal Version 13 SP1 Update 3

Tecnomatix Plant Simulation Worldwide User Conference 2015

Siemens Industry Software

© Siemens AG 2015

2015-06-03Page 35 Siemens PLM Software

Installed Software

Select OPC.SimaticNET.Select S7 and S7_Connection_1, i.e., the connection we created.Click Configuration. The window on the right shows some predefinedconfiguration variables. It also shows the connection string we will needfor Plant Simulation later on.

Close the OPC Scout.

© Siemens AG 2015 Realize innovation.

The Plant Simulation Project

Page 19: Virtual Commissioning using Tecnomatix Plant Simulation...We need the following software packages to be installed: • Totally Integrated Automation Portal Version 13 SP1 Update 3

Tecnomatix Plant Simulation Worldwide User Conference 2015

Siemens Industry Software

© Siemens AG 2015

2015-06-03Page 37 Siemens PLM Software

Plant Simulation

Start Plant Simulation.Create a new model, insert the OPC Interface into the Frame and double click the OPC Interface.

Click the Browse button in the dialog window of the OPC Interface andselect OPC.SimaticNET.1 as OPC server.

Click the button Items to open the item definition table.

Define a group named Test with an update interval of 10 msec and writeinterval of 0 msec each.

With this settings the OPC Client requests every10msec the values from OPC Server.The modified values will be send at once to OPCServer.

© Siemens AG 2015

2015-06-03Page 38 Siemens PLM Software

Setting the OPC Interface Up

Double-click the group name Test to open the itemdefinition table.

Enter the connection string we found in the OPC ScoutS7:[S7_connection_1]and the value we want to see or modify.

For M2.0 we enter the Changed-Value Control namedSR_Exit which will be activated as soon as the valueM2.0 changes.

Page 20: Virtual Commissioning using Tecnomatix Plant Simulation...We need the following software packages to be installed: • Totally Integrated Automation Portal Version 13 SP1 Update 3

Tecnomatix Plant Simulation Worldwide User Conference 2015

Siemens Industry Software

© Siemens AG 2015

2015-06-03Page 39 Siemens PLM Software

The Plant Simulation Model

The simulation model contains the objects OPC Interface, threeMethods and a Variable called M2_0 of data type Boolean.Insert a Source object, and enter a creation interval of 20 seconds.Add a conveyor with a length of 15 m, define a sensor at 5 m calling thecontrol SR_set, and a sensor at 10 m calling the control SR_Reset.

SR_set defines TRUE at the set entrance of the SR FlipFlop andremoves the value after on second.

© Siemens AG 2015

2015-06-03Page 40 Siemens PLM Software

Guido GrossSiemens Industry SoftwareWeissacher Str. 11

70499 Stuttgart, Germany

Tecnomatix Plant Simulation

Contact