Sie sind auf Seite 1von 81

Cover

Example 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_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

SIMATIC
WCF_BLOCKS_SinaG120
(FB680)

Automation Task

Automation Solution

Basic Information

Functional Mechanisms

Configuration and
Settings

Startup of the Application

Operating the Application

Block Connectors

Further Information

Copyright Siemens AG 2010 All rights reserved

Application

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Bibliography

10

History

11

Warranty and Liability

Warranty and Liability


Note

The application examples are not binding and do not claim to be complete
regarding configuration, equipment 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 accept no liability for 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). However, claims arising from a breach of a
condition which goes to the root of the contract shall be limited to the foreseeable
damage which is intrinsic to the contract, unless caused by intent or gross
negligence or based on mandatory liability for injury of life, body or health. The
above provisions do not imply a change in the burden of proof to your detriment.
It is not permissible to transfer or copy these Application Examples or excerpts
thereof without express authorization from Siemens Industry Sector.
If you have any questions regarding this document, please send us an e-mail to the
following address:
online-support.automation@siemens.com

WCF_BLOCKS_SinaG120 (FB680)
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

Basic Information ............................................................................................ 11

Functional Mechanisms .................................................................................. 13

Copyright Siemens AG 2010 All rights reserved

4.1
4.2
4.2.1
4.2.2
4.2.3
4.2.4
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
4.6.9
4.6.10
4.6.11
5

Configuration and Settings ............................................................................ 51


5.1
5.1.1
5.1.2
5.1.3
5.1.4
5.1.5
5.1.6

Configuring the faceplate window ...................................................... 53


Layer 0 frames ................................................................................ 53
Layer 1 tab 1 ................................................................................... 56
Layer 2 tab 2 ................................................................................... 57
Layer 3 tab 3 ................................................................................... 57
Layer 4 tab 4 ................................................................................... 57
Layer 5 tab 5 ................................................................................... 58

Startup of the Application............................................................................... 59


6.1
6.2

Interfaces of the faceplate window..................................................... 13


Dynamic properties of the faceplate window ..................................... 14
Animations.......................................................................................... 14
Process .............................................................................................. 15
Process_Values ................................................................................. 18
Process_Data..................................................................................... 19
Static properties of the faceplate window........................................... 22
Process_Trends_Value ...................................................................... 22
Label................................................................................................... 22
UserManagement............................................................................... 23
Interfaces of the faceplate icon .......................................................... 24
Process .............................................................................................. 25
Alarms and messages........................................................................ 27
Message tag....................................................................................... 27
Control and status signals .................................................................. 28
Processing of switching commands in the controller ......................... 28
Transmission of switching commands to SINAMICS G120 ............... 30
Evaluating and displaying process states in WinCC flexible.............. 32
Manual / automatic mode ................................................................... 34
Local / remote switchover................................................................... 36
Setpoint specification ......................................................................... 38
Specification of rotation direction ....................................................... 40
Starting / stopping the motor .............................................................. 43
Simulation On/Off ............................................................................... 45
Display and reset the interlock ........................................................... 47
External error...................................................................................... 49

Configuring the STEP 7 block ............................................................ 60


Configuration of the WinCC flexible faceplates.................................. 61

Operating the Application............................................................................... 65


7.1
7.2

Faceplate icon .................................................................................... 65


Faceplate window............................................................................... 67

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Table of Contents
8

Block Connectors ............................................................................................ 73


8.1
8.2

Input parameters ................................................................................ 73


Output parameters ............................................................................. 75

Further Information ......................................................................................... 77

10

Bibliography..................................................................................................... 79

11

History............................................................................................................... 81

Copyright Siemens AG 2010 All rights reserved

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Automation Task

Automation Task
1.1

Overview

Introduction
The example blocks for STEP 7 and WinCC flexible 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 flexible.
The advantages when using faceplates in WinCC flexible 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.

Copyright Siemens AG 2010 All rights reserved

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.

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Automation Task

Description of the automation task


This application describes the configuration of the SINAG120 (FB 680)
technology block and the related faceplates. They are used for the visualization
and control of the SINAMICS G120 frequency converter with an Ethernet interface.
The block offers the following functions:

Start / Stop

Rotation direction switchover

Setpoint specification

Manual / Automatic mode

Local / Remote mode

Simulation

Copyright Siemens AG 2010 All rights reserved

The following operating modes of the frequency converter are displayed:

ATTENTION

Stop

Anticlockwise rotation

Clockwise rotation

Illegal

Load

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 your own blocks.

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Automation Solution

Automation Solution
2.1

Overview

Display
The screenshots below show the block in the controller, the block icon and the
faceplate window for the control, operation and monitoring of SINAMICS G120 type
frequency converters:
Table 2-1
Faceplate icon and faceplate

Copyright Siemens AG 2010 All rights reserved

Block

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Automation Solution

2.2

Hardware and software components used


The application was created with the following components:

Hardware components
Table 2-2

Copyright Siemens AG 2010 All rights reserved

Component

Number

Note

Development system

PC to configure the controller and


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

Frequency converter
SINAMICS G120

This block was developed specifically for the


use of the SINAMICS G120 frequency
converter with the PROFINET option module.
In the Appendix you will find hyperlinks to
further information on SINAMICS G120.

S7-300 CPU
or
S7-400 CPU

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

STARTER V4.1 SP5

6SL3072-0AA00-0AG0

Note

Required for the


configuration of the
converter and the
integrated
operation in
STEP7.
Chapter 10
contains the
respective link.

Example files and projects


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

10

Note

36435784_S7_WCF_Blocks_CODE.zip

This 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_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Basic Information

Basic Information

Introduction
Faceplates are objects that you compile from 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

Copyright Siemens AG 2010 All rights reserved

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.
Reusing faceplates in several projects
WinCC flexible 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.

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

11

Copyright Siemens AG 2010 All rights reserved

Basic Information

12

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Functional Mechanisms

Functional Mechanisms
4.1

Interfaces of the faceplate window

Copyright Siemens AG 2010 All rights reserved

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

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

13

Functional Mechanisms

4.2

Dynamic properties of the faceplate window

4.2.1

Animations
The tags of this group serve for display and representation of the faceplate window.

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

Triggering the acyclic read services (selection of tab 1 and 4)

Copyright Siemens AG 2010 All rights reserved

Table 4-5
Tag used
Symbolic name

SinaG120DB.OP_VISIBILITY

Data type

Byte

Address

DB 680 DBB 160

Length

1 byte

Acquisition cycle

100 ms

Acquisition mode

Cyclic for usage

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-6
Bit

Selection

Minimize

Note

14

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 SINAMICS G120 (when selecting tab 1 and 4 in faceplate window).

WCF_BLOCKS_SinaG120 (FB680)
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 transmit commands from WinCC flexible to the
controller. The PLC block analyses the control command, executes the desired
action and initiates then a reset of all pending control commands. For this purpose,
the value of the control parameter is set to 0.
Table 4-7

Symbolic name

SinaG120DB.OPdwCmd

Data type

DWord

Address

DB 680 DBD 130

Length

4 bytes

Acquisition cycle

100 ms

Acquisition mode

Cyclic for usage

The following table shows the setup of the tags.

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

REVERSE
FORWARD
START
STOP

DPV1_REQ

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 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-9

Copyright Siemens AG 2010 All rights reserved

Tag used
Symbolic name

SinaG120DB.INSTANCE

Data type

String

Address

DB 680 DBB 32

Length

16 bytes

Acquisition cycle

1s

Acquisition mode

Cyclic for usage

Figure 4-2

ATTENTION

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 flexible contain the same text string in addition
to the actual message text.

16

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Functional Mechanisms

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

SinaG120DB.QdwState

Data type

DWord

Address

DB 680 DBD 52

Length

4 bytes

Acquisition cycle

100 ms

Acquisition mode

Cyclic for usage

The following table shows the setup of the tags.

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

QSIM
QREMOTE
QMAN_AUT
QNCONOV
QNMOTOV
QBRAKE
QNMOTWARN
QNOFF3
QNOFF2
QFRREACH
QSPREACH
OP_REMOTE
OP_REVERSE
OP_ON
QREADY_RUN
QSLOCK
QDIRECTION
QOP_ENABLE
QPOWER_ON

QFAULT
QWARN

LOCK
QLOCK
QERR_EXT
QERR

DPV1_RW_ERROR

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

17

Functional Mechanisms

4.2.3

