Sei sulla pagina 1di 70

Cover

Sample Blocks for STEP 7 and


WinCC flexible
WinCC flexible
Application Description April 2010

Applications & Tools


Answers for industry.

Industry Automation and Drives Technologies Service & Support Portal


This article is taken from the Service Portal of Siemens AG, Industry Automation
and Drives Technologies. The following link takes you directly to the download
page of this document.

Copyright Siemens AG 2010 All rights reserved

http://support.automation.siemens.com/WW/view/en/36435784

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

SIMATIC
WCF_BLOCKS_SimoDir (FB611)

Overview

Automation Solution

Basics

Functional Mechanisms

Configuration

Startup of the Application

Operating the Application

Block Connectors

Further Notes

Bibliography

History

Copyright Siemens AG 2010 All rights reserved

Application

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Warranty and Liability

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. 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 sound 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 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.

Copyright Siemens AG 2010 All rights reserved

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.
It is not permissible to transfer or copy these application examples or excerpts of
them without having prior authorization from Siemens Industry Sector in writing.
For questions about this document please use the following e-mail address:
online-support.automation@siemens.com

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Table of Contents

Table of Contents
Warranty and Liability ................................................................................................. 4
1

Automation Task................................................................................................ 7
1.1

Overview .............................................................................................. 7

Automation Solution ......................................................................................... 9


2.1
2.2

Overview .............................................................................................. 9
Hardware and software components used......................................... 10

Basics ............................................................................................................... 11

Functional Mechanisms .................................................................................. 12

Copyright Siemens AG 2010 All rights reserved

4.1
4.2
4.2.1
4.2.2
4.2.3
4.2.4
4.2.5
4.2.6
4.3
4.3.1
4.3.2
4.3.3
4.4
4.4.1
4.5
4.5.1
4.6
4.6.1
4.6.2
4.6.3
4.6.4
4.6.5
4.6.6
4.6.7
4.6.8
5

Configuration ................................................................................................... 43
5.1
5.1.1
5.1.2
5.1.3
5.1.4
5.1.5
5.1.6
5.1.7

Configuration of the faceplate window ............................................... 45


Layer 0 frames ................................................................................ 45
Layer 1 tab 1 ................................................................................... 48
Layer 2 tab 2 ................................................................................... 49
Layer 3 tab 3 ................................................................................... 49
Layer 4 tab 4 ................................................................................... 49
Layer 5 tab 5 ................................................................................... 50
Layer 6 tab 6 ................................................................................... 50

Startup of the Application............................................................................... 51


6.1
6.2

Interfaces of the faceplate window..................................................... 12


Dynamic properties of the faceplate window ..................................... 14
Animations.......................................................................................... 14
Process .............................................................................................. 15
Process_Trends_Value ...................................................................... 17
Process_Values ................................................................................. 18
Diagnosis............................................................................................ 19
Statistics ............................................................................................. 20
Static properties of the faceplate window........................................... 24
Process_Trends_Value ...................................................................... 24
Label................................................................................................... 24
UserManagement............................................................................... 25
Interfaces of the faceplate icon .......................................................... 26
Process .............................................................................................. 27
Alarms and messages........................................................................ 29
Message tag....................................................................................... 29
Control and status signals .................................................................. 30
Processing of switching commands in the controller ......................... 30
Transferring switching commands to the motor management system31
Evaluating process states and displaying them in WinCC flexible .... 32
Manual/automatic mode ..................................................................... 33
Local/remote switchover..................................................................... 35
Starting and stopping the motor ......................................................... 37
Simulation On/Off ............................................................................... 39
Displaying and resetting interlock ...................................................... 41

Configuring the STEP 7 block ............................................................ 52


Configuring the WinCC flexible faceplates......................................... 53

Operating the Application............................................................................... 57


7.1
7.2

Faceplate icon .................................................................................... 57


Faceplate window............................................................................... 59

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Table of Contents
8

Block Connectors ............................................................................................ 66


8.1
8.2

Input parameters ................................................................................ 66


Output parameters ............................................................................. 67

Further Notes ................................................................................................... 68

10

Bibliography..................................................................................................... 69

11

History............................................................................................................... 70

Copyright Siemens AG 2010 All rights reserved

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Automation Task

Automation Task
1.1

Overview

Introduction
The sample blocks for STEP 7 and WinCC flexible are to offer the user various
automation functions or the use of 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.
The advantages when using faceplates in WinCC flexible shall be illustrated:

central changeability
When changes are made to a faceplate, all locations of this faceplate are
automatically updated.

Copyright Siemens AG 2010 All rights reserved

reuse in other projects


Faceplates are stored in a library to be able to reuse them in another project.

Reducing the workload for the configuration


It is to be possible to quickly integrate frequently used automation components
into a configuration.

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Automation Task

Description of the automation task


This application describes the configuration of the SimoDir (FB 611) technology
block and the related faceplates. This block is used for the visualization and control
of the motor management system SIMOCODE pro as direct starter.
The block offers the following functions:

start / stop

manual / automatic mode

local / remote mode

simulation

display of interlock conditions via ILOCK

Copyright Siemens AG 2010 All rights reserved

The following operating modes of the frequency converter are displayed:

stop

run

illegal

The following errors are evaluated, displayed in the picture window and saved in
Alarm Logging:

ON/OFF feedback

interlock error active

ATTENTION

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 of this application only serves as a template
for creating your own blocks.

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Automation Solution

Automation Solution
2.1

Overview

Display
The following figures show the block in the controller, the block icon, and the
faceplate window for controlling, operating and monitoring motors with fixed speed
and rotational direction.
Table 2-1
Faceplate Icon and Faceplate

Copyright Siemens AG 2010 All rights reserved

Block

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Automation Solution

2.2

Hardware and software components used


The application was generated with the following components:

Hardware components
Table 2-2
Component

Number

Note

Development system

PC to configure the controller and


WinCC flexible. The hardware requirements for
STEP 7 and WinCC flexible apply.

Motor management system


SIMOCODE pro

The block was created especially for using the


motor management system SIMOCODE pro.
Hyperlinks for further information can be found
in the appendix.

S7-300 CPU
or
S7-400 CPU

Copyright Siemens AG 2010 All rights reserved

Software components
Table 2-3
Component

Number

MLFB / Order number

STEP 7 V5.4 SP5

6ES7810-4CC08-0YA7

WinCC flexible 2008 SP1

6AV6613-0AA51-3CA5

Note

Sample files and projects


The following list contains all files and projects that are used in this example.
Table 2-4
Component

10

Note

36435784_S7_WCF_Blocks_CODE.zip

The zip file contains the STEP 7


project with the integrated
WinCC flexible project.

36435784_S7_WCF_Blocks_DOCUMENTS_d.zip

All documents for this application.

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Basics

Basics

Introduction
Faceplates are objects that you compile from existing picture objects.
Faceplates provide the following advantages:

central changeability

reuse in other projects

reducing the workload for the configuration

Faceplates are created and changed in the Faceplate editor. The created
faceplates are added to the Project Library and can be inserted into screens in
the same way as other objects.
Using a faceplate

Copyright Siemens AG 2010 All rights reserved

