Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
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
Block Connectors
Further Notes
Bibliography
History
Application
WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784
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.
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
Overview .............................................................................................. 9
Hardware and software components used......................................... 10
Basics ............................................................................................................... 11
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
WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784
Table of Contents
8
10
Bibliography..................................................................................................... 69
11
History............................................................................................................... 70
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.
WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784
Automation Task
start / stop
simulation
stop
run
illegal
The following errors are evaluated, displayed in the picture window and saved in
Alarm Logging:
ON/OFF feedback
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
Block
WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784
Automation Solution
2.2
Hardware components
Table 2-2
Component
Number
Note
Development system
S7-300 CPU
or
S7-400 CPU
Software components
Table 2-3
Component
Number
6ES7810-4CC08-0YA7
6AV6613-0AA51-3CA5
Note
10
Note
36435784_S7_WCF_Blocks_CODE.zip
36435784_S7_WCF_Blocks_DOCUMENTS_d.zip
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
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
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
Figure 4-1
12
WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784
Functional Mechanisms
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_SimoDir (FB611)
V 1.00, Entry ID: 36435784
13
Functional Mechanisms
4.2
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
Table 4-5
Copyright Siemens AG 2010 All rights reserved
Tag used
Symbolic Name
SimoDirDB.OP_VISIBILITY
Data type
byte
Address
Length
1 byte
Acquisition cycle
100 ms
Acquisition mode
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
Length
4 bytes
Acquisition cycle
100 ms
Acquisition mode
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
Tag used
15
Functional Mechanisms
Instance
The Instance
locations:
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
Tag used
Symbolic Name
SimoDirDB.INSTANCE
Data type
String
Address
DB 611 DBB 16
Length
16 bytes
Acquisition cycle
1s
Acquisition mode
Figure 4-2
ATTENTION
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
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
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
Length
4 bytes
Acquisition cycle
100 ms
Acquisition mode
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
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
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
Tag used
Symbolic Name
SimoDirDB.DPV1DEV_Qdw00
Data type
DWord
Address
DB 611 DBD 68
Length
4 bytes
Acquisition cycle
100 ms
Acquisition mode
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
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.
ATTENTION
IntMotOperHours
The IntMotOperHours property displays the internal operating hours of the motor.
Table 4-17
Tag used
Symbolic Name
SimoDirDB.DPV1STAT_IntMotOperHours
Data type
Real
Address
Length
4 bytes
Acquisition cycle
1s
Acquisition mode
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
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
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
IntNumbStarts_R
The IntNumbStarts_R property shows the internal number of starts on the right.
Table 4-21
Tag used
Symbolic Name
SimoDirDB.DPV1STAT_IntNumbStarts_R
Data type
DWord
Address
Length
4 bytes
Acquisition cycle
1s
Acquisition mode
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
Length
4 bytes
Acquisition cycle
1s
Acquisition mode
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
Length
4 bytes
Acquisition cycle
1s
Acquisition mode
MotStopTime
The MotStopTime property displays the downtimes of the motor.
Table 4-24
Tag used
Symbolic Name
SimoDirDB.DPV1STAT_MotStopTime
Data type
Word
Address
DB 611 DBW 96
Length
2 bytes
Acquisition cycle
1s
Acquisition mode
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
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
Length
4 bytes
Acquisition cycle
1s
Acquisition mode
DeviceParameter
The DeviceParameter property displays the number of configurations.
Table 4-27
Tag used
Symbolic Name
SimoDirDB.DPV1STAT_DeviceParameter
Data type
Word
Address
DB 611 DBW 90
Length
2 bytes
Acquisition cycle
1s
Acquisition mode
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
Length
4 bytes
Acquisition cycle
1s
Acquisition mode
WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784
23
Functional Mechanisms
4.3
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
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.
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
Figure 4-6
Only the dynamic properties are accessed in the interface of the faceplate icon.
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
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
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
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
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-32
Tag used
Symbolic Name
SimoDirDB.OP_VISIBILITY
Data type
byte
Address
Length
1 byte
Acquisition cycle
100 ms
Acquisition mode
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
4.5.1
Message tag
Table 4-34
Tag used
Symbolic Name
SimoDirDB.QwAlarm
Data type
Word
Address
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
QERR_EXT
QERR
QSTOP
QRUN
SimoDir_001: Motor is ON
10
SimoDir_001:
11
QGENWARN
12
LOCK
13
QREMOTE
14
QMAN_AUT
15
QSIM
WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784
29
Functional Mechanisms
4.6
4.6.1
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
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
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
QdwState
SCdwInp
LOCK
QwState
QSCwCmd
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
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
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
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
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
"QREMOTE = 1 remote
36
WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784
Functional Mechanisms
4.6.6
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
QSTOP =
1 stop
QRUN =
(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
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
40
WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784
Functional Mechanisms
4.6.8
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)
42
WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784
Configuration
Configuration
WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784
43
Configuration
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
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.
Figure 5-17
opening
closing
minimizing
maximizing
WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784
45
Configuration
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.
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.
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.
Figure 5-19
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
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:
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
ATTENTION
WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784
51
6.1
Action
52
Description
1.
2.
Inserting blocks
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.
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.
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.
Check the block consitency via the context menu of the block container
with the Check block consitency command.
6.
Configuring hardware
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
WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784
6.2
Table 6-57
Step
Instruction
1.
Opening project
Open the WinCC flexible project via the context menu of the SIMATIC Manager.
2.
Selecting library
Open Screen_1.
3.
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
Step
4.
Instruction
Creating a global library
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
WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784
Step
Instruction
6.
7.
Draw the faceplate objects contained there into your project via Drag&Drop.
WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784
55
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.
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
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
7.1
Faceplate icon
Figure 7-20
Displayed modes:
on/off state
local/remote mode
manual/automatic mode
simulation feedback
interlock
Displayed error:
general error
Operation:
WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784
57
QdwState
Icon
Flashing
Off
Bit 0 = 1
no
On
Bit 1 = 1
no
Error
Bit 24 = 1
yes
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
7.2
Faceplate window
The faceplate window has the following properties:
Overview
Figure 7-21
manual/automatic switchover.
start/stop drive
WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784
59
QdwState
Icon
Flashing
Off
Bit 0 = 1
no
On
Bit 1 = 1
no
Error
Bit 24 = 1
yes
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
Messages
Figure 7-22
Acknowledgement of alarms.
WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784
61
Trends
Figure 7-23
Note
62
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
Diagnosis
Figure 7-24
Note
WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784
63
Statistics
Figure 7-25
ATTENTION
64
WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784
Service
Figure 7-26
ATTENTION
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
Parameters
66
Data type
Default setting
Description
EN
BOOL
FALSE
Enable
SCdwInp
DWORD
DW#16#0
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
AUT_ON
BOOL
FALSE
1= Start (automatic)
DPV1_ID
DWORD
DW#16#0
DIAG_INDEX
INT
DPV1 diagnosis
DIAG_MLEN
INT
DPV1 diagnosis
DPV0_LADDR
WORD
W#16#0
DPV0 diagnosis
INSTANCE
STRING[16]
SimoDir_001
RESTART
BOOL
FALSE
VISIBILITY
BYTE
B#16#0
Display of the
faceplate window
OPdwCmd
DWORD
DW#16#0
fCurrentE
REAL
1.0
DIAG_REQ
BOOL
FALSE
STAT_REQ
BOOL
FALSE
STAT_REQ_WR
BOOL
FALSE
WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784
Block Connectors
8.2
Output parameters
Table 8-64
Parameters
Data type
Default setting
Description
QdwState
DWORD
DW#16#0
QwState
INT
QSCwCmd
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
QfCurrentA
REAL
0.0
QPREO
BOOL
FALSE
1= Warning overload
QLOCT
BOOL
FALSE
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
Table 9-65
Block
Description
MOTOR
Visualization and operator control of a motor with fixed speed and rotational
direction
VALVE
DIGITAL
ANALOG
PIDCTRL
MM4
SIMODIR
SIMOREV
SINAG120
68
WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784
Bibliography
10
Bibliography
Title
http://support.automation.siemens.com/WW/view/en/36435784
\2\
Siemens I IA/DT
Customer Support
http://support.automation.siemens.com
\3\
http://support.automation.siemens.com/WW/view/en/18656980
\4\
Creating faceplates
http://support.automation.siemens.com/WW/view/en/23425423
\5\
http://www.automation.siemens.com/cd/is_ueberwachen/html_
00/simocode_pro.htm
\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
V1.0
Date
70
WCF_BLOCKS_SimoDir (FB611)
V 1.00, Entry ID: 36435784