You are on page 1of 66

Applications & Tools

Answers for industry.


Cover
Example Blocks for STEP 7
(TIA Portal) and WinCC (TIA Portal)
Comfort Panels, WinCC Runtime Advanced and S7-
1200
Application Description March 2013





2
ANALOGUE (FB640)
1.0, Entry ID: 66839614

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d


Siemens Industry Online Support
This article is taken from the Siemens Industry Online Support. The following link
takes you directly to the download page of this document:
http://support.automation.siemens.com/WW/view/en/66839614

Caution:
The functions and solutions described in this entry are mainly limited to the
realization of the automation task. In addition, please note that suitable security
measures in compliance with the applicable Industrial Security standards must be
taken, if your system is interconnected with other parts of the plant, the companys
network or the Internet. Further information can be found under the Item-ID
50203404.
http://support.automation.siemens.com/WW/view/en/50203404.



If you have any questions about this document, please contact us at the following
e-mail address:
mailto:online-support.industry@siemens.com


You can also actively use our Technical Forum from the Service & Support Portal
regarding this subject. Share your questions, suggestions or problems and discuss
them with our strong forum community:
http://www.siemens.com/forum-applications



ANALOGUE (FB640)
1.0, Entry ID: 66839614 3

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d


s







SIMATIC
ANALOGUE (FB640)

Application




























Task

1

Solution

2

Basics

3

Functional Mechanism of
this Faceplate

4

Configuration and
Settings

5

Startup of the Application

6

Operating the Application

7

Block Connectors

8

Further Notes

9

Literature

10

History

11



Warranty and Liability

4
ANALOGUE (FB640)
1.0, Entry ID: 66839614

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

Warranty and Liability
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. You are responsible for
ensuring that the described products are used correctly. These Application
Examples do not relieve you of your 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 and without prior
notice. If there are any deviations between the recommendations provided in this
application example 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
deficiency or breach of a condition which goes to the root of the contract
(wesentliche Vertragspflichten). The damages for a breach of a substantial
contractual obligation are, however, limited to the foreseeable damage, typical for
the type of contract, except in the event of intent or gross negligence or injury to
life, body or health. The above provisions do not imply a change of the burden of
proof to your detriment.

Any form of duplication or distribution of these Application Examples or excerpts
hereof is prohibited without the expressed consent of Siemens Industry Sector.






Table of Contents

ANALOGUE (FB640)
1.0, Entry ID: 66839614 5

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d


Table of Contents
Warranty and Liability ................................................................................................. 4
1 Task ..................................................................................................................... 6
2 Solution............................................................................................................... 8
2.1 Solution overview ................................................................................. 8
2.2 Required hardware and software components .................................... 9
3 Basics ............................................................................................................... 10
4 Functional Mechanism of this Faceplate ...................................................... 11
4.1 Interfaces of the faceplate window ..................................................... 11
4.2 Dynamic properties of the faceplate window ..................................... 12
4.2.1 Animation ........................................................................................... 12
4.2.2 Process .............................................................................................. 13
4.2.3 Process_Limits ................................................................................... 16
4.2.4 Process_Values ................................................................................. 19
4.3 Static properties of the faceplate window ........................................... 20
4.3.1 Process_Trends_Value ...................................................................... 20
4.3.2 Label ................................................................................................... 20
4.3.3 UserManagement ............................................................................... 21
4.4 Interfaces of the faceplate icon .......................................................... 22
4.5 Alarms and messages ........................................................................ 25
4.6 Control and status signals .................................................................. 26
4.6.1 Processing of switching commands in the controller ......................... 26
4.6.2 Evaluating and displaying process states in WinCC Advanced ......... 28
4.6.3 Switching over inputs ......................................................................... 29
4.6.4 Defining the range of values .............................................................. 30
4.6.5 Limit monitoring .................................................................................. 31
4.6.6 Enabling/disabling simulation ............................................................. 33
4.6.7 Error reset .......................................................................................... 35
5 Configuration and Settings ............................................................................ 37
5.1 Configuring the faceplate window ...................................................... 39
5.2 Layer 0 frames ................................................................................ 39
5.3 Layer 1 tab 1 ................................................................................... 42
5.4 Layer 2 tab 2 ................................................................................... 43
5.5 Layer 3 tab 3 ................................................................................... 44
5.6 Layer 4 tab 4 ................................................................................... 45
5.7 Layer 5 tab 5 ................................................................................... 46
6 Startup of the Application ............................................................................... 47
6.1 Configuring the STEP 7 block ............................................................ 48
6.2 Configuring the WinCC Advanced faceplates .................................... 49
7 Operating the Application ............................................................................... 54
7.1 Faceplate icon .................................................................................... 54
7.2 Faceplate window ............................................................................... 56
8 Block Connectors ............................................................................................ 63
8.1 Input parameters ................................................................................ 63
8.2 Output parameters ............................................................................. 64
9 Further Notes ................................................................................................... 65
10 Literature .......................................................................................................... 66
10.1 Bibliographic References ................................................................... 66
10.2 Internet Links ...................................................................................... 66
11 History............................................................................................................... 66

1 Task
2.1 Solution overview

6
ANALOGUE (FB640)
1.0, Entry ID: 66839614

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

1 Task
Introduction
The example blocks for STEP 7 and WinCC enable the user to utilize various
automation functions or to use these blocks as templates for the configuration of
individual blocks.
The sample configuration shows how the technological blocks are called and
interconnected in STEP 7 and WinCC.
The advantages when using faceplates in WinCC shall be illustrated:
Changes from a central location
When changes are made at a block, all locations where this block is used are
automatically updated.
Reuse in other projects
Filing the faceplates in a library to use them again in a different project.
Reducing the workload for the configuration
For frequently used automation components it shall be possible to quickly
integrate them into a configuration.

Note
Integrating these faceplates via a library and its configuration in an independent
project involves time and effort.

Topics not covered by this application
Basic user skills are assumed for this application when dealing with the TIA
Portal.
This document does not present a user guide for the TIA Portal but only
explains the configuration steps that are required for commissioning this
faceplate.

1 Task
2.1 Solution overview

ANALOGUE (FB640)
1.0, Entry ID: 66839614 7

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

Description of the automation task
This application describes the configuration of the ANALOGUE technological
block (FB 640) and the associated faceplates. They are used to visualize and
control an analog signal.

The block offers the following functions:
Scaling peripheral values (unipolar/bipolar) in integer format
Signal processing alternatively in integer or real format
Setting limits for message triggering
Setting a hysteresis for the limits (percentage or absolute)
Simulating the signal

The following (associated) values of the signal to be monitored are displayed:
Range limit values
Instantaneous value (numerically and as a trend)
Limits (numerically and as trends)
Hysteresis (absolute and percentage)

The following errors are evaluated, displayed in the image window, and saved in
Alarm Logging:
Overrun (integer format only)
High Limit
Low Limit
Wire Break (integer format only)
Limit Violation
External Error
Interlock

NOTICE Before using the block in your own projects, check the proper functioning
of the block and adjust it to your individual requirements where necessary.
The block described in this application is only intended as a template for
creating individual blocks.