After you have generated a faceplate, the faceplate appears as an object in the
project library.
Insert the faceplate into your process screens and configure it for the respective
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 resulting faceplate instance is
automatically updated.
Reusing faceplates in several projects
WinCC flexible enables you to add faceplates to a global library. This enables you
to reuse faceplates also in other projects.
As soon as you insert a faceplate from a global library into a screen, the faceplate
is also stored in the project library. You only change the faceplate in the project
library and the changes are not automatically adopted in the global library.

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

11

Functional Mechanisms

Functional Mechanisms
4.1

Interfaces of the faceplate window

Copyright Siemens AG 2010 All rights reserved

Figure 4-1

12

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Functional Mechanisms

The interface of a faceplate generally differentiates between dynamic and static


properties:
A dynamic property is always connected to a tag via the interface; in Runtime,
the tag supplies the property with values.

Static properties are either configured directly in the picture editor, the
properties are then stored together with the faceplate, or at the interface of the
faceplate. Static properties cannot be changed in Runtime.

Copyright Siemens AG 2010 All rights reserved

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

13

Functional Mechanisms

4.2

Dynamic properties of the faceplate window

4.2.1

Animations
The tags in this group are used to display and represent the faceplate windows.

Visibility
The Visibility property is used to influence the display properties of the faceplate
window during runtime.
The following properties are influenced:

opening

closing

minimizing

maximizing

selection of individual tabs

triggering of acyclic read services (selection of tab 4)

Table 4-5
Copyright Siemens AG 2010 All rights reserved

Tag used
Symbolic Name

SimoDirDB.OP_VISIBILITY

Data type

byte

Address

DB 611 DBB 164

Length

1 byte

Acquisition cycle

100 ms

Acquisition mode

Cyclic when used

Bits 0..6 are used 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 is set, only the faceplate window title bar is
displayed (minimized display) irrespective of the status of the remaining bits. If
none of the bits has been set, the faceplate window is closed.
The following table illustrates the structure of the tags.
Table 4-6
Bit

Select

Minimize

Note

14

Tab 6

Tab 5

Tab 4

Tab 3

Tab 2

Tab 1

The tag is also used to trigger acyclic read services between the controller and
the SIMOCODE pro (when selecting the tab 4 in faceplate window).

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Functional Mechanisms

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 transfer the commands of WinCC flexible to
the controller. The block in the controller evaluates the control command, executes
the desired action if necessary and subsequently resets all pending control
commands. For this purpose, the value of the control tag is set to value 0.
Table 4-7

Symbolic Name

SimoDirDB.OPdwCmd

Data type

DWord

Address

DB 611 DBD 146

Length

4 bytes

Acquisition cycle

100 ms

Acquisition mode

Cyclic when used

The following table illustrates the structure of the tags.

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

START
STOP

STAT_REQ
DIAG_REQ

STAT_REQ_WR

SIMULATION
PROCESS
REMOTE
LOCAL
AUTO
MANUAL

RESET

Bit
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0

Table 4-8

Signal

Copyright Siemens AG 2010 All rights reserved

Tag used

15

Functional Mechanisms

Instance
The Instance
locations:

property is a text string with a field length of 16 characters and two

the tag is used as a filter criterion for the message display of the faceplate
window. this ensures that only messages that relate 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-9

Copyright Siemens AG 2010 All rights reserved

Tag used
Symbolic Name

SimoDirDB.INSTANCE

Data type

String

Address

DB 611 DBB 16

Length

16 bytes

Acquisition cycle

1s

Acquisition mode

Cyclic when used

Figure 4-2

ATTENTION

The tag contents have to be adjusted for each instance of a faceplate.


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 alarm
editor of WinCC flexible contain not only the actual message text, but
also the same text string as well.

16

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Functional Mechanisms

State
The State property is used to display the different states in the WinCC flexible
process picture.
Table 4-10
Tag used
Symbolic Name

SimoDirDB.QdwState

Data type

DWord

Address

DB 611 DBD 36

Length

4 bytes

Acquisition cycle

100 ms

Acquisition mode

Cyclic when used

The following table illustrates the structure of the tags.

4.2.3

QRUN
QSTOP

QGENFAIL
QGENWARN
QLOCT
QPREO

QSIM
QREMOTE
QMAN_AUT
DPV1_Busy_W
DPV1_Busy_R

LOCK
QLOCK
QERR_EXT
QERR

Signal

Copyright Siemens AG 2010 All rights reserved

Bit
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0

Table 4-11

Process_Trends_Value
The tags of this group are used to influence the display properties of the trend
display.

HighLimit
The HighLimit property is used to scale the Y-axis and sets the maximum value of
the scale to 1.25 times that of the nominal motor current.
Table 4-12
Tag used
Symbolic Name

SimoDirDB.OP_TrendScale

Data type

Real

Address

DB 611 DBD 158

Length

4 bytes

Acquisition cycle

100 ms

Acquisition mode

Cyclic when used

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

17

Functional Mechanisms

4.2.4

Process_Values
The tags of this group feature a process interface and are used for monitoring the
current consumption of the motor connected to the SIMOCODE pro.

Current
The Current property displays the current consumption (actual value) of the motor
in the unit A.
Table 4-13

Copyright Siemens AG 2010 All rights reserved

Tag used
Symbolic Name

SimoDirDB.QfCurrentA

Data type

Real

Address

DB 611 DBD 50

Length

4 bytes

Acquisition cycle

100 ms

Acquisition mode

Cyclically continued

CurrentPercent
The CurrentPercent property displays the current consumption (actual value) of
the motor in the unit %.
Table 4-14
Tag used
Symbolic Name

18

SimoDirDB.QfCurrentP

Data type

Real

Address

DB 611 DBD 46

Length

4 bytes

Acquisition cycle

100 ms

Acquisition mode

Cyclic when used

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Functional Mechanisms

4.2.5

Diagnosis
The tags in this group have a process connection and can be monitored in the
Diagnosis tab.
They are updated acyclically when selecting the tab and display the state of the
SIMOCODE pro and of the connected motor.

Diagnosis_DW0
The Diagnosis_DW0 property contains general status messages and status
messages for controlling.
Table 4-15

Copyright Siemens AG 2010 All rights reserved

Tag used
Symbolic Name

SimoDirDB.DPV1DEV_Qdw00

Data type

DWord

Address

DB 611 DBD 68

Length

4 bytes

Acquisition cycle

100 ms

Acquisition mode

Cyclic when used

Diagnosis_DW4
The Diagnosis_DW4 property contains status messages for protection and
various status messages.
Table 4-16
Tag used

Note

Symbolic Name

SimoDirDB.DPV1DEV_Qdw04

Data type

DWord

Address

DB 611 DBD 72

Length

4 bytes

Acquisition cycle

100 ms

Acquisition mode

Cyclic when used

Whilst the Diagnosis tab is open, the displayed diagnostic values are
permanently updated via acyclic services. This leads to an increased bus load.
Alternative programming can be found in the comment field of the network 15
(UPDATE DATA RECORD 92 DEVICE DIAGNOSIS). The alternative code
updates the diagnostic values only once when opening the Diagnosis tab.

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

19

Functional Mechanisms

4.2.6

Statistics
The tags in this group have a process connection and can be monitored in the
Statistics tab.
They are read or written acyclically when pressing the buttons and display the
operating values of the SIMOCODE pro and of the connected motor.

Writing is only possible when the password protection is not enabled.

ATTENTION

IntMotOperHours
The IntMotOperHours property displays the internal operating hours of the motor.
Table 4-17

Copyright Siemens AG 2010 All rights reserved

Tag used
Symbolic Name