Process_Values
The tags in this group have a process connection and can be operated and
monitored in the Overview tab.
They serve for speed specification and speed monitoring of the motor connected at
the SINAMICS G120.

ValueSpeed
The ValueSpeed property displays the rotational speed (actual value) of the
motor in the unit 1/min. For clockwise motor motion the sign is positive (+), for
counter-clockwise motor motion it is negative (-) accordingly.
Table 4-12

Copyright Siemens AG 2010 All rights reserved

Tag used
Symbolic name

SinaG120DB.QrCuSpeed

Data type

Real

Address

DB 680 DBD 82

Length

4 bytes

Acquisition cycle

100 ms

Acquisition mode

Cyclic for usage

SimValue
The SimValue property displays the rotational speed (setpoint value) of the motor
in the unit % and is only active in simulation mode.
Table 4-13
Tag used
Symbolic name

SinaG120DB.SP_Sim

Data type

Real

Address

DB 680 DBD 14

Length

4 bytes

Acquisition cycle

100 ms

Acquisition mode

Cyclic for usage

ValuePercent
The ValuePercent property displays the rotational speed (actual value) of the
motor in the unit %. For clockwise motor motion the sign is positive (+), for
counter-clockwise motor motion it is negative (-) accordingly.
Table 4-14
Tag used

18

Symbolic name

SinaG120DB.QrCuCapacity

Data type

Real

Address

DB 680 DBD 66

Length

4 bytes

Acquisition cycle

100 ms

Acquisition mode

Cyclically continued

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Functional Mechanisms

ManValue
The ManValue property displays the rotational speed (setpoint value) of the motor
in the unit % and is only active in manual mode.
Table 4-15
Tag used
Symbolic name

4.2.4

SinaG120DB.SP_Man

Data type

Real

Address

DB 680 DBD 10

Length

4 bytes

Acquisition cycle

100 ms

Acquisition type

Cyclic for usage

Process_Data

Copyright Siemens AG 2010 All rights reserved

The tags in this group have a process connection and can be monitored in the
Data tab.
Upon selecting the tab or when starting the controller they are updated acyclically
and show the connection values of the motor.
Voltage
The Voltage property displays the configured connection voltage of the motor.
Table 4-16
Tag used
Symbolic name

SinaG120DB.DPV1_VOLTAGE

Data type

Int

Address

DB 680 DBW 90

Length

2 bytes

Acquisition cycle

1s

Acquisition type

Cyclic for usage

Power
The Power property displays the configured connection output of the motor.
Table 4-17
Tag used
Symbolic name

SinaG120DB.DPV1_POWER

Data type

Real

Address

DB 680 DBD 92

Length

4 bytes

Acquisition cycle

1s

Acquisition type

Cyclic for usage

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

19

Functional Mechanisms

Frequency
The Frequency property displays the configured setpoint frequency of the motor.
Table 4-18
Tag used
Symbolic name

SinaG120DB.DPV1_FREQUENCY

Data type

Real

Address

DB 680 DBD 96

Length

4 bytes

Acquisition cycle

1s

Acquisition type

Cyclic for usage

Speed
The Speed property displays the configured setpoint speed of the motor.
Table 4-19

Copyright Siemens AG 2010 All rights reserved

Tag used
Symbolic name

SinaG120DB.DPV1_SPEED

Data type

Int

Address

DB 680 DBW 100

Length

2 bytes

Acquisition cycle

1s

Acquisition type

Cyclic for usage

ErrorNo1
The ErrorNo1 property displays the first error number currently pending at the
converter.
Table 4-20
Tag used

20

Symbolic name

SinaG120DB.DPV1_ERROR1

Data type

Int

Address

DB 680 DBW 102

Length

2 bytes

Acquisition cycle

1s

Acquisition type

Cyclic for usage

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Functional Mechanisms

ErrorNo2
The ErrorNo2 property displays the second error number currently pending at the
converter.
Table 4-21
Tag used
Symbolic name

SinaG120DB.DPV1_ERROR2

Data type

Int

Address

DB 680 DBW 104

Length

2 bytes

Acquisition cycle

1s

Acquisition type

Cyclic for usage

ErrorValue1
The ErrorValue1 property displays the value of the first error number currently
pending at the converter.
Table 4-22
Copyright Siemens AG 2010 All rights reserved

Tag used
Symbolic name

SinaG120DB.DPV1_ERROR_VALUE1

Data type

Int

Address

DB 680 DBW 106

Length

2 bytes

Acquisition cycle

1s

Acquisition type

Cyclic for usage

ErrorValue2
The ErrorValue2 property displays the value of the second error number currently
pending at the converter.
Table 4-23
Tag used
Symbolic name

SinaG120DB.DPV1_ERROR_VALUE2

Data type

Int

Address

DB 680 DBW 108

Length

2 bytes

Acquisition cycle

1s

Acquisition type

Cyclic for usage

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

21

Functional Mechanisms

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 an 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 labeling the faceplate windows.

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.
Figure 4-5

22

WCF_BLOCKS_SinaG120 (FB680)
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 this application the authorization used is the Group Service and the
User Service. 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

If you create a new instance of the faceplate window and do not


interconnect the Service property, the Service tab has no access
protection.

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

23

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

Via the interface a dynamic property is always connected with a tag which supplies
the Property in Runtime with values.

24

WCF_BLOCKS_SinaG120 (FB680)
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 different states in the WinCC flexible
process picture.
Table 4-24

Symbolic name

SinaG120DB.QdwState

Data type

DWord

Address

DB 680 DBD 52

Length

4 bytes

Acquisition cycle

100 ms

Acquisition type

Cyclic for usage

The following table shows the setup of the tags.

QSIM
QREMOTE
QMAN_AUT
QNCONOV
QNMOTOV
QBRAKE
QNMOTWARN
QNOFF3
QNOFF2
QFRREACH
QSPREACH
OP_REMOTE
OP_REVERSE
OP_ON
QREADY_RUN
QSLOCK
QDIRECTION
QOP_ENABLE
QPOWER_ON

QFAULT
QWARN

LOCK
QLOCK
QERR_EXT
QERR

DPV1_RW_ERROR

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-25

Signal

Copyright Siemens AG 2010 All rights reserved

Tag used

ValuePercent
The ValuePercent property displays the rotational speed (actual value) of the
motor in the unit %. For clockwise motor motion the sign is positive (+), for
counter-clockwise motor motion it is negative (-) accordingly.
Table 4-26
Tag used
Symbolic name

SinaG120DB.QrCuCapacity

Data type

Real

Address

DB 680 DBD 66

Length

4 bytes

Acquisition cycle

100 ms

Acquisition type

Cyclically continued

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

25

Functional Mechanisms

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

Note

Open

Close

Minimize

Maximize

Selecting the individual tabs

