Professional Documents
Culture Documents
2000
Contents
SFC Visualization 1
SIMATIC Configuration 2
Operating and Monitoring the
SFC Chart 3
SFC-Visualization for S7
Appendix
Manual A
SFC API Functions
Index
Edition 11/2000
A5E00082886-01
26.10.2000
Safety Guidelines
This manual contains notices which you should observe to ensure your own personal safety, as well as to
protect the product and connected equipment. These notices are highlighted in the manual by a warning
triangle and are marked as follows according to the level of danger:
Danger
! indicates that death, severe personal injury or substantial property damage will result if proper
precautions are not taken.
! Warning
indicates that death, severe personal injury or substantial property damage can result if proper
precautions are not taken.
! Caution
indicates that minor personal injury or property damage can result if proper precautions are not taken.
Note
draws your attention to particularly important information on the product, handling the product, or to a
particular part of the documentation.
Qualified Personnel
Only qualified personnel should be allowed to install and work on this equipment. Qualified persons are
defined as persons who are authorized to commission, to ground, and to tag circuits, equipment, and
systems in accordance with established safety practices and standards.
Correct Usage
Warning
! This device and its components may only be used for the applications described in the catalog or the
technical descriptions, and only in connection with devices or components from other manufacturers
which have been approved or recommended by Siemens.
This product can only function correctly and safely if it is transported, stored, set up, and installed
correctly, and operated and maintained as recommended.
Trademarks
SIMATIC®, SIMATIC HMI® and SIMATIC NET® are registered trademarks of SIEMENS AG.
Some of other designations used in these documents are also registered trademarks; the owner’s rights may
be violated if they are used by third parties for their own purposes.
Siemens AG
Bereich Automatisierungs- und Antriebstechnik ©Siemens AG 2000
Geschaeftsgebiet Industrie-Automatisierungssysteme Technical data subject to change.
Postfach 4848, D- 90327 Nuernberg
Siemens Aktiengesellschaft A5E00082886
26.10.2000
Contents
1 SFC Visualization
1.1 SFC Visualization.......................................................................................... 1-1
1.2 SFC Basic Settings ....................................................................................... 1-2
2 Configuration
2.1 Configurations for the SFC Visualization........................................................2-1
2.2 Configuring the "PCS7 SFC Control" Status Display...................................... 2-2
2.3 Configuring the "PCS7 SFC MultiChart Control" Status Display ..................... 2-4
2.4 Configuring an SFC Button............................................................................ 2-7
2.5 Configuring the SFC Browser Selection......................................................... 2-8
2.6 Using Functions for Own Scripts (SFC API Calls) .......................................... 2-8
2.7 The MultiClient .............................................................................................. 2-9
2.7.1 Further Information on the Multi-Client...........................................................2-9
3 Operating and Monitoring the SFC Chart
3.1 User Privileges.............................................................................................. 3-1
3.2 Operating and Monitoring the SFC Chart via the SFC Status Display ............ 3-1
3.3 PCS7 SFC Control ........................................................................................ 3-2
3.4 PCS7 SFC MultiChart Control ....................................................................... 3-3
3.5 Visualization via an SFC Selection Button in the Button Set or via
SFC Browser Selection in the Display ........................................................... 3-6
3.6 Display of the Detail Window ......................................................................... 3-7
3.7 Operations in the Detail Window.................................................................... 3-8
3.8 Setting the Operating Mode........................................................................... 3-8
3.9 Setting the Operating State ........................................................................... 3-9
3.10 Setting the Step Control Mode..................................................................... 3-10
3.11 Setting the Runtime Options........................................................................ 3-11
3.12 Acknowledge Operator Requests and Step Errors ....................................... 3-12
3.13 Properties Dialog Boxes of Steps and Transitions........................................ 3-12
3.14 Properties Dialog Box of the Step................................................................ 3-13
3.15 Properties Dialog Box of the Transition........................................................ 3-15
3.16 Messages ................................................................................................... 3-16
A SFC API Functions
A.1 Script Example: Configuring an SFC Button ..................................................A-4
Index
SFC-Visualization for S7
A5E00082886-01 iii
26.10.2000
Contents
SFC-Visualization for S7
iv A5E00082886-01
26.10.2000
1 SFC Visualization
What is SFC?
SFC (Sequential Function Chart) is a sequential control system that is used for
process flow control.
A sequential control system is a control system that, subject to conditions, switches
from one state to the next.
SFC-Visualization for S7
A5E00082886-01 1-1
26.10.2000
SFC Visualization
Note:
Configuration is not possible during runtime operation.
Global Settings
The global settings for the display of the charts concern the chart topology, the
colors used, and the privilege levels. In the WinCC Explorer, open the
"SFC Properties" dialog by first selecting "SFC" and then clicking the right-hand
mouse button to select the menu item "Open".
For the chart topology you may determine the size of the objects and the distance
between them in the detail and overview windows.
You may choose colors to vary the display of states of steps, transitions, and the
selected objects.
You may change the privilege levels for operations if you require levels other than
the default levels ("Monitoring", "Process Operation" and "Advanced Process
Operation"). These apply to all the SFC charts of the WinCC project concerned.
In order to give a user privileges for operations in the SFC visualization, the
corresponding global or area-specific privilege levels for the user must be set in the
User Administrator.
If no users have been configured, all operations are possible without restriction. In
this case, the "Privilege levels" tab is not available.
SFC-Visualization for S7
1-2 A5E00082886-01
26.10.2000
SFC Visualization
SFC-Visualization for S7
A5E00082886-01 1-3
26.10.2000
SFC Visualization
SFC-Visualization for S7
1-4 A5E00082886-01
26.10.2000
2 Configuration
SFC-Visualization for S7
A5E00082886-01 2-1
Configuration
Step N ame
Runtime
Chart Display
Function Description
Step Control Mode In runtime mode the current step control mode is displayed here: "T" = Transition,
"C" = Confirmation by operator, "T and C" = Transition and confirmation by operator,
"T or C" = Transition or confirmation by operator, "T/T and C" = Step-specific
confirmation by operator.
Chart Name In runtime mode of WinCC the name of the assigned SFC chart is displayed here.
Chart Status In runtime mode of WinCC the current state of the chart is displayed here: ACTIVE,
OFF, HELD, OFFLINE.
"Step Error" In runtime mode of WinCC the step error (group display) is displayed here. "The
Display chart is opened by clicking on the display (E), and the affected chart section is
shown." If no error stop currently exists, this field is empty.
"Operator Request" In runtime mode of WinCC an operator request (group display) is displayed here.
Display "The chart is opened by clicking on the display (C), and the affected chart section is
shown." If no operator request currently exists, this field is empty.
Step Name In runtime mode of WinCC the name of the current step is displayed here. If several
steps are active (for example, in a parallel branch), the name of the first active step
is displayed, followed by the characters " ,... ".
Runtime In runtime mode of WinCC the current runtime of the current step is displayed here.
If several steps are active (for example, in a parallel branch), the runtime of the first
active step is displayed.
Chart Display In runtime mode of WinCC you can use this button to change the display mode of
the displayed SFC chart. The "Overview" and "Section" display modes are available.
SFC-Visualization for S7
2-2 A5E00082886-01
Configuration
2. Configuration
In order to carry out configuration open the properties dialog box by double-
clicking on the SFC Control.
In the "General" tab card specify whether the SFC chart is to be opened as an
"Overview" or "Section" window. The corresponding button in the SFC Control
is labeled correspondingly.
Use the "Assign chart" command button to use a further dialog box in which all
the SFC charts of this OS are listed. Select the desired chart and then close
the dialog box by clicking on "OK".
The current chart name is entered under "Connected Chart" and is also
displayed in the Control after the properties dialog box has been closed by
clicking on "OK".
Options in the further tab cards: You can configure the display of the SFC
Control individually. In the "Colors" tab card you can use the color toolbar to
change the existing colors for certain elements (for example, title bar, window
background, etc.) In the "Fonts" tab card you can specify the font, the type
style and the font size.
Note:
Configuration by double-clicking on the Control is the most comfortable method.
You can naturally also configure the status display by using the Dynamic Wizard-
Script – as in previous versions.
SFC-Visualization for S7
A5E00082886-01 2-3
26.10.2000
Configuration
Note:
In order to obtain a better overview the Control is displayed in two sections here.
The figure below shows the left-hand and right-hand sections of the Control while
the frame is opened completely.
Left-hand section
Operating Mode
Sorting Commands
SFC-Visualization for S7
2-4 A5E00082886-01
26.10.2000
Configuration
Function Description
Line Number The configured sequence can be recognized on the basis of the line number.
In runtime mode of WinCC the column is sorted in ascending or descending numerical
order whenever you click on the column header.
Chart The name including name-forming part of the technological hierarchy is displayed for
every SFC chart in this column (if it exists).
In runtime mode of WinCC the symbol for the current chart state is displayed before the
name.
If you click on it, the chart is opened in the overview mode.
If you click on the column header, sorting is carried out by the chart state. Order: OFF,
ACTIVE, HELD, OFFLINE. If you click again, in the reverse order.
Acknowledgem In runtime mode of WinCC the "Operator request" and "Step error" are displayed here.
ent The fields are empty, if there are no displays.
When you click on the display the chart is opened and the corresponding chart section
is displayed. If an operator request or an step error does not exist currently, the
respective field is empty.
If you click on the column header, the entries are sorted. Order: Lines with displays,
lines without displays. If you click again, in the reverse order.
Operating In runtime mode of WinCC the operating mode (manual or auto) of the SFC charts is
Mode displayed here. The operating mode can be changed by means of a combo box.
If you click on the column header, the entries are sorted. Order: Lines with "Auto"
display, lines with "Manual" display. If you click again, in the reverse order.
Enable In runtime mode of WinCC this entry indicates whether an enable for changing over to
the "Auto" operating mode exists for the respective chart.
The option can be set or reset by clicking on it.
If you click on the column header, sorting is carried out. Order: Set option, unset option.
If you click again, in the reverse order.
Step In runtime mode of WinCC the name of the current step is displayed here. If several
steps are active (for example, in a parallel branch), the name of the first active step is
displayed, followed by the characters " ,... ". The symbol of the stepping state is
displayed before the step name.
When you click on it, the chart is opened in detail mode and the active step is displayed
centered in the chart.
If you click on the column header, sorting is carried out by the step state. Order:
INACTIVE not processed, INACTIVE processed, ACTIVE, HELD, ERROR. If you click
again, in the reverse order.
Sorting In runtime mode of WinCC you can move the selected line one line up or down by
clicking on the one of the command buttons.
Commands In runtime mode of WinCC you can control a selected SFC chart by means of
commands. The commands have the following function (from left to right): START or
CONTINUE, CANCEL, HOLD, RESTART.
SFC-Visualization for S7
A5E00082886-01 2-5
26.10.2000
Configuration
Right-hand section
Display
Function Description
Comment In runtime mode of WinCC the comment of the state is displayed here.
If you click on the column header, sorting is carried out in alphabetic order.
Runtime In runtime mode of WinCC the current runtime of the step is displayed here.
If you click on the column header, sorting is carried out in numerical order.
Step Control In runtime mode the current step control mode is displayed here: "T" = Transition, "C" =
Mode Confirmation by operator, "T and C" = Transition and confirmation by operator, "T or C"
= Transition or confirmation by operator, "T/T and C" = Step-specific confirmation by
operator.
The mode can be changed by means of a combo box.
If you click on the column header, sorting is carried out in alphabetic order.
Transition In runtime mode of WinCC the name of the current transition is displayed here. If
several transitions are active (for example, in an alternative branch), the name of the
first active transition is displayed, followed by the characters " ,... ". The symbol of the
result is displayed before the transition name (colored line).
When you click on it, the chart is opened in detail mode and the active transition in the
chart is displayed centered.
If you click on the column header, sorting is carried by active and inactive transitions. In
the case of active transitions, also by the result.
Display In runtime mode of WinCC you can visualize a selected SFC chart in the selected
"Section" or "Overview" mode by using these command buttons .
2. Configuration
In order to carry out configuration open the properties dialog box by double-
clicking on the SFC MultiChart Control.
In the "General" tab card you assign the desired SFC charts to the Control or
delete them from it.
SFC-Visualization for S7
2-6 A5E00082886-01
26.10.2000
Configuration
Assigning Charts: The dialog box for selecting the SFC charts is opened by
using the command button. Select the desired chart and then close the
dialog box by clicking on "OK". Repeat this procedure for every SFC chart
which you want to include in the SFC MultiChart Control. A line is created for
every chart with those columns which provide information on the chart in
runtime operation. Please also refer to PCS7 SFC MultiChart Control
Deleting Charts: Select a chart no longer required in the properties dialog box
and use the command button to delete it.
Sorting Charts: You can change the sequence at a later point for the selected
SFC charts. A selected chart can be moved up or down by using the
command buttons.
Title: For the SFC MultiChart Control you can enter a title which identifies it
uniquely in runtime operation.
Options in the further tab cards: You can configure the display of the SFC
Control individually. In the "Colors" tab card you can use the color toolbar to
change the existing colors for certain elements (for example, title bar, window
background, etc.) In the "Fonts" tab card you can specify the font, the type
style and the font size.
SFC-Visualization for S7
A5E00082886-01 2-7
26.10.2000
Configuration
SFC-Visualization for S7
2-8 A5E00082886-01
26.10.2000
Configuration
SFC-Visualization for S7
A5E00082886-01 2-9
26.10.2000
Configuration
SFC-Visualization for S7
2-10 A5E00082886-01
26.10.2000
3.2 Operating and Monitoring the SFC Chart via the SFC
Status Display
SFC-Visualization for S7
A5E00082886-01 3-1
26.10.2000
You can change to the overview display of the SFC chart by clicking on the
"Overview" button, as it was configured in this example (or change to the detail
display, if the "Section" key has been configured).
If "F" is displayed, the properties dialog box of the step is also opened.
A mouse click opens the detail display of the chart and centers the active step with
the error acknowledge button
If "B" is displayed, the properties dialog box of the transition is also opened.
A mouse click opens the detail display of the chart and centers the active transition
with the acknowledge button of the operator request.
SFC-Visualization for S7
3-2 A5E00082886-01
26.10.2000
SFC-Visualization for S7
A5E00082886-01 3-3
26.10.2000
Right-hand section
SFC-Visualization for S7
3-4 A5E00082886-01
26.10.2000
Command Buttons
SFC-Visualization for S7
A5E00082886-01 3-5
26.10.2000
When the overview window is open, the current state of the SFC chart is
displayed in color. The assignment of the colors to the respective states can be
configured freely and is specified globally for all charts in the WinCC-Explorer.
An info bar below the title bar shows the name of the currently active step. This
bar is empty, if no step is active, for example, after the chart has been
executed.
3. You can obtain a detail view of the SFC chart by clicking in the overview
window on the desired position. The area surrounding the click position is
displayed in the detail window. You can modify this area by resizing or scrolling
the detail window.
The SFC windows are displayed in the working area and are always on top.
SFC-Visualization for S7
3-6 A5E00082886-01
26.10.2000
Chart Status
State Meaning
ACTIVE The chart is running.
OFF The chart is deactivated.
HELD The chart has been paused.
OFFLINE The chart is not updated.
PLC State
State Meaning
STOP The PLC is in the stopped state or the
connection to the PLC is faulty.
RUN The PLC is running, the connection to the PLC
works, the charts are updated.
SFC-Visualization for S7
A5E00082886-01 3-7
26.10.2000
SFC-Visualization for S7
3-8 A5E00082886-01
26.10.2000
SFC-Visualization for S7
A5E00082886-01 3-9
26.10.2000
In this combo box you can set the following step control modes:
SFC-Visualization for S7
3-10 A5E00082886-01
26.10.2000
SFC-Visualization for S7
A5E00082886-01 3-11
26.10.2000
Note:
In case of a step runtime error the step is returned to the state which it had before
the error occurred (for example, active = "green") after the error has been
acknowledged.
Automatic Trace
By setting the Update option you can activate an automatic trace. It automatically
displays the current properties after each switching event, depending on the chart’s
execution. This means that the display of the properties follows the respective
active step or the respective active transition.
If the active step or the active transition are located outside the window display
during the execution of the chart, the chart is automatically shifted so that the step
or transition under observation are within the window’s display area. The objects
that are currently under observation are shown on the chart as selected.
The following description of the properties dialog boxes is based on the separate
display of step and transition.
• Properties Dialog Box of the Step
• Properties Dialog Box of the Transition
SFC-Visualization for S7
3-12 A5E00082886-01
26.10.2000
Procedure
Activate the detail window for the SFC chart in which you want to display the
Properties dialog box of a step.
Now click on the desired step in order to open the dialog box.
SFC-Visualization for S7
A5E00082886-01 3-13
26.10.2000
SFC-Visualization for S7
3-14 A5E00082886-01
26.10.2000
Procedure
Activate the detail window for the SFC chart in which you want to display the
Properties dialog box of a transition.
Now click on the desired transition in order to open the dialog box.
A window is displayed that contains the Boolean operators of the transition logic
and the fields with the conditions. The window consists of two pages with a total of
16 lines for conditions and a three-stage transition logic. On the first page, 2 x 5
conditions are combined by the Boolean operators, and a further 2 x 3 conditions
on the second page. Next to the last operator, there is an "arrow" button to toggle
between the two pages.
The results of logic operation of the Boolean operators are visualized as colored
connecting lines of varying thickness. A wide green line indicates "fulfilled", a thin
red line indicates "not fulfilled", and a thin black line indicates "inactive".
Transition State
SFC-Visualization for S7
A5E00082886-01 3-15
26.10.2000
3.16 Messages
General
During the execution of an SFC chart in the PLC messages are generated on
intervention requests for transitions and in the case of step errors.
SFC-Visualization for S7
3-16 A5E00082886-01
26.10.2000
SFC-Visualization for S7
A5E00082886-01 A-1
26.10.2000
SFC-Visualization for S7
A-2 A5E00082886-01
26.10.2000
• BOOL SFCCloseAllWindows();
Closes all the open SFC windows.
Example: SFCCloseAllWindows();
SFC-Visualization for S7
A5E00082886-01 A-3
26.10.2000
SFC-Visualization for S7
A-4 A5E00082886-01
26.10.2000
szFullDmVarName[0] = ’\0’;
strcat(szFullDmVarName, TAG_1);
}
SFC-Visualization for S7
A5E00082886-01 A-5
26.10.2000
SFC-Visualization for S7
A-6 A5E00082886-01
26.10.2000
Index
A P
Acknowledge Operator Requests and PCS7 SFC Control .......................................3-2
Step Errors .............................................3-12 PCS7 SFC MultiChart Control.......................3-3
Properties Dialog Box of the Step ............... 3-14
Properties Dialog Box of the Transition ....... 3-15
C Properties Dialog Boxes of Steps and
Configurations for the SFC Visualization....... 2-1 Transitions ............................................. 3-12
Configuring an SFC Button .......................... 2-7
Configuring the "PCS7 SFC Control" S
Status Display ......................................... 2-2
Configuring the "PCS7 SFC MultiChart Script Example
Control" Status Display ............................ 2-4 Configuring an SFC Button ...................... A-4
Configuring the SFC Browser Selection........ 2-8 Setting the Operating Mode ..........................3-8
Setting the Operating State...........................3-9
Setting the Runtime Options ....................... 3-11
D Setting the Step Control Mode .................... 3-10
Display of the Detail Window........................ 3-7 SFC API Functions...................................... A-1
SFC Basic Settings ......................................1-2
SFC Visualization.........................................1-1
F
Further Information on the Multi-Client.......... 2-9 U
User Privileges .............................................3-1
M Using Functions for Own Scripts
(SFC API Calls)........................................2-8
Messages...................................................3-16
O V
Visualization via an SFC Selection Button
Operating and Monitoring the SFC Chart in the Button Set or via SFC Browser
via the SFC Status Display....................... 3-1 Selection in the Display ............................3-6
Operations in the Detail Window .................. 3-8
SFC-Visualization for S7
A5E00082886-01 Index-1
26.10.2000
Index
SFC-Visualization for S7
Index-2 A5E00082886-01
26.10.2000
Siemens AG
A&D AS E 81
Oestliche Rheinbrueckenstr. 50
D-76181 Karlsruhe
From:
Your Name:...............................................................................................................................
Your Title: .................................................................................................................................
Company Name:.........................................................................................................................
Street: .................................................................................................................................
City, Zip Code .....................................................................................................................
Country: ..............................................................................................................................
Phone: ................................................................................................................................
❐ Automotive ❐ Pharmaceutical
❐ Chemical ❐ Plastic
❐ Food ❐ Textiles
❐ Petrochemical
SFC-Visualization for S7 1
A5E00082886-01
26.10.2000
Remarks Form
Remarks Form
Your comments and recommendations will help us to improve the quality and usefulness of our
publications. Please take the first available opportunity to fill out this questionnaire and return it
to Siemens.
Please give each of the following questions your own personal mark within the range from 1
(very good) to 5 (poor).
Additional comments:
..............................................................................................................................................
..............................................................................................................................................
..............................................................................................................................................
..............................................................................................................................................
..............................................................................................................................................
..............................................................................................................................................
..............................................................................................................................................
..............................................................................................................................................
..............................................................................................................................................
..............................................................................................................................................
..............................................................................................................................................
.............................................................................................................................................................................................
2 SFC-Visualization for S7
A5E00082886-01