SimoDirDB.DPV1STAT_IntMotOperHours

Data type

Real

Address

DB 611 DBD 102

Length

4 bytes

Acquisition cycle

1s

Acquisition mode

Cyclic when used

MotOperHours
The MotOperHours property displays the operating hours of the motor.
Table 4-18
Tag used
Symbolic Name

SimoDirDB.DPV1STAT_MotOperHours

Data type

Real

Address

DB 611 DBD 98

Length

4 bytes

Acquisition cycle

1s

Acquisition mode

Cyclic when used

IntOverlTrips
The IntOverlTrips property displays the internal number of overload trips.
Table 4-19
Tag used

20

Symbolic Name

SimoDirDB.DPV1STAT_IntOverlTrips

Data type

Word

Address

DB 611 DBW 94

Length

2 bytes

Acquisition cycle

1s

Acquisition mode

Cyclic when used

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Functional Mechanisms

OverlTrips
The OverlTrips property displays the number of overload trips.
Table 4-20
Tag used
Symbolic Name

SimoDirDB. DPV1STAT_OverlTrips

Data type

Word

Address

DB 611 DBW 92

Length

2 bytes

Acquisition cycle

1s

Acquisition mode

Cyclic when used

IntNumbStarts_R
The IntNumbStarts_R property shows the internal number of starts on the right.
Table 4-21

Copyright Siemens AG 2010 All rights reserved

Tag used
Symbolic Name

SimoDirDB.DPV1STAT_IntNumbStarts_R

Data type

DWord

Address

DB 611 DBD 114

Length

4 bytes

Acquisition cycle

1s

Acquisition mode

Cyclic when used

NumbStarts
The NumbStarts property displays the number of starts so far.
Table 4-22
Tag used
Symbolic Name

SimoDirDB.DPV1STAT_NumbStarts

Data type

DWord

Address

DB 611 DBD 110

Length

4 bytes

Acquisition cycle

1s

Acquisition mode

Cyclic when used

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

21

Functional Mechanisms

IntNumbStarts_L
The IntNumbStarts_L property shows the internal number of starts on the left.
Table 4-23
Tag used
Symbolic Name

SimoDirDB.DPV1STAT_IntNumbStarts_L

Data type

DWord

Address

DB 611 DBD 118

Length

4 bytes

Acquisition cycle

1s

Acquisition mode

Cyclic when used

MotStopTime
The MotStopTime property displays the downtimes of the motor.
Table 4-24

Copyright Siemens AG 2010 All rights reserved

Tag used
Symbolic Name

SimoDirDB.DPV1STAT_MotStopTime

Data type

Word

Address

DB 611 DBW 96

Length

2 bytes

Acquisition cycle

1s

Acquisition mode

Cyclic when used

PermStarts
The PermStarts property displays the number of starts still permitted.
Table 4-25
Tag used

22

Symbolic Name

SimoDirDB.DPV1STAT_PermStarts

Data type

byte

Address

DB 611 DBB 88

Length

1 bytes

Acquisition cycle

1s

Acquisition mode

Cyclic when used

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Functional Mechanisms

ConsumedEnergy
The ConsumedEnergy property shows the energy used by the motor.
Table 4-26
Tag used
Symbolic Name

SimoDirDB.DPV1STAT_ConsumedEnergy

Data type

Real

Address

DB 611 DBD 122

Length

4 bytes

Acquisition cycle

1s

Acquisition mode

Cyclic when used

DeviceParameter
The DeviceParameter property displays the number of configurations.
Table 4-27

Copyright Siemens AG 2010 All rights reserved

Tag used
Symbolic Name

SimoDirDB.DPV1STAT_DeviceParameter

Data type

Word

Address

DB 611 DBW 90

Length

2 bytes

Acquisition cycle

1s

Acquisition mode

Cyclic when used

DeviceOperHours
The DeviceOperHours property displays the operating hours of the device.
Table 4-28
Tag used
Symbolic Name

SimoDirDB.DPV1STAT_DeviceOperHours

Data type

Real

Address

DB 611 DBD 106

Length

4 bytes

Acquisition cycle

1s

Acquisition mode

Cyclic when used

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

23

Functional Mechanisms

4.3

Static properties of the faceplate window


Static properties cannot be changed during runtime; this is why they never have a
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 HMI object 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

Copyright Siemens AG 2010 All rights reserved

Figure 4-4

4.3.2

Label
The properties of this group serve for labelling the faceplate windows.

Text
The Text property is a text string and 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.
Figure 4-5

24

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Functional Mechanisms

4.3.3

UserManagement
The properties of this group serve for assigning the user rights.

Service
The Service property is a HMI object and is used as access protection for the
Service tab.

ATTENTION

In the application the Service group and the Service user is used as
authorization. The password is pre-set to 100 and can be changed in
the user administration of WinCC flexible.

Copyright Siemens AG 2010 All rights reserved

When you create a new instance of the faceplate window and do not
enable the Service property, the Service tab has no access
protection.

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

25

Functional Mechanisms

4.4

Interfaces of the faceplate icon

Figure 4-6

Only the dynamic properties are accessed in the interface of the faceplate icon.

Copyright Siemens AG 2010 All rights reserved

A dynamic property is always connected to a tag via the interface; in Runtime, the
tag supplies the property with values.

26

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Functional Mechanisms

4.4.1

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 flexible
process picture.
Table 4-29

Symbolic Name

SimoDirDB.QdwState

Data type

DWord

Address

DB 611 DBD 36

Length

4 bytes

Acquisition cycle

100 ms

Acquisition mode

Cyclic when used

The following table illustrates the structure of the tags.

QRUN
QSTOP

QGENFAIL
QGENWARN
QLOCT
QPREO

QSIM
QREMOTE
QMAN_AUT
DPV1_Busy_W
DPV1_Busy_R

LOCK
QLOCK
QERR_EXT
QERR

Bit
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0

Table 4-30

Signal

Copyright Siemens AG 2010 All rights reserved

Tag used

ValuePercent
The ValuePercent property displays the current consumption (actual value) of the
motor in the unit %.
Table 4-31
Tag used
Symbolic Name

SimoDirDB.QfCurrentP

Data type

Real

Address

DB 611 DBD 46

Length

4 bytes

Acquisition cycle

100 ms

Acquisition mode

Cyclic when used

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

27

Functional Mechanisms

Visibility
The Visibility property is used to influence the display properties of the faceplate
window during runtime.
The following properties are influenced:

Note

opening

closing

minimizing

maximizing

selection of individual tabs

triggering of acyclic read services (selection of tab 4)

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.

Copyright Siemens AG 2010 All rights reserved

Table 4-32
Tag used
Symbolic Name

SimoDirDB.OP_VISIBILITY

Data type

byte

Address

DB 611 DBB 164

Length

1 byte

Acquisition cycle

100 ms

Acquisition mode

Cyclic when used

Bits 0..6 are used 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 is set, only the faceplate window title bar is
displayed (minimized display) irrespective of the status of the remaining bits. If
none of the bits has been set, the faceplate window is closed.
The following table illustrates the structure of the tags.
Table 4-33
Bit

Select

Minimize

Note

28

Tab 6

Tab 5

Tab 4

Tab 3

Tab 2

Tab 1

The tag is also used to trigger acyclic read services between the controller and
the SIMOCODE pro (when selecting the tab 4 in faceplate window).

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Functional Mechanisms