Triggering the acyclic read services (selection of tab 1 and 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.
Table 4-27

Copyright Siemens AG 2010 All rights reserved

Tag used
Symbolic name

SinaG120DB.OP_VISIBILITY

Data type

Byte

Address

DB 680 DBB 160

Length

1 Byte

Acquisition cycle

100 ms

Acquisition type

Cyclic for usage

The following table shows the setup of the tags.


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-28
Bit

Selection

Minimize

Note

26

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 SINAMICS G120 (when selecting the tab 1 and 4 in faceplate window).

WCF_BLOCKS_SinaG120 (FB680)
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 must be configured as bit messages in the
message editor of WinCC flexible.
In the example configuration all bit messages were created for the used faceplate
instances, as well as their trigger tags.

4.5.1

Message tag
Table 4-29

Copyright Siemens AG 2010 All rights reserved

Tag used
Symbolic name

SinaG120DB.QwAlarm

Data type

Word

Address

DB 680 DBW 126

Length

2 bytes

Acquisition cycle

100 ms

Acquisition type

Cyclically continued

The following table shows the setup of the tags. The message texts are prefixed
with the SinaG120_001 filter attribute for the first instance of the SinaG120
faceplate window.
Table 4-30
Bit

Signal

QNOFF2

SinaG120_001: OFF2 active

QNOFF3

SinaG120_001: OFF3 active

QNMOTOV

SinaG120_001: motor overload

QNCONOV

SinaG120_001: converter overload

QLOCK

SinaG120_001: interlock triggered

QERR_CON

SinaG120_001: connection error to SINAMICS

QERR_EXT

SinaG120_001: external error

QERR

QPOWER_ON

SinaG120_001: motor is OFF

OP_ON

SinaG120_001: motor is ON

10

QLEFT

SinaG120_001: motor LEFT-hand rotation

11

QRIGHT

12

LOCK

13

QREMOTE

SinaG120_001: controller => REMOTE

14

QMAN_AUT

SinaG120_001: operating mode => AUTOMATIC

15

QSIM

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Message text

SinaG120_001: group error

SinaG120_001: motor RIGHT-hand rotation


SinaG120_001: interlock pending

SinaG120_001: simulation is ACTIVE

27

Functional Mechanisms

4.6

Control and status signals

4.6.1

Processing of switching commands in the controller


The WinCC flexible control tag OP_dwCmd of a block is used to transmit
commands from WinCC flexible to the PLC. The PLC block analyses the control
command, executes the desired action and initiates then a reset of all pending
control commands. For this purpose, the value of the control parameter is set to
0.
Further notes for the use in WinCC flexible can be found under the Command
property.
The following table shows the setup of the tags.

28

REVERSE
FORWARD
START
STOP

DPV1_REQ

SIMULATION
PROCESS
REMOTE
LOCAL
AUTO
MANUAL

RESET

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-31

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Functional Mechanisms

Figure 4-7

SinaG120 (FB 680)


EN
SIdwInp
LOCK
ERR_EXTERN
LIOP_SEL

QCuSpeed
QSPCapacity
QrCuCapacity

L_AUT

QSPFrequency

L_REMOTE

QrCuFrequency

L_SIM

QSPSpeed

L_RESET

QrCuSpeed

L_MAN_ON

QPOWER_ON

L_MAN_REVERSE

QREADY_RUN

L_ENABLE

QOP_ENABLE

L_RFG_EN

QFAULT

L_RFG_FREE

QNOFF2

L_SP_EN

QNOFF3

L_SP_VALID

QSLOCK

OFF2

QWARN

OFF3

QSPREACH

Auto_ON
Auto_REV
Copyright Siemens AG 2010 All rights reserved

QdwState
QSIdwCmd

QFRREACH
QNMOTWARN

SP_Auto

QBRAKE

SP_Man

QNMOTOV

SP_Sim

QDIRECTION

SIM_nomFreq
SIM_nomSpeed
DPV1_ID
DPV1_READ
INSTANCE
RESTART

QNCONOV
QMAN_AUT
QREMOTE
QSIM
QLOCK
QERR_CON

VISIBILITY

QERR

OPdwCmd

QERR_EXT
DPV1_RW_ERROR
DPV1_VOLTAGE
DPV1_POWER
DPV1_FREQUENCY
DPV1_SPEED
DPV1_ERROR1
DPV1_ERROR2
DPV1_ERROR_VALUE1
DPV1_ERROR_VALUE2
DPV1_FNumR
DPV1_FNumW
DPV1_CURRENT_LIM
DPV1_CURRENT_SET
QwAlarm
ENO

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

29

Functional Mechanisms

4.6.2

Transmission of switching commands to SINAMICS G120


Control signals to SINAMICS G120 are transmitted via the output QSIdwCmd.
In the block of this application the peripheral output double-word 256 (PAD256) is
interconnected with the output.
Check the hardware configuration regarding the correct address and write it to the
block output.
Status information of the SINAMICS G120 is read in via the input SIdwInp.
In the block of this application the peripheral input double-word 256 (PED256) is
interconnected with the input.
Check the hardware configuration regarding the correct address and write it to the
block input.

Copyright Siemens AG 2010 All rights reserved

Figure 4-8

Note

During hardware configuration, the standard telegram 1 for PROFINET was


used. For information on the bit assignment of this standard telegram, please
refer to the "Control Unit" manual under the following link:
http://support.automation.siemens.com/WW/view/en/27864729

30

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Functional Mechanisms

Figure 4-9

SinaG120 (FB 680)


EN
SIdwInp
LOCK
ERR_EXTERN
LIOP_SEL

QCuSpeed
QSPCapacity
QrCuCapacity

L_AUT

QSPFrequency

L_REMOTE

QrCuFrequency

L_SIM

QSPSpeed

L_RESET

QrCuSpeed

L_MAN_ON

QPOWER_ON

L_MAN_REVERSE

QREADY_RUN

L_ENABLE

QOP_ENABLE

L_RFG_EN

QFAULT

L_RFG_FREE

QNOFF2

L_SP_EN

QNOFF3

L_SP_VALID

QSLOCK

OFF2

QWARN

OFF3

QSPREACH

Auto_ON
Auto_REV
Copyright Siemens AG 2010 All rights reserved

QdwState
QSIdwCmd

QFRREACH
QNMOTWARN

SP_Auto

QBRAKE

SP_Man

QNMOTOV

SP_Sim

QDIRECTION

SIM_nomFreq
SIM_nomSpeed
DPV1_ID
DPV1_READ
INSTANCE
RESTART

QNCONOV
QMAN_AUT
QREMOTE
QSIM
QLOCK
QERR_CON

VISIBILITY

QERR

OPdwCmd

QERR_EXT
DPV1_RW_ERROR
DPV1_VOLTAGE
DPV1_POWER
DPV1_FREQUENCY
DPV1_SPEED
DPV1_ERROR1
DPV1_ERROR2
DPV1_ERROR_VALUE1
DPV1_ERROR_VALUE2
DPV1_FNumR
DPV1_FNumW
DPV1_CURRENT_LIM
DPV1_CURRENT_SET
QwAlarm
ENO

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

31

Functional Mechanisms

4.6.3

Evaluating and displaying process states in WinCC flexible


The technology block of this application uses the output QdwState (DWORD) to
show the different states in the WinCC flexible process picture.
Further notes for the use in WinCC flexible can be found under the State
property.
The following table shows the setup of the tags.

QSIM
QREMOTE
QMAN_AUT
QNCONOV
QNMOTOV
QBRAKE
QNMOTWARN
QNOFF3
QNOFF2
QFRREACH
QSPREACH
OP_REMOTE
OP_REVERSE
OP_ON
QREADY_RUN
QSLOCK
QDIRECTION
QOP_ENABLE
QPOWER_ON

QFAULT
QWARN

LOCK
QLOCK
QERR_EXT
QERR

DPV1_RW_ERROR

Copyright Siemens AG 2010 All rights reserved

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-32

32

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Functional Mechanisms

Figure 4-10

SinaG120 (FB 680)


EN
SIdwInp
LOCK
ERR_EXTERN

QSPCapacity

LIOP_SEL

QrCuCapacity

L_AUT

QSPFrequency

L_REMOTE

QrCuFrequency

L_SIM

QSPSpeed

L_RESET

QrCuSpeed

L_MAN_ON

QPOWER_ON

L_MAN_REVERSE

QREADY_RUN

L_ENABLE

QOP_ENABLE

L_RFG_EN

QFAULT

L_RFG_FREE

QNOFF2

L_SP_EN

QNOFF3

L_SP_VALID

QSLOCK

OFF2

QWARN

OFF3

QSPREACH

Auto_ON
Auto_REV
Copyright Siemens AG 2010 All rights reserved

QdwState
QSIdwCmd
QCuSpeed

QFRREACH
QNMOTWARN

SP_Auto

QBRAKE

SP_Man

QNMOTOV

SP_Sim

QDIRECTION

SIM_nomFreq
SIM_nomSpeed
DPV1_ID
DPV1_READ
INSTANCE
RESTART

QNCONOV
QMAN_AUT
QREMOTE
QSIM
QLOCK
QERR_CON

VISIBILITY

QERR

OPdwCmd

QERR_EXT
DPV1_RW_ERROR
DPV1_VOLTAGE
DPV1_POWER
DPV1_FREQUENCY
DPV1_SPEED
DPV1_ERROR1
DPV1_ERROR2
DPV1_ERROR_VALUE1
DPV1_ERROR_VALUE2
DPV1_FNumR
DPV1_FNumW
DPV1_CURRENT_LIM
DPV1_CURRENT_SET
QwAlarm
ENO

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

33

Functional Mechanisms

4.6.4

Manual / automatic mode


For manual/automatic switchover, the following signals are used.

LIOP_SEL
If the LIOP_SEL input is set, the mode is determined via the control input
L_AUT.
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 in effect if the LIOP_SEL input is set.
LIOP_SEL = 1 AND L_ AUT = 0 manual
LIOP_SEL = 1 AND L_ AUT = 1 automatic

OPdwCmd
The operator commands of the control word OPdwCmd are only active if the
LIOP_SEL input is not set.

Copyright Siemens AG 2010 All rights reserved

LIOP_SEL = 0 AND OPdwCmd [Bit 16] = 1 manual


LIOP_SEL = 0 AND OPdwCmd [Bit 17] = 1 automatic

QMAN_AUT
The operating mode is indicated at the QMAN_AUT block output.
QMAN_AUT = 0 manual
QMAN_AUT = 1 automatic

QdwState
The current operating mode is transferred to WinCC flexible in the status word
QdwState by means of the two separate bits 16 and 17. If neither or both bits
are set, an error has occurred.
QdwState [bit 16] = 1 manual
QdwState [bit 17] = 1 automatic

Auto_ON, Auto_REV, SP_Auto and SP_Man


If the Automatic mode is selected, the inputs Auto_ON, Auto_REV and
SP_Auto are active.
If the Manual mode is selected, the operation via WinCC is enabled and the
SP_Man input is active.

34

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Functional Mechanisms

Figure 4-11

SinaG120 (FB 680)


EN
SIdwInp
LOCK
ERR_EXTERN
LIOP_SEL

QSPCapacity
QrCuCapacity

L_AUT

QSPFrequency

L_REMOTE
L_SIM

QrCuFrequency
QSPSpeed

L_RESET
L_MAN_ON

QrCuSpeed
QPOWER_ON

L_MAN_REVERSE

QREADY_RUN

L_ENABLE

QOP_ENABLE

L_RFG_EN

QFAULT

L_RFG_FREE

QNOFF2

L_SP_EN

QNOFF3

L_SP_VALID

QSLOCK

OFF2

QWARN

OFF3

QSPREACH

Auto_ON
Auto_REV
Copyright Siemens AG 2010 All rights reserved

QdwState
QSIdwCmd
QCuSpeed

QFRREACH
QNMOTWARN

SP_Auto

QBRAKE

SP_Man

QNMOTOV

SP_Sim
SIM_nomFreq
SIM_nomSpeed
DPV1_ID
DPV1_READ
INSTANCE
RESTART

QDIRECTION
QNCONOV
QMAN_AUT
QREMOTE
QSIM
QLOCK
QERR_CON

VISIBILITY

QERR

OPdwCmd

QERR_EXT
DPV1_RW_ERROR
DPV1_VOLTAGE
DPV1_POWER
DPV1_FREQUENCY
DPV1_SPEED
DPV1_ERROR1
DPV1_ERROR2
DPV1_ERROR_VALUE1
DPV1_ERROR_VALUE2
DPV1_FNumR
DPV1_FNumW
DPV1_CURRENT_LIM
DPV1_CURRENT_SET
QwAlarm
ENO

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

35

Functional Mechanisms

4.6.5

Local / remote switchover


In Local mode the control commands of the operator are effective directly at 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.

LIOP_SEL
If the LIOP_SEL input is set, the mode is determined via the control input
L_REMOTE.
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 in effect if the LIOP_SEL input is set.
LIOP_SEL = 1 AND L_ REMOTE = 0 local
LIOP_SEL = 1 AND L_ REMOTE = 1 remote

OPdwCmd

Copyright Siemens AG 2010 All rights reserved

The operator commands of the control word OPdwCmd are only active 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

SIdwInp
SIdwInp is used to evaluate the status word of SINAMICS G120 and set the
QREMOTE output accordingly.
SIdwInp [bit 9] = 0 local
SIdwInp [bit 9] = 1 remote

QREMOTE
The operating mode is indicated at the QREMOTE block output.
QREMOTE = 0 local
QREMOTE = 1 remote

QdwState
The status word for WinCC flexible shows the switching command at [Bit 7]
and the SINAMICS status for remote control at [Bit 17].
QdwState [bit 7] = 0 command for local mode
QdwState [bit 7] = 1 command for remote mode
QdwState [bit 17] = 0 local
QdwState [bit 17] = 1 remote

36

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Functional Mechanisms

Figure 4-12

SinaG120 (FB 680)


EN
SIdwInp
LOCK
ERR_EXTERN
LIOP_SEL

QCuSpeed
QSPCapacity
QrCuCapacity

L_AUT

QSPFrequency

L_REMOTE

QrCuFrequency

L_SIM
L_RESET
L_MAN_ON

QSPSpeed
QrCuSpeed
QPOWER_ON

L_MAN_REVERSE

QREADY_RUN

L_ENABLE

QOP_ENABLE

L_RFG_EN

QFAULT

L_RFG_FREE

QNOFF2

L_SP_EN

QNOFF3

L_SP_VALID

QSLOCK

OFF2

QWARN

OFF3

QSPREACH

Auto_ON
Auto_REV
Copyright Siemens AG 2010 All rights reserved

QdwState
QSIdwCmd

QFRREACH
QNMOTWARN

SP_Auto

QBRAKE

SP_Man

QNMOTOV

SP_Sim

QDIRECTION

SIM_nomFreq
SIM_nomSpeed
DPV1_ID
DPV1_READ
INSTANCE
RESTART

QNCONOV
QMAN_AUT
QREMOTE
QSIM
QLOCK
QERR_CON

VISIBILITY

QERR

OPdwCmd

QERR_EXT
DPV1_RW_ERROR
DPV1_VOLTAGE
DPV1_POWER
DPV1_FREQUENCY
DPV1_SPEED
DPV1_ERROR1
DPV1_ERROR2
DPV1_ERROR_VALUE1
DPV1_ERROR_VALUE2
DPV1_FNumR
DPV1_FNumW
DPV1_CURRENT_LIM
DPV1_CURRENT_SET
QwAlarm
ENO

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

37

Functional Mechanisms

4.6.6

Setpoint specification
Setpoint values can be interconnected at the inputs SP_Auto and SP_Man. If no
peripheral devices are connected, the block can be used in simulation mode. Input
SP_Sim is therefore switched active.

SP_Auto

The SP_Auto input is used to set the setpoint in the hexadecimal format.
Setpoints are assigned from 16#0000 to 16#4000.

SP_Man

The SP_Man input is used in manual mode to set the setpoint in the floating point
format. Setpoints are assigned from 0.0% to 100.0%.

SP_Sim

The SP_Sim input is used in simulation mode to set the setpoint in the floating
point format. Setpoints are assigned from 0.0% to 100.0%.

Copyright Siemens AG 2010 All rights reserved

Depending on the mode, manual, automatic or simulation, one of the inputs


SP_Auto, SP_Man or SP_Sim is active.

38

QSIM = 0 AND QMAN_AUT = 0

Input SP_Man active

QSIM = 0 AND QMAN_AUT = 1

Input SP_Auto active

QSIM = 1

Input SP_Sim active

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Functional Mechanisms

Figure 4-13

SinaG120 (FB 680)


EN
SIdwInp
LOCK
ERR_EXTERN
LIOP_SEL

QCuSpeed
QSPCapacity
QrCuCapacity

L_AUT

QSPFrequency

L_REMOTE

QrCuFrequency

L_SIM

QSPSpeed

L_RESET

QrCuSpeed

L_MAN_ON

QPOWER_ON

L_MAN_REVERSE

QREADY_RUN

L_ENABLE

QOP_ENABLE

L_RFG_EN

QFAULT

L_RFG_FREE

QNOFF2

L_SP_EN

QNOFF3

L_SP_VALID

QSLOCK

OFF2

QWARN

OFF3

QSPREACH

Auto_ON
Auto_REV
Copyright Siemens AG 2010 All rights reserved

QdwState
QSIdwCmd

QFRREACH
QNMOTWARN

SP_Auto

QBRAKE

SP_Man

QNMOTOV

SP_Sim

QDIRECTION

SIM_nomFreq
SIM_nomSpeed
DPV1_ID
DPV1_READ
INSTANCE
RESTART

QNCONOV
QMAN_AUT
QREMOTE
QSIM
QLOCK
QERR_CON

VISIBILITY

QERR

OPdwCmd

QERR_EXT
DPV1_RW_ERROR
DPV1_VOLTAGE
DPV1_POWER
DPV1_FREQUENCY
DPV1_SPEED
DPV1_ERROR1
DPV1_ERROR2
DPV1_ERROR_VALUE1
DPV1_ERROR_VALUE2
DPV1_FNumR
DPV1_FNumW
DPV1_CURRENT_LIM
DPV1_CURRENT_SET
QwAlarm
ENO

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

39

Functional Mechanisms

4.6.7

Specification of rotation direction


The rotation direction control occurs via an inverted setpoint value. A positive
setpoint value means rotation in a clockwise direction, if output QDirection has
been set.

LIOP_SEL

If the LIOP_SEL input is set, the rotation direction is determined via the control
input L_MAN_REVERSE.
If the LIOP_SEL input is not set, the mode is determined by the operator
(OP_dwCmd [Bit 2] and [Bit 3]).

L_MAN_REVERSE

The L_MAN_REVERSE input is only in effect if the LIOP_SEL input is set.


LIOP_SEL = 1 AND L_ MAN_REVERSE = 0 clockwise at positive setpoint
LIOP_SEL = 1 AND L_ MAN_REVERSE = 1 counter- clockwise at positive
setpoint

OPdwCmd

Copyright Siemens AG 2010 All rights reserved

The operator commands of the control word OPdwCmd are only active if the
LIOP_SEL input is not set.
LIOP_SEL = 0 AND OPdwCmd [bit 2] = 1 clockwise at positive setpoint
LIOP_SEL = 0 AND OPdwCmd [bit 3] = 1 counter-clockwise at positive
setpoint

Auto_REV

In automatic mode, the rotation direction is controlled via the Auto_REV input.
QMAN_OUT = 1 AND Auto_REV = 0 clockwise at positive setpoint
QMAN_OUT = 1 AND Auto_REV = 1 counter-clockwise at positive setpoint

SIdwInp

SIdwInp is used to evaluate the status word of SINAMICS G120 and set the
QDIRECTION output accordingly. For this, the status signal of SINAMICS G120
is negated in case of a positive setpoint.
SIdwInp [Bit 14] = 0

rotation direction counter-clockwise

SIdwInp [Bit 14] = 1

rotation direction clockwise

QDIRECTION

The current rotation direction is indicated at the QDIRECTION block output.

40

QDIRECTION = 0

rotation direction counter-clockwise

QDIRECTION = 1

rotation direction clockwise

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Functional Mechanisms

QdwState

The status word for WinCC indicates the switching command at [Bit 4] and the
SINAMICS status for the inversion of the rotational direction at [Bit 2].

command for clockwise

QdwState [Bit 6] = 1

command for counter-clockwise

QdwState [Bit 2] = 0

status rotation direction counter-clockwise

QdwState [Bit 2] = 1

status rotation direction clockwise

At WinCC faceplate the assignment of a negative setpoint is not intended.


Here the rotation direction must be changed with the Reverse button.

Copyright Siemens AG 2010 All rights reserved

Note

QdwState [Bit 6] = 0

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

41

Functional Mechanisms

Figure 4-14

SinaG120 (FB 680)


EN
SIdwInp
LOCK
ERR_EXTERN
LIOP_SEL
L_AUT
L_REMOTE

QCuSpeed
QSPCapacity
QrCuCapacity
QSPFrequency
QrCuFrequency

L_SIM

QSPSpeed

L_RESET

QrCuSpeed

L_MAN_ON

QPOWER_ON

L_MAN_REVERSE

QREADY_RUN

L_ENABLE
L_RFG_EN

QOP_ENABLE
QFAULT

L_RFG_FREE

QNOFF2

L_SP_EN

QNOFF3

L_SP_VALID

QSLOCK

OFF2

QWARN

OFF3

QSPREACH

Auto_ON

QFRREACH

Auto_REV
Copyright Siemens AG 2010 All rights reserved

QdwState
QSIdwCmd

SP_Auto
SP_Man
SP_Sim
SIM_nomFreq
SIM_nomSpeed
DPV1_ID
DPV1_READ
INSTANCE
RESTART

QNMOTWARN
QBRAKE
QNMOTOV
QDIRECTION
QNCONOV
QMAN_AUT
QREMOTE
QSIM
QLOCK
QERR_CON

VISIBILITY

QERR

OPdwCmd

QERR_EXT
DPV1_RW_ERROR
DPV1_VOLTAGE
DPV1_POWER
DPV1_FREQUENCY
DPV1_SPEED
DPV1_ERROR1
DPV1_ERROR2
DPV1_ERROR_VALUE1
DPV1_ERROR_VALUE2
DPV1_FNumR
DPV1_FNumW
DPV1_CURRENT_LIM
DPV1_CURRENT_SET
QwAlarm
ENO

42

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Functional Mechanisms

4.6.8

Starting / stopping the motor


The switchover is influenced by other functions, e.g. the manual/automatic
switchover, local/remote switchover and Simulation.

LIOP_SEL
If the LIOP_SEL input is set, the motor is started via the control input
L_MAN_ON. If the LIOP_SEL input is not set, the motor is started
(OPdwCmd [Bit 1]) and stopped (OPdwCmd [Bit 0]) by the operator or is
controlled via the Auto_ON input in automatic mode.

L_MAN_ON
The L_MAN_ON input starts or stops the motor in simulation as well as
manual mode.
QSIM = 1 AND L_MAN_ON = 1 starting
QSIM = 1 AND L_MAN_ON = 0 stopping
QMAN_OUT = 0 AND L_MAN_ON = 0 stopping

Copyright Siemens AG 2010 All rights reserved

QMAN_OUT = 0 AND L_MAN_ON = 1 starting

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

Auto_ON
The Auto_ON input starts or stops the motor in automatic mode.
QMAN_AUT = 1 AND Auto_ON = 1 starting
QMAN_AUT = 1 AND Auto_ON = 0 stopping

Current setpoint and actual value


At the following outputs, the current setpoint is indicated:
QSPCapacity

setpoint in percent

QSPFrequency

setpoint converter frequency

QSPSpeed

setpoint motor speed

At the following outputs, the current actual value is indicated:


QCuSpeed

Actual value in the hexadecimal format


from 16#0000 to 16#4000

QrCuCapacity

actual value in percent

QrCuFrequency

actual value (readback)

QrCuSpeed

actual motor speed

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

43

Functional Mechanisms

Figure 4-15

SinaG120 (FB 680)


EN
SIdwInp
LOCK
ERR_EXTERN
LIOP_SEL

QCuSpeed
QSPCapacity
QrCuCapacity

L_AUT

QSPFrequency

L_REMOTE

QrCuFrequency

L_SIM

QSPSpeed

L_RESET

QrCuSpeed

L_MAN_ON
L_MAN_REVERSE
L_ENABLE

QPOWER_ON
QREADY_RUN
QOP_ENABLE

L_RFG_EN

QFAULT

L_RFG_FREE

QNOFF2

L_SP_EN

QNOFF3

L_SP_VALID

QSLOCK

OFF2

QWARN

OFF3

QSPREACH

Auto_ON
Auto_REV
SP_Auto

Copyright Siemens AG 2010 All rights reserved

QdwState
QSIdwCmd

QFRREACH
QNMOTWARN
QBRAKE

SP_Man

QNMOTOV

SP_Sim

QDIRECTION

SIM_nomFreq
SIM_nomSpeed
DPV1_ID
DPV1_READ
INSTANCE
RESTART

QNCONOV
QMAN_AUT
QREMOTE
QSIM
QLOCK
QERR_CON

VISIBILITY

QERR

OPdwCmd

QERR_EXT
DPV1_RW_ERROR
DPV1_VOLTAGE
DPV1_POWER
DPV1_FREQUENCY
DPV1_SPEED
DPV1_ERROR1
DPV1_ERROR2
DPV1_ERROR_VALUE1
DPV1_ERROR_VALUE2
DPV1_FNumR
DPV1_FNumW
DPV1_CURRENT_LIM
DPV1_CURRENT_SET
QwAlarm
ENO

44

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Functional Mechanisms

4.6.9

Simulation On/Off
The frequency converter can be simulated by means of the Simulation ON mode.
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 feedback simulation, many automation functions (e.g. step sequences)
cannot be successfully performed, since the feedback signals are often required for
switching conditions in case of step sequences or for triggering error messages.
The SIdwInp input and the QSIdwCmd output is not evaluated in this mode.

LIOP_SEL
If the LIOP_SEL input is set, the simulation is switched on/off via the control
input L_SIM.
If the LIOP_SEL input is not set, the simulation is turned on or off by the
operator (OPdwCmd bit 20 and 21).

L_SIM
LIOP_SEL = 1 AND L_SIM = 0 simulation OFF

Copyright Siemens AG 2010 All rights reserved

LIOP_SEL = 1 AND L_SIM = 1 simulation ON

SIM_nomFreq
At input SIM_nomFreq the simulated setpoint frequency can be configured. It
is used for the calculation of the simulated value of the output.

SIM_nomSpeed
At input SIM_nomSpeed the simulated setpoint frequency can be configured.
It is used for the calculation of the simulated value of the output.

OPdwCmd
The operator commands of the control word OPdwCmd are only active if the
LIOP_SEL input is not set.
LIOP_SEL = 0 AND OP_dwCmd [bit 20] = 1 simulation ON
LIOP_SEL = 0 AND OP_dwCmd [bit 21] = 1 simulation OFF

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 10.
QdwState [bit 18] = 0 simulation OFF
QdwState [bit 18] = 1 simulation ON

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

45

Functional Mechanisms

Figure 4-16

SinaG120 (FB 680)


EN
SIdwInp
LOCK
ERR_EXTERN
LIOP_SEL
L_AUT
L_REMOTE
L_SIM
L_RESET
L_MAN_ON

QSPCapacity
QrCuCapacity
QSPFrequency
QrCuFrequency
QSPSpeed
QrCuSpeed
QPOWER_ON

L_MAN_REVERSE

QREADY_RUN

L_ENABLE

QOP_ENABLE

L_RFG_EN

QFAULT

L_RFG_FREE

QNOFF2

L_SP_EN

QNOFF3

L_SP_VALID

QSLOCK

OFF2

QWARN

OFF3

QSPREACH

Auto_ON
Auto_REV
Copyright Siemens AG 2010 All rights reserved

QdwState
QSIdwCmd
QCuSpeed

QFRREACH
QNMOTWARN

SP_Auto

QBRAKE

SP_Man

QNMOTOV

SP_Sim

QDIRECTION

SIM_nomFreq
SIM_nomSpeed
DPV1_ID
DPV1_READ
INSTANCE
RESTART

QNCONOV
QMAN_AUT
QREMOTE
QSIM
QLOCK
QERR_CON

VISIBILITY

QERR

OPdwCmd

QERR_EXT
DPV1_RW_ERROR
DPV1_VOLTAGE
DPV1_POWER
DPV1_FREQUENCY
DPV1_SPEED
DPV1_ERROR1
DPV1_ERROR2
DPV1_ERROR_VALUE1
DPV1_ERROR_VALUE2
DPV1_FNumR
DPV1_FNumW
DPV1_CURRENT_LIM
DPV1_CURRENT_SET
QwAlarm
ENO

46

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Functional Mechanisms

4.6.10

Display and reset the 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 specific function of the block (e.g.
open valve, switch on motor etc.) cannot be implemented.
If the actual block function is already active (e.g. motor on) and then the interlock
condition applies, the actual block function is deactivated (e.g. motor switched off).
This function is used to avoid critical plant conditions.

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

L_RESET
On a positive edge at the L_RESET input, the QLOCK output is reset.

Copyright Siemens AG 2010 All rights reserved

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

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

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

Note

With the LOCK signal the OFF2 command is sent (OFF2 pulse inhibit, drive
spins out). If the lock is no longer pending, the drive cannot be switched on until
a stop signal is pending.

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

47

Functional Mechanisms

Figure 4-17

SinaG120 (FB 680)


EN
SIdwInp
LOCK
ERR_EXTERN
LIOP_SEL

QCuSpeed
QSPCapacity
QrCuCapacity

L_AUT

QSPFrequency

L_REMOTE

QrCuFrequency

L_SIM
L_RESET

QSPSpeed
QrCuSpeed

L_MAN_ON
L_MAN_REVERSE

QPOWER_ON
QREADY_RUN

L_ENABLE

QOP_ENABLE

L_RFG_EN

QFAULT

L_RFG_FREE

QNOFF2

L_SP_EN

QNOFF3

L_SP_VALID

QSLOCK

OFF2

QWARN

OFF3

QSPREACH

Auto_ON
Auto_REV
Copyright Siemens AG 2010 All rights reserved

QdwState
QSIdwCmd

QFRREACH
QNMOTWARN

SP_Auto

QBRAKE

SP_Man

QNMOTOV

SP_Sim

QDIRECTION

SIM_nomFreq
SIM_nomSpeed
DPV1_ID
DPV1_READ

QNCONOV
QMAN_AUT
QREMOTE
QSIM

INSTANCE

QLOCK

RESTART
VISIBILITY

QERR_CON
QERR

OPdwCmd

QERR_EXT
DPV1_RW_ERROR
DPV1_VOLTAGE
DPV1_POWER
DPV1_FREQUENCY
DPV1_SPEED
DPV1_ERROR1
DPV1_ERROR2
DPV1_ERROR_VALUE1
DPV1_ERROR_VALUE2
DPV1_FNumR
DPV1_FNumW
DPV1_CURRENT_LIM
DPV1_CURRENT_SET
QwAlarm
ENO

48

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Functional Mechanisms

4.6.11

External error
With the error signal the OFF3 command is sent to the SINAMICS G120 (OFF3
fast stop, stopping with shortest deceleration time). If the error is no longer
pending, the drive cannot be switched on until a stop signal is active.

ERR_EXTERN

The input signal LOCK includes the interlock condition. If the interlock is pending,
the actual block function cannot be performed.
ERR_EXTERN = 0 no error
ERR_EXTERN = 1 error pending

QERR

The interlock is indicated at the QERR output.


QERR = 0 no error pending
QERR = 1 error pending

QdwState

Copyright Siemens AG 2010 All rights reserved

The error is transferred to WinCC with [Bit 15] of the status word.
QdwState [bit 24] = 0 no error pending
QdwState [bit 24] = 1 error pending

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

49

Functional Mechanisms

Figure 4-18

SinaG120 (FB 680)


EN
SIdwInp
LOCK
ERR_EXTERN

QSPCapacity

LIOP_SEL
L_AUT

QrCuCapacity
QSPFrequency

L_REMOTE

QrCuFrequency

L_SIM

QSPSpeed

L_RESET

QrCuSpeed

L_MAN_ON

QPOWER_ON

L_MAN_REVERSE

QREADY_RUN

L_ENABLE

QOP_ENABLE

L_RFG_EN

QFAULT

L_RFG_FREE

QNOFF2

L_SP_EN

QNOFF3

L_SP_VALID

QSLOCK

OFF2

QWARN

OFF3

QSPREACH

Auto_ON
Auto_REV
Copyright Siemens AG 2010 All rights reserved

QdwState
QSIdwCmd
QCuSpeed

QFRREACH
QNMOTWARN

SP_Auto

QBRAKE

SP_Man

QNMOTOV

SP_Sim

QDIRECTION

SIM_nomFreq
SIM_nomSpeed
DPV1_ID
DPV1_READ
INSTANCE
RESTART

QNCONOV
QMAN_AUT
QREMOTE
QSIM
QLOCK
QERR_CON

VISIBILITY

QERR

OPdwCmd

QERR_EXT
DPV1_RW_ERROR
DPV1_VOLTAGE
DPV1_POWER
DPV1_FREQUENCY
DPV1_SPEED
DPV1_ERROR1
DPV1_ERROR2
DPV1_ERROR_VALUE1
DPV1_ERROR_VALUE2
DPV1_FNumR
DPV1_FNumW
DPV1_CURRENT_LIM
DPV1_CURRENT_SET
QwAlarm
ENO

50

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Configuration and Settings

Configuration and Settings

Here you can learn about


how the faceplates of this application are structured. This information is necessary
if you wish to design the faceplates according to your needs.
Principle of layer technique
The principle of layer technology was used for the faceplates of this application.
The layer technology enables differentiated editing of the faceplate objects.
The faceplate editor as well as 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, as
well as any other picture object, can only be assigned a layer within the picture
editor.
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
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
command Faceplates > Edit faceplate via the menu bar. Alternatively the
command Edit faceplate can also be selected via the context menu of the
instance.

Changing the faceplate in the library


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

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

51

Configuration and Settings

Working with layers


One of the 32 layers is always active. When inserting objects into a picture or a
faceplate they are by default assigned to the active layer. 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-19

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

52

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Configuration and Settings

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 animation type Visibility of each object. For this purpose, the
Visibility property is connected in the faceplates.

5.1.1

Layer 0 frames
Layer 0 contains all important objects required for displaying the faceplate
window. These objects represent the faceplate window frame.

Copyright Siemens AG 2010 All rights reserved

Figure 5-20

The following different display types exist:

Open

Close

Minimize

Maximize

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

53

Configuration and Settings

Open and maximize


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-33
Tag

State

Visibility

Range

Visible

from 1 to 127

The following table shows the status of the Visibility tag when opening the
faceplate window.

Copyright Siemens AG 2010 All rights reserved

Table 5-34
Bit

Value

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 0 .. 4 when maximizing Bit 7 must not be set.
Table 5-35

54

Bit

Value

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Configuration and Settings

Minimize
Display type minimize only shows the title bar of the faceplate window and
reveals the picture objects at the back.
Figure 5-21

All objects of the title bar have the following settings for the visibility:
Table 5-36
Tag

State

Visibility

Range

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.

Copyright Siemens AG 2010 All rights reserved

Table 5-37
Bit

Value

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-38
Bit

Value

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

55

Configuration and Settings

5.1.2

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

Copyright Siemens AG 2010 All rights reserved

Figure 5-22

All layer 1 objects have the following settings for the visibility:
Table 5-39
Tag

State

Visibility

Range

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-40

56

Bit

Value

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Configuration and Settings

5.1.3

Layer 2 tab 2
All layer 2 objects have the following settings for the visibility:
Table 5-41
Tag

State

Visibility

Range

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-42
Bit

Value

5.1.4

Layer 3 tab 3

Copyright Siemens AG 2010 All rights reserved

All layer 3 objects have the following settings for the visibility:
Table 5-43
Tag

State

Visibility

Range

Visible

Von 4 bis 4

The following table shows the status of the Visibility tag when displaying layer 3
(tab 3) of the faceplate window.
Table 5-44
Bit

Value

5.1.5

Layer 4 tab 4
All layer 4 objects have the following settings for the visibility:
Table 5-45
Tag

State

Visibility

Range

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-46
Bit

Value

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

57

Configuration and Settings

5.1.6

Layer 5 tab 5
All layer 5 objects have the following settings for the visibility:
Table 5-47
Tag

State

Visibility

Range

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-48
7

Value

Copyright Siemens AG 2010 All rights reserved

Bit

58

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Startup of the Application

Startup of the Application

Here you can learn about


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

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

Copyright Siemens AG 2010 All rights reserved

ATTENTION

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

59

Startup of the Application

6.1

Configuring the STEP 7 block


Table 6-49

Copyright Siemens AG 2010 All rights reserved

Step

60

Description

1.

Creating a new project

Create a new STEP 7 project with an S7 controller and an 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.

Insert blocks

Open the project of this application with the SIMATIC Manager.

Copy the FB680 block to the respective directory of the S7 program.

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

If you are using a new project, also insert the OB1 calling block and the
DB680 instance data block into your project.

3.

Supplementing the icon table

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

Should you use an existing project, the complete the existing icon table
with the entries of the application.

4.

Calling the blocks

When using an existing project you must integrate the FB680 block into
the cycle of the PLC. The necessary instance data block is then
automatically generated.

5.

Check block consistency

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

6.

Commissioning the hardware

Integrate the SINAMICS G120 into HW Config:

Activate the Ethernet interface of the CPU and assign a new


Ethernet address.

Connect a SINAMICS G120 to PROFINET (available in the catalog


at PROFINET-IO > Drives > SINAMICS > SINAMICS G120)
and assign an Ethernet address.

Insert the Standard Telegram 1.

For the input and output address select the range from 256
onward. Enter these addresses also in the OB1 when calling the
SinaG120 (FB680):
SIdwInp: PED256
QSIdwCmd: PAD256

Open the object properties of SINAMICS and assign 8186 (1FFA)


as diagnostic address. Also enter this diagnostic address in the OB1
when calling SinaG120 (FB680) in hexadecimal format:
DPV1_ID: DW#16#1FFA

Save and compile the HW Config and download it to the controller.

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Startup of the Application

6.2

Configuration of the WinCC flexible faceplates

Table 6-50

Copyright Siemens AG 2010 All rights reserved

Step

Instruction

1.

Open object

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

2.

Selecting the library

Open the picture 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_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

61

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 is thus advisable
to store the library on a network drive with shared access.

5.

62

Integrating the global file library

Open your WinCC flexible project.

Select the project library in the Tools window.

WCF_BLOCKS_SinaG120 (FB680)
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 you select the SINAG120 category.

Move the faceplate objects included in this category to your project using drag & drop.

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

63

Startup of the Application

Step
8.

Instruction
Integrating the messages and tags

Drag the SinaG120Alarms messages to the Messages > Bit messages folder and the
tags SinaG120Tags to 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.
Check your existing before integrating the messages and enable this area if necessary.
Furthermore, check the symbolic connection of the tags and restore it, if necessary.

9.

64

Interconnecting the faceplates

Interconnect the dynamic properties of the faceplate window. Further information is


available in chapter 4.2.

Interconnect the static properties of the faceplate window. Further information is available
in chapter 4.3.

Interconnect the dynamic properties of the faceplate icon. Further information is available
in chapter 4.4 .

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Operating the Application

Operating the Application

Here you can learn


how to operate the faceplates in WinCC flexible and which options the blocks
provide to engage in the process.

7.1

Faceplate icon
Figure 7-23

Copyright Siemens AG 2010 All rights reserved

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:

State on/off

State local/remote

Manual/automatic mode

Simulation feedback

Interlock

Rotation direction and speed

Displayed errors:

Operation:

Note

General error
calling up the assigned faceplate window

The faceplate icon displays the rotational speed (actual value) of the motor in the
unit %. For clockwise motor motion the sign is positive (+), for counterclockwise motor motion it is negative (-) accordingly.

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

65

Operating the Application

The following illustration shows the possible operating modes:


Table 7-51
Operating
mode

QdwState

Icon

Blinking

Off

Bit 0 = 1

No

On

Bit 2 = 1

No

Error

Bit 24 = 1

Yes

The following table shows the possible status displays:


Table 7-52
State

Icon

Local
Remote
Copyright Siemens AG 2010 All rights reserved

Manual
Automatic
Simulation ON
Simulation OFF
Interlock OFF
Interlock ON
interlock triggered

66

WCF_BLOCKS_SinaG120 (FB680)
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)

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

