Professional Documents
Culture Documents
https://support.industry.siemens.com/cs/ww/en/view/66839614
Table of contents
Note The Application Examples are not binding and do not claim to be complete
regarding the circuits shown, equipping and any eventuality. The Application
Examples do not represent customer-specific solutions. They are only intended
to provide support for typical applications. You are responsible for ensuring that
the described products are used correctly. These Application Examples do not
relieve you of the responsibility to use safe practices in application, installation,
operation and maintenance. When using these Application Examples, you
recognize that we cannot be made liable for any damage/claims beyond the
liability clause described. We reserve the right to make changes to these
Application Examples at any time without prior notice.
If there are any deviations between the recommendations provided in these
Application Examples and other Siemens publications – e.g. Catalogs – the
contents of the other documents have priority.
We do not accept any liability for the information contained in this document.
Any claims against us – based on whatever legal reason – resulting from the use of
the examples, information, programs, engineering and performance data etc.,
described in this Application Example shall be excluded. Such an exclusion shall
not apply in the case of mandatory liability, e.g. under the German Product Liability
Act (“Produkthaftungsgesetz”), in case of intent, gross negligence, or injury of life,
body or health, guarantee for the quality of a product, fraudulent concealment of a
Siemens AG 2016 All rights reserved
Security Siemens provides products and solutions with industrial security functions that
informa- support the secure operation of plants, systems, machines and networks.
tion In order to protect plants, systems, machines and networks against cyber
threats, it is necessary to implement – and continuously maintain – a holistic,
state-of-the-art industrial security concept. Siemens’ products and solutions only
form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems,
machines and networks. Systems, machines and components should only be
connected to the enterprise network or the internet if and to the extent necessary
and with appropriate security measures (e.g. use of firewalls and network
segmentation) in place.
Additionally, Siemens’ guidance on appropriate security measures should be
taken into account. For more information about industrial security, please visit
http://www.siemens.com/industrialsecurity.
Siemens’ products and solutions undergo continuous development to make them
more secure. Siemens strongly recommends to apply product updates as soon
as available and to always use the latest product versions. Use of product
versions that are no longer supported, and failure to apply latest updates may
increase customer’s exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial
Security RSS Feed under http://www.siemens.com/industrialsecurity.
Table of contents
Warranty and liability ................................................................................................... 2
1 Task ..................................................................................................................... 5
2 Solution............................................................................................................... 7
2.1 Overview of the overall solution ........................................................... 8
2.2 Hardware and software components ................................................... 9
2.2.1 Validity .................................................................................................. 9
2.2.2 Components used ................................................................................ 9
3 Basics ............................................................................................................... 10
3.1 Library objects .................................................................................... 10
3.2 Faceplates .......................................................................................... 11
4 Mode of Operation ........................................................................................... 12
4.1 Faceplate icon .................................................................................... 12
4.2 Interfaces of the faceplate icon .......................................................... 15
4.3 Screen window ................................................................................... 17
4.4 Components of the screen window .................................................... 19
4.4.1 Faceplate “Analog_1_Overview” ........................................................ 21
4.4.2 Faceplate “Analog_2_Messages” ...................................................... 21
4.4.3 Faceplate “Analog_3_Graphs” ........................................................... 22
4.4.4 Faceplate “Analog_4_Limits”.............................................................. 23
Faceplate “Analog_5_Service” ........................................................... 24
Siemens AG 2016 All rights reserved
4.4.5
4.5 Interfaces of the screen window ......................................................... 25
4.6 Tags of the UDT ................................................................................. 26
4.6.1 Process............................................................................................... 26
4.6.2 Process_Limits ................................................................................... 28
4.6.3 Process_Values ................................................................................. 31
4.6.4 Static properties of the screen window .............................................. 31
4.7 Alarms and messages ........................................................................ 32
4.8 Control and status signals .................................................................. 34
4.8.1 Processing of switching commands in the controller ......................... 34
4.8.2 Evaluating process states and displaying them in
WinCC Advanced ............................................................................... 35
4.8.3 Defining the range of values .............................................................. 38
4.8.4 Limit monitoring .................................................................................. 39
4.8.5 Enabling/disabling the simulation ....................................................... 41
4.8.6 Resetting errors .................................................................................. 43
5 Commissioning the Application ..................................................................... 45
5.1 Configuring the STEP 7 block ............................................................ 46
5.2 Configuring the WinCC Advanced faceplates .................................... 47
5.2.1 Opening the global library .................................................................. 47
5.2.2 Integrating the library elements into the project ................................. 48
6 Operating the Application ............................................................................... 55
6.1 Navigation .......................................................................................... 56
6.2 Faceplate icon .................................................................................... 59
6.3 Screen window ................................................................................... 60
6.3.1 Menu system und “Close” button ....................................................... 60
6.3.2 Faceplate “Analog_1_Overview” ........................................................ 60
6.3.3 Faceplate “Analog_2_Messages” ...................................................... 62
6.3.4 Faceplate “Analog_3_Graphs” ........................................................... 63
6.3.5 Faceplate “Analog_4_Limits”.............................................................. 64
6.3.6 Faceplate “Analog_5_Service” ........................................................... 65
1 Task
Introduction
The example blocks for SIMATIC STEP 7 (TIA Portal) and SIMATIC WinCC
1
Advanced/Comfort (TIA Portal) enable the user to utilize various automation
functions or use these blocks as templates for the configuration of individual
blocks.
The example configuration shows how the technology blocks are called and
interconnected in STEP 7 and WinCC Advanced.
The advantages of using faceplates in WinCC will be illustrated:
Making changes from a central location
– When changes are made to one faceplate, all other locations where this
faceplate is used can be updated automatically.
Re-usability in other projects
– Filing the screen objects for WinCC Advanced in a global library enables
using them further in another project without problems.
Reducing the configuration effort
– Frequently used automation components can be integrated quickly into a
configuration.
– The faceplates for WinCC Advanced are completely interface-compatible
Siemens AG 2016 All rights reserved
1
In the following referred to as “STEP 7” and “WinCC Advanced” for short.
The following errors are evaluated, displayed and saved in Alarm Logging:
Limit violation: Exceeding the upper limit
Limit violation: Falling below the lower limit
External error
Interlock
2 Solution
The application describes the configuration of the example technology block
“ANALOG” (FB 640) for the controller family S7-1200/S7-1500 and the respective
screen objects for WinCC Advanced.
These are intended for visualizing an analog value and its limits.
Note A copy of the technology blocks for the controller is already contained in the
example project and connected to the faceplates. The control blocks of the
example project, however, are not maintained and possibly do not represent
the current state of development.
The latest version of the technology blocks for the controller is available in
the separate project library
“66839614_STEP7_Example_Blocks_V13_SP1.zip” on the website of this
application.
Siemens AG 2016 All rights reserved
Table 2-1
Block Faceplate icon and screen window
Faceplate icon
Screen window
Siemens AG 2016 All rights reserved
Hardware components
Table 2-2
Component No. Order number Note
S7-1200 CPU 1 6ES721.-1….-0XB0 Alternatively, the controller can
also be simulated with PLCSIM
(as of TIA V13 SP1).
S7-1500 CPU 1 6ES751.-…01-0AB0 Alternatively, the controller can
Siemens AG 2016 All rights reserved
Table 2-4
Component Note
66839614_WCA_Faceplates_Demo_V13_SP1.zip The zip file contains the example
project (STEP 7 and WinCC
Advanced) for the application.
66839614_WCA_Documents_V13_SP1_de.zip The zip file contains the
documentation for all example
blocks of the application.
66839614_WCA_Faceplates_Library_V13_SP1.zip The zip file contains a library with
the WinCC blocks of the application.
66839614_ STEP7_Example_Blocks_V13_SP1.zip The zip file contains a library with
the STEP 7 blocks.
3 Basics
Introduction
Understanding this application requires knowledge of the following procedures:
Managing library objects,
Using faceplates and screen windows,
Differences between faceplates and screen windows.
The copies of these master copies in the project have no correlation with each
other after copying.
If a master copy is processed in the library, these changes do not affect the
copies. The individual copies and their changes in the project are independent
of each other.
Note “Project library” as well as “Global library” both contain the two folders
“Master copies” and “Types”.
For changing the library types, the TIA Portal offers a sophisticated
management for managing several versions of a type and a specific release
of this version regarding the instances.
The usage of types is restricted to the following objects:
– Faceplates
– Screens
– Scripts
– UDTs
– Style sheets
Using master copies is principally possible for all objects with the exception
of faceplates.
You can copy the library objects between a global library and a project
library. The following applies here:
– You only copy the master copies to the “Master copies” folder or any
subfolder of “Master copies”.
– You can only insert types in the “Types” folder or any subfolder of “Types”.
– As soon as you add a library object from a global library into a screen, this
object will also be stored in the project library.
3.2 Faceplates
Faceplates consist of a configured group of display and control objects which you
can manage and modify centrally in a library.
Usage
Faceplates are used to create individually configured display and control
objects.
A faceplate is used several times in the project or in several projects, as
required.
The faceplates are stored in the library as types.
A faceplate type can be edited in the “Faceplates” editor.
All instances of a faceplate in the project are changed centrally. This reduces
the configuration effort.
A faceplate supports faceplate-internal VB scripts.
A faceplate is provided with a defined interface for the integration into a project
(e. g. tag connection).
The faceplate type is stored in the project library. When using the faceplate
type in a screen, you create an instance of the faceplate type.
In the faceplate type you specify the properties that can be changed at the
faceplate. When changing a property of a faceplate type, the property is stored
centrally and changed in all other instances as well.
The instances represent local locations where the types are used and are
bound to the respective faceplate type.
When configuring the properties at the faceplate instance, you overwrite the
properties of the faceplate type:
– For example, you assign the tag of your project to the faceplate.
– The changes at the faceplate are stored in the location of usage and have
no effects on the faceplate type.
Note Please note that a faceplate is always configured for a certain class of
operator panels. You cannot, for example, use a faceplate type configured
for “RT Advanced” in a screen of the “RT Professional” operator panel.
The number of instances of faceplates in a screen is not limited. Please note
that the performance when opening or updating a screen is affected by the
number of faceplate instances or the usage of scripts in the faceplate
instances.
4 Mode of Operation
Introduction
Here you will learn how faceplate and screen window interact, which functions they
have and how their connection with the controller is established.
Note The following chapter gives you a detailed insight into the blocks of this
application.
If you are only interested in operating the application example, you can directly
jump to the chapter “Operating the Application”.
Note The screen shows the faceplate in the configuration environment. The display
during runtime (RT) is described in the chapter “Operating the Application”.
Features
The faceplate icon has the following properties:
Simplified status display
Opens the respective screen window via mouse-click
Contains no language-dependent objects
Has a defined interface
Parameters
Table 4-1
No. Path Usage
1. Properties > Miscellaneous > Name Analog_001_Icon
2. Interface > State Analog_001_UDT.QdwState
3. Interface > Unit Analog_Unit
4. Interface > Value Analog_001_UDT.QOUT
Explanation
Table 4-2
No. Explanation
1. The name “Analog_001_Icon” has been selected randomly.
However, it is important that it is only assigned once in a screen.
2. As shown in the screen, the interface of the faceplate has the properties “State”,
“Unit” and “Value” for displaying the analog values and all other objects.
of the faceplate instance and is used for displaying the unit of the values.
The “ScaledInput” tag of the controller is connected at the “Value” property
of the faceplate instance and is used for displaying the analog value.
3. Note
Please note that the process tag is an element of the UDT used, in this case
“Analog_001_UDT”, and hence, the tag name has the according prefix:
4. The tags connected at the properties in “Animations > Tag connections” are
references to the respective properties of the interface.
The tags can be connected and modified in either location; the entries mutually
affect each other.
No. Explanation
5. In order to make the screen window visible by clicking on the faceplate icon, for
the “Analog_001_Button” button, the “ShowPopupScreen” event must be
configured in “Events > Release” for the “Analog_001_Pop-up” pop-up screen.
Set the “Visibility” tag to “1” to display the “Analog_1_Overview” faceplate after
opening the screen window as start screen.
Siemens AG 2016 All rights reserved
Figure 4-2
Process
Siemens AG 2016 All rights reserved
The tags of this group have a process connection and constitute the basic interface
between controller and operating panel.
State
The “State” property is used to display the different states in the WinCC Advanced
process display.
Table 4-3
Tag used
Symbolic name Analog_001_UDT.QdwState
Data type DWord
Access type %DB640.DBD308
Length 4 bytes
Acquisition cycle 100 ms
Acquisition mode Cyclic in operation
LIM_ULW_Enable
LIM_LLW_Enable
LIM_ULA_Enable
LIM_LLA_Enable
LIM_HYS_Set
QERR_WIRE
QERR_EXT
IN_MODE
QALARM
QWARN
QLOCK
Signal
QERR
LOCK
Wert QSIM
The “Value” property is used to acquire the analog value at the block output.
Table 4-5
Tag used
Symbolic name Analog_001_UDT.QOUT
Siemens AG 2016 All rights reserved
Unit
The “Unit” property is used to display the unit of the analog value. The tag can be
provided with a process connection. In the example project, it is connected to an
internal HMI tag.
Table 4-6
Tag used
Name Analog_Unit
Data type String
Access type Internal tag
Length 10
Note For better understanding, the screen window is initially described in the
configuration environment.
The following screens for describing the components then refer to the display
during runtime (RT), unless stated otherwise.
The individual screens successively build on one another and therefore only
show parts of the screen window instead of the usual display during runtime
(RT).
Figure 4-3
Siemens AG 2016 All rights reserved
Features
The screen window has the following properties:
Comprehensive status display
Parameterization is possible for service technician
Contains language-dependent objects: German (Germany), English (USA)
Permanent tag prefix for addressing a tag structure (UDT)
Screen window cannot be moved
Events
The screen window is equipped with the following events called up while the
screen builds up:
Table 4-7
No. Function, tag Usage
1. SetTag X1Pos Position of the toolbar at the tab
2. SetTag Visibility Indicator for selecting a tab
Explanation
Table 4-8
No. Explanation
1. The INT tag “X1Pos” refers to the X position of the selection bar above the
currently called tab:
X1Pos = { 3, 104, 205, 306, 407}
2. The identifier of the currently activated tab is stored in the INT tag “Visibility”:
Visibility = {1, 2, 3, 4, 5 }
Siemens AG 2016 All rights reserved
No. Explanation
3. Click on the “X” to close the screen window. The screen shows the system
function stored.
Siemens AG 2016 All rights reserved
“Close” button
The button for closing the screen window is positioned in the top right corner
of the screen window.
Menu system
The menu system consists of several tabs which can be called via the different
faceplates.
Figure 4-4
Table 4-9
No. Tab Faceplate Function
1. Overview Analog_1_Overview Overview of the current analog value, the
limits set and the status and error displays
2. Messages Analog _2_Messages Display of messages (warnings and errors)
3. Graphs Analog _3_Graphs Graph display for graphic visualization of the
limits and of the analog value
4. Limits Analog _4_Limits Limit settings
5. Service Analog _5_Service Settings for process input, hysteresis and
simulation mode
The “Visibility” property is used for influencing the display properties of the screen
window during runtime.
It influences the selection of the individual tabs. The value of the “Visibility” tag
corresponds to the number of the faceplate.
The process connection is optional.
Siemens AG 2016 All rights reserved
Note The “Visibility” tag is pre-assigned with the value “1” when clicking on the hidden
button “PID_001_Button” with the mouse. This results in the respective screen
window being displayed with tab 1.
Table 4-10
Tag used
Name Visibility
Data type Integer
Address Internal tag
Note The tag can also be defined as PLC tag with controller connection.
If the tag has a controller connection, read and write access is possible from the
controller. Thus, besides the known screen selection, the respective faceplate in
the screen window can also be opened from the controller and a specific tab can
be selected.
Figure 4-5
Siemens AG 2016 All rights reserved
Figure 4-6
Figure 4-7
Siemens AG 2016 All rights reserved
The “Analog_4_Limits” faceplate is used to set the limits for displaying the analog
value.
Figure 4-8
Siemens AG 2016 All rights reserved
Note Write access to the values of this tab is possible only in simulation mode.
The hysteresis can be entered either as an absolute value or as a percentage value.
For the respective settings, please go to the “Service” tab.
The “Analog_5_Service” faceplate is used to set the process input, the hysteresis
as well as the simulation mode. Moreover, the name of the corresponding instance
is displayed.
Figure 4-9
Siemens AG 2016 All rights reserved
Figure 4-10
1 2
Siemens AG 2016 All rights reserved
Note The name of the instance automatically defines the tag prefix of the individual
structure elements (e. g. “Analog_001_UDT”.
In the project, the tag prefix must precede each location of usage of the
structure elements, e. g. “Analog_001_UDT.QdwState”.
An exception is only the higher-level screen window to which the tag prefix is
permanently assigned. Elements (also further screen windows) within this
screen window therefore only use the respective structure name with
preceding dot and without preceding tag prefix, for example “QdwState”.
Subdivision
The individual structure tags can principally be divided into three categories:
Tags with function tasks
General tags for signal values, controller parameters and limit values
Tags with function tasks without controller connection
The HMI tags of this group have a process connection and constitute the basic
Siemens AG 2016 All rights reserved
Command
The “Command” property is used to transmit commands from WinCC Advanced to
the controller. The block in the controller analyzes the control command, executes
the desired action and then initiates a reset of the pending control command. For
this purpose, the value of the control tag is set to “0”.
Table 4-11
Tag used
Symbolic name Analog_001_UDT. OPdwCmd
Data type DWord
Access type %DB640.DBD358
Length 4 bytes
Acquisition cycle 100 ms
Acquisition mode Cyclic in operation
Al_Lower_Limit
Al_Upper_Limit
HYS_Absolute
SIMULATION
PeripheryVal
PROCESS
RealVal
RESET
Signal
State
The “State” property is used to display the different states in the WinCC Advanced
process display.
Table 4-13
Tag used
Symbolic name Analog_001_UDT.QdwState
Data type DWord
Siemens AG 2016 All rights reserved
LIM_ULW_Enable
LIM_LLW_Enable
LIM_ULA_Enable
LIM_LLA_Enable
LIM_HYS_Set
QERR_WIRE
QERR_EXT
IN_MODE
QALARM
QWARN
QLOCK
Signal
QERR
LOCK
QSIM
4.6.2 Process_Limits
The HMI tags in this group have a process connection and can be operated and
monitored in the “Overview” or “Limits” tab.
The “Graphs” tab clearly shows the relevant values as trends and lines. However,
the tags can only be monitored in this tab.
The tags are used to define the upper and lower limit of an analog value and to
define limits for message triggering.
HighLimit
The “HighLimit” property indicates the upper limit of the analog value.
Table 4-15
Tag used
Symbolic name Analog_001_UDT. OP_HI_LIM
Data type Real
Access type %DB640.DBD392
Length 4 bytes
Acquisition cycle 100 ms
Siemens AG 2016 All rights reserved
LowLimit
The “LowLimit” property indicates the lower limit of the analog value.
Table 4-16
Tag used
Symbolic name Analog_001_UDT.OP_LO_LIM
Data type Real
Access type %DB640.DBD396
Length 4 bytes
Acquisition cycle 100 ms
Acquisition mode Cyclic in operation
AlarmUpperLimit
The “AlarmUpperLimit” property indicates the upper limit of the analog value for
which an alarm is triggered. The deactivation of the alarm depends on the selected
hysteresis (limit minus hysteresis).
Table 4-17
Tag used
Symbolic name Analog_001_UDT.OP_LIM_ULA
Data type Real
Access type %DB640.DBD364
Length 4 bytes
Tag used
Acquisition cycle 100 ms
Acquisition mode Cyclic continuous
WarningUpperLimit
The “WarningUpperLimit” property indicates the upper limit of the analog value for
which a warning is triggered. The deactivation of the warning depends on the
selected hysteresis (limit minus hysteresis).
Table 4-18
Tag used
Symbolic name Analog_001_UDT.OP_LIM_ULW
Data type Real
Access type %DB640.DBD368
Length 4 bytes
Acquisition cycle 100 ms
Acquisition mode Cyclic continuous
WarningLowerLimit
Siemens AG 2016 All rights reserved
The “WarningLowerLimit” property indicates the lower limit of the analog value for
which a warning is triggered. The deactivation of the warning depends on the
selected hysteresis (limit plus hysteresis).
Table 4-19
Tag used
Symbolic name Analog_001_UDT.OP_LIM_LLW
Data type Real
Access type %DB640.DBD372
Length 4 bytes
Acquisition cycle 100 ms
Acquisition mode Cyclic continuous
AlarmLowerLimit
The “AlarmLowerLimit” property indicates the lower limit of the analog value for
which an alarm is triggered. The deactivation of the alarm depends on the selected
hysteresis (limit plus hysteresis).
Table 4-20
Tag used
Symbolic name Analog_001_UDT.OP_LIM_LLA
Data type Real
Access type %DB640.DBD376
Length 4 bytes
Acquisition cycle 100 ms
Acquisition mode Cyclic continuous
Hysteresis_Abs
The “Hysteresis_Abs” property indicates the hysteresis of the analog value.
Table 4-21
Tag used
Symbolic name Analog_001_UDT.OP_LIM_HYS_Abs
Data type Real
Access type %DB640.DBD388
Length 4 bytes
Acquisition cycle 100 ms
Acquisition mode Cyclic in operation
Hysteresis_Perc
The “Hysteresis_Abs” property indicates the hysteresis value (in percent) of the
analog value.
Table 4-22
Tag used
Siemens AG 2016 All rights reserved
Note Hysteresis
The hysteresis influences the deactivation of a warning or an alarm that was
triggered due to a limit violation.
Depending on the mode of the hysteresis, it can be specified either as an
absolute value or as a percentage value. Both values are converted and
displayed simultaneously.
The upper limit and the lower limit of the analog value are the basis for the
calculation.
4.6.3 Process_Values
The tags in this group have a process connection and can be operated and
monitored in the “Overview” tab.
The table below shows the significance of the analog value at the block output in
the event of an error or a limit violation:
Table 4-23
Error Analog value
General error The analog value corresponds to the lower limit.
Overrun (for integer format only) The analog value corresponds to the upper limit.
Exceeding the upper limit The analog value corresponds to the upper limit.
Falling below the lower limit The analog value corresponds to the lower limit.
Wire break (for integer format only) The analog value corresponds to the lower limit.
Value
The “Value” property is used to acquire the analog value at the block output.
Siemens AG 2016 All rights reserved
Table 4-24
Tag used
Symbolic name Analog_001_UDT.QOUT
Data type Real
Access type %DB640.DBD312
Length 4 bytes
Acquisition cycle 100 ms
Acquisition mode Cyclic continuous
SimValue
The “SimValue” property is used to influence the analog value at the block output
in simulation mode.
Table 4-25
Tag used
Symbolic name Analog_001_UDT.OP_SIM_Value
Data type Real
Access type %DB640.DBD380
Length 4 bytes
Acquisition cycle 100 ms
Acquisition mode Cyclic in operation
Static properties cannot be changed during runtime, this is why they never have a
process interface.
Process_Trends_Value
The properties of this group define the individual trends of the screen window.
Trends
The “Trends” property is a “SimpleCoreCollectionWrapper” and defines the graphs
of the “Graphs” tab. To edit the graphs, select the “Trends” property. The graph
editor is opened using the displayed “…” button.
Figure 4-11
Figure 4-12
Siemens AG 2016 All rights reserved
Message tag
Table 4-26
Tag used
Symbolic name Analog_001_UDT.QwAlarm
Data type Word
Access type %DB640.DBW354
Length 2 bytes
Acquisition cycle 100 ms
Acquisition mode Cyclic continuous
The following table shows the setup of the tags. The message texts are preceded
by the “Analog_001” filter attribute for the first instance of the analog screen
window.
2
Message includes the associated value of the limit that was up to date when the message was generated.
Figure 4-13
“Analogue” (FB 640)
EN ENO
LOCK QdwState
ERR_EXTERN QOUT
LIOP_SEL QHI_LIM
L_SIM QLO_LIM
L_RESET QLIM_ULA_Enable
IN_MODE QLIM_ULA
Siemens AG 2016 All rights reserved
BIPOLAR QLIM_ULW_Enable
IN_INT QLIM_ULW
IN QLIM_LLW_Enable
IN_SIM QLIM_LLW
HI_LIM QLIM_LLA_Enable
LO_LIM QLIM_LLA
LIM_ULA_Enable QLIM_HYS
LIM_ULA QALARM_UL
LIM_ULW_Enable QWARN_UL
LIM_ULW QWARN_LL
LIM_LLW_Enable QALARM_LL
LIM_LLW QSIM
LIM_LLA_Enable QLOCK
LIM_LLA QERR
LIM_HYS_Set QERR_EXT
LIM_HYS QERR_OVERRUN
INSTANCE QERR_HIGHRANG
RESTART QERR_LOWRANG
VISIBILITY QERR_WIRE
OPdwCmd QwAlarm
Al_Lower_Limit
Al_Upper_Limit
HYS_Absolute
SIMULATION
PeripheryVal
PROCESS
RealVal
RESET
Signal
The technology block of this application uses the output “QdwState” (DWORD) to
show the different states in the WinCC Advanced process display.
Further notes for the use in WinCC Advanced can be found under the “State”
property.
Siemens AG 2016 All rights reserved
Figure 4-14
“Analogue” (FB 640)
EN ENO
LOCK QdwState
ERR_EXTERN QOUT
LIOP_SEL QHI_LIM
L_SIM QLO_LIM
L_RESET QLIM_ULA_Enable
IN_MODE QLIM_ULA
BIPOLAR QLIM_ULW_Enable
IN_INT QLIM_ULW
IN QLIM_LLW_Enable
IN_SIM QLIM_LLW
HI_LIM QLIM_LLA_Enable
LO_LIM QLIM_LLA
LIM_ULA_Enable QLIM_HYS
LIM_ULA QALARM_UL
LIM_ULW_Enable QWARN_UL
LIM_ULW QWARN_LL
LIM_LLW_Enable QALARM_LL
LIM_LLW QSIM
LIM_LLA_Enable QLOCK
LIM_LLA QERR
LIM_HYS_Set QERR_EXT
LIM_HYS QERR_OVERRUN
INSTANCE QERR_HIGHRANG
RESTART QERR_LOWRANG
VISIBILITY QERR_WIRE
OPdwCmd QwAlarm
LIM_ULW_Enable
LIM_LLW_Enable
LIM_ULA_Enable
LIM_LLA_Enable
LIM_HYS_Set
QERR_WIRE
QERR_EXT
IN_MODE
QALARM
QWARN
QLOCK
Signal
QERR
LOCK
QSIM
Switching over inputs
To switch over the inputs, the following signals are used:
Figure 4-15
“Analogue” (FB 640)
EN QdwState
LOCK QOUT
ERR_EXTERN QHI_LIM
Siemens AG 2016 All rights reserved
LIOP_SEL QLO_LIM
L_SIM QLIM_ULA_Enable
L_RESET QLIM_ULA
IN_MODE QLIM_ULW_Enable
BIPOLAR QLIM_ULW
IN_INT QLIM_LLW_Enable
IN QLIM_LLW
IN_SIM QLIM_LLA_Enable
HI_LIM QLIM_LLA
LO_LIM QLIM_HYS
LIM_ULA_Enable QALARM_UL
LIM_ULA QWARN_UL
LIM_ULW_Enable QWARN_LL
LIM_ULW QALARM_LL
LIM_LLW_Enable QSIM
LIM_LLW QLOCK
LIM_LLA_Enable QERR
LIM_LLA QERR_EXT
LIM_HYS_Set QERR_OVERRUN
LIM_HYS QERR_HIGHRANG
INSTANCE QERR_LOWRANG
RESTART QERR_WIRE
VISIBILITY QwAlarm
OPdwCmd ENO
“IN_MODE”
The “IN_MODE” input defines whether the “IN_INT” input or the “IN” input is
active.
“IN_MODE” = 0 “IN_INT” input active
“IN_MODE” = 1 “IN” input active
“BIPOLAR”
The “BIPOLAR” input defines whether the scaling of the “IN_INT” input signal
is unipolar or bipolar.
“BIPOLAR” = 0 nominal range from 0 to +27648
“BIPOLAR” = 1 nominal range from -27648 to +27648
“IN_INT”
The input is processed for the analog value display of an analog input module
in the 4-20 mA measuring range. The nominal range is defined from 0 to
+27648 (unipolar) or from -27648 to +27648 (bipolar).
For information on the analog value display of analog modules, please refer to
the following document:
https://support.industry.siemens.com/cs/ww/de/view/67989094
“IN”
The value of the “IN” input is processed directly and passed on to “QOUT”
within the specified limits.
Siemens AG 2016 All rights reserved
The range of values is defined by the “HI_LIM” and “LO_LIM” inputs. When
monitoring the process value of an analog input module, the nominal range is
scaled to this range depending on the “BIPOLAR” parameter.
Figure 4-16
“Analogue” (FB 640)
EN QdwState
LOCK QOUT
ERR_EXTERN QHI_LIM
LIOP_SEL QLO_LIM
L_SIM QLIM_ULA_Enable
L_RESET QLIM_ULA
IN_MODE QLIM_ULW_Enable
BIPOLAR QLIM_ULW
IN_INT QLIM_LLW_Enable
IN QLIM_LLW
IN_SIM QLIM_LLA_Enable
HI_LIM QLIM_LLA
LO_LIM QLIM_HYS
LIM_ULA_Enable QALARM_UL
LIM_ULA QWARN_UL
Siemens AG 2016 All rights reserved
LIM_ULW_Enable QWARN_LL
LIM_ULW QALARM_LL
LIM_LLW_Enable QSIM
LIM_LLW QLOCK
LIM_LLA_Enable QERR
LIM_LLA QERR_EXT
LIM_HYS_Set QERR_OVERRUN
LIM_HYS QERR_HIGHRANG
INSTANCE QERR_LOWRANG
RESTART QERR_WIRE
VISIBILITY QwAlarm
OPdwCmd ENO
Figure 4-17
“Analogue” (FB 640)
EN QdwState
LOCK QOUT
ERR_EXTERN QHI_LIM
LIOP_SEL QLO_LIM
L_SIM QLIM_ULA_Enable
L_RESET QLIM_ULA
IN_MODE QLIM_ULW_Enable
BIPOLAR QLIM_ULW
IN_INT QLIM_LLW_Enable
IN QLIM_LLW
IN_SIM QLIM_LLA_Enable
HI_LIM QLIM_LLA
LO_LIM QLIM_HYS
LIM_ULA_Enable QALARM_UL
LIM_ULA QWARN_UL
Siemens AG 2016 All rights reserved
LIM_ULW_Enable QWARN_LL
LIM_ULW QALARM_LL
LIM_LLW_Enable QSIM
LIM_LLW QLOCK
LIM_LLA_Enable QERR
LIM_LLA QERR_EXT
LIM_HYS_Set QERR_OVERRUN
LIM_HYS QERR_HIGHRANG
INSTANCE QERR_LOWRANG
RESTART QERR_WIRE
VISIBILITY QwAlarm
OPdwCmd ENO
“LIM_ULA_Enable”
Enables the monitoring of the “LIM_ULA” limit for exceeding the limit to trigger
an alarm. The enable of the limit monitoring is indicated at the
“QLIM_ULA_Enable” output, the triggering of the alarm is displayed at the
“QALARM_UL” output. The “LIM_ULA” limit is mirrored to the “QLIM_ULA”
output irrespective of “LIM_ULA_Enable”.
“LIM_ULA_Enable” = 0 limit monitoring inactive
“LIM_ULA_Enable” = 1 limit monitoring active
“LIM_ULW_Enable”
Enables the monitoring of the “LIM_ULW” limit for exceeding the limit to trigger
a warning. The enable of the limit monitoring is indicated at the
“QLIM_ULW_Enable” output, the triggering of the warning is displayed at the
“QWARN_UL” output. The “LIM_ULW” limit is mirrored to the “QLIM_ULW”
output irrespective of “LIM_ULW_Enable”.
“LIM_ULW_Enable” = 0 limit monitoring inactive
“LIM_ULW_Enable” = 1 limit monitoring active
“LIM_LLW_Enable”
Enables the monitoring of the “LIM_LLW” limit for falling below the limit to
trigger a warning. The enable of the limit monitoring is indicated at the
“QLIM_LLW_Enable” output, the triggering of the warning is displayed at the
“QWARN_LL” output. The “LIM_LLW” limit is mirrored to the “QLIM_LLW”
output irrespective of “LIM_LLW_Enable”.
“LIM_LLW_Enable” = 0 limit monitoring inactive
“LIM_LLW_Enable” = 1 limit monitoring active
“LIM_LLA_Enable”
Enables the monitoring of the “LIM_LLA” limit for falling below the limit to
trigger an alarm. The enable of the limit monitoring is indicated at the
“QLIM_LLA_Enable” output, the triggering of the alarm is displayed at the
“QALARM_LL” output. The “LIM_LLA” limit is mirrored to the “QLIM_LLA”
Siemens AG 2016 All rights reserved
The “Simulation ON” mode enables the simulation of the analog signal. This
function is important, for example, if automatic functions shall be tested already
during the configuration phase, although a process interface does not yet exist.
Without simulating the feedbacks, many automatic functions (e. g. step sequences)
cannot be successfully executed since the feedbacks are frequently requested in
step enabling conditions or cause errors.
Figure 4-18
“Analogue” (FB 640)
EN QdwState
LOCK QOUT
ERR_EXTERN QHI_LIM
LIOP_SEL QLO_LIM
L_SIM QLIM_ULA_Enable
L_RESET QLIM_ULA
IN_MODE QLIM_ULW_Enable
BIPOLAR QLIM_ULW
IN_INT QLIM_LLW_Enable
IN QLIM_LLW
IN_SIM QLIM_LLA_Enable
Siemens AG 2016 All rights reserved
HI_LIM QLIM_LLA
LO_LIM QLIM_HYS
LIM_ULA_Enable QALARM_UL
LIM_ULA QWARN_UL
LIM_ULW_Enable QWARN_LL
LIM_ULW QALARM_LL
LIM_LLW_Enable QSIM
LIM_LLW QLOCK
LIM_LLA_Enable QERR
LIM_LLA QERR_EXT
LIM_HYS_Set QERR_OVERRUN
LIM_HYS QERR_HIGHRANG
INSTANCE QERR_LOWRANG
RESTART QERR_WIRE
VISIBILITY QwAlarm
OPdwCmd ENO
“IN_SIM”
When the simulation is enabled, the “IN_SIM” input is active, otherwise the
“IN_INT” or “IN” input is enabled, depending on the set mode (“IN_MODE”).
“LIOP_SEL”
If the “LIOP_SEL” input is set, the simulation is switched on/off via the control
input “L_SIM”.
If the “LIOP_SEL” input is not set, the simulation is switched on/off by the
operator (“OPdwCmd [bits 20 and 21]”).
“L_SIM”
“LIOP_SEL” = 1 AND “L_SIM” = 0 simulation OFF
“LIOP_SEL” = 1 AND “L_SIM” = 1 simulation ON
“OPdwCmd”
The operator commands of the control word “OPdwCmd” are only effective, if
the “LIOP_SEL” input is not set.
3
“LIOP_SEL” = 0 AND “OPdwCmd [bit 20]” = 1 simulation OFF
4
“LIOP_SEL” = 0 AND “OPdwCmd [bit 21]” = 1 simulation ON
“QSIM”
The “Simulation” mode is indicated at the “QSIM” block output.
“QSIM” = 0 simulation OFF
Siemens AG 2016 All rights reserved
“QSIM” = 1 simulation ON
“QdwState”
The current “Simulation” mode is indicated in the status word by means of
bit 18.
5
QdwState [bit 18] = 0 simulation OFF
3
QdwState [bit 18] = 1 simulation ON
3
Bit 20 = “PROCESS”
4
Bit 21 = “SIMULATION”
5
Bit 18 = “QSIM”
The following situations cause the block to go to the “Error” state and the “QOUT”
output to take on the value of the “LO_LIM” lower limit:
Interlock (“LOCK” = 1)
External error (“ERR_EXT” = 1)
Wire break (“QERR_WIRE” = 1)
The following situation causes the block to go to the “Error” state and the “QOUT”
output to take on the value of the “HI_LIM” upper limit:
Overrun (“QERR_OVERRUN” = 1)
If there is an error at the block (QERR = 1), it can be reset using the “L_RESET”
input or by the “OPdwCmd” operator. This error status can only be reset, if there
are no other errors pending.
Figure 4-19
“Analogue” (FB 640)
EN QdwState
Siemens AG 2016 All rights reserved
LOCK QOUT
ERR_EXTERN QHI_LIM
LIOP_SEL QLO_LIM
L_SIM QLIM_ULA_Enable
L_RESET QLIM_ULA
IN_MODE QLIM_ULW_Enable
BIPOLAR QLIM_ULW
IN_INT QLIM_LLW_Enable
IN QLIM_LLW
IN_SIM QLIM_LLA_Enable
HI_LIM QLIM_LLA
LO_LIM QLIM_HYS
LIM_ULA_Enable QALARM_UL
LIM_ULA QWARN_UL
LIM_ULW_Enable QWARN_LL
LIM_ULW QALARM_LL
LIM_LLW_Enable QSIM
LIM_LLW QLOCK
LIM_LLA_Enable QERR
LIM_LLA QERR_EXT
LIM_HYS_Set QERR_OVERRUN
LIM_HYS QERR_HIGHRANG
INSTANCE QERR_LOWRANG
RESTART QERR_WIRE
VISIBILITY QwAlarm
OPdwCmd ENO
“L_RESET”
When setting the “LIOP_SEL” input parameter and a positive edge at the
“L_RESET” input, the “QERR” output is reset.
“OPdwCmd”
Pressing the “DELETE” button in the “Analog_1_Overview” faceplate sets [Bit
6
24] in the “OPdwCmd” control word. The controller evaluates this bit and
resets the “QERR” output. The “LIOP_SEL” input parameter must not be set
when doing this.
Siemens AG 2016 All rights reserved
6
Bit 24 = “RESET”
Note The application provides a properly functioning example project with connected
example blocks. You only need to perform the steps explained in this chapter, if
you wish to integrate the blocks into your own project.
If you are only interested in operating the application example, you can directly
jump to the chapter “Operating the Application”.
In this case, it is sufficient to unzip the file
“66839614_WCA_Faceplates_Demo_V13_SP1.zip” and to open it in the TIA
Portal.
necessary.
Note
If you are using an existing project, it is advisable to create a backup before
performing the following steps.
2. Opening the library
In the “Libraries” task card, click on the “Open global library” icon in the
“Global libraries” palette.
To do this, navigate to the storage location of the
“66839614_STEP7_Example_Blocks_V13_SP1.al13” library
and open the library.
3. Inserting blocks
Drag the “Analogue” (FB640) function block from the “Master copies >
Siemens AG 2016 All rights reserved
Table 5-2
Step Procedure
1. Opening the project
Open the TIA Portal project.
2. Integrating the global library
Open the “Libraries > Global libraries” task card.
Via the context menu “Open library”, select the dialog to open a global library.
Siemens AG 2016 All rights reserved
The library offers two possibilities of integrating the faceplates into your project.
The faster way of doing this is to use the elements contained in the “Master
copies” folder.
In this folder, you will find the pop-up screen containing the menu structure and
the faceplates as well as the faceplate icon, the invisible button associated with
the faceplate icon for calling the pop-up screen and the necessary tags.
For this configuration variant, please refer to Table 5-3.
If you want to use the faceplates in a separate menu structure or you don’t
want to use any pop-up screen, you will find the individual faceplates in the
“Types” folder in the global library.
For this configuration variant, please refer to Table 5-4.
Step Procedure
3. Copying library elements
Drag and drop the following library elements from the “Master copies > ANALOG” folder
of the global library into the corresponding folders in the project tree:
– “Analog_001_Tags” “HMI tags”
– “Analog_001_Messages” “HMI alarms”
– “Analog_001_Pop-up” “Screen management > Pop-up screens”
Drag and drop the “MenuControl” tag table from the “Master copies > MenuControl” folder
of the global library into the “HMI tags” folder in the project tree.
Step Procedure
4. Integrating the messages
Within the library, select the “Master copies > ANALOG” category.
Drag and drop the “Analog_001_Messages” folder into the “HMI alarms” folder in the
project tree.
Note
The message numbers of this application occupy the number range starting at 10049.
Before integrating the messages, check your existing project and, if occupied, release this
area.
Restore the connection to the associated trigger tag as well as the associated trigger bit.
Siemens AG 2016 All rights reserved
Step Procedure
5. Creating the HMI screen
Drag and drop the “Analog_001_Icon” faceplate icon and the “Analog_001_Button” button
for calling the “Analog_001_Pop-up” screen window into the desired screen.
Place the button above the faceplate icon.
Click the “Layout” task card and make sure that the button is assigned to a level with a
higher number than that of the faceplate icon.
Siemens AG 2016 All rights reserved
6. Check the name of the HMI connection and correct it, if necessary.
Step Procedure
3. The “ANALOG” folder contains the faceplates of the screen window:
“Analog_1_Overview”
“Analog _2_Messages”
“Analog _3_Graphs”
“Analog _4_Limits”
“Analog _5_Service”
Moreover, it contains the faceplate of the faceplate icon and the HMI UDT:
“Analog_001_Icon”
“Analog_UDT”
4. A complete configuration requires the following elements from the
“Master copies > ANALOG” folder:
“Analog_001_Tags” (HMI tags)
“Analog_001_Messages” (HMI alarms)
“Analog_001_Button” (button)
Furthermore, you need the tags from the “MenuControl” tag table from the “Master copies >
MenuControl” folder:
“Analog_Unit”
“Visibility”
Optional: “Close”
Siemens AG 2016 All rights reserved
Now, create your own menu structure of the individual faceplates and add the corresponding
values to the tags mentioned.
5. Interconnecting the faceplate icon
Interconnect the dynamic properties of the faceplate icon:
Step Procedure
6. Interconnecting the faceplates of the screen window
Interconnect the dynamic properties of the individual faceplates of the screen window, if
available, with the associated HMI tags:
– “Process > Value” “Analog_001_UDT”
– “Property > Visibility” “Visibility”
– “Property > Unit” “Analog_Unit”
Drag and drop the “Analog_001_Messages” folder into the “HMI alarms” folder in the
project tree.
Note
The message numbers of this application occupy the number range starting at 10049.
Before integrating the messages, check your existing project and, if occupied, release this
area.
Restore the connection to the associated trigger tag as well as the associated trigger bit.
Table 6-1
Step Description
1. Unzip the “66839614_WCP_Faceplates_Demo_V13_SP1.zip” file into a directory
of your choice.
2. Open the project with TIA Portal V13 SP1 update 1 or higher.
3. Adjust the configured hardware according to your requirements at “Devices &
networks”.
4. Open the STEP 7 project and generate it again.
5. Load the STEP 7 project into the controller and start it.
6. Open the WinCC V13 Advanced project and generate it again.
7. Start the WinCC flexible Runtime or the WinCC Runtime simulation.
Siemens AG 2016 All rights reserved
6.1 Navigation
Overview of the user interface
Figure 6-1
2
4
Siemens AG 2016 All rights reserved
Table 6-2
Figure Explanation
1 Start screen
Here you can choose between the application examples and the support
pages by means of the buttons in the bottom area.
2 Application example
Here you can reach the example blocks of this application.
3 Support
Here you will find out more about the Siemens Industry Online Support.
4 Navigation
You reach the navigation in each screen at the left window frame.
You reach the start screen via this button.
Element selection
Figure 6-2
1
Siemens AG 2016 All rights reserved
Table 6-3
Figure Explanation
1 Primary navigation
Here you can select the individual sets of the application via buttons.
The application consists of a total of two sets with four elements each.
2 Secondary navigation
Here, the individual elements (example blocks) of the selected set can be
accessed.
2
Siemens AG 2016 All rights reserved
Table 6-4
Figure Explanation
1 When calling an element of this application, the faceplate icon becomes
visible.
2 When selecting the faceplate icon, the appropriate screen window containing
more detailed information opens.
Table 6-5
Figure Explanation
1 Close
The screen window can be closed via this button.
2 Tabs
The individual faceplate windows can be called via the tabs.
Features
Simplified status display
Opens the relevant faceplate by mouse-click
Contains no language-dependent objects
Functionality
Displayed operating states:
– Current analog value
– Limit violation (warning/alarm)
– Simulation feedback
– Interlock
Siemens AG 2016 All rights reserved
Displayed errors:
– General error
Operation:
– Activation of the screen window
Features
Contains language-dependent objects: German (Germany), English (USA)
Enables changes for service staff
Executable actions
Tab selection (optionally via the controller)
Open, close
Overview
Figure 6-6
Siemens AG 2016 All rights reserved
Features
Detailed status display
Provides the option of intervening in the process
Contains language-dependent objects: German (Germany), English (USA)
Executable actions
Select an analog value (only in simulation mode)
Select limits (only in simulation mode)
Reset error states
Lower Limit No
Wire break No
External error No
Interlock No
General error No
Overview
Figure 6-7
Siemens AG 2016 All rights reserved
Executable actions
Display of alarms and messages
Acknowledge alarms
Filter for instance-related messages and alarms
Overview
Figure 6-8
Siemens AG 2016 All rights reserved
Executable actions
Display limits (warning and alarm)
Display the analog value
Overview
Figure 6-9
Siemens AG 2016 All rights reserved
Executable actions
Enable / disable the limit messages
Define the limits
Define the hysteresis for deactivating the limit messages
Note Write access to the values of this tab is possible only in simulation mode.
The hysteresis can be entered either as an absolute value or as a percentage value.
For the respective settings, please go to the “Service” tab.
Overview
Figure 6-10
Siemens AG 2016 All rights reserved
Executable actions
Toggle S7 periphery / real value
– An analog value is scaled depending on the limits in the “Overview” tab.
– The scaling of an analog value can be both unipolar and bipolar.
Hysteresis changeover: percental/absolute
Toggle simulation/real process mode.
Note The hysteresis only influences the deactivation of the limit messages.
It does not influence the scaling of the analog value or the triggering of a limit
message.
Simulation ON
Siemens AG 2016 All rights reserved
7 Block Interfaces
7.1 Input parameters
Table 7-1
Parameters Data type Default setting Description
EN BOOL FALSE Release
LOCK BOOL FALSE 1= interlock pending
ERR_EXTERN BOOL FALSE 1= external error
LIOP_SEL BOOL FALSE 0= operator, 1= interconnection
L_SIM BOOL FALSE 0= process, 1 = simulation
L_RESET BOOL FALSE Reset errors (pos. edge)
IN_MODE BOOL FALSE 0= S7 periphery, 1= real value
BIPOLAR BOOL FALSE 1= scaling bipolar
IN_INT INT 0 I/O value
IN REAL 55.0 Real value
IN_SIM REAL 55.0 Simulation value (real value)
HI_LIM REAL 100.0 Upper scaling limit
Siemens AG 2016 All rights reserved
pending
QWARN_UL BOOL FALSE 1= warning for upper limit
pending
QWARN_LL BOOL FALSE 1= warning for lower limit
pending
QALARM_LL BOOL FALSE 1= alarm for lower limit
pending
QSIM BOOL FALSE 0= process, 1 = simulation
QLOCK BOOL FALSE 1= interlock error
QERR BOOL FALSE 1= error
QERR_EXT BOOL FALSE 1= external error
QERR_OVERRUN BOOL FALSE 1= overrun error
QERR_HIGHRANGE BOOL FALSE 1= high range error
QERR_LOWRANGE BOOL FALSE 1= low range error
QERR_WIRE BOOL FALSE 1= wire break (underrun)
QwAlarm WORD W#16#0 Alarm tag
ENO BOOL FALSE Release
8 Additional Information
Further example blocks of this application
This document is part of an application which describes further technology blocks.
Within the framework of this application, the number of example technology blocks
is successively expanded.
The following table shows both the already available and the future example
technology blocks:
Table 8-1
Block Description
MOTOR Visualization and operation of a motor with fixed speed and rotational
direction
VALVE Visualization and operation of a binary valve
DIGITAL Visualization and operation of digital signals
ANALOG Visualization and operation of analog signals
PIDCTRLV2 Visualization and operation of a software-implemented PID controller for
regulating technical parameters with continuous input and output values
Siemens AG 2016 All rights reserved
Table 9-1
Topic Title
\1\ Download page of the entry https://support.industry.siemens.com/cs/ww/en/vie
w/66839614
\2\ Siemens Industry Online https://support.industry.siemens.com
Support
\3\ STEP 7 Automating with SIMATIC S7-1200
SIMATIC S7-1200 Author: Hans Berger
Publicis MCD Verlag
ISBN: 978-3-89578-355-5
\4\ STEP 7 Automating with SIMATIC S7-1500
SIMATIC S7-1500 Author: Hans Berger
Publicis MCD Verlag
ISBN: 978-3-89578-403-3
\5\ STEP 7 Automating with STEP 7 in STL and SCL
Siemens AG 2016 All rights reserved
10 History
Table 10-1
Version Date Modifications
V1.0 05/2016 New version TIA Portal V13 SP1 update 1
Siemens AG 2016 All rights reserved