4.5

Alarms and messages


This application uses the discrete alarm procedure to display messages in
WinCC flexible. The messages have to be configured in the WinCC flexible alarm
management as discrete alarms.
In the sample configuration, all discrete alarms for the used faceplate instances
have already been created, just like their trigger tags.

4.5.1

Message tag
Table 4-34

Copyright Siemens AG 2010 All rights reserved

Tag used
Symbolic Name

SimoDirDB.QwAlarm

Data type

Word

Address

DB 611 DBW 142

Length

2 bytes

Acquisition cycle

100 ms

Acquisition mode

Cyclically continued

The following table illustrates the structure of the tags. The message texts are
prefixed with the SimoDir_001 filter attribute for the first instance of the SimoDir
control faceplate window.
Table 4-35
Bit

Signal

QPREO

Message text
SimoDir_001: Pre-alarm overload

SimoDir_001:

SimoDir_001:

QGENFAIL

QLOCK

SimoDir_001: SIMOCODE general failure


SimoDir_001: Interlock triggered
SimoDir_001:

QERR_EXT

QERR

QSTOP

SimoDir_001: Motor is OFF

QRUN

SimoDir_001: Motor is ON

10

SimoDir_001: External error


SimoDir_001: Group error

SimoDir_001:

11

QGENWARN

12

LOCK

13

QREMOTE

SimoDir_001: Control => REMOTE

14

QMAN_AUT

SimoDir_001: Mode => AUTOMATIC

15

QSIM

SimoDir_001: Simulation is ACTIVE

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

SimoDir_001: SIMOCODE general warning


SimoDir_001: Interlock pending

29

Functional Mechanisms

4.6

Control and status signals

4.6.1

Processing of switching commands in the controller


The WinCC flexible OPdwCmd control tag of a block is used to transmit
commands from WinCC flexible to the controller. The block in the controller
evaluates the control command, executes the desired action if necessary and
subsequently resets all pending control commands. For this purpose, the value of
the control tag is set to value 0.
Further notes for the use in WinCC flexible can be found under the Command
property.
Figure 4-7
SimoDir (FB 611)
EN
SCdwInp
LOCK
ERR_EXTERN

Copyright Siemens AG 2010 All rights reserved

LIOP_SEL
L_AUT
L_REMOTE
L_SIM
L_RESET

QdwState
QwState
QSCwCmd
QCMD_OFF
QCMD_ON
QRUN
QSTOP
QMAN_AUT
QREMOTE

AUT_ON

QSIM

DPV1_ID

QLOCK

DIAG_INDEX

QERR

DIAG_MLEN

QERR_EXT

DPV0_LADDR

QfCurrentP

INSTANCE

QfCurrentA

RESTART

QPREO

VISIBILITY

QLOCT

OPdwCmd

QGENWARN

fCurrentE
DIAG_REQ

QGENFAIL
QwAlarm

STAT_REQ

ENO

STAT_REQ_WR

The following table illustrates the structure of the tags.

30

START
STOP

STAT_REQ
DIAG_REQ

STAT_REQ_WR

SIMULATION
PROCESS
REMOTE
LOCAL
AUTO
MANUAL

RESET

Signal

Bit
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0

Table 4-36

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Functional Mechanisms

4.6.2

Transferring switching commands to the motor management system


To transfer control signals to the SIMOCODE pro the QSCwCmd output is used.
Figure 4-8
SimoDir (FB 611)
EN
SCdwInp
LOCK
ERR_EXTERN
LIOP_SEL
L_AUT
L_REMOTE
L_SIM

Copyright Siemens AG 2010 All rights reserved

L_RESET

QdwState
QwState
QSCwCmd
QCMD_OFF
QCMD_ON
QRUN
QSTOP
QMAN_AUT
QREMOTE

AUT_ON

QSIM

DPV1_ID

QLOCK

DIAG_INDEX

QERR

DIAG_MLEN

QERR_EXT

DPV0_LADDR

QfCurrentP

INSTANCE

QfCurrentA

RESTART

QPREO

VISIBILITY

QLOCT

OPdwCmd

QGENWARN

fCurrentE

QGENFAIL

DIAG_REQ

QwAlarm

STAT_REQ

ENO

STAT_REQ_WR

In the block of this application the peripheral output word 256 (PAW256) is
interconnected with the output.
Check the hardware configuration to make sure of the correct address and write it
on the block output.
The status information of the SIMCODE pro is read in via the SCdwInp input.
In the block of this application the peripheral input double word 256 (PID256) is
interconnected with the input.
Check the hardware configuration to make sure of the correct address and write it
on the block input.
Figure 4-9

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

31

Functional Mechanisms

Note

During hardware configuration, the standard message frame Basis Type 2 was
used. Information regarding the bit assignment of the Basis Type 2 message
frame can be found in the SIMOCODE pro handbook under the following link:
http://support.automation.siemens.com/WW/view/en/20017780

4.6.3

Evaluating process states and displaying them in WinCC flexible


The technology block of this application uses the QdwState (DWORD) output to
show the different states in the WinCC flexible process screen.
Further notes for the use in WinCC flexible can be found under the State
property.
Figure 4-10
SimoDir (FB 611)
EN

QdwState

SCdwInp
LOCK

QwState
QSCwCmd

Copyright Siemens AG 2010 All rights reserved

ERR_EXTERN
LIOP_SEL

QCMD_OFF
QCMD_ON

L_AUT

QRUN

L_REMOTE
L_SIM

QSTOP
QMAN_AUT

L_RESET

QREMOTE

AUT_ON

QSIM

DPV1_ID

QLOCK

DIAG_INDEX

QERR

DIAG_MLEN

QERR_EXT

DPV0_LADDR

QfCurrentP

INSTANCE

QfCurrentA

RESTART

QPREO

VISIBILITY

QLOCT

OPdwCmd

QGENWARN

fCurrentE

QGENFAIL

DIAG_REQ

QwAlarm

STAT_REQ

ENO

STAT_REQ_WR

The following table illustrates the structure of the tags.

32

QRUN
QSTOP

QGENFAIL
QGENWARN
QLOCT
QPREO

QSIM
QREMOTE
QMAN_AUT
DPV1_Busy_W
DPV1_Busy_R

LOCK
QLOCK
QERR_EXT
QERR

Signal

Bit
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0

Table 4-37

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Functional Mechanisms

4.6.4

Manual/automatic mode
To switch over the manual/automatic modes, the following signals are used:
Figure 4-11
SimoDir (FB 611)
EN
SCdwInp
LOCK
ERR_EXTERN
LIOP_SEL
L_AUT
L_REMOTE

Copyright Siemens AG 2010 All rights reserved

L_SIM

QdwState
QwState
QSCwCmd
QCMD_OFF
QCMD_ON
QRUN
QSTOP
QMAN_AUT

L_RESET
AUT_ON

QREMOTE
QSIM

DPV1_ID

QLOCK

DIAG_INDEX

QERR

DIAG_MLEN

QERR_EXT

DPV0_LADDR

QfCurrentP

INSTANCE

QfCurrentA

RESTART

QPREO

VISIBILITY

QLOCT

OPdwCmd

QGENWARN

fCurrentE
DIAG_REQ

QGENFAIL
QwAlarm

STAT_REQ

ENO

STAT_REQ_WR