Copyright Siemens AG 2010 All rights reserved

Figure 7-24

In this view you can perform the following actions:

display of SINAMICS G120 status information

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


the visualization system)

switchover manual/automatic mode

setpoint specification, setpoint inversion

start/stop drive

resetting of error states

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

67

Operating the Application

The following illustration shows the possible operating modes:


Table 7-53
Operating
mode

QdwState

Icon

Blinking

On

Bit 0 = 1

No

Off

Bit 2 = 1

No

Error

Bit 24 = 1

Yes

The following table shows the possible status displays:


Table 7-54

Copyright Siemens AG 2010 All rights reserved

State

68

Icon
Off

Icon
On

Blinking

Simulation

No

State

No

Direction of rotation

No

Operating mode

No

Controlling

No

Maximal frequency
reached

No

DC break

No

ON lock

No

Warning

No

Error

No

OFF 2

No

OFF 3

No

Converter overload

No

Mot. overload

No

External error

No

Error interlock

No

General error

No

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Operating the Application

Messages

Copyright Siemens AG 2010 All rights reserved

Figure 7-25

In this view you can perform the following actions:

Display of block-related alarms and messages.

Acknowledgement of alarms.

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

69

Operating the Application

Trends

Copyright Siemens AG 2010 All rights reserved

Figure 7-26