2 Solution
2.1 Solution overview

8
ANALOGUE (FB640)
1.0, Entry ID: 66839614

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

2 Solution
2.1 Solution overview
Schematic layout
The figures below show the block in the controller, the faceplate icon and the
faceplate window to control, operate and monitor analog signals:

Table 2-1
Block Faceplate icon and faceplate








2 Solution
2.2 Required hardware and software components

ANALOGUE (FB640)
1.0, Entry ID: 66839614 9

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

2.2 Required hardware and software components
This application was generated with the following components:
Hardware components
Table 2-2
Component Number MLFB Note
Development system 1 PC for configuration of the
controller and the Comfort
Panels or the WinCC
Runtime Advanced. The
usual hardware
requirements for STEP 7
and WinCC apply.
S7-1200 CPU 1 6ES721.-1..3.-0XB0

Standard software components
Table 2-3
Component Qty. MLFB/order number Note
STEP 7 Professional
V11 SP2 UPD5
1 6ES7822-1AA00-0YA5 Link to update:
http://support.automat
ion.siemens.com/WW
/view/en/58112582
WinCC Advanced V11
Runtime SP2 UPD5
(or alternatively
Comfort Panel)
1 6AV2104-0.A01-0AA0 Link to update:
http://support.automat
ion.siemens.com/WW
/view/en/58112582
WinCC Advanced V11
SP2 UPD5
(or alternatively
WinCC Comfort V11)
1 6AV2102-0AA01-0AA5 Link to update:
http://support.automat
ion.siemens.com/WW
/view/en/58112582
Example files and projects
The following list includes all files and projects used in this example.
Table 2-4
Component Note
66839614_Demoprojekt_Faceplates_WinCC.zip This zip file contains the STEP 7
project with the integrated WinCC
Advanced project.
66839614_Faceplate_WinCC_Analogue_e.pdf All documents of the application
for this block.
66839614_Faceplates_WinCC_Library.zip The zip file includes a global
library with all faceplates and
their configuration

3 Basics
2.2 Required hardware and software components

10
ANALOGUE (FB640)
1.0, Entry ID: 66839614

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

3 Basics
Introduction
Faceplates are objects that are made up of existing picture objects.
Faceplates offer the following advantages:
Changes from a central location
Reuse in other projects
Reducing the workload for the configuration
You create and change faceplates in the "Faceplates" editor. The generated blocks
are adopted in the "Project Library" and can be added into pictures like other
objects.
Using a faceplate
After you have generated a faceplate, the faceplate appears as an object in the
project library.
You add the faceplate to your process pictures and configure it for the respective
usage location in the properties window.
Faceplate instance
Inserting a faceplate into a process screen generates an instance of this faceplate.
When editing the faceplate in the project library, the created faceplate instance is
automatically updated once released.
Reusing faceplates in several projects
WinCC Advanced offers the option of adopting faceplates in a global library. This
enables you to reuse the faceplates in other projects.
As soon as you add a faceplate from a global library into a picture, the faceplate is
also filed in the project library. You change the faceplate only in the project library;
the changes are not automatically adopted in the global library.

4 Functional Mechanism of this Faceplate
4.1 Interfaces of the faceplate window

ANALOGUE (FB640)
1.0, Entry ID: 66839614 11

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

4 Functional Mechanism of this Faceplate
4.1 Interfaces of the faceplate window
Figure 4-1


The interface of a faceplate generally differentiates between dynamic and static
properties:
Via the interface a dynamic property is always connected with a tag which
supplies the property in runtime with values.
Static properties can be directly configured in the picture editor. The properties
are then saved together with the faceplate or on the interface of the faceplate.
Static properties cannot be changed in Runtime.

4 Functional Mechanism of this Faceplate
4.2 Dynamic properties of the faceplate window

12
ANALOGUE (FB640)
1.0, Entry ID: 66839614

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

4.2 Dynamic properties of the faceplate window
4.2.1 Animation
The tags of this group are used to display and represent the faceplate windows;
process connection is optional.
Visibility
The Visibility property is used for influencing the display properties of the
faceplate window during runtime.
The following properties are influenced:
Open
Close
Minimize
Maximize
Selecting the individual tabs
Table 4-1
Tag used
Symbolic name Analogue_DB.OP_VISIBILITY
Data type Byte
Access method Symbolic access
Length 1 byte
Acquisition cycle 100 ms
Acquisition mode Cyclic during operation

Bits 0..6 serve for opening or selecting the individual tabs of the faceplate window
(maximized display). If more than one bit is set, only the background of the
faceplate window is displayed. If bit 7 has been set, only the title bar of the
faceplate window is displayed (minimized display), irrespective of the status of the
remaining bits. If none of the bits are set, the faceplate window is closed.
The following table shows the setup of the tags.
Table 4-2
Bit 7 6 5 4 3 2 1 0
Selec-
tion
Minimize Tab 5
(Service)
Tab 4
(limits)
Tab 3
(trends)
Tab 2
(messages)
Tab 1
(overview)

Note
The tag can also be defined as an internal tag without PLC connection if only a
limited number of control tags are available.
If the tag has a PLC connection, read and write access is possible from the
controller. Aside from the known screen selection, the respective faceplate
window can also be opened from the controller and a specific tab can be
selected.

4 Functional Mechanism of this Faceplate
4.2 Dynamic properties of the faceplate window

ANALOGUE (FB640)
1.0, Entry ID: 66839614 13

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

4.2.2 Process
The tags of this group feature a process connection and are the basic interface
between controller and operating device.
Command
The Command property is used to transmit commands from WinCC Advanced to
the controller. The PLC block analyses 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 parameter is set to 0.
Table 4-3
Tag used
Symbolic name Analogue_DB.OPdwCmd
Data type DWORD
Access method Symbolic access
Length 4 byte
Acquisition cycle 100 ms
Acquisition mode Cyclic during operation

The following table shows the setup of the tags.
Table 4-4
B
i
t

3
1

3
0

2
9

2
8

2
7

2
6

2
5

2
4

2
3

2
2

2
1

2
0

1
9

1
8

1
7

1
6

1
5

1
4

1
3

1
2

1
1

1
0

9

8

7

6

5

4

3

2

1

0

S
i
g
n
a
l


R
E
S
E
T


S
I
M
U
L
A
T
I
O
N

P
R
O
C
E
S
S


R
e
a
l
V
a
l

P
e
r
i
p
h
e
r
y
V
a
l

H
Y
S
_
A
b
s
o
l
u
t
e

H
Y
S
_
P
e
r
c
e
n
t
a
l


A
l
_
L
o
w
e
r
_
L
i
m
i
t

W
a
_
L
o
w
e
r
_
L
i
m
i
t

W
a
_
U
p
p
e
r
_
L
i
m
i
t

A
l
_
U
p
p
e
r
_
L
i
m
i
t

4 Functional Mechanism of this Faceplate
4.2 Dynamic properties of the faceplate window

14
ANALOGUE (FB640)
1.0, Entry ID: 66839614

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