LIOP_SEL
If the LIOP_SEL input is set, the mode is specified by the L_AUT control
input.
If the LIOP_SEL input is not set, the mode is specified by the operator
(OPdwCmd [bit 16 and 17]).

L_AUT
The L_AUT input is only effective when the LIOP_SEL input is set.
LIOP_SEL = 1 AND L_REMOTE = 0 manual
LIOP_SEL = 1 AND L_AUT = 1 automatic

OPdwCmd
The operator commands in the OPdwCmd control word are only effective if
the LIOP_SEL input is not set.
LIOP_SEL = 0 AND OPdwCmd [bit 16] = 1 manual
LIOP_SEL = 0 AND OPdwCmd [bit 17] = 1 automatic

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

33

Functional Mechanisms

QMAN_AUT
The mode is displayed on the QMAN_AUT block output.
QMAN_AUT = 0 manual
QMAN_AUT = 1 automatic

QdwState
The current mode is transferred in the "QdwState [bit 16] status word to
WinCC flexible.
QdwState [bit 16] = 0 manual

Copyright Siemens AG 2010 All rights reserved

QdwState [bit 16] = 1 automatic

34

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Functional Mechanisms

4.6.5

Local/remote switchover
In the local mode, the control commands of the operator are directly effective on
the device. In Remote mode, the control signals of an automatic function (e.g.
control, step sequence, ...) or the control signals of the WinCC flexible Runtime
operation are active.
Figure 4-12
SimoDir (FB 611)
EN
SCdwInp
LOCK
ERR_EXTERN
LIOP_SEL
L_AUT
L_REMOTE

Copyright Siemens AG 2010 All rights reserved

L_SIM

QdwState
QwState
QSCwCmd
QCMD_OFF
QCMD_ON
QRUN
QSTOP
QMAN_AUT

L_RESET

QREMOTE

AUT_ON
DPV1_ID

QSIM
QLOCK

DIAG_INDEX

QERR

DIAG_MLEN

QERR_EXT

DPV0_LADDR

QfCurrentP

INSTANCE

QfCurrentA

RESTART

QPREO

VISIBILITY

QLOCT

OPdwCmd

QGENWARN

fCurrentE
DIAG_REQ

QGENFAIL
QwAlarm

STAT_REQ

ENO

STAT_REQ_WR

SCdwInp
SCdwInp evaluates the status word of the SIMOCODE pro.
SCdwInp [bit 5] = 0 local
SCdwInp [bit 5] = 1 remote

LIOP_SEL
If the LIOP_SEL input is set, the mode is specified by the L_REMOTE
control input.
If the LIOP_SEL input is not set, the mode is specified by the operator
(OPdwCmd [bit 18 and 19]).

L_REMOTE
The L_REMOTE input is only effective when the LIOP_SEL input is set.
LIOP_SEL = 1 AND L_REMOTE = 0 local
LIOP_SEL = 1 AND L_REMOTE = 1 remote

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

35

Functional Mechanisms

OPdwCmd
The operator commands of the OPdwCmd control word are only effective if
the LIOP_SEL input is not set.
LIOP_SEL = 0 AND OPdwCmd [Bit 18] = 1 local
LIOP_SEL = 0 AND OPdwCmd [Bit 19] = 1 remote

QREMOTE
The mode is displayed on the QREMOTE block output.
"QREMOTE = 0 local

Copyright Siemens AG 2010 All rights reserved

"QREMOTE = 1 remote

36

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Functional Mechanisms

4.6.6

Starting and stopping the motor


Switching is influenced by other functions, e.g. the manual/automatic switchover,
local/remote switchover and simulation.
Figure 4-13
SimoDir (FB 611)
EN
SCdwInp
LOCK
ERR_EXTERN
LIOP_SEL
L_AUT
L_REMOTE
L_SIM
L_RESET

Copyright Siemens AG 2010 All rights reserved

AUT_ON

QdwState
QwState
QSCwCmd
QCMD_OFF
QCMD_ON
QRUN
QSTOP
QMAN_AUT
QREMOTE
QSIM

DPV1_ID
DIAG_INDEX

QLOCK
QERR

DIAG_MLEN

QERR_EXT

DPV0_LADDR

QfCurrentP

INSTANCE

QfCurrentA

RESTART

QPREO

VISIBILITY

QLOCT

OPdwCmd

QGENWARN

fCurrentE
DIAG_REQ

QGENFAIL
QwAlarm

STAT_REQ

ENO

STAT_REQ_WR

SCdwInp
SCdwInp evaluates the status word of the SIMOCODE pro. You can
configure the outputs of the status word so they can be different from the
documentation.
SCdwInp [bit 1] = 1 stop (feedback)
SCdwInp [bit 2] = 1 start (feedback)

AUT_ON
The AUT_ON input is used for the automatic control of the block. The input
can be linked to other blocks.
AUT_ON = 0 Stop
AUT_ON = 1 Start

OPdwCmd
[Bit 0] and [bit 1] in the OPdwCmd control word are used for the operation in
WinCC Runtime.
LIOP_SEL = 0 AND OPdwCmd [bit 0] = 1 stopping
LIOP_SEL = 0 AND OPdwCmd [bit 1] = 1 starting

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

37

Functional Mechanisms

QSCwCmd
Operation of the SIMOCODE pro is realized via the QSCwCmd command
word.
QSCwCmd [bit 1] = 1 stopping
QSCwCmd [bit 2] = 1 starting

QwState
The current mode is dislayed on the QwState output as numerical value.
QwState = 1 stop
QwState = 2 starting
QwState = 3 right-hand rotation
QwState = 4 stopping
This signal is used internally for calculating the status transitions.

QSTOP, QRUN

Copyright Siemens AG 2010 All rights reserved

At a specific point in time, always exactly one of these signals is set. If no or


several signals are set, the illegal state occurs.

QSTOP =

1 stop

QRUN =

1 right-hand rotation (QwState = 3)

(QwState = 0)

QdwState
The current Stop/Run mode is displayed in the status double word by [bit 0]
and [bit 1]..
QdwState [bit 0] = 1 stop
QdwState [bit 1] = 1 right-hand rotation

38

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Functional Mechanisms

4.6.7

Simulation On/Off
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 the
simulation of feedback, many automation functions (e.g. step sequences) cannot
be successfully performed, since the feedback signals are often required for
switching conditions in step sequences or they trigger error messages. The
SCdwInp input and the QSCdwCmd output is not evaluated in this mode.
Figure 4-14
SimoDir (FB 611)
EN
SCdwInp
LOCK
ERR_EXTERN
LIOP_SEL
L_AUT
L_REMOTE

Copyright Siemens AG 2010 All rights reserved

L_SIM
L_RESET
AUT_ON

QdwState
QwState
QSCwCmd
QCMD_OFF
QCMD_ON
QRUN
QSTOP
QMAN_AUT
QREMOTE
QSIM

DPV1_ID
DIAG_INDEX

QLOCK
QERR

DIAG_MLEN

QERR_EXT

DPV0_LADDR

QfCurrentP

INSTANCE

QfCurrentA

RESTART

QPREO

VISIBILITY

QLOCT

OPdwCmd

QGENWARN

fCurrentE
DIAG_REQ

QGENFAIL
QwAlarm

STAT_REQ

ENO

STAT_REQ_WR

LIOP_SEL
If the LIOP_SEL input is set, simulation is switched on or off by 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 effective 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

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

39

Functional Mechanisms