In this view you can perform the following actions:

70

Display the setpoint value in %

Display the actual value in %

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Operating the Application

Data

Copyright Siemens AG 2010 All rights reserved

Figure 7-27

In this view you can perform the following actions:

Note

Display the setpoint motor values

Display the error values of SINAMICS G120

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

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

71

Operating the Application

Service

Copyright Siemens AG 2010 All rights reserved

Figure 7-28

The Service tab is protected and requires the authorization of the


Service group for the selection.

ATTENTION

The default user is Service 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:

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


required)

The following table shows the possible status displays:


Table 7-55
State

Icon Off

Icon On

Simulation

72

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Block Connectors

Block Connectors
8.1

Input parameters
Table 8-56

Copyright Siemens AG 2010 All rights reserved

Parameter

Data type

Default setting

Description

EN

BOOL

FALSE

Enable

SIdwInp

DWORD

DW#16#0

Status word SINAMICS G120

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

Error reset (positive edge)

BOOL

FALSE

0= OFF 1 = ON
(SINAMICS G120 Cmd-Bit [0])

BOOL

FALSE

1 = Setpoint inversion
(SINAMICS G120 Cmd-Bit [11])

BOOL

TRUE

1 = Enable operation
(SINAMICS G120 Cmd Bit [3])

BOOL

