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,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。