QSIM
The simulation mode is displayed on the QSIM block output.
QSIM = 0 Simulation OFF
QSIM = 1 Simulation ON

QdwState
Bit 18 displays the current mode Simulation in the status word.
QdwState [bit 18] = 0 Simulation OFF

Copyright Siemens AG 2010 All rights reserved

QdwState [bit 18] = 1 Simulation ON

40

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Functional Mechanisms

4.6.8

Displaying and resetting interlock


Blocks that influence the plant process as actuators (e.g. valves, pumps,
controllers etc.) usually have signals for the interlock function (INTERLOCK).
If the interlock condition of a block is active, the actual function of the block (e.g.
open valve, switch on motor etc.) cannot be implemented.
If the specific function of the block is already active (e.g. motor on) when the
interlock condition applies, the actual function of the block is deactivated (e.g.
motor switched off).
This function is used to avoid critical plant conditions.
Figure 4-15
SimoDir (FB 611)
EN
SCdwInp
LOCK
ERR_EXTERN
LIOP_SEL
L_AUT

Copyright Siemens AG 2010 All rights reserved

L_REMOTE
L_SIM
L_RESET

QdwState
QwState
QSCwCmd
QCMD_OFF
QCMD_ON
QRUN
QSTOP
QMAN_AUT
QREMOTE

AUT_ON

QSIM

DPV1_ID

QLOCK

DIAG_INDEX
DIAG_MLEN

QERR
QERR_EXT

DPV0_LADDR

QfCurrentP

INSTANCE

QfCurrentA

RESTART

QPREO

VISIBILITY

QLOCT

OPdwCmd

QGENWARN

fCurrentE
DIAG_REQ

QGENFAIL
QwAlarm

STAT_REQ

ENO

STAT_REQ_WR

LOCK
The LOCK input signal contains the interlock condition. If the interlock
condition is active, the specific block function cannot be performed.
LOCK = 0 interlock not pending
LOCK = 1 interlock pending

L_RESET
If there is a positive edge on the L_RESET input, the QLOCK output will be
reset.

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

41

Functional Mechanisms

OPdwCmd
By pressing the RESET button in the faceplate window of the block type, the
bit 24 is set in the OPdwCmd control word. The controller evaluates this bit
and resets the QLOCK output.

QLOCK
The QLOCK output signal is set when the LOCK input is active.
QLOCK = 1 error interlock active
QLOCK = 0 error interlock not active

QdwState
The status interlock condition active (LOCK=1) and error interlock
(QLOCK=1) are displayed in the status word by bit 26 and 27.
QdwState [bit 27] = 1 LOCK = 1 (interlock condition active)

Copyright Siemens AG 2010 All rights reserved

QdwState [bit 26] = 1 QLOCK = 1 (error interlock active)

42

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Configuration

Configuration

Here you will find out


how the faceplates of the application are structured. This information is necessary
if you want to adapt the faceplates to your specific requirements.
Principle of layer technique
For the faceplates of this application, the principle of layer technology was used.
The layer technique enables differentiated editing of the faceplate objects.
The faceplate editor as well as the picture editor has 32 layers, however, the layers
of the faceplate are only available within the faceplate editor. After inserting a
faceplate from the library into the screen editor (creating a faceplate instance), it
can only be assigned one layer within the screen editor, just like any other screen
object.
However, the offset in depth within the faceplate remains.

Copyright Siemens AG 2010 All rights reserved

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
you create a screen or a faceplate, the object that is inserted first is placed at the
back within the layer. Each additional object is inserted one position ahead. Within
a layer, you can move the objects forward and backward.
Editing faceplates
Changes on faceplate blocks can be made centrally.
There are two options for changing a faceplate and its instances:

Changing the faceplate block via an instance (location)


Mark the faceplate in the workspace of the picture editor and select the
command Faceplates > Edit faceplates via the menu bar. Alternatively, the
command Edit faceplate can also be selected via the context menu of the
instance.

Changing of faceplate in the library


Open the project library and select the faceplate. Via the context menu of the
faceplate, select the command Edit faceplate.

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

43

Configuration

Working with layers


One of the 32 layers is always active. When you insert objects into a screen or a
faceplate, they are assigned to the active layer by default. The number of the active
layer is displayed in the Layer toolbar and in the properties window of the screen,
the active layer is highlighted in color.

Copyright Siemens AG 2010 All rights reserved

Figure 5-16

When you open a picture or edit a faceplate, all 32 layers are always displayed. In
the "Layer" icon bar you can hide all layers except the active layer. You then
specifically edit the objects of the active layer.

44

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Configuration

5.1

Configuration of the faceplate window


The faceplate window is divided into several layers. Since neither the layers of a
faceplate nor the layers of a screen 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.1.1

Layer 0 frames
Layer 0 contains all objects that are absolutely necessary for displaying the
faceplate window. This objects represents the frame of the faceplate window.

Copyright Siemens AG 2010 All rights reserved

Figure 5-17

The following different screen modes exist:

opening

closing

minimizing

maximizing

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

45

Configuration

Opening and maximizing


The display types opening and maximizing 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, layer 5 or
layer 6) is displayed.
All objects of layer 0, apart from the title bar, have the following settings for
visibility:
Table 5-38
Tags

State

Visibility

Field

Visible

From 1 to 127

The table below provides information on the status of the Visibility tag when
opening the faceplate window.

Copyright Siemens AG 2010 All rights reserved

Table 5-39
Bit

Value

Note

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

The table below provides information on the status of the Visibility tag when
maximizing the faceplate window. Depending which tab was selected before
minimizing, one of the bits will be 0 .. 5 when maximizing bit 7 must not be
set.
Table 5-40

46

Bit

Value

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Configuration

Minimizing
The Minimize screen mode displays only the title bar of the faceplate window
and thus shows the screen objects that are located behind it.
Figure 5-18

All objects of the title bar have the following visibility settings:
Table 5-41
Tags

State

Visibility

Range

Hidden

From 0 to 0

The table below provides information on the status of the Visibility tag when
minimizing the faceplate window. As soon as bit 7 is set, only the title bar of the
faceplate window is shown, irrespective of the rest of the status.

Copyright Siemens AG 2010 All rights reserved

Table 5-42
Bit

Value

Closing
The Close screen mode hides all objects of the faceplate.
The table below provides information on the status of the Visibility tag when
closing the faceplate window.
Table 5-43
Bit

Value

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

47

Configuration

5.1.2

Layer 1 tab 1
The screen below shows layer 0 and layer 1.

Copyright Siemens AG 2010 All rights reserved

Figure 5-19

All objects of layer 1 have the following visibility settings:


Table 5-44
Tags

State

Visibility

Range

Visible

From 1 to 1

The table below provides information on the status of the Visibility tag when
displaying layer 1 (tab 1) of the faceplate window.
Table 5-45

48

Bit

Value

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Configuration

5.1.3

Layer 2 tab 2
All objects of layer 2 have the following visibility settings:
Table 5-46
Tags

State

Visibility

Range

Visible

From 2 to 2

The table below provides information on the status of the Visibility tag when
displaying layer 2 (tab 2) of the faceplate window.
Table 5-47
Bit

Value

5.1.4

Layer 3 tab 3

Copyright Siemens AG 2010 All rights reserved

All objects of layer 3 have the following visibility settings:


Table 5-48
Tags

State

Visibility

Range

Visible

From 4 to 4