TRUE

1 = RFG condition
(SINAMICS G120 Cmd Bit [4])

BOOL

TRUE

1 = RFG enable
(SINAMICS G120 Cmd Bit [5])

BOOL

TRUE

1 = Setpoint enable
(SINAMICS G120 Cmd Bit [6])

BOOL

TRUE

1 = Setpoints valid
(SINAMICS G120 Cmd-Bit [10])

BOOL

TRUE

0 = OFF2 (pulse inhibit)


(SINAMICS G120 Cmd-Bit [1])

BOOL

TRUE

0 = OFF3 (fast stop)


(SINAMICS G120 Cmd-Bit [2])

Auto_ON

BOOL

FALSE

1= ON

Auto_REV

BOOL

FALSE

1 = Change rotation direction

SP_Auto

INT

Setpoint specification I/O

SP_Man

REAL

0.0

Setpoint specification, manual

L_MAN_ON
L_MAN_REVERSE
L_ENABLE
L_RFG_EN
L_RFG_FREE
L_SP_EN
L_SP_VALID
OFF2
OFF3

SP_Sim

REAL

0.0

Setpoint specification, simulation

REAL

0.0

Rated motor frequency


(simulation)

SIM_nomFreq
SIM_nomSpeed

REAL

0.0

Rated motor speed (simulation)