Instance
The Instance property is a text string with a field length of 16 characters and has
two usage locations:
The tag serves as filter criterion for the message display of the faceplate
window. This ensures that only messages referring to this faceplate window
are displayed.
The tag is displayed in the right half of the title bar to distinguish between the
individual faceplate instances.
Table 4-5
Tag used
Symbolic name Analogue_DB.INSTANCE
Data type String
Access method Symbolic access
Length 16 byte
Acquisition cycle 1 s
Acquisition mode Cyclic during operation

Figure 4-2


NOTICE For each instance of a faceplate the content of the tags must be adjusted.
The tag contents are specified in the declaration section of the respective
function block as a start value. Ensure that the messages in the bit
message editor of WinCC Advanced contain the same text string in
addition to the actual message text.

4 Functional Mechanism of this Faceplate
4.2 Dynamic properties of the faceplate window

ANALOGUE (FB640)
1.0, Entry ID: 66839614 15

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

State
The State property is used to display the different states in the WinCC Advanced
process picture.
Table 4-6
Tag used
Symbolic name Analogue_DB.QdwState
Data type DWORD
Access method Symbolic access
Length 4 byte
Acquisition cycle 100 ms
Acquisition mode Cyclic during operation

The following table shows the setup of the tags.
Table 4-7
B
i
t

3
1

3
0

2
9

2
8

2
7

2
6

2
5

2
4

2
3

2
2

2
1

2
0

1
9

1
8

1
7

1
6

1
5

1
4

1
3

1
2

1
1

1
0

9

8

7

6

5

4

3

2

1

0

S
i
g
n
a
l


L
O
C
K

Q
L
O
C
K

Q
E
R
R
_
E
X
T

Q
E
R
R


Q
S
I
M


Q
E
R
R
_
W
I
R
E

Q
E
R
R
_
O
V
E
R
R
U
N

Q
E
R
R
_
H
I
G
H
R
A
N
G
E

Q
E
R
R
_
L
O
W
R
A
N
G
E


Q
A
L
A
R
M

Q
W
A
R
N

L
I
M
_
L
L
A
_
E
n
a
b
l
e

L
I
M
_
L
L
W
_
E
n
a
b
l
e

L
I
M
_
U
L
W
_
E
n
a
b
l
e

L
I
M
_
U
L
A
_
E
n
a
b
l
e


L
I
M
_
H
Y
S
_
S
e
t

I
N
_
M
O
D
E

4 Functional Mechanism of this Faceplate
4.2 Dynamic properties of the faceplate window

16
ANALOGUE (FB640)
1.0, Entry ID: 66839614

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

4.2.3 Process_Limits
The tags of this group contain a process connection and can be operated and
monitored in the Overview or Limits tab.
The Trends tab clearly shows the relevant values as curves and lines; however,
the tags can only be monitored in this tab.
The tags are used to define the high and low limit of an analog value and to define
limits for message triggering.
HighLimit
The HighLimit property indicates the high limit (limit) of the analog value.
Table 4-8
Tag used
Symbolic name Analogue_DB.OP_HI_LIM
Data type Real
Access method Symbolic access
Length 4 byte
Acquisition cycle 100 ms
Acquisition mode Cyclic during operation
LowLimit
The LowLimit property indicates the low limit (limit) of the analog value.
Table 4-9
Tag used
Symbolic name Analogue_DB.OP_LO_LIM
Data type Real
Access method Symbolic access
Length 4 byte
Acquisition cycle 100 ms
Acquisition mode Cyclic during operation
AlarmUpperLimit
The AlarmUpperLimit property indicates the upper limit (limit) of the analog value
at which an alarm is triggered. The deactivation of the alarm depends on the
selected hysteresis (limit minus hysteresis).
Table 4-10
Tag used
Symbolic name Analogue_DB.OP_LIM_ULA
Data type Real
Access method Symbolic access
Length 4 byte
Acquisition cycle 100 ms
Acquisition mode Cyclic continuous
4 Functional Mechanism of this Faceplate
4.2 Dynamic properties of the faceplate window

ANALOGUE (FB640)
1.0, Entry ID: 66839614 17

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

WarningUpperLimit
The WarningUpperLimit property indicates the upper limit (limit) of the analog
value at which a warning is triggered. The deactivation of the warning depends on
the selected hysteresis (limit minus hysteresis).
Table 4-11
Tag used
Symbolic name Analogue_DB.OP_LIM_ULW
Data type Real
Access method Symbolic access
Length 4 byte
Acquisition cycle 100 ms
Acquisition mode Cyclic continuous
WarningLowerLimit
The WarningLowerLimit property indicates the lower limit (limit) of the analog
value at which a warning is triggered. The deactivation of the warning depends on
the selected hysteresis (limit plus hysteresis).
Table 4-12
Tag used
Symbolic name Analogue_DB.OP_LIM_LLW
Data type Real
Access method Symbolic access
Length 4 byte
Acquisition cycle 100 ms
Acquisition mode Cyclic continuous
AlarmLowerLimit
The AlarmLowerLimit property indicates the lower limit (limit) of the analog value
at which an alarm is triggered. The deactivation of the alarm depends on the
selected hysteresis (limit plus hysteresis).
Table 4-13
Tag used
Symbolic name Analogue_DB.OP_LIM_LLA
Data type Real
Access method Symbolic access
Length 4 byte
Acquisition cycle 100 ms
Acquisition mode Cyclic continuous
4 Functional Mechanism of this Faceplate
4.2 Dynamic properties of the faceplate window

18
ANALOGUE (FB640)
1.0, Entry ID: 66839614

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

Hysteresis_Abs
The Hysteresis_Abs property indicates the hysteresis in the (absolute) unit of the
analog value.
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.
Table 4-14
Tag used
Symbolic name Analogue_DB.OP_LIM_HYS_Abs
Data type Real
Access method Symbolic access
Length 4 byte
Acquisition cycle 100 ms
Acquisition mode Cyclic during operation
Hysteresis_Perc
The Hysteresis_Perc property indicates the hysteresis as a percentage. The
upper limit and the lower limit of the analog value are the basis for the calculation.
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.
Table 4-15
Tag used
Symbolic name Analogue_DB.OP_LIM_HYS_Perc
Data type Real
Access method Symbolic access
Length 4 byte
Acquisition cycle 100 ms
Acquisition mode Cyclic during operation
4 Functional Mechanism of this Faceplate
4.2 Dynamic properties of the faceplate window

ANALOGUE (FB640)
1.0, Entry ID: 66839614 19

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

4.2.4 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-16
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.
Table 4-17
Tag used
Symbolic name Analogue_DB.QOUT
Data type Real
Access method Symbolic access
Length 4 byte
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-18
Tag used
Symbolic name Analogue_DB.OP_SIM_Value
Data type Real
Access method Symbolic access
Length 4 byte
Acquisition cycle 100 ms
Acquisition mode Cyclic during operation
4 Functional Mechanism of this Faceplate
4.3 Static properties of the faceplate window

20
ANALOGUE (FB640)
1.0, Entry ID: 66839614

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