The table below provides information on the status of the Visibility tag when
displaying layer 3 (tab 3) of the faceplate window.
Table 5-49
Bit

Value

5.1.5

Layer 4 tab 4
All objects of layer 4 have the following visibility settings:
Table 5-50
Tags

State

Visibility

Range

Visible

From 8 to 8

The table below provides information on the status of the Visibility tag when
displaying layer 4 (tab 4) of the faceplate window.
Table 5-51
Bit

Value

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

49

Configuration

5.1.6

Layer 5 tab 5
All objects of layer 5 have the following visibility settings:
Table 5-52
Tags

State

Visibility

Range

Visible

From 16 to 16

The table below provides information on the status of the Visibility tag when
displaying layer 5 (tab 5) of the faceplate window.
Table 5-53
Bit

Value

5.1.7

Layer 6 tab 6
All objects of layer 6 have the following visibility settings:

Copyright Siemens AG 2010 All rights reserved

Table 5-54
Tags

State

Visibility

Range

Visible

From 32 to 32

The table below provides information on the status of the Visibility tag when
displaying layer 6 (tab 6) of the faceplate window.
Table 5-55

50

Bit

Value

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Startup of the Application

Startup of the Application

Here you will find out


how to integrate the SimoDir (FB 611) STEP 7 block and the respective
WinCC flexible faceplates into an empty or existing project.
This example uses the non-interconnected STEP 7 block, the SimoDirIcon
faceplate icon and the SimoDir faceplate window.

Process interfacing was configured for Industrial Ethernet. If necessary,


adjust your CPU settings, the HMI station and the PG/PC interface.

Copyright Siemens AG 2010 All rights reserved

ATTENTION

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

51

Startup of the Application

6.1

Configuring the STEP 7 block


Table 6-56

Copyright Siemens AG 2010 All rights reserved

Action

52

Description

1.

Creating a new project

Create a new STEP 7 project with a S7 controller and a HMI station


(WinCC flexible) 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 SIMATIC Manager.

Copy block FB611 into the respective directory of the S7 program.

The block uses the standard blocks RDREC (SFB52) and WRREC
(SFB53), they also need to be added to the project.

Should you use a new project then also add the OB1 calling block and
the DB611 instance data block to your project.

3.

Completing icon table

If the project is empty, copy the icon table of the application to the
relevant directory of the S7 program.

If you are using an existing project, complete the existing icon table with
the entries of the application.

4.

Calling the blocks

If you are using an existing project, you have to integrate the FB611
block into the cycle of the PLC. The required instance data block is
generated automatically.

5.

Checking block consistency

Check the block consitency via the context menu of the block container
with the Check block consitency command.

6.

Configuring hardware

Integrate the SIMCODE pro into the hardware configuration:

Enable the Profibus interface of the CPU and assign a Profibus


address.

Integrate a SIMCODE pro to the Profibus (you can find it in the


catalog under PROFIBUS-DP > Additional Field Devices >
Switching Devices > SIMOCODE > SIMOCODE pro ) and
assign a Profibus address.

Insert the Basis Type 2 telegram.

For the input and output address select the range from 256 onward.
Enter these adresses also in the OB1 when calling the SimoDir
(FB611):
SCdwInp: PED256
QSCwCmd: PAW256

Open the object properties of the SIMOCODE pro and assign


8191 (1FFF) as diagnostic address. Enter this diagnostic adresses
also in the OB1 when calling the SimoDir (FB611) in hexadecimal
form:
DPV1_ID: DW#16#1FFF

Save and compile the hardware configuration and load it in the


controller.

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Startup of the Application

6.2

Configuring the WinCC flexible faceplates

Table 6-57

Copyright Siemens AG 2010 All rights reserved

Step

Instruction

1.

Opening project

Open the WinCC flexible project via the context menu of the SIMATIC Manager.

2.

Selecting library

Open Screen_1.

Select the project library in the Tools window.

3.

Create new library

Via the context menu Library > New library select the dialog to create a global
library.

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

53

Startup of the Application

Step
4.

Instruction
Creating a global library

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

Copyright Siemens AG 2010 All rights reserved

Note
A global file library can be accessed from several configuration computers. It therefore makes
sense to store the library on a network drive with joint access.

5.

54

Integrating the global file library

Open your WinCC flexible project.

Select the project library in the Tools window.

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Startup of the Application

Copyright Siemens AG 2010 All rights reserved

Step

Instruction

6.

Creating the project library

Open the previously created global library in your project

7.

Integrating the faceplates

Within the library select the SIMODIR category.

Draw the faceplate objects contained there into your project via Drag&Drop.

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

55

Startup of the Application

Step
8.

Instruction
Integrating the messages and tags

Drag the SimoDirAlarms messages to the Messages > Bit messages folder and the
tags SimoDirTags in the Communication > Tags folder via Drag&Drop.

Copyright Siemens AG 2010 All rights reserved

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

9.

56

Interconnecting the faceplates

Interconnect the dynamic properties of the faceplate window. More information can be
found in Chapter 4.2.

Interconnect the static properties of the faceplate window. More information can be found
in Chapter 4.3.

Interconnect the dynamic properties of the faceplate icon. More information can be found
in Chapter 4.4.

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Operating the Application

Operating the Application

Here you will find out


how to operate the faceplates in WinCC flexible and which options the blocks offer
to intervene in the process.

7.1

Faceplate icon
Figure 7-20

Copyright Siemens AG 2010 All rights reserved

The faceplate icon has the following properties:

simplified status display

opens the relevant faceplate by mouse click

contains no language-dependent objects

The block icon offers the following functionality:

Displayed modes:

on/off state

local/remote mode

manual/automatic mode

simulation feedback

interlock

rotational direction and current consumption

Displayed error:

general error

Operation:

calling up the assigned faceplate window

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

57

Operating the Application

The table below shows the possible modes:


Table 7-58
Operating
mode

QdwState

Icon

Flashing

Off

Bit 0 = 1

no

On

Bit 1 = 1

no

Error

Bit 24 = 1

yes

The table below shows the possible status displays:


Table 7-59
State

Icon

Local
Remote
Copyright Siemens AG 2010 All rights reserved

Manual
Automatic
Simulation ON
Simulation OFF
Interlock OFF
Interlock ON
Interlock triggered
Right-hand rotation

58

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Operating the Application

7.2

Faceplate window
The faceplate window has the following properties:

tab selection (also via the controller)

opening, closing, minimizing, maximizing (also via the controller)

detailed status display

provides the option to intervene in the process

contains language-dependent objects (German-DE / English-US)

shows relevant messages (filtered)

permits changes for service personnel (protected call)

Overview

Copyright Siemens AG 2010 All rights reserved

Figure 7-21

Here you can perform the following actions:

display of status information SIMOCODE pro

switchover between local (operation at the device) and remote (operation at


the visualization system)

manual/automatic switchover.

start/stop drive

resetting of error states

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

59

Operating the Application

The table below shows the possible modes:


Table 7-60
Operating
mode

QdwState

Icon

Flashing

Off

Bit 0 = 1

no

On

Bit 1 = 1

no

Error

Bit 24 = 1

yes

The table below shows the possible status displays:


Table 7-61

Copyright Siemens AG 2010 All rights reserved

State

60

Icon
Off

Icon
On

Flashing

State

no

Operating mode

no

Controller

no

Simulation ON

no

Interlock ON

no

External error

no