DPV1_ID

DWORD

DW#16#0

DP slave diagnostic address

DPV1_READ

BOOL

FALSE

1 = Acyclic data request

INSTANCE

STRING[16]

SinaG120_001

Filter attribute for messages,


labeling of title bar

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

73

Block Connectors

Parameter

Data type

Default setting

Description

BOOL

FALSE

Initializing at restart

VISIBILITY

BYTE

B#16#0

Representation of
faceplate window

OPdwCmd

DWORD

DW#16#0

Control tag (HMI)

Copyright Siemens AG 2010 All rights reserved

RESTART

74

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Block Connectors

8.2

Output parameters
Table 8-57

Copyright Siemens AG 2010 All rights reserved

Parameter

Data type

Default setting

Description

QdwState

DWORD

DW#16#0

Status tag (HMI)

QSIdwCmd

DWORD

DW#16#0

Command word SINAMICS

QCuSpeed

WORD

W#16#0

Actual value I/O

QSPCapacity

REAL

0.0

Setpoint in percent

QrCuCapacity

REAL

0.0

Actual value in percent

QSPFrequency

REAL

0.0

Setpoint frequency

QrCuFrequency

REAL

0.0

Actual value frequency

QSPSpeed

REAL

0.0

Setpoint rotation speed

QrCuSpeed