4.3 Static properties of the faceplate window
Static properties cannot be changed during runtime. Therefore they generally have
no process interface.
4.3.1 Process_Trends_Value
The properties of this group define the individual trends of the faceplate window.
Trends
The Trends property is a SimpleCoreCollectionWrapper and defines the trends
of the Trends tab. To edit the trends, select the Trends property, the trends
editor is opened using the displayed button.

Figure 4-3


Figure 4-4

4.3.2 Label
The properties of this group are used to label the faceplate window.
Text
The Text property is a text string and is displayed in the left half of the title bar.
Here, for example, the higher level definition (HLD) or the location of usage can be
shown. You can change this text at the interface of the faceplate under the Label
property.
Figure 4-5

Unit
The Unit property is a text string and used in the Overview and Limits tabs to
display the physical unit of the analog value.
4 Functional Mechanism of this Faceplate
4.3 Static properties of the faceplate window

ANALOGUE (FB640)
1.0, Entry ID: 66839614 21

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

4.3.3 UserManagement
The properties of this group serve for assigning the user rights. In the project tree
under the User administration item, you can configure these rights individually.
Service
The Service property is an HmiObjectHandle and is used as access protection
for the Service tab.

NOTICE In this application the Service group and the admin user is used as
authorization. The password is preset to 100 and can be changed in the
user administration of WinCC Advanced.
If you create a new instance of the faceplate window and do not
interconnect the Service property, the Service tab has no access
protection.

4 Functional Mechanism of this Faceplate
4.4 Interfaces of the faceplate icon

22
ANALOGUE (FB640)
1.0, Entry ID: 66839614

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

4.4 Interfaces of the faceplate icon

Figure 4-6


Only the dynamic properties are accessed in the interface of the faceplate icon.
Via the interface a dynamic property is always connected with a tag which supplies
the property in runtime with values.
Process
The tags of this group feature a process connection and are the basic interface
between controller and operating device.
State
The State property is used to display the different states in the WinCC Advanced
process picture.
Table 4-19
Tag used
Symbolic name Analogue_DB.QdwState
Data type DWORD
Access method Symbolic access
Length 4 byte
Acquisition cycle 100 ms
Acquisition mode Cyclic during operation

The following table shows the setup of the tags.
4 Functional Mechanism of this Faceplate
4.4 Interfaces of the faceplate icon

ANALOGUE (FB640)
1.0, Entry ID: 66839614 23

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

Table 4-20
B
i
t

3
1

3
0

2
9

2
8

2
7

2
6

2
5

2
4

2
3

2
2

2
1

2
0

1
9

1
8

1
7

1
6

1
5

1
4

1
3

1
2

1
1

1
0

9

8

7

6

5

4

3

2

1

0

S
i
g
n
a
l


L
O
C
K

Q
L
O
C
K

Q
E
R
R
_
E
X
T

Q
E
R
R


Q
S
I
M


Q
E
R
R
_
W
I
R
E

Q
E
R
R
_
O
V
E
R
R
U
N

Q
E
R
R
_
H
I
G
H
R
A
N
G
E

Q
E
R
R
_
L
O
W
R
A
N
G
E


Q
A
L
A
R
M

Q
W
A
R
N

L
I
M
_
L
L
A
_
E
n
a
b
l
e

L
I
M
_
L
L
W
_
E
n
a
b
l
e

L
I
M
_
U
L
W
_
E
n
a
b
l
e

L
I
M
_
U
L
A
_
E
n
a
b
l
e


L
I
M
_
H
Y
S
_
S
e
t

I
N
_
M
O
D
E

Value
The Value property is used to acquire the analog value at the block output.
Table 4-21
Tag used
Symbolic name Analogue_DB.QOUT
Data type Real
Access method Symbolic access
Length 4 byte
Acquisition cycle 100 ms
Acquisition mode Cyclic continuous
4 Functional Mechanism of this Faceplate
4.4 Interfaces of the faceplate icon

24
ANALOGUE (FB640)
1.0, Entry ID: 66839614

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

Visibility
The Visibility property is used for influencing the display properties of the
faceplate window during runtime.
The following properties are influenced:
Open
Close
Minimize
Maximize
Selecting the individual tabs

Note
When clicking the faceplate icon, the OP_VISIBILITY tag is always loaded with
value 1. This results in the respective faceplate window being displayed with
tab 1.

Table 4-22
Tag used
Symbolic name Analogue_DB.OP_VISIBILITY
Data type Byte
Access method Symbolic access
Length 1 byte
Acquisition cycle 100 ms
Acquisition mode Cyclic during operation

Bits 0..6 serve for opening or selecting the individual tabs of the faceplate window
(maximized display). If more than one bit is set, only the background of the
faceplate window is displayed. If bit 7 has been set, only the title bar of the
faceplate window is displayed (minimized display), irrespective of the status of the
remaining bits. If none of the bits are set, the faceplate window is closed.
Table 4-23
Bit 7 6 5 4 3 2 1 0
Selec-
tion
Minimize Tab 5
(Service)
Tab 4
(Limits)
Tab 3
(Trends)
Tab 2
(Messages)
Tab 1
(Overview)

Note
The tag can also be defined as an internal tag without PLC connection if only a
limited number of control tags are available.
If the tag has a PLC connection, read and write access is possible from the
controller. Aside from the known screen selection, the respective faceplate
window can also be opened from the controller and a specific tab can be
selected.

4 Functional Mechanism of this Faceplate
4.5 Alarms and messages

ANALOGUE (FB640)
1.0, Entry ID: 66839614 25

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

4.5 Alarms and messages
This application uses the bit message procedure to display messages in
WinCC Advanced. The messages must be configured as bit messages in the
message editor of WinCC Advanced.
In the example configuration all bit messages were created for the used faceplate
instances, as well as their trigger tags.
Message tag
Table 4-24
Tag used
Symbolic name Analogue_DB.QwAlarm
Data type Word
Access method Symbolic access
Length 2 byte
Acquisition cycle 100 ms
Acquisition mode Cyclic continuous

The following table shows the setup of the tags. The message texts were prefixed
by the Analogue_001 filter attribute for the first instance of the analog faceplate
window.
Table 4-25
Bit Signal Message text
0 QALARM_LL Analogue_001: Alarm lower limit undercut
1

1 QALARM_UL Analogue_001: Alarm upper limit exceeded
1

2 Analogue_001:
3 Analogue_001:
4 QLOCK Analogue_001: Lock, value locked
5 Analogue_001:
6 QERR_EXT Analogue_001: external error
7 QERR Analogue_001: group error
8 QWARN_LL Analogue_001: Warning lower limit undercut
1

9 QWARN_UL Analogue_001: Warning upper limit undercut
1

10 Analogue_001:
11 Analogue_001:
12 LOCK Analogue_001: interlock pending
13 Analogue_001:
14 Analogue_001:
15 QSIM Analogue_001: simulation is ACTIVE
1) Message includes the associated value of the limit that was up to date when the message was
generated.
4 Functional Mechanism of this Faceplate
4.6 Control and status signals

26
ANALOGUE (FB640)
1.0, Entry ID: 66839614

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

