首页 4_WinCC flexible 2008 - Basics_Communication_EN

4_WinCC flexible 2008 - Basics_Communication_EN

举报
开通vip

4_WinCC flexible 2008 - Basics_Communication_EN 1 WinCC flexible 2008 - Communication Exercise - Integration Step7 Integration Exercise Tags Communication 2 The Communication between HMI device and controller in WinCC flexible is done with tags and area pointers. Communication with tags There are exte...

4_WinCC flexible 2008 - Basics_Communication_EN
1 WinCC flexible 2008 - Communication Exercise - Integration Step7 Integration Exercise Tags Communication 2 The Communication between HMI device and controller in WinCC flexible is done with tags and area pointers. Communication with tags There are external and internal tags. For communication with a controller external tags are needed. An external tag maps a defined memory area in the controller. Controller and HMI device have read and write access to this memory area. Read and write actions can be cyclic or event triggered. Communication with area pointers Area pointers are used to exchange data between controller and HMI through predefined data areas. With the interpretation of the values controller and HMI device can perform predefined actions. During communication controller and HMI device can write to this data area alternately. Communication between WinCC flexible and automation system Communication in industrial automation means the exchange of information through tags and area pointers. To receive data the HMI device sends request frames to the controller through a communication driver. The automation system answers the request. Communication driver A communication driver is a software component that establishes the connection between automation system and HMI device. This allows the HMI system to communicate with the controller through tags. WinCC flexible provides different communication drivers for the connection of different automation systems. Depending on the used communication partners the inteface and connection speed can be selected. © Siemens AG 2008 - Änderungen vorbehalten Industry Sector 30.06.2008 Rainer Uhl Seite 2/42 WinCC flexible 2008 - Communication Exercise - Integration Step7 Integration Exercise Tags ƒ Cycles ƒ Area pointers ƒ Connections ƒ Basics Communication Communication ƒ In the communication settings you define all settings regarding connections, tags and update cycles ƒ Create Internal / external tags ƒ Setup connections to controllers ƒ Area pointers ƒ Setting update cycles 3 For the communication with a controller a connection is needed. After setting a connection the communication with external tags is available. Through area pointers the exchange of special data is possible. Depending on the HMI device WinCC flexible offers different communication drivers: ƒ Allen Bradley DF1, Allen Bradley DH485 ƒ Allen Bradley E/IP C.Logix ƒ GE Fanuc SNP ƒ LG GLOFA-GM ƒMitsubishi FX, Mitsubishi Protocol 4 ƒModicon MODBUS ƒ Omron Hostlink / Multilink ƒ OPC ƒ SIMATIC S5 AS511, SIMATIC S5 DP ƒ SIMATIC S7 200, SIMATIC S7 300/400 ƒ SIMATIC 500/505 seriell, SIMATIC 500/505 DP ƒ SIMOTION ƒ SIMATIC HMI HTTP Protocol Protocols: ƒMPI/Profibus DP ƒ TCP/IPÆ Ethernet/PROFINET I/O Î kein ISO ƒ PPI (only S7-200) © Siemens AG 2008 - Änderungen vorbehalten Industry Sector 30.06.2008 Rainer Uhl Seite 3/42 WinCC flexible 2008 - Communication Exercise - Integration Step7 Integration Exercise Tags ƒ Cycles ƒ Area pointers ƒ Connections ƒ Basics Communication Connections ƒ Setting connections ƒ Selecting the communication driver ƒ Setting the connection parameters 4 Each area pointer has a determined length. WinCC flexible offers the following area pointers: ƒJob mailbox ƒProject ID ƒScreen number ƒData mailbox ƒDate/time ƒDate/time PLC ƒCoordination Hint The available area pointers depend on the selected HMI device. © Siemens AG 2008 - Änderungen vorbehalten Industry Sector 30.06.2008 Rainer Uhl Seite 4/42 WinCC flexible 2008 - Communication Exercise - Integration Step7 Integration Exercise Tags ƒ Cycles ƒ Area pointers ƒ Connections ƒ Basics Communication Area Pointers ƒ With area pointers controller and HMI device can initiate predefined actions by setting special values into the memory areas ƒ Area pointers are set up in the editor Connections -> Area pointer 5 Project ID When starting the HMI device it is checked if the HMI device is connected to the correct PLC. This is important if there are several HMI devices used. The HMI device compares a defined value with a stored value in the PLC. If the values match, the HMI device connects to the PLC. Useable values are from 1 to 255. The value for the HMI device is set under Device settings. The address of the stored value in the PLC is set under Connections -> Area pointer -> Project ID Screen number The HMI device saves the number of the actual screen to the defined address of the area pointer in the PLC. Date/ time This area pointer has a length of 6 words. The HMI device writes its actual date and time values to this memory area. © Siemens AG 2008 - Änderungen vorbehalten Industry Sector 30.06.2008 Rainer Uhl Seite 5/42 WinCC flexible 2008 - Communication Exercise - Integration Step7 Integration Exercise Tags ƒ Cycles ƒ Area pointers ƒ Connections ƒ Basics Communication Area Pointers ƒ Project ID ƒ Checks the connection with the right PLC ƒ Screen number ƒ The PLC knows which screen is currently opened at the HMI device ƒ Date/ time ƒ Transfer of date and time from the HMI device to the PLC 6 Date/ time PLC The PLC transfers the date and time to the HMI device. This area pointer is often used when the PLC is the master for the time synchronization The HMI device reads cyclic the values and synchronizes itself. Coordination ƒRecognition of HMI device startup ƒRecognition of actual mode ƒRecognition if HMI device is ready for communication Job mailbox With the Job mailbox the PLC can trigger different events on the HMI device. These are for example: ƒ Change screen ƒ Set date and time The job mailbox area pointer has a length of 4 data words. Each Job has a determined Job number and up to three parameters. To trigger a job, first of all the parameters of a job have to be defined. The values have to be written to the defined memory areas. After setting the parameters the job number has to be set. As soon as the the value in the job number data word changes the HMI device starts the action. After finishing the job the HMI device resets the value for the job number to 0. © Siemens AG 2008 - Änderungen vorbehalten Industry Sector 30.06.2008 Rainer Uhl Seite 6/42 WinCC flexible 2008 - Communication Exercise - Integration Step7 Integration Exercise Tags ƒ Cycles ƒ Area pointers ƒ Connections ƒ Basics Communication Area Pointers ƒ Date / time PLC ƒ Transfer of date and time from the PLC to the HMI device ƒ Coordination ƒ Startup recognition of the device by the PLC ƒ Recognition of mode ƒ Job mailbox ƒ PLC can trigger events on the HMI Example Screen change: Job number 51 -> Screen change Parameter 1 -> Screen number Parameter 2 -> 0 Parameter 3 -> Field number 7 Cycles are used to control periodic actions in Runtime. WinCC flexible has several predefined cycles but also offers the user to define his own cycles. There are different types of cycles. Principle Cycles control periodic actions in runtime like acquisition cycle for tags or logging. Acquisition cycle The acquisition cycle determines how often an external tag is updated from the PLC. Logging cycle The logging cycle defines how often a tag is written to a data log. © Siemens AG 2008 - Änderungen vorbehalten Industry Sector 30.06.2008 Rainer Uhl Seite 7/42 WinCC flexible 2008 - Communication Exercise - Integration Step7 Integration Exercise Tags ƒ Cycles ƒ Area pointers ƒ Connections ƒ Basics Communication Cycles ƒ Definition of own cycles 8 WinCC flexible 2008 - Communication Exercise - Integration Step7 Integration Exercise Tags Communication 9 Creating a tag For creating a tag just open the tag editor and click on an empty row in the editor. Additionally you can use the context menu. Properties All Properties of a tag can either be set in the properties window or in the different columns of the tag table. Data types Any configuration offers the basic data types. Depending on the connected controller there are some special data types: CHAR 8 Bit BYTE 8 Bit INT 16 Bit WORD 16 Bit DINT 32 Bit DWORD 32 Bit REAL 32 Bit BOOL 1 Bit STRING S7-String: 16 Bit Header + ASCII-signs STRINGCHAR ASCII-sign TIMER Times (S5#Time) COUNTER Counters DATE only S7-300/400 TIME only S7-300/400 DATE_AND_TIME only S7-300/400 TIME_OF_DAY only S7-300/400 © Siemens AG 2008 - Änderungen vorbehalten Industry Sector 30.06.2008 Rainer Uhl Seite 9/42 WinCC flexible 2008 - Communication Exercise - Integration Step7 Integration Exercise ƒ Display of Tags ƒ Multiplexing ƒ Arrays ƒ Basics Tags Communication Tags ƒ Creating new tags ƒ Setting the connection ( internal, external) ƒ Data type, Address, Acquisition mode, - cycle ƒ Array count 10 ƒConfigure limits ƒConfigure scaling ƒStart value and Update ID ƒMultiplexing ƒLogging ƒComment ƒConfiguring events Ÿ Change value Ÿ High limit Ÿ Low limit © Siemens AG 2008 - Änderungen vorbehalten Industry Sector 30.06.2008 Rainer Uhl Seite 10/42 WinCC flexible 2008 - Communication Exercise - Integration Step7 Integration Exercise ƒ Display of Tags ƒ Multiplexing ƒ Arrays ƒ Basics Tags Communication Tags Define the address Set the tag limits Limits can be constant values or dependant of another tag 11 Creating objects Creating multiple objects is very easy in all table editors of WinCC flexible. Just select one object and drag down at the lower right corner of the selection. Configuring objects Not only new objects can be created in this way, but also the properties of already existing objects can be changed like this. Select the column of a property of an object and simply drag down the property through the objects that should obtain the same property. © Siemens AG 2008 - Änderungen vorbehalten Industry Sector 30.06.2008 Rainer Uhl Seite 11/42 WinCC flexible 2008 - Communication Exercise - Integration Step7 Integration Exercise ƒ Display of Tags ƒ Multiplexing ƒ Arrays ƒ Basics Tags Communication Tags ƒ Cloning tags Dragging down at the lower right corner Names are automatically incremented Addresses are automatically incremented 12 Editor Tags For creating and editing tags use the tag editor. Properties of tags can be configured in the properties window or in the table view. Multiselection With selection of multiple tags you have the possibility to change the properties of the selected tags. So you do not need to change the property of every single tag, but select multiple tags and change the common properties. Transfer of properties Automatic transfer of properties by dragging a special property like seen in the screenshot above. © Siemens AG 2008 - Änderungen vorbehalten Industry Sector 30.06.2008 Rainer Uhl Seite 12/42 WinCC flexible 2008 - Communication Exercise - Integration Step7 Integration Exercise ƒ Display of Tags ƒ Multiplexing ƒ Arrays ƒ Basics Tags Communication Tags ƒ Cloning properties Drag down the lower right corner All tags get the same data type 13 Creating an array To create an array simply define the number of array elements in the property array count. Hint On each read – or write access on an array element always all elements of the array are transmitted. So it is not possible to read one element and write to the other at the same time. © Siemens AG 2008 - Änderungen vorbehalten Industry Sector 30.06.2008 Rainer Uhl Seite 13/42 WinCC flexible 2008 - Communication Exercise - Integration Step7 Integration Exercise ƒ Display of Tags ƒ Multiplexing ƒ Arrays ƒ Basics Tags Communication Tags - Arrays ƒ Configuring an array tag by defining the array count of a tag Enter the number of array elements 14 © Siemens AG 2008 - Änderungen vorbehalten Industry Sector 30.06.2008 Rainer Uhl Seite 14/42 WinCC flexible 2008 - Communication Exercise - Integration Step7 Integration Exercise ƒ Display of Tags ƒ Multiplexing ƒ Arrays ƒ Basics Tags Communication Tags - Arrays ƒ Using Array - tags Select a single array element 15 With the indirect addressing the used tag is determined at runtime. It is no single tag but a list of tag. The list of tags consists of: ƒa Multiplex – tag, that acts as a placeholder ƒAn index tag for controlling the tag access ƒAnd a tag list, that contains all tags Configuring In the properties of a tag you define if it should be a multiplex tag. Each multiplex tag needs an index tag. This tag is used to switch the value of the multiplex tag. The tag list contains either normal tags or an array tag. Functionality in Runtime The index tag acts like a pointer. When the value of the tag is changed it points to the next tag in the tag list. So you could say that the multiplex tag is a placeholder and shows the values of the tags that are selected by the index tag. Hint The data types of the tags in the tag list must be the same. © Siemens AG 2008 - Änderungen vorbehalten Industry Sector 30.06.2008 Rainer Uhl Seite 15/42 WinCC flexible 2008 - Communication Exercise - Integration Step7 Integration Exercise ƒ Display of Tags ƒ Multiplexing ƒ Arrays ƒ Basics Tags Communication Tags - Multiplex ƒ Indirect addressing ƒ Used tag is determined during runtime 16 © Siemens AG 2008 - Änderungen vorbehalten Industry Sector 30.06.2008 Rainer Uhl Seite 16/42 WinCC flexible 2008 - Communication Exercise - Integration Step7 Integration Exercise ƒ Display of Tags ƒ Multiplexing ƒ Arrays ƒ Basics Tags Communication Tags – Displaying tag values IO-Field Embed tag value in a button or a static text 1. Click here 2. Select the tag 17 WinCC flexible 2008 - Communication Exercise - Integration Step7 Integration Exercise Tags Communication 18 © Siemens AG 2008 - Änderungen vorbehalten Industry Sector 30.06.2008 Rainer Uhl Seite 18/42 WinCC flexible 2008 - Communication Exercise - Integration Step7 Integration ƒ Tags Exercise Tags Communication Tags ƒ Configure a new screen called „Tags“ ƒ First create some new tags in the tag editor ƒ You need a tag from data type „String“ and one with data type „Int“ ƒ Additionally you need a Multiplextag ƒ For the multiplextag you need an index tag (datatype „Int“) and a few other tags with the same data type (e.g. 4 tags with data type „Int“) 19 © Siemens AG 2008 - Änderungen vorbehalten Industry Sector 30.06.2008 Rainer Uhl Seite 19/42 WinCC flexible 2008 - Communication Exercise - Integration Step7 Integration ƒ Tags Exercise Tags Communication Tags ƒ The index tag should have Limits, if you use 4 tags for the multiplex tag, limits should be from 0 to 3 20 © Siemens AG 2008 - Änderungen vorbehalten Industry Sector 30.06.2008 Rainer Uhl Seite 20/42 WinCC flexible 2008 - Communication Exercise - Integration Step7 Integration ƒ Tags Exercise Tags Communication Tags ƒ Open the screen „Tags“ and configure like you see in the screenshot ƒ Connect the corresponding tags to the io fields ƒ The bar object should be connected to the multiplex tag ƒ Test the project in runtime 21 WinCC flexible 2008 - Communication Exercise - Integration Step7 Integration Exercise Tags Communication 22 Introduction When you are working with WinCC flexible integrated in STEP 7, you can use the SIMATIC Manager for your WinCC flexible projects. In STEP 7 projects, the SIMATIC Manager is the central point for managing your projects, including your WinCC flexible projects. The SIMATIC Manager enables you to access the configuration of your automation systems and the configuration of the operator control and monitoring layer. Working with the SIMATIC Manager In integrated projects, the SIMATIC Manager provides the following options: ƒCreate an HMI or PC station with WinCC flexible Runtime ƒ Insert WinCC flexible objects ƒCreate WinCC flexible folders ƒOpen WinCC flexible projects ƒCompile and transfer WinCC flexible projects ƒExport and import texts for translation ƒSpecify language settings ƒCopy or move WinCC flexible projects ƒArchive and retrieve WinCC flexible projects within the framework of STEP 7 projects © Siemens AG 2008 - Änderungen vorbehalten Industry Sector 30.06.2008 Rainer Uhl Seite 22/42 WinCC flexible 2008 - Communication Exercise - Integration ƒ Reintegrate ƒ Synchronization ƒ Reconnect Tags ƒ Create Tags ƒ Configure connection ƒ Insert station Step7 Integration Exercise Tags Communication Step7 Integration – Create WinCC flexible project ƒ Insert SIMATIC HMI Station into Step7 project 23 Note Creating an HMI station in the SIMATIC Manager basically creates a new WinCC flexible project. © Siemens AG 2008 - Änderungen vorbehalten Industry Sector 30.06.2008 Rainer Uhl Seite 23/42 WinCC flexible 2008 - Communication Exercise - Integration ƒ Reintegrate ƒ Synchronization ƒ Reconnect Tags ƒ Create Tags ƒ Configure connection ƒ Insert station Step7 Integration Exercise Tags Communication Step7 Integration - Create WinCC flexible project ƒ Select the device type ƒ Click „OK“ to insert the selected device into Step7 project 24 Alternative procedure Select a WinCC flexible object, such as a WinCC flexible screen, in the SIMATIC Manager. Do this by opening a branch node of the WinCC flexible project in the project window of the SIMATIC Manager and selecting the "Screens" element. The existing WinCC flexible screens will be displayed in the work area. Use the mouse to select a WinCC flexible screen and open the shortcut menu. Select the "Open Object" command. The screen you selected will open for editing in WinCC flexible. Create a new WinCC flexible object, such as a WinCC flexible screen, in the SIMATIC Manager. The screen will also be opened for editing in WinCC flexible. © Siemens AG 2008 - Änderungen vorbehalten Industry Sector 30.06.2008 Rainer Uhl Seite 24/42 WinCC flexible 2008 - Communication Exercise - Integration ƒ Reintegrate ƒ Synchronization ƒ Reconnect Tags ƒ Create Tags ƒ Configure connection ƒ Insert station Step7 Integration Exercise Tags Communication Step7 Integration - Create WinCC flexible project ƒ After adding the HMI Station you can see it in the project tree ƒ Open the WinCC flexible project by selecting „Open Object“ in the context menu 25 Configure a connection with NetPro The NetPro editor is provided in the SIMATIC Manager for you to configure communication settings. With NetPro, you plan and configure all supported network types on one graphical interface. Connection parameters configured with NetPro are automatically incorporated in an integrated WinCC flexible project. Connections which you configure with NetPro can only be read in WinCC flexible. In WinCC flexible you can only rename the connection, enter a comment for the connection and set the connection "Online". Editing of the connection itself is carried out exclusively with NetPro. © Siemens AG 2008 - Änderungen vorbehalten Industry Sector 30.06.2008 Rainer Uhl Seite 25/42 WinCC flexible 2008 - Communication Exercise - Integration ƒ Reintegrate ƒ Synchronization ƒ Reconnect Tags ƒ Create Tags ƒ Configure connection ƒ Insert station Step7 Integration Exercise Tags Communication Step7 Integration – Configure connection ƒ Open NetPro and configure the connection by Drag&Drop ƒ Select the interface and drag to the subnet 26 © Siemens AG 2008 - Änderungen vorbehalten Industry Sector 30.06.2008 Rainer Uhl Seite 26/42 WinCC flexible 2008 - Communication Exercise - Integration ƒ Reintegrate ƒ Synchronization ƒ Reconnect Tags ƒ Create Tags ƒ Configure connection ƒ Insert station Step7 Integration Exercise Tags Communication Step7 Integration - Configure connection ƒ Select the WinCC flexible RT ƒ Insert a new S7 connection and select the communication partner 27 © Siemens AG 2008 - Änderungen vorbehalten Industry Sector 30.06.2008 Rainer Uhl Seite 27/42 WinCC flexible 2008 - Communication Exercise - Integration ƒ Reintegrate ƒ Synchronization
本文档为【4_WinCC flexible 2008 - Basics_Communication_EN】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
下载需要: 免费 已有0 人下载
最新资料
资料动态
专题动态
is_197060
暂无简介~
格式:pdf
大小:678KB
软件:PDF阅读器
页数:0
分类:互联网
上传时间:2013-06-09
浏览量:14