REAL

0.0

Actual value rotation speed

QPOWER_ON

BOOL

FALSE

1=Stop (ready to run)


(SINAMICS G120 State Bit[0])

QREADY_RUN

BOOL

FALSE

1 = Ready to run
(SINAMICS G120 State Bit [1])

QOP_ENABLE

BOOL

FALSE

1=Run (operation enabled)


(SINAMICS G120 State Bit[2])

QFAULT

BOOL

FALSE

1= Fault
(SINAMICS G120 State Bit[3])

QNOFF2

BOOL

FALSE

0=OFF2 Command pending


(SINAMICS G120 State Bit[4])

QNOFF3

BOOL

FALSE

0=OFF3 Command pending


(SINAMICS G120 State Bit[5])

QSLOCK

BOOL

FALSE

6 = Switch-on locking
(SINAMICS G120 State Bit [1])

QWARN

BOOL

FALSE

1= Warning
(SINAMICS G120 State Bit[7])

QSPREACH

BOOL

FALSE

1=No setpoint/actual deviation


(SINAMICS G120 State Bit[8])

QFRREACH

BOOL

FALSE

1 = Setpoint frequency reached


(SINAMICS G120 State Bit [1])

QNMOTWARN

BOOL

FALSE

0=Motor power limit reached


(SINAMICS G120 State Bit[11])

QBRAKE

BOOL

FALSE

0 = Motor break
(SINAMICS G120 State Bit [12])

QNMOTOV

BOOL

FALSE

0 = Motor overload
(SINAMICS G120 State Bit [13])

QDIRECTION

BOOL

FALSE

0= cclock1=clockwise
(SINAMICS G120 State Bit[14])

QNCONOV

BOOL

FALSE

0 = Converter overload
(SINAMICS G120 State Bit [15])

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_CON

BOOL

FALSE

1= Connection error to MM

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

75

Block Connectors

Copyright Siemens AG 2010 All rights reserved

Parameter

76

Data type

Default setting

Description

QERR

BOOL

FALSE

1 = Error

QERR_EXT

BOOL

FALSE

1 = External error

DPV1_RW_ERROR

BOOL

FALSE

1= Write/read error

DPV1_VOLTAGE

INT

Setpoint voltage of the motor

DPV1_POWER

REAL

0.0

Setpoint output of the motor

DPV1_FREQUENCY

REAL

0.0

Setpoint frequency of the motor

DPV1_SPEED

INT

Setpoint speed of the motor

DPV1_ERROR1

INT

Actual error number 1

DPV1_ERROR2

INT

Actual error number 2

DPV1_ERROR
_VALUE1

INT

Actual error value 1

DPV1_ERROR
_VALUE2

INT

Actual error value 2

DPV1_FNumR

DWORD

DW#16#0

Read status

DPV1_FNumW

DWORD

DW#16#0

Write status

DPV1_CURRENT_LIM

REAL

0.0

Current limit

DPV1_CURRENT_SET

REAL

0.0

Actual value current

QwAlarm

WORD

W#16#0

Alarm tag

ENO

BOOL

FALSE

Enable

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Further Information

Further Information
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-58
Block

Copyright Siemens AG 2010 All rights reserved

MOTOR

Description
Visualization and operation of a motor with fixed speed and rotational
direction

VALVE

Visualization and operation of a binary valve

DIGITAL

Visualization and operation of digital signals.

ANALOG

Visualization and operation of analog signals.

PIDCTRL

Visualization and operator control of a software-implemented PID controller


for regulating technical parameters with continuous input and output values.

MM4

Visualization and control of the frequency converter MICROMASTER 440

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.

Faceplates included in the scope of delivery of WinCC flexible


The WinCC flexible system library offers you ready-to-use faceplates. Further
information on the system library is available in the WinCC flexible information
system (online help) at:
Working with WinCC flexible > Creating pictures > Working with libraries >
Working with system libraries > Using system libraries.
In the "System library" link you also find a description of the faceplates of the
system library.
Faceplates for WinCC
Information on the structure of faceplates in WinCC is available in the following
entry:
Example blocks for STEP 7 and WinCC,
http://support.automation.siemens.com/WW/view/en/31624179
This entry uses the following software:
S7-SCL, CFC, STEP 7, WinCC

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

77

Copyright Siemens AG 2010 All rights reserved

Further Information

78

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

Bibliography

10

Bibliography

The following list is by no means complete and only provides a selection of


appropriate sources.
Table 10-59
Topic

Title

Reference to this 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 software
and documentation on
frequency converter
SINAMICS G120

Software
http://support.automation.siemens.com/WW/view/en/26233208

Copyright Siemens AG 2010 All rights reserved

\1\

SINAMICS G120 Function Manual


http://support.automation.siemens.com/WW/view/en/31676845
Control Units CU240E / CU240S List of Parameters:
http://support.automation.siemens.com/WW/view/en/32465038
Manual: Control Units CU240
http://support.automation.siemens.com/WW/view/en/27864729
Reading and writing of acyclic data
http://support.automation.siemens.com/WW/view/en/29157692

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

79

Copyright Siemens AG 2010 All rights reserved

Bibliography

80

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

History

11

History
Table 11-60 History
Version

11.06.2010

Changes
First issue

Copyright Siemens AG 2010 All rights reserved

V1.0

Date

WCF_BLOCKS_SinaG120 (FB680)
V 1.00, Entry ID: 36435784

81

Das könnte Ihnen auch gefallen