4.6 Control and status signals
4.6.1 Processing of switching commands in the controller
The WinCC Advanced control tag OP_dwCmd of a block is used to transmit
commands from WinCC Advanced to the PLC. The PLC block analyses 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 parameter is set to 0.
Further notes for the use in WinCC Advanced can be found under the Command
property.

Figure 4-7
"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

4 Functional Mechanism of this Faceplate
4.6 Control and status signals

ANALOGUE (FB640)
1.0, Entry ID: 66839614 27

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

The following table shows the setup of the tags.
Table 4-26
B
i
t

3
1

3
0

2
9

2
8

2
7

2
6

2
5

2
4

2
3

2
2

2
1

2
0

1
9

1
8

1
7

1
6

1
5

1
4

1
3

1
2

1
1

1
0

9

8

7

6

5

4

3

2

1

0

S
i
g
n
a
l


R
E
S
E
T


S
I
M
U
L
A
T
I
O
N

P
R
O
C
E
S
S


R
e
a
l
V
a
l

P
e
r
i
p
h
e
r
y
V
a
l

H
Y
S
_
A
b
s
o
l
u
t
e

H
Y
S
_
P
e
r
c
e
n
t
a
l


A
l
_
L
o
w
e
r
_
L
i
m
i
t

W
a
_
L
o
w
e
r
_
L
i
m
i
t

W
a
_
U
p
p
e
r
_
L
i
m
i
t

A
l
_
U
p
p
e
r
_
L
i
m
i
t

4 Functional Mechanism of this Faceplate
4.6 Control and status signals

28
ANALOGUE (FB640)
1.0, Entry ID: 66839614

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

4.6.2 Evaluating and displaying process states in WinCC Advanced
The technology block of this application uses the QdwState (DWORD) output to
show the different states in the WinCC Advanced process screen.
Further notes for the use in WinCC Advanced can be found under the State
property.

Table 4-27
"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


The following table shows the setup of the tags.
Table 4-28
B
i
t

3
1

3
0

2
9

2
8

2
7

2
6

2
5

2
4

2
3

2
2

2
1

2
0

1
9

1
8

1
7

1
6

1
5

1
4

1
3

1
2

1
1

1
0

9

8

7

6

5

4

3

2

1

0

S
i
g
n
a
l


L
O
C
K

Q
L
O
C
K

Q
E
R
R
_
E
X
T

Q
E
R
R


Q
S
I
M


Q
E
R
R
_
W
I
R
E

Q
E
R
R
_
O
V
E
R
R
U
N

Q
E
R
R
_
H
I
G
H
R
A
N
G
E

Q
E
R
R
_
L
O
W
R
A
N
G
E


Q
A
L
A
R
M

Q
W
A
R
N

L
I
M
_
L
L
A
_
E
n
a
b
l
e

L
I
M
_
L
L
W
_
E
n
a
b
l
e

L
I
M
_
U
L
W
_
E
n
a
b
l
e

L
I
M
_
U
L
A
_
E
n
a
b
l
e


L
I
M
_
H
Y
S
_
S
e
t

I
N
_
M
O
D
E

4 Functional Mechanism of this Faceplate
4.6 Control and status signals

ANALOGUE (FB640)
1.0, Entry ID: 66839614 29

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

4.6.3 Switching over inputs
To switch over the inputs, the following signals are used:

Table 4-29
"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



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 is active
N_MODE = 1 IN input is active

BIPOLAR
The BIPOLAR input defines whether the scaling of the IN_INT input signal
is unipolar or bipolar.
BIPOLAR = 0 nominal range is from 0 to +27648
BIPOLAR = 1 nominal range is from -27648 to +27648
4 Functional Mechanism of this Faceplate
4.6 Control and status signals

30
ANALOGUE (FB640)
1.0, Entry ID: 66839614

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

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:
http://support.automation.siemens.com/WW/view/en/8859629

IN
The value of the IN input is processed directly and passed on to QOUT
within the specified limits.
4.6.4 Defining the range of values
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.

Table 4-30
"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



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



HI_LIM upper range of values
"LO_LIM" lower range of values
4 Functional Mechanism of this Faceplate
4.6 Control and status signals

ANALOGUE (FB640)
1.0, Entry ID: 66839614 31

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

4.6.5 Limit monitoring
The limit monitoring is used to trigger a warning or an alarm if the signal to be
monitored exceeds or falls below one or several limits.

Table 4-31
"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



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 trigger to
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
4 Functional Mechanism of this Faceplate
4.6 Control and status signals

32
ANALOGUE (FB640)
1.0, Entry ID: 66839614

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

LIM_ULW_Enable
Enables the monitoring of the LIM_ULW limit for exceeding 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 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 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
output irrespective of LIM_LLA_Enable.
LIM_LLA_Enable = 0 limit monitoring inactive
LIM_LLA_Enable = 1 limit monitoring active
LIM_HYS and LIM_HYS_Set
The LIM_HYS value supplies the limit for deactivating a limit monitoring
message with a hysteresis. Depending on the LIM_HYS_Set parameter, the
value can be specified as an absolute value or as a percentage value.
LIM_HYS_Set = 0 LIM_HYS interpreted as a percentage value
LIM_HYS_Set = 1 LIM_HYS interpreted as an absolute value
LIM_HYS interpreted as a percentage value depends on the range of values
defined by the HI_LIM and LO_LIM parameters and is converted
accordingly.
The value of the hysteresis is mirrored to the QLIM_HYS output and
influences the deactivation of the triggered limit monitoring messages:
Messages relating to an exceeded limit: these messages are deactivated
only after the limit minus the hysteresis has been reached.
Messages indicating that the value has fallen below a limit: these
messages are deactivated only after the limit plus the hysteresis has been
reached.
4 Functional Mechanism of this Faceplate
4.6 Control and status signals

ANALOGUE (FB640)
1.0, Entry ID: 66839614 33

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

4.6.6 Enabling/disabling simulation
The Simulation ON mode can simulate the analog signal. This function is
important, for example, if automatic functions are already to be tested during the
configuration phase, but 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.

Table 4-32
"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



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



4 Functional Mechanism of this Faceplate
4.6 Control and status signals

34
ANALOGUE (FB640)
1.0, Entry ID: 66839614

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