Pre-alarm overload

no

Interlock time
running

no

Warning

no

Error

no

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Operating the Application

Messages

Copyright Siemens AG 2010 All rights reserved

Figure 7-22

Here you can perform the following actions:

Display of block-related alarms and messages.

Acknowledgement of alarms.

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

61

Operating the Application

Trends

Copyright Siemens AG 2010 All rights reserved

Figure 7-23

Here you can perform the following actions:

Note

62

Display actual value in A

Display actual value in A

The maximum value of the Y-axis is automatically scaled to 1.25 times that of the
nominal motor current.

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Operating the Application

Diagnosis

Copyright Siemens AG 2010 All rights reserved

Figure 7-24

Here you can perform the following actions:

Note

display of general status messages

display of status messages for control purposes

display of status messages for protection

There is only read access to the values of this tab.


Whilst the Diagnosis tab is open, the displayed diagnostic values are
permanently updated via acyclic services. This leads to an increased bus load.
Alternative programming can be found in the comment field of the network 15
(UPDATE DATA RECORD 92 DEVICE DIAGNOSIS). The alternative code
updates the diagnostic values only once when opening the Diagnosis tab.

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

63

Operating the Application

Statistics

Copyright Siemens AG 2010 All rights reserved

Figure 7-25

Here you can perform the following actions:

display of statistic values

writing of statistical values

ATTENTION

64

Writing is only possible when the password protection is not enabled.

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Operating the Application

Service

Copyright Siemens AG 2010 All rights reserved

Figure 7-26

ATTENTION

The Service tab is protected and requests the authorization of the


Service group to be selected.
Service is entered as user and the password 100 is the default
setting.
When you create a new instance of the faceplate window and do not
enable the Service property, the Service tab has no access
protection.

Here you can perform the following actions:

switchover between simulation / real process mode. (Remote mode is


required)

The table below shows the possible status displays:


Table 7-62
State

Icon OFF

Icon ON

Simulation

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

65

Block Connectors

Block Connectors
8.1

Input parameters
Table 8-63

Copyright Siemens AG 2010 All rights reserved

Parameters

66

Data type

Default setting

Description

EN

BOOL

FALSE

Enable

SCdwInp

DWORD

DW#16#0

Status word SIMOCODE pro

LOCK

BOOL

FALSE

1 = Interlock pending

ERR_EXTERN

BOOL

FALSE

1 = External error

LIOP_SEL

BOOL

FALSE

0= Operator, 1=Interconnection

L_AUT

BOOL

FALSE

0 = Manual, 1 = Automatic

L_REMOTE

BOOL

FALSE

0= Local, 1= Remote

L_SIM

BOOL

FALSE

0 = Process 1 = Simulation

L_RESET

BOOL

FALSE

Reset error (pos. edge)

AUT_ON

BOOL

FALSE

1= Start (automatic)

DPV1_ID

DWORD

DW#16#0

Device ID DPV1 diagnosis

DIAG_INDEX

INT

DPV1 diagnosis

DIAG_MLEN

INT

DPV1 diagnosis

DPV0_LADDR

WORD

W#16#0

DPV0 diagnosis

INSTANCE

STRING[16]

SimoDir_001

Filter attribute for messages,


labeling of title bar

RESTART

BOOL

FALSE

Initializing at new start

VISIBILITY

BYTE

B#16#0

Display of the
faceplate window

OPdwCmd

DWORD

DW#16#0

HMI control tag

fCurrentE

REAL

1.0

Nominal motor current

DIAG_REQ

BOOL

FALSE

Read DPV1 diagosis

STAT_REQ

BOOL

FALSE

Read DPV1 statistic

STAT_REQ_WR

BOOL

FALSE

Write DPV1 statistic

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Block Connectors

8.2

Output parameters
Table 8-64

Copyright Siemens AG 2010 All rights reserved

Parameters

Data type

Default setting

Description

QdwState

DWORD

DW#16#0

HMI status tag

QwState

INT

SIMOCODE pro status tag

QSCwCmd

WORD

SIMOCODE pro command word

QCMD_OFF

BOOL

W#16#0
FALSE

1= Stopping motor

QCMD_ON

BOOL

FALSE

1= Starting motor

QRUN

BOOL

FALSE

1= Motor is on

QSTOP

BOOL

FALSE

1= Motor is off

QMAN_AUT

BOOL

FALSE

0 = Manual, 1 = Automatic

QREMOTE

BOOL

FALSE

0= Local, 1= Remote

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

QfCurrentP

REAL

0.0

El. current in percent

QfCurrentA

REAL

0.0

El. current in Ampere

QPREO

BOOL

FALSE

1= Warning overload

QLOCT

BOOL

FALSE

1= Disabled time active

QGENWARN

BOOL

FALSE

1= General warning

QGENFAIL

BOOL

FALSE

1= General fault

QwAlarm

WORD

W#16#0

Alarm tag

ENO

BOOL

FALSE

Enable

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

67

Further Notes

Further Notes
Further blocks for this application

This document is part of an application that describes other technology blocks.


Within the framework of this application, the number of technology blocks is
successively expanded.
The table below shows the roadmap:

Copyright Siemens AG 2010 All rights reserved

Table 9-65
Block

Description

MOTOR

Visualization and operator control of a motor with fixed speed and rotational
direction

VALVE

Visualization and operation of a binary valve.

DIGITAL

Visualization and operator control of digital signals

ANALOG

Visualization and operator control of analog signals

PIDCTRL

Visualization and operation of a software PID controller to control technical


variables with continuous input and output variables.

MM4

Visualization and control of the SIMCODE 440 frequency converter.

SIMODIR

Visualization and control of the motor management system SIMOCODE Pro


as direct starter.

SIMOREV

Visualization and control of the motor management system SIMOCODE Pro


as reversing starter.

SINAG120

Visualization and control of the frequency converter SINAMICS G120

Faceplates included in the scope of delivery of WinCC flexible


In the system library, WinCC flexible offers you already completed faceplates.
Further information on the system library is available in the WinCC flexible
Information System (online help) at:
Working with WinCC flexible > Create pictures> Working with libraries > Working
with system libraries > Use system library.
The System Library
library faceplates.

link stored there, takes you to a description of the system

Faceplates for WinCC


For information on the structure of faceplates in WinCC, please refer to the
following document:
Sample blocks for STEP 7 and WinCC.
http://support.automation.siemens.com/WW/view/en/31624179

For this example, the following software is used:


S7-SCL, CFC, STEP 7, WinCC

68

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Bibliography

10

Bibliography

This list is by no means complete and only presents a selection of suitable


literature.
Table 10-66
Subject

Title

Reference to the entry

http://support.automation.siemens.com/WW/view/en/36435784

\2\

Siemens I IA/DT
Customer Support

http://support.automation.siemens.com

\3\

WinCC flexible Getting


Started Advanced

http://support.automation.siemens.com/WW/view/en/18656980

\4\

Creating faceplates

http://support.automation.siemens.com/WW/view/en/23425423

\5\

Reference to the entry

http://www.automation.siemens.com/cd/is_ueberwachen/html_
00/simocode_pro.htm

Copyright Siemens AG 2010 All rights reserved

\1\

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

69

History

11

History
Table 11-67 History
Version

22.03.2010

Modification
First issue

Copyright Siemens AG 2010 All rights reserved

V1.0

Date

70

WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784

Potrebbero piacerti anche