IN_SIM
When the simulation is enabled, the IN_SIM input is active, otherwise
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 or off via the
L_SIM control input.
If the LIOP_SEL input is not set, the simulation is turned on or off by the
operator (OPdwCmd [bit 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 OPdwCmd control word are only active if the
LIOP_SEL input is not set.
LIOP_SEL = 0 AND OPdwCmd [bit 20] = 1 Simulation OFF
LIOP_SEL = 0 AND OPdwCmd [bit 21] = 1 Simulation ON
QSIM
The operating mode is indicated at the QSIM block output.
QSIM = 0 Simulation OFF
QSIM = 1 Simulation ON
QdwState
The current Simulation mode is indicated in the status word by means of
bit 18.
QdwState [bit 18] = 0 Simulation OFF
QdwState [bit 18] = 1 Simulation ON
4 Functional Mechanism of this Faceplate
4.6 Control and status signals

ANALOGUE (FB640)
1.0, Entry ID: 66839614 35

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

4.6.7 Error reset
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 error is pending.

Table 4-33
"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



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


4 Functional Mechanism of this Faceplate
4.6 Control and status signals

36
ANALOGUE (FB640)
1.0, Entry ID: 66839614

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

L_RESET
When setting the LIOP_SEL input parameter and a positive edge on the
L_RESET input, the QERR output is reset.
OPdwCmd
By pressing the RESET button in the faceplate window, bit 24 is set in
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.
5 Configuration and Settings
4.6 Control and status signals

ANALOGUE (FB640)
1.0, Entry ID: 66839614 37

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

5 Configuration and Settings
Here you will find out
how the faceplate of this application is structured. This chapter is necessary if you
wish to design the faceplate according to your needs.
Principle of layer technique
The principle of layer technology was used for the faceplate of this application. The
layer technology enables differentiated editing of the faceplate objects.
The faceplate editor and the picture editor have 32 layers; however, the layers of
the faceplate are only available within the faceplate editor. After adding a faceplate
from the library into the picture editor (creating a faceplate instance) it can only be
assigned a layer within the picture editor, just as any other picture object.
However, the offset in depth within the faceplate remains.
Offset in depth structure
Objects of layer 0 are in the background of the pictures, objects of layer 31 are
in the front. The objects of a single layer are also arranged hierarchically. When
creating a picture or a faceplate the first added object is placed at the back within
the layer. Each further object is added one position further to the front. Within a
layer you can also move the objects to the front and to the back.
Editing faceplates
Changes at the faceplates can be performed at a central location.
There are two options to change a faceplate and its instances:
Changing the faceplate via an instance (location of usage)
Select the faceplate in the workspace of the picture editor and select the Edit
faceplate command via the context menu.
Changing the faceplate in the library
Open the project library and select the faceplate. Select the Edit faceplate
type command via the context menu of the faceplate.
After subsequent release of the faceplate, the changes made are updated in
the instances and also in the project library.

5 Configuration and Settings
4.6 Control and status signals

38
ANALOGUE (FB640)
1.0, Entry ID: 66839614

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

Working with layers
One of the 32 layers is always active. When inserting objects into a picture or a
faceplate they are assigned to the active layer by default. The enabled layer is
selected with a pen icon in the "Layout > layer task card.

Figure 5-1

When opening a picture or a faceplate all 32 layers are always displayed. In the
"Layout > Layers task card you can hide all layers apart from the enabled layer.
You then specifically edit the objects of the active layer.
5 Configuration and Settings
5.1 Configuring the faceplate window

ANALOGUE (FB640)
1.0, Entry ID: 66839614 39

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

5.1 Configuring the faceplate window
The faceplate window is divided into several layers. Since neither the layers of a
faceplate nor the layers of a picture can be accessed during runtime, the
application uses the Visibility animation type of each object. For this purpose, the
Visibility property is connected in the faceplates.
5.2 Layer 0 frames
Layer 0 contains all important objects required for displaying the faceplate
window. These objects represent the faceplate window frame.

Figure 5-2

The following different display types exist:
Open
Close
Minimize
Maximize
5 Configuration and Settings
5.2 Layer 0 frames

40
ANALOGUE (FB640)
1.0, Entry ID: 66839614

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

Opening and maximizing
The display types open and maximize do not differ in layer 0, the full faceplate
window is always displayed.
When opening, layer 1 (tab 1) is always additionally displayed, when
maximizing, the tab last active (layer 1, layer 2, layer 3, layer 4 or layer 5)
is displayed.

All objects of layer 0, apart from the title bar, have the following settings for
visibility:
Table 5-1
Tag State Area
Visibility Visible from 1 to 127

The following table shows the status of the Visibility tag when opening the
faceplate window.
Table 5-2
Bit 7 6 5 4 3 2 1 0
Value 0 0 0 0 0 0 0 1

Note
When clicking the faceplate icon, the Visibility tag is always loaded with value
1. This results in the respective faceplate window being displayed with tab 1.

The following table shows the status of the Visibility tag when maximizing the
faceplate window. Depending which tab was selected before minimizing, one of
the bits will be set 0 to 4 when maximizing bit 7 must not be set.
Table 5-3
Bit 7 6 5 4 3 2 1 0
Value 0 0 0 x x x x x
5 Configuration and Settings
5.2 Layer 0 frames

ANALOGUE (FB640)
1.0, Entry ID: 66839614 41

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

Minimizing
The minimize display type only shows the title bar of the faceplate window and
thus reveals the picture objects at the back.

Figure 5-3


All objects of the title bar have the following settings for the visibility:
Table 5-4
Tag State Area
Visibility hidden from 0 to 0

The following table shows the status of the Visibility tag when minimizing the
faceplate window. If bit 7 has been set, only the title bar of the faceplate window
is displayed irrespective of the remaining status.
Table 5-5
Bit 7 6 5 4 3 2 1 0
Value 1 0 0 x x x x x
Close
The display type close hides all objects of the picture window.

The following table shows the status of the Visibility tag when closing the
faceplate window.
Table 5-6
Bit 7 6 5 4 3 2 1 0
Value 0 0 0 0 0 0 0 0
5 Configuration and Settings
5.3 Layer 1 tab 1

42
ANALOGUE (FB640)
1.0, Entry ID: 66839614

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

5.3 Layer 1 tab 1
The following figure shows layer 0 and layer 1.

Figure 5-4

All layer 1 objects have the following settings for the visibility:
Table 5-7
Tag State Area
Visibility Visible from 1 to 1

The following table shows the status of the Visibility tag when displaying layer 1
(tab 1) of the faceplate window.
Table 5-8
Bit 7 6 5 4 3 2 1 0
Value 0 0 0 0 0 0 0 1
5 Configuration and Settings
5.4 Layer 2 tab 2

ANALOGUE (FB640)
1.0, Entry ID: 66839614 43

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

5.4 Layer 2 tab 2
The following figure shows layer 0 and layer 2.

Figure 5-5

All layer 2 objects have the following settings for the visibility:
Table 5-9
Tag State Area
Visibility Visible from 2 to 2

The following table shows the status of the Visibility tag when displaying layer 2
(tab 2) of the faceplate window.
Table 5-10
Bit 7 6 5 4 3 2 1 0
Value 0 0 0 0 0 0 1 0

5 Configuration and Settings
5.5 Layer 3 tab 3

44
ANALOGUE (FB640)
1.0, Entry ID: 66839614

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

5.5 Layer 3 tab 3
The following figure shows layer 0 and layer 3.

Figure 5-6

All layer 3 objects have the following settings for the visibility:
Table 5-11
Tag State Area
Visibility Visible from 4 to 4

The following table shows the status of the Visibility tag when displaying layer 3
(tab 3) of the faceplate window.
Table 5-12
Bit 7 6 5 4 3 2 1 0
Value 0 0 0 0 0 1 0 0

5 Configuration and Settings
5.6 Layer 4 tab 4

ANALOGUE (FB640)
1.0, Entry ID: 66839614 45

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

5.6 Layer 4 tab 4
The following figure shows layer 0 and layer 4.

Figure 5-7

All layer 4 objects have the following settings for the visibility:
Table 5-13
Tag State Area
Visibility Visible from 8 to 8

The following table shows the status of the Visibility tag when displaying layer 4
(tab 4) of the faceplate window.
Table 5-14
Bit 7 6 5 4 3 2 1 0
Value 0 0 0 0 1 0 0 0
5 Configuration and Settings
5.7 Layer 5 tab 5

46
ANALOGUE (FB640)
1.0, Entry ID: 66839614

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

5.7 Layer 5 tab 5
The following figure shows layer 0 and layer 5.

Figure 5-8

All layer 5 objects have the following settings for the visibility:
Table 5-15
Tag State Area
Visibility Visible from 16 to 16

The following table shows the status of the Visibility tag when displaying layer 5
(tab 5) of the faceplate window.
Table 5-16
Bit 7 6 5 4 3 2 1 0
Value 0 0 0 1 0 0 0 0
6 Startup of the Application
5.7 Layer 5 tab 5

ANALOGUE (FB640)
1.0, Entry ID: 66839614 47

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

6 Startup of the Application
Here you will find out
how to integrate the ANALOGUE STEP 7 block (FB 640) and the respective
WinCC Advanced faceplate into an empty or existing project.
This example uses the STEP 7 block that is not interconnected, the AnalogueIcon
faceplate icon and the Analogue faceplate window.

Note
The application provides an executable project. You only need to perform the
steps explained in this chapter if you wish to integrate the blocks into your own
project.
If you only want to visualize the functionality of this application it suffices to unzip
the Faceplates_WinCC_Advanced_Blocks_Code.zip file and to open it in the
TIA Portal.
Transfer the blocks to a S7 controller of your choice and start the HMI station
(WinCC Advanced RT) integrated in the project on a connected PC.


NOTICE The process connection was configured for Industrial Ethernet. Adjust the
settings for CPU, HMI station and PG/PC interface on demand.

6 Startup of the Application
6.1 Configuring the STEP 7 block

48
ANALOGUE (FB640)
1.0, Entry ID: 66839614

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

6.1 Configuring the STEP 7 block
Table 6-1
Step Description
1. Creating a new project
Create a new project with an S7 controller and an HMI station (WinCC
Advanced), or open an existing project.
If you are using an existing project, it is advisable to create a backup
before performing the following steps.
2. Inserting blocks
Open the project of this application with the TIA Portal.
Copy the FB640 block to the respective directory of the S7 program.
If you are using a new project, also insert the calling block OB1 and the
DB620 instance data block into your project.
3. Calling the blocks
When using an existing project you must integrate the FB640 block into
the cycle of the PLC. The necessary instance data block is then
automatically generated.
6 Startup of the Application
6.2 Configuring the WinCC Advanced faceplates

ANALOGUE (FB640)
1.0, Entry ID: 66839614 49

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

6.2 Configuring the WinCC Advanced faceplates
Table 6-2
Steps Procedure
1. Opening object
Open the TIA Portal project.
2. Selecting the library
Open the Libraries > Project library task card

6 Startup of the Application
6.2 Configuring the WinCC Advanced faceplates

50
ANALOGUE (FB640)
1.0, Entry ID: 66839614

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

Steps Procedure
3. Creating new library
Select the dialog to create a global library via the New library context menu.

4. Creating a global library
Create a new global library in a folder of your choice.

Note
A global file library can be accessed from several configuration computers. It is thus advisable
to store the library on a network drive with shared access.

6 Startup of the Application
6.2 Configuring the WinCC Advanced faceplates

ANALOGUE (FB640)
1.0, Entry ID: 66839614 51

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

Steps Procedure
5. Integrating the global file library
Open the Libraries > Global libraries task card
Select the dialog to create a global library via the Open library context menu.

6 Startup of the Application
6.2 Configuring the WinCC Advanced faceplates

52
ANALOGUE (FB640)
1.0, Entry ID: 66839614

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

Steps Procedure
6. Creating the project library
Open the previously created global library in your project.

7. Integrating the faceplates
Within the library, select the Types > ANALOGUE category.
Move the faceplate objects included in this category to your project using drag & drop.

6 Startup of the Application
6.2 Configuring the WinCC Advanced faceplates

ANALOGUE (FB640)
1.0, Entry ID: 66839614 53

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

Steps Procedure
8. Integrating the messages and tags
Within the library, select the Master copies > ANALOGUE category.
Using drag & drop, move the AnalogueTags to the HMI tags folder and the
AnalogueAlarms messages to the HMI messages folder.

Notice:
The message numbers of this application occupy the number range starting at 10001.
Check your existing project before integrating the messages and enable this area if
necessary.
Furthermore, check the symbolic connection of the tags and restore it, if necessary.

9. Interconnecting the faceplates
Interconnect the dynamic properties of the faceplate window. More information on this
matter can be found in Dynamic properties of the faceplate window.
Interconnect the static properties of the faceplate window. More information on this matter
can be found in Static properties of the faceplate window.
Interconnect the dynamic properties of the faceplate icon. Further information is available
in Interfaces of the faceplate symbol.
7 Operating the Application
7.1 Faceplate icon

54
ANALOGUE (FB640)
1.0, Entry ID: 66839614

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

7 Operating the Application
Here you will find out
how to operate the faceplates in WinCC Advanced and which options the blocks
provide to engage in the process.
7.1 Faceplate icon
Figure 7-1


The faceplate icon has the following properties:
simplified status display
opens the respective faceplate via mouse-click
contains no language-dependent objects
The faceplate icon offers the following functionality:
Displayed operating states:
Actual value
Limit violation (warning/alarm)
Simulation feedback
Interlock
Displayed errors:
General error
Operation:
7 Operating the Application
7.1 Faceplate icon

ANALOGUE (FB640)
1.0, Entry ID: 66839614 55

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

The following table shows the possible operating modes:
Table 7-1
Operating
mode
QdwState Icon Blinking
Normal Bit 24 = 0

No
Error Bit 24 = 1

Yes
The following table shows the possible status displays:
Table 7-2
State Symbol
Interlock OFF

Interlock triggered

Alarm limit OFF

Alarm limit ON

Warning limit OFF

Warning limit ON

Simulation OFF

Simulation ON

7 Operating the Application
7.2 Faceplate window

56
ANALOGUE (FB640)
1.0, Entry ID: 66839614

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

7.2 Faceplate window
The faceplate window has the following properties:
tab selection (also via the controller)
open, close, minimize, maximize (also via the controller)
detailed status display
provides the option of engaging in the process
contains language-dependent objects (German/English)
shows relevant messages (filtered)
enables changes for service staff (protected call)
Overview

Figure 7-2


In this view you can perform the following actions:
Select an analog value (only in simulation mode).
Select limits (only in simulation mode).
Reset error states.

7 Operating the Application
7.2 Faceplate window

ANALOGUE (FB640)
1.0, Entry ID: 66839614 57

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

The following table shows the possible operating modes:
Table 7-3
Operating mode QdwState Icon Blinking
Normal Bit 8 = 0 and
Bit 9 = 0

No
Warning
(limit violated)
Bit 8 = 1

No
Alarm
(limit violated)
Bit 9 = 1

No
The following table shows the possible status displays:
Table 7-4
State Icon
Off
Icon
On
Blinking
Simulation

Yes
Overrun

No
High Limit

No
Low Limit

No
Wire Break

No
External Error

No
Interlock

No
General error

No

7 Operating the Application
7.2 Faceplate window

58
ANALOGUE (FB640)
1.0, Entry ID: 66839614

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

Messages

Figure 7-3


In this view you can perform the following actions:
Display of block-related alarms and messages.
Acknowledgement of alarms.
7 Operating the Application
7.2 Faceplate window

ANALOGUE (FB640)
1.0, Entry ID: 66839614 59

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

Trends

Figure 7-4


In this view you can perform the following actions:
Display limits
Display the analog value
7 Operating the Application
7.2 Faceplate window

60
ANALOGUE (FB640)
1.0, Entry ID: 66839614

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

Limits

Figure 7-5


In this view you can perform the following 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 as either an absolute value or as a percentage value.
For the respective settings, please go to the Service tab.

7 Operating the Application
7.2 Faceplate window

ANALOGUE (FB640)
1.0, Entry ID: 66839614 61

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

Service

Figure 7-6


NOTICE The Service tab is protected and requires the authorization of the
Service group for the selection.
The default user is admin and the default password 100.
If you create a new instance of the faceplate window and do not
interconnect the Service property, the Service tab has no access
protection.


In this view you can perform the following 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
switchover between 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
warning.

7 Operating the Application
7.2 Faceplate window

62
ANALOGUE (FB640)
1.0, Entry ID: 66839614

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

The following table shows the possible status displays:
Table 7-5
State Icon Off Icon On
Process input (real value)

Hysteresis entry as an
absolute value
Simulation


8 7BBlock Connectors


ANALOGUE (FB640)
1.0, Entry ID: 66839614 63

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

8 Block Connectors
8.1 Input parameters
Table 8-1
Parameter Data type Default setting Description
EN BOOL FALSE Enable
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 Error reset (positive edge)
IN_MODE BOOL FALSE 0= S7 periphery, 1= real value
BIPOLAR BOOL FALSE 1= scaling bipolar
IN_INT INT 0 Periphery value
IN REAL 55.0 Real value
IN_SIM REAL 55.0 Simulation value (real value)
HI_LIM REAL 100.0 High scaling limit
LO_LIM REAL 0.0 Low scaling limit
LIM_ULA_Enable BOOL FALSE 1= upper alarm limit active
LIM_ULA REAL 90.0 Upper alarm limit
LIM_ULW_Enable BOOL FALSE 1= upper warning limit active
LIM_ULW REAL 80.0 Upper warning limit
LIM_LLW_Enable BOOL FALSE 1= lower warning limit active
LIM_LLW REAL 20.0 Lower warning limit
LIM_LLA_Enable BOOL FALSE 1= lower alarm limit active
LIM_LLA REAL 10.0 Lower alarm limit
LIM_HYS_Set BOOL FALSE 0= percentage, 1= absolute
LIM_HYS REAL 0.0 Hysteresis (message limits)
INSTANCE STRING[16] Analogue_001 Filter attribute for messages,
labeling of title bar
Restart BOOL FALSE Initializing at restart
VISIBILITY BYTE 0 Representation of
faceplate window
OPdwCmd DWORD 0 Control tag (HMI)
8 7BBlock Connectors


64
ANALOGUE (FB640)
1.0, Entry ID: 66839614

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

8.2 Output parameters
Table 8-2
Parameter Data type Default setting Description
QdwState DWORD DW#16#0 Status tag (HMI)
QOUT REAL 0.0 Analog value
QHI_LIM REAL 100.0 High scaling limit
QLO_LIM REAL 0.0 Low scaling limit
QLIM_ULA_Enable BOOL FALSE 1= upper alarm limit active
QLIM_ULA REAL 90.0 Upper alarm limit
QLIM_ULW_Enable BOOL FALSE 1= upper warning limit active
QLIM_ULW REAL 80.0 Upper warning limit
QLIM_LLW_Enable BOOL FALSE 1= lower warning limit active
QLIM_LLW REAL 20.0 Lower warning limit
QLIM_LLA_Enable BOOL FALSE 1= lower alarm limit active
QLIM_LLA REAL 10.0 Lower alarm limit

QLIM_HYS REAL 0.0 Hysteresis (message limits)
QALARM_UL BOOL FALSE 1= alarm for upper limit
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 Enable


9 8BFurther Notes


ANALOGUE (FB640)
1.0, Entry ID: 66839614 65

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

9 Further Notes
Further blocks for this application
This document is part of an application which describes further technological
blocks. Within the framework of this application, the number of technology blocks is
successively expanded.

The following table shows the roadmap:
Table 9-1
Block Description
MOTOR Visualization and operator control of a motor with fixed speed and
rotational direction
VALVE Visualization and operator control of a binary valve
DIGITAL Visualization and operation of digital signals.
ANALOGUE Visualization and operation of analog signals.
PIDCTRL Visualization and operator control of a software-implemented PID
controller for regulating technical parameters with continuous input and
output values.
SIMODIR Visualization and control of the SIMOCODE pro motor management
system as a direct starter.
SIMOREV Visualization and control of the SIMOCODE pro motor management
system as a reversing starter.
SINAG120 Visualization and control of the SINAMICS G120 frequency converter.
10 9BLiterature


66
ANALOGUE (FB640)
1.0, Entry ID: 66839614

C
o
p
y
r
i
g
h
t


S
i
e
m
e
n
s

A
G

2
0
1
2

A
l
l

r
i
g
h
t
s

r
e
s
e
r
v
e
d

10 Literature
The following list is by no means complete and only provides a selection of
appropriate sources.
10.1 Bibliographic References
Tabelle 10-1
Topic Title
/1/ STEP7
SIMATIC S7-1200
Automating with SIMATIC S7-1200
Author: Hans Berger
Publicis Publishing
ISBN: 978-3-89578-355-5
10.2 Internet Links
Table 10-2
Title Link
\1\ Faceplates for Step 7 V11
and
WinCC Runtime Advanced
V11
http://support.automation.siemens.com/WW/view/en/66839614
\2\ Configuration instruction to
create faceplates for
Comfort Panels and
WinCC Runtime Advanced
http://support.automation.siemens.com/WW/view/en/68014632
\3\ SENTRON PAC faceplates
for WinCC
Runtime Professional
http://support.automation.siemens.com/WW/view/en/67318600
\4\ Sample Blocks for STEP7
V5 and WinCC V7
http://support.automation.siemens.com/WW/view/en/31624179
\5\ Sample Blocks for STEP 7
V5 and WinCC flexible
2008
http://support.automation.siemens.com/WW/view/en/36435784
\6\ Siemens Industry Online
Support
http://support.automation.siemens.com

11 History
Table 10-3
Version Date Modifications
V1.0 03/2013 First version

You might also like