PCS 7 V9.0 SFC Visualization - Programming and Operating Manual - 05 - 2017
PCS 7 V9.0 SFC Visualization - Programming and Operating Manual - 05 - 2017
Appendix 7
05/2017
A5E41356392-AA
Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.
DANGER
indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING
indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION
indicates that minor personal injury can result if proper precautions are not taken.
NOTICE
indicates that property damage can result if proper precautions are not taken.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will be
used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property
damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific
task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified
personnel are those who, based on their training and experience, are capable of identifying risks and avoiding
potential hazards when working with these products/systems.
Proper use of Siemens products
Note the following:
WARNING
Siemens products may only be used for the applications described in the catalog and in the relevant technical
documentation. If products and components from other manufacturers are used, these must be recommended or
approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and
maintenance are required to ensure that the products operate safely and without any problems. The permissible
ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication
may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described.
Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in
this publication is reviewed regularly and any necessary corrections are included in subsequent editions.
1 Security information......................................................................................................................................5
2 What's new in SFV?.....................................................................................................................................7
3 SFC Visualization (SFV)...............................................................................................................................9
4 Basic SFC settings.....................................................................................................................................11
5 Configuration..............................................................................................................................................13
5.1 Configurations for SFC Visualization.....................................................................................13
5.2 Configuring SFC block icons..................................................................................................15
5.3 Configuring SFC faceplates...................................................................................................17
5.4 Adapting SFC faceplates.......................................................................................................18
5.5 Preparing the controls............................................................................................................19
5.6 Configuring status picture "PCS 7 SFC Control"....................................................................20
5.7 Configuring status picture "PCS 7 SFC MultiChart Control"..................................................22
5.8 Configuring status picture "PCS 7 SFC Topology Control"....................................................24
5.9 Configuring the SFC button....................................................................................................25
5.10 Configuring the SFC Browser Selection.................................................................................26
5.11 Using functions for user-specific scripts (SFC API Calls)......................................................27
5.12 What you should know about OS Server and OS Client........................................................28
5.13 What you need to know about the Web server and Web client.............................................30
6 Operating and monitoring SFCs.................................................................................................................31
6.1 Access control........................................................................................................................31
6.2 Operating and monitoring the SFC by means of faceplate....................................................32
6.3 "SFC chart" faceplate, "SFC section" view.............................................................................34
6.4 "SFC Chart" faceplate, "Messages" view...............................................................................36
6.5 "SFC Instance" faceplate, "Actual Values" view.....................................................................37
6.6 "SFC Instance" faceplate, "Block contacts" view...................................................................41
6.7 "SFC Instance" faceplate, "Prepared Values" view................................................................42
6.8 "SFC Instance" faceplate, "Parameters" view........................................................................43
6.9 "SFC Instance" faceplate, "Messages" view..........................................................................44
6.10 "SFC Instance" faceplate, "Batch" view.................................................................................45
6.11 "SFC Instance" faceplate, "Equipment modules" view...........................................................46
6.12 "SFC Instance" faceplate, "Equipment phases" view.............................................................48
6.13 Operating and monitoring the SFC by means of SFC status picture.....................................50
6.14 PCS 7 SFC Control................................................................................................................51
6.15 PCS 7 SFC MultiChart Control...............................................................................................53
6.16 PCS 7 SFC Topology Control................................................................................................57
6.17 Visualization of the SFC Status by Means of an SFC Selection Button in the Button Set
or an SFC Browser Selection in the Display..........................................................................58
6.18 Information on the SFC block icon.........................................................................................59
6.19 Information and operator input in the detail view...................................................................60
6.20 Setting the Operating Mode...................................................................................................64
6.21 Setting the Operating State....................................................................................................65
6.22 Setting the Step Control Mode...............................................................................................66
6.23 Setting the sequence options.................................................................................................67
6.24 Acknowledging Operator Prompts and Step Errors...............................................................68
6.25 Overview of the "Properties" dialog boxes.............................................................................69
6.26 "Properties" Dialog Box for the Sequencer............................................................................70
6.27 "Properties" Dialog Box for the Start Condition......................................................................71
6.28 "Properties" Dialog Box for the Step......................................................................................72
6.29 "Properties" Dialog Box for the Transition..............................................................................74
6.30 "Calculation for SFC" dialog box in SFV................................................................................76
6.31 Messages...............................................................................................................................78
6.32 Operating state logic..............................................................................................................79
6.32.1 Operating State Logic for SFC (SFC OSL)............................................................................79
6.32.2 Operating state logic for sequencers (sequencer OSL).........................................................82
6.33 Operator control and monitoring using the Web client...........................................................85
6.33.1 Running SFC Visualization on the Web client........................................................................85
7 Appendix.....................................................................................................................................................87
7.1 Allocation request and allocation status.................................................................................87
7.2 SFC System Variable.............................................................................................................90
7.3 SFC API functions..................................................................................................................91
7.4 Icons for Operating States.....................................................................................................95
Index...........................................................................................................................................................97
Enhancements/changes in V8.2
Version V8.2 contains the following enhancements or changes compared with version V8.1:
● Calculations in SFC
Calculations can be configured in steps, transitions or sequencers in the SFC Editor.
The current values of the calculation results and the output tags can be displayed for these
calculations in SFV.
You can find additional information about this in the section ""Calculation for SFC" dialog
box in SFV (Page 76)".
See also
Information and operator input in the detail view (Page 60)
Configuring SFC block icons (Page 15)
What is SFC?
SFC (Sequential Function Chart) is a sequential control system that is used for control flow-
oriented process control.
A sequential control system is a controller with automatic, step-wise execution. It switches from
one state to the next depending on conditions.
Note
In this manual, we generally refer to the SFC charts and SFC instances as SFCs, unless these
objects need to be distinguished in the respective context.
Note
● Configuration is not possible during runtime operation.
● You can transfer SFCs to the runtime system even while the OS is running. This may cause
a temporary inconsistency in the displays, since the SFCs must first be downloaded to the
automation system before being loaded on the OS. The potential for inconsistencies during
this period is unavoidable.
Global Settings
Global settings for displaying SFCs affect the following areas:
● Topology
● Colors
● Authorization level
● Group display
To open the "SFC" dialog, select "SFC" in the WinCC Explorer and open the context menu.
Then, select the menu command Open.
You can specify the size of the objects and the distance between them for the topology in the
detail area and overview area.
Use the check box "Always show in faceplate" to specify if the SFC faceplate is always
displayed.
You choose colors to distinguish the states of steps, transitions and selected objects in the
display.
You change the authorization levels for operator inputs if you require levels other than the
default levels ("Monitoring", "Process Operation" and "Advanced Process Operation"). These
settings apply to all SFCs in the relevant WinCC project, unless specific authorization levels
have been set for the SFC in question.
These authorizations remain in place following OS compilation.
In order to grant a user the authorization to perform operator inputs in SFC Visualization, the
corresponding authorization levels must be enabled for this user (globally or area-specific) in
the User Administrator.
If no users are configured, all operator inputs are permitted without restriction. In this case, the
"Authorization Levels" tab is not available.
To access the configuration for the group display, choose the "Group Display Properties"
button on the "Group Display" tab.
In the Group Display window, the following additional tabs are available:
Tab Setting
Geometry Size of the display fields
Colors Background color of the display fields
Style 3D frame width (in pixels)
Tab Setting
Font Font attributes (font, alignment etc.)
Flashing Flashing frequency
Other Other attributes, such as enabled for operator, group relevant, display, group
value and acknowledgment pattern
Message types Display text and attributes (font color, background color, flashing) for the individ‐
ual message statuses
Lock Whether the messages are output or locked. An "x" (default setting) appears in
the display field to indicate that messages are locked. You can change the default
setting.
Assignment Message type for each display field
Note
Global settings when using the "User-configurable message classes" function
When the "User-configurable message classes" function is used in the PCS 7 message
system, the settings named above are defined for the group display of configurations for this
function and cannot be changed in WinCC.
Introduction
You can place objects in a WinCC display that enable you to open an SFC during runtime
operation.
The following objects can be used for this:
● Block icons
● "PCS 7 SFC Control"
● "PCS 7 SFC MultiChart Control"
● "PCS 7 SFC Topology Control"
● Any graphic object (such as a rectangle)
● A Windows object (such as a button)
Preparation
● Select the Options > 'Compile Multiple OSs' Wizard' > Start... command in SIMATIC
Manager in order to transfer the SFC charts and SFC instances to the OS.
● Then, carry out the Preparations for the Controls.
You can find additional information about this in the section: Preparing the controls
(Page 19)
Note
The controls "@PCS 7 SFC Panel Control" and "@PCS 7 SFC SP Control" supplied with SFC
Visualization are controls required internally in SFC Visualization. They have not yet been
approved for use in WinCC pictures.
You can configure the following objects for opening the SFC:
Configuring SFC block icons (Page 15)
Configuring SFC faceplates (Page 17)
Configuring status picture "PCS 7 SFC Control" (Page 20)
Configuring status picture "PCS 7 SFC MultiChart Control" (Page 22)
Configuring status picture "PCS 7 SFC Topology Control" (Page 24)
Configuring the SFC button (Page 25)
Configuring the SFC Browser Selection (Page 26)
You can use SFC Visualization functions in order to create your own scripts.
You will find more detailed information in:
Using functions for user-specific scripts (SFC API Calls) (Page 27).
Variant Remark
1 Standard PCS 7 style
2 APL-based style
3 and higher User-defined variants
<Variant name> User-defined variant; freely selected variant name; max. 16 characters
Example: Block icon for an instance of an SFC type "@SFC_TYPE/2" in variant "2".
Procedure in WinCC
1. Copy the required block icon from the template to your current picture.
2. Adapt the "StructureType" and "type" property to the type name (not necessary for the block
icon for SFC).
3. Select the block icon and double-click "Connect faceplate to process tag" in the "Standard
Dynamics" tab of the "Dynamic Wizard" window.
The Dynamic Wizard opens.
4. Click on the"..." button on the "Set options" page.
The "Tags - Project:" dialog box opens.
5. In the WinCC tags, open the "List of all tags" and double-click the corresponding tag for the
chart or instance in the right window to select it.
The dialog box closes; the tag name is entered in the Dynamic Wizard.
6. Click "Next".
The next page shows what the wizard is now generating.
7. Click "Finish".
The block icon is now configured. You can use it to call the associated faceplate in runtime
operation.
SFC faceplates
There are two types of faceplate templates for visualizing the various SFC instances of the
SFC types and for visualizing SFC charts in runtime:
● The "@pg_@sfc_rts.pdl" variant is used to visualize SFCs.
● The "@pg_@sfc_type.pdl" variant is used to visualize SFC instances of an SFC type. The
interface elements (setpoints, control strategies, for example) that are configured in the
"Characteristics" dialog box are included in this faceplate.
In addition to the display objects (type name/instance name, comment, group display, etc.)
that are created with the standard WinCC resources, the faceplates contain an OCX for
displaying and manipulating the operating state logic and an OCX (for SFC instance) for
displaying and manipulating the setpoints. You also use these OCX in SFC Visualization.
The meaning of the elements contained in the faceplate in all views is described in:
Operating and monitoring the SFC by means of faceplate (Page 32)
Configuration
The faceplates are supplied preconfigured and you can customize them individually.
You can also create your own faceplates from the templates. However, you use the available
OCX for displaying and manipulating the operating state logic and the setpoints (for SFC
instance).
You can find a detailed description of the configuration of faceplates in the manual PCS 7
Programming Instructions for Blocks.
Additional information
You can find additional information in the section: Adapting SFC faceplates (Page 18)
Introduction
You adapt the "Actual Values" (@pg_@sfc_type_actualsp.pdl) and "Prepared Values"
(@pg_@sfc_type_prepare.pdl) views in the Graphics Designer.
Procedure
1. Open the "@pg_@sfc_type_actualsp.pdl" or "@pg_@sfc_type_prepare.pdl " picture in the
Graphics Designer.
2. Double-click in the OCX area of the picture.
The "Properties of "@PCS 7 SFC SP Control"" dialog box opens.
3. In the "General" tab, use the '"Actual Values" view enabled' option to specify whether the
operator can edit the information in the setpoint column or if it is write-protected.
Note: This option can be set in the properties of the "Actual Values" and "Prepared Values"
views. It only affects the "Actual Values" view.
4. In the "Colors" tab, you can change the font and background colors of the respective OCX
elements.
Introduction
You can prepare for the configuration of the controls in order to facilitate insertion of the controls
in a graphic picture.
Procedure
1. Open the desired picture in Graphics Designer.
2. Switch to the "Controls" tab in the object palette.
3. Select the "Add/Remove" command from the shortcut menu in the object palette.
The "Select OCX Controls" dialog box opens.
4. Select all entries in the list that begin with "PCS 7 SFC", for example, "PCS 7 SFC Control".
5. Click "OK" to close the dialog box.
The selected controls are now in the object palette and can be inserted directly from there into
the graphic picture using drag-and-drop.
Introduction
The states of an SFC can be output to a graphic picture by means of an PCS 7 SFC Control
which is assigned to this SFC. This control is also referred to as the status picture (just like the
PCS 7 SFC MultiChart Control). To this, you place and configure the status picture in a graphic
picture in the WinCC Graphics Designer.
Assigning parameters
1. Double-click the PCS 7 SFC Control.
The "Properties" dialog box opens.
2. Open the "General" tab.
3. Specify whether the SFC should be opened as a "Faceplate", "Overview" or "Section"
display.
The respective button in SFC Control will be labeled accordingly.
4. Click "Assign SFC."
Another dialog box opens listing all the SFCs on this OS.
5. Select the desired SFC.
6. Close the dialog box with "OK".
Under "Connected SFC:" you can see the current SFC name. When you close the
"Properties" dialog box with "OK," the current SFC name is also in the control.
Introduction
You can use "PCS 7 SFC MultiChart Control" to monitor and control multiple SFCs.
This control is also referred to as the status picture (just like the SFC control). As with the "SFC
Control", you insert the "PCS 7 SFC MultiChart Control" into a picture and then assign
parameters for it.
Assigning parameters
1. Double-click the PCS 7 SFC MultiChart Control.
The "Properties" dialog box opens.
2. Open the "General" tab and assign the desired SFCs to the control or delete them from it.
Assigning:
1. Click the following button
Deleting:
1. Select an SFC that is no longer needed in the "Properties" dialog box.
2. Click the following button
Sorting:
You can move a selected SFC up or down using the following buttons:
Title:
You can specify a title for the PCS 7 SFC MultiChart Control which identifies it uniquely during
runtime mode.
Options in the other tabs:
● You can individually configure the display of the SFC control.
● In the "Colors" tab, you can use the color palette to change the current colors for certain
elements (for example, title bar, window background, etc.).
● In the "Fonts" tab, you can specify the font, the type style, and the font size.
Introduction
The states of an SFC can be output to a graphic picture by means of an PCS 7 SFC Topology
Control which is assigned to this SFC. To this, you place and configure the status picture in a
graphic picture in the WinCC Graphics Designer.
Assigning parameters
1. Double-click the PCS 7 SFC Topology Control.
The "Properties" dialog box opens.
2. Open the "General" tab.
3. In the "Connected SFC" field, configure the corresponding SFC to be displayed in the
control.
To do this, click on the button to the left of the text box to open a selection dialog.
4. Select the desired SFC and then close the dialog box with "OK".
5. Select the relevant option in the "Display mode" area.
6. Close the dialog box with "OK".
Note
As in previous versions, you can also use the Dynamic Wizard to configure the status picture.
Introduction
For selecting an SFC, you can also configure any graphic object of your choice. Such an object
serves to represent the SFC chart. Unlike an SFC status display, however, it does not receive
any information on the current status of the SFC. Such an object can be a button, for example.
Procedure
The procedure is basically the same as that for configuring the SFC control:
1. Select the "Button" object from the "Windows Objects" view and draw a frame in the graphic
display.
A dialog box opens.
2. Make the required settings (text input for label, font, operator authorization, etc.). Click "OK"
to close the dialog box.
3. Double-click "Configure SFC button" in the Dynamic Wizard.
4. If an instructional page appears, exit it by clicking "Next".
5. On the next page, select the mouse action for opening the SFC, which you will assign in
the next step.
The "SFC Browser" opens.
6. Select the SFC to be associated with the button.
7. In the "Set Option" dialog box, choose the display in which the SFC is to be opened
("Faceplate", "Overview" or "Section").
8. Click "Finish" to complete the configuration.
Introduction
You place an object in the graphic display in order to call the SFC browser in runtime. Use this
browser to select the SFCs.
Procedure
1. In the Graphics Designer object palette, select the desired object and draw a frame in the
graphic display.
2. Double-click "Configure SFC Browser" in the Dynamic Wizard.
3. If an instructional page appears, ignore it by clicking "Next".
4. In the next dialog box, select the mouse action for opening the SFC.
5. Click "Finish" to complete the configuration.
What is an OS Server?
An OS Server is interconnected with the AS. It receives process data, however, it usually does
not provide any operating and monitoring functionality within a multi-user system. The OS
Server contains all of the configuration data, and you can modify these data here.
What is an OS Client?
An OS Client is an operator station (OS) on which you can operate and monitor the process
in runtime. A client neither has its own SFCs, nor any process I/O. The Client lets you operate
and monitor SFCs on the OS Servers, however, it does not allow their editing.
5.13 What you need to know about the Web server and Web client
Requirements for using the SFC block icons and SFC faceplates on the Web client
Web server:
● SFC Visualization is installed on the Web server
● The Web Navigator > Web Configurator command has been selected in the shortcut menu
of the Web Navigator node of WinCC Explorer on the Web server
Web client:
● Installation of the relevant plug-ins for SFC Visualization
– WinCC Basic Process Control
– WinCC Advanced Process Control
– PCS 7 Faceplates
– SIMATIC ES Common Services
– SIMATIC SFC Common Displays
– SIMATIC SFC Visualization
Additional information
You can find information on the Web client in the section "Running SFC Visualization on the
Web client (Page 85)".
Access control
Operator input is allowed without restriction if no users are configured.
The following settings or functions are performed, depending on the logged on user and the
authorization levels configured for SFC Visualization:
● Operator input buttons are activated or deactivated.
● Operator input is subject to verification.
This input is either accepted or discarded, depending on the result.
● The change of the allocation status of equipment modules. The "Allocation" operation of
the "Higher process controlling" authorization level is required to perform this change.
The authorization levels set on the Engineering Station are transferred to the OS server (OS
> Load target system), where they are used in runtime operation.
● Global and SFC-specific authorization levels can be configured on an OS server. However,
these are overwritten the next time the function OS > Load target system is used. If SFC-
specific authorization levels exist on the OS server, these are used at runtime. If no SFC-
specific authorization levels are configured, the global authorization levels of the OS server
are used.
● On an OS multiclient, only SFC-global authorization levels can be configured. If SFC-
specific authorization levels exist on the OS server, these are used at runtime. If no SFC-
specific authorization levels are configured, the global authorization levels of the OS
multiclient are used.
● An OS Web Server does not have its own authorization levels. The relevant authorization
levels are transferred depending on whether it is an OS multiclient or an OS server.
● An OS Web Client does not have its own authorization levels. The authorization levels of
the OS Web server are used at runtime.
Note
If button or a setpoint is not enabled although the user has the necessary operator
authorization, then operation may be disabled on the block (for instance ENSTART = 0).
Overview
You operate the SFC and the SFC instance by means of a faceplate.
● The faceplate for the SFC has the following views:
– "SFC chart" faceplate, "SFC section" view (Page 34)
– "SFC Chart" faceplate, "Messages" view (Page 36)
● The faceplate for the SFC instance has the following views:
– "SFC Instance" faceplate, "Actual Values" view (Page 37)
– "SFC Instance" faceplate, "Prepared Values" view (Page 42)
– "SFC Instance" faceplate, "Parameters" view (Page 43)
– "SFC Instance" faceplate, "Messages" view (Page 44)
– "SFC Instance" faceplate, "Batch" view (Page 45)
– "SFC Instance" faceplate, "Block contacts" view (Page 41)
– "SFC Instance" faceplate, "Equipment modules" view (Page 46)
– "SFC Instance" faceplate, "Equipment phases" view (Page 48)
Note
You can only ever start an SFC instance in the faceplate in the "Prepared Values" view.
This is most important if control strategies or setpoints are being used, because a control
strategy and setpoints have to be set prior to starting.
A pinned faceplate remains pinned until it is closed; this means pressing the button again has
no effect.
Note
● When you open the faceplate, the "Prepared Values" view (Idle or MANUAL mode) or the
"Actual Values" view (in all other operating states) is displayed depending on the current
operating state of the SFC.
● When a faceplate is open, a change in the operating state does not automatically change
the view.
● The button
"Messages" view
This view contains the elements of the "Standard" view plus the message window. You can
find additional information about this in the section: "SFC chart" faceplate, "SFC section"
view (Page 34).
D E F G H I J K L
The following information and buttons can be seen (from left to right) in the detail view:
1. Overview line:
– PCS 7 group displays: Alarm, warning, step error, operator prompt
The operator prompt icon is also displayed here if one of the following views is shown:
– Lock/Unlock Messages
– Message acknowledgement
– Message suppression
– Batch allocation
Indicates whether the associated SFC of the faceplate is allocated:
– View selection
2. Control and display section of the SFC:
In the fields of the first row:
– Status display and SFC operating status label
– Status display and name of the active sequencer
– Status display and name of the held sequencer
– Box with drop-down list for displaying and changing the switching modes
In the fields of the second row:
– The current operating mode (MANUAL/AUTO)
– "Continuous mode" status flag for bumpless changeover, for example, when restarting
an SFC to avoid having to switch it off first. Display if output QCONT = 1.
– "Ready to complete" status display, when the SFC is not self-terminating (SELFCOMP
= 0) and is waiting in the run state for the "Complete" command (display, if READY_TC
= 1).
Note
To view "Continuous mode" and "Ready to complete", refer to the screenshot in the
section: "SFC chart" faceplate, "SFC section" view (Page 34).
The buttons:
– For selecting "MANUAL" or "AUTO" mode
– For enabling changeover to "AUTO"
3. The position text is used to display the current position within the sequencer. It consists of
a number and an assigned text. The text is displayed in the SFC faceplate.
4. The note text contains information for the operator. The operator can acknowledge this text
with the "O" button.
5. The line shows the active control strategy. The control strategy cannot be changed here.
The control strategy can only be selected in the "Prepared Values" view.
6. The setpoints and actual values assigned to the selected control strategy are displayed in
this table.
– Setpoint name
A setpoint can consist of more than one value. In the example picture, the "sw6" setpoint
has the additional values "Material" and "Batch ID".
– Setpoint
The current setpoints are displayed here. The setpoints can be edited if the "Actual
values view enabled" option is selected when configuring the properties of the control.
The configured upper and lower limit values are also shown during editing.
Note
If a setpoint is changed, the change must be confirmed by pressing the RETURN key
(exception: values with the Boolean data type). A window then opens in which the
change must be confirmed once more by clicking "OK". Otherwise, the change is not
adopted.
– Actual value
The values of the actual value output are displayed here.
– Unit
The unit labels are displayed here.
7. The following information and buttons can be seen (from top to bottom) in the overview:
– Selection of the view from the drop-down list
– "Synchronize" check box: If the check box is selected, the overview is synchronized with
the sequence in the AS.
The same line contains the following button:
Note
You can only ever start an SFC instance in the faceplate in the "Prepared Values" view.
This is most important if control strategies or setpoints are being used, because a control
strategy and setpoints have to be set prior to starting.
"Parameters" view
This view contains the elements of the following view: "SFC Instance" faceplate, "Actual
Values" view (Page 37), as described in 1 and 2 (see there). Instead of the elements listed
under 6, the window shows the active control strategy and the OS-relevant parameters.
Changing parameters
You can change the value of a parameter in MANUAL or AUTO operating mode if you have
been assigned the relevant permissions. The changed parameter is written to the AS
immediately, i.e., at first, it is only effective in the CPU. To make changed values also available
in offline data in the ES, you need to run a read-back at the specified time. Otherwise, the next
time a complete download is performed, the original configured parameter values will be written
to the CPU.
Note
If a parameter value is changed, the change must be confirmed by pressing the RETURN key
(exception: values with the Boolean data type). A window then opens in which the change
must be confirmed once more by clicking "OK". Otherwise, the change is not adopted.
"Messages" view
This view contains the elements of the following view: "SFC Instance" faceplate, "Actual
Values" view (Page 37), as described in 1 and 2 (see there). Here, the message window is
displayed instead of the elements listed under 3 to 6.
D E F G H I J K L
View "Batch"
This view contains the elements of the following view: "SFC Instance" faceplate, "Actual
Values" view (Page 37), as described in 1 and 2 (see there). Here, the Batch window is
displayed instead of the elements listed under 3 to 6.
Column Description
Equipment module Name of the equipment module
SFC status The following information is displayed in this column:
● Operating mode of the SFC
– "Automatic", indicated by icon:
● Group error
– No display if no group error is pending.
– Group error pending, indicated by icon:
Column Description
Equipment phase Name of the equipment phase
SFC status The following information is displayed in this column:
● Operating mode of the SFC
– "Automatic", indicated by icon:
● Group error
– No display if no group error is pending.
– Group error pending, indicated by icon:
6.13 Operating and monitoring the SFC by means of SFC status picture
Note
You can only start an SFC instance with control strategies or setpoints in the "Prepared Values"
view of the faceplate, because a control strategy and setpoints must be set prior to starting.
are shown.
Step Name of the first active step Clicking this name opens the
detail view of the SFC with
the active step centered.
Icon for the step status: Display
INACTIVE not executed
INACTIVE, running
ACTIVE
HELD
ERROR
Command Buttons
Buttons for filter settings appear in the column headings. You can open and close the filter
dialog box by clicking on this icon:
Up
Down
Once selected, you can use commands to control an SFC. The following buttons are available
for this:
Start or Resume
Abort
Hold
Restart
You open a selected SFC with the "Section" or "Overview" buttons in the selected display.
● If you click a column heading, you can sort the table rows in ascending or descending order.
The sorting order is based on the alphabetical order of the symbol names (such as aborted,
completed, idle, held, run).
● If you change the sorting during runtime mode, the change is not permanent. The next time
you select the picture, the configured display mode is restored.
Introduction
You can also visualize and control the status of an SFC in the runtime system as described
below.
Procedure
1. Click the following button in the button set or click an object configured in the picture to
select the SFC browser:
The SFC browser opens with a list of all SFCs (also the SFCs of servers in the case of an
OS client).
Select an SFC from the list and click "OK" to visualize it.
2. Click the required SFC name.
Depending on the setting in WinCC Explorer, the selected SFC is displayed in an overview
screen or in a detail view. In this example, the SFC is visualized in the overview screen.
The SFC is always visualized completely in the overview screen. Exception: Very large
SFCs are visualized on the screen at a maximum of half their size and they contain scroll
bars.
Any active sequencer is displayed, and the first sequencer is displayed otherwise.
The current status of the SFC is displayed in color if the overview screen is open. The
assignment of colors to the corresponding states can be configured by the user and is
activated globally for all SFCs in WinCC Explorer.
The button for the user-specific session log is located on the left edge of the title bar. The
saved position is retained until overwritten by a new save operation.
The information bar below the title bar shows the name of the currently active step. This
bar is blank if no step is active, for example, after execution of the SFC.
3. You open a section of the SFC by clicking the required position in the overview screen. The
area around the click position is displayed in the detail view. You can control this area by
scrolling or scaling the detail view.
The SFC windows are always displayed in the foreground on the working area.
Overview
Various status displays are available on the block icon of the SFC type or its instance.
The block icon is used to represent the sequence control of the equipment module (EM) and
the equipment phase (EPH).
Display type example
The block icon for an instance of an SFC type "@SFC_TYPE/2" in variant "2" is displayed in
the figure below.
Variant "2" means that the style is derived from the APL.
You can find additional information about this in the section "Configuring SFC block icons
(Page 15)".
2
3 5
4
Legend Description
(1) Operating mode of the SFC, for example, "AUTO" in this case.
(2) Message display, for example, "Step error" in this case.
(3) Operating mode, for example, "COMPLETED" in this case.
You can find additional information in the section "Icons for Operating States (Page 95)".
(4) Allocation status
● "Equipment module (EM) is allocated by an equipment phase (EPH)"
Displayed at the block icon of the equipment module.
Icon Meaning
The current position and size are not saved, for example, after the window was moved
to a different position.
Current position and size saved. The window displays the last position saved after
the SFC is reopened.
Note
The saved position and size are retained until these are overwritten by a new save operation.
State Meaning
STOP / Abort ● No connection to the AS.
● The AS is shut down.
● The AS is in Stop, the connection to the AS is okay, the SFCs are being updated.
RUN The AS is in run state, the connection to the AS is up, the SFCs are being updated.
Operator input
The following operator input options are available if the detail window is displayed:
Icon Meaning
Not anchored (after the SFC window was called)
Note
The SFC window retains its anchored state until it is closed, that is, pressing the button again
will have no effect.
In the view:
A step error is visualized by the button to the left of the step symbol:
An operator prompt (not with "T") is represented by the button to the left of the transition symbol:
In the overview:
● Selection of a view from the drop-down list
● "Synchronize" check box
If this check box is selected, the overview is synchronized to the detail view.
● Button to open a resizable window
See also
Operating and monitoring the SFC by means of faceplate (Page 32)
or
● Without enable, if the operator has the required authorization
(authorization level AUTO / MANUAL: "Process control")
You can change from "AUTO" to "MANUAL"
● after an enable of the changeover at the SFC (block input ENMAN) in the AS and
corresponding authorization (AUTO / MANUAL, operator process control)
or
● without an enable, if the operator has the corresponding authorization
(authorization level "MAN without enable": "Higher-order operator process control".
Note
To ensure that an operator cannot switch an SFC from AUTO to MANUAL mode, for example,
both operator inputs (changeover with or without enable) can be assigned an authorization
that the operator does not possess.
Alternatively, you can also block just the changeover without enable by assigning an
appropriate authorization. The changeover with enable is provided with an authorization that
is assigned to the operator. However, the enable is issued and revoked with a corresponding
control setting in the ENMAN input for the SFC in the AS.
The changeover is either permitted or refused, and different messages will be displayed
depending on the operator authorization and whether or not the enable has been issued.
Additional information
Additional information is available in the sections:
Operating State Logic for SFC (SFC OSL) (Page 79)
Operating state logic for sequencers (sequencer OSL) (Page 82)
The group acknowledgement button can be used to acknowledge all active operator
prompts and step errors at one time (using the "S" button for steps and the "O"
button for transitions).
Note
In the event of a step runtime error, after it has been acknowledged, the step is returned to the
state which it had before the error occurred
(for example active = "green").
When an address is selected and the address belongs to a block that has a faceplate.
Automatic trace
When you select the Update option, you enable the automatic trace function. This function
displays the current properties based on the execution in the chart when the next step is
enabled. The properties of the respective active step or active transition are displayed.
If the active step or active transition is outside the displayed window section as the chart is
being executed, the chart is automatically moved in the window. The chart is moved in such
a way that the step or transition being monitored is in the window section. The objects that are
currently being monitored are shown highlighted in the chart.
Note: The automatic trace works even when no property window is open. It is then automatically
positioned to the active sequencer and active step.
The following description of the "Properties" dialog boxes is based on the separate display of
step and transition.
"Properties" Dialog Box for the Sequencer (Page 70)
"Properties" Dialog Box for the Start Condition (Page 71)
"Properties" Dialog Box for the Step (Page 72)
"Properties" Dialog Box for the Transition (Page 74)
Note
You can open a separate dialog box for the start conditions using the following button:
"Properties" Dialog Box for the Start Condition (Page 71).
"General" tab:
In this tab, you see the following:
● Name of the current sequencer
The box is framed; the frame color indicates the result/state of the transition and is
continuously updated.
● Comment of the sequencer
● Priority of the sequencer
The priority decides which sequencer of an SFC is started when the start conditions of
several sequencers are met simultaneously.
Note
If sequencers with identical start conditions also have the same priority, the sequencer
furthest left in the chart will be started first.
"Preprocessing"/"Postprocessing" Tab:
In this tab, you see the actions for preprocessing or postprocessing the current sequencer.
These actions are executed as follows during cyclic execution of the SFC:
● Before the execution of the sequencers (preprocessing)
● After the execution of the sequencers (postprocessing)
An "f(x)" button can be displayed optionally in a line of an action:
● The "f(x)" button is only visible when a calculation is configured for the corresponding
address of a line.
● The "f(x)" button opens the "Calculation for SFC" dialog. The current values of the
calculation results and the output variables are displayed in the dialog. The structure is
similar to the test mode of the dialog box in SFC, but none of the fields can be edited like
in test mode.
Procedure
Select the detail window for the SFC in which you want to display a step "Properties" dialog
box.
Click the required step to open the dialog box.
"General" tab
The runtimes, the "Confirmation" option, the comment and the step status are deactivated in
the "General" tab.
If no values were configured for the runtimes (time = 0), the respective fields show "- - -".
The step state is displayed as text in the title bar and indicated by the corresponding icon to
the left of the comment box in the dialog box.
The configured technological action can be opened with this button to display the current
process values.
Background color
The background color such as "light green" in a row indicates that a technological action is
configured. The color for technological objects can be set in the CFC editor.
Procedure
Select the detail window for the SFC in which you want to display the "Properties" dialog box
of a transition.
Click the desired transition to open the dialog box.
The following is displayed:
● The Boolean operators of the transition logic
● The fields of the comparison values (left and right)
● The fields of the conditions (middle)
● Optionally, an "f(x)" button is displayed for the left or right address in a row when a
calculation is configured for the associated address.
The "f(x)" button opens the "Calculation for SFC" dialog. The current values of the
calculation results and the output variables are displayed in the dialog. The structure is
similar to the test mode of the dialog box in SFC, but none of the fields can be edited like
in test mode.
● Optionally, the "Condition (technological)" button appears when a technological condition
is configured in this row.
In addition, the background color, such as "light green", in a row indicates that a
technological condition is configured. The color for technological objects can be set in the
CFC editor.
You can use the "Condition (technological)" button to open a dialog box that displays the
current values of the condition.
The dialog box consists of the following parts:
● Two pages with a total of 16 lines for the conditions
● A three-stage transition logic
The first page contains 2 x 5 conditions which are logically linked with the Boolean operators.
The second page contains 2 x 3 conditions which are also logically linked.
An "arrow" button is located at the last operator. Use this button to toggle the pages.
The results of the logic operations for the conditions using the Boolean operators are visualized
as colored connecting lines of varying thickness. A broad, green line means “fulfilled", a thin,
red line means “not fulfilled" and a thin, black line means “inactive".
Transition state
Overview
Calculations can be configured in steps, transitions or sequencers in the SFC Editor.
Configuring is carried out in the "Calculation for SFC" dialog box of the SFC Editor. You can
find more information on configuring calculations in the section "Overview of SFC calculations"
of the SFC for SIMATIC S7 manual or online help.
The current values of the function inputs and calculation results for the calculations configured
in this "Calculation for SFC" dialog box can be displayed in SFV.
The structure is similar to the test mode of the dialog box in SFC, but the "Data Type" column
is missing and no fields can be edited.
Opening the dialog box in SFV
The dialog box is opened with the "f(x)" button in the following properties dialog boxes:
● Properties of steps
● Properties of transitions
● Properties of sequencers (menu command "Edit > Sequencer Properties")
Note on automatic closing of the dialog box
The "Calculation for SFC" dialog box is always linked with the higher-level properties dialog
box of the step or transition from which it was opened. If this link is broken due to operator
inputs by the user, the calculation dialog box will close.
Examples of operator inputs that cause the dialog box to close:
● Closing the higher-level properties dialog box.
● Changing the page in the higher-level properties dialog box of the transition
● A change of step, transition or sequencer in the SFC Editor
Value display in the "Value" column
● The current value is displayed and cyclically updated in the "Value" column:
– For the overall result of the calculation
– For all function inputs with interconnection to addresses
– For intermediate results, that is, function inputs with interconnection to lower-level
functions.
● If the OS does not supply a value to SFC Visualization for an address, e.g., in case of
broken connection, the text "##OFFLINE##" is displayed in the corresponding line of the
"Value" column.
Operator inputs in the dialog box
The "Calculation for SFC" dialog box in SFV has only two buttons:
● The "Close" button for closing the dialog box.
● The "Jump-to-picture" button for initiating the "Jump-to-picture" function.
Icon Meaning
The button is deactivated when no address is selected or an address belongs to a block
that has no faceplate.
The button is activated when an address is selected and the address belongs to a block
that has a faceplate.
Clicking the activated button takes you to the corresponding process picture and face‐
plate.
Functions of the OS
The "Calculation for SFC" dialog box is also acquired by the "Save picture combination" and
"Recall picture combination" functions on the operator station. With the "Recall picture
combination" function, the dialog box with the saved context is restored.
6.31 Messages
General
The following messages are generated during execution of an SFC in the AS:
● Operator requests for transitions
● Step errors
● Status messages relating to the SFC status
Only the step error messages require acknowledgment.
Introduction
A change of the current operating state of the SFC OSL can be triggered by the following
events:
● Commands (Start, Resume, Hold, etc.) in "MANUAL" or "AUTO" mode
● External signals (inputs of the SFC, commands from another SFC, etc.)
● Internal signals (commands from user-specific sequencers, from test mode or SFC
Visualization)
● Implicit status change
,GOH
6WDUW
6WDUWLQJ
6(/)&203
6(/)&203 DQG +ROGLQJ (UURU
([LW
5HVHW &RPSOHWLQJ
(UURU
(UURU
(UURU
6WDUW
(UURU +HOG +HOG
&RPSOHWLQJ (UURU
&RP
SOHWHG 5HVXPH6WDUW 5HVXPH6WDUW
)URPDOOVWDWHV
)URPDOOVWDWHV H[FHSW,GOH$ERUWLQJ
H[FHSW,GOH $ERUWHG6WRSSLQJ
$ERUWLQJ$ERUWHG 6WRSSHG
5HVXPLQJ 5HVXPLQJ
(UURU
&DQFHO 6WRS
$ERUWLQJ 6WRSSLQJ
$ERUWHG 6WRSSHG
Key
Notes on diagram
The SFC OSL contains some state changes that were retained to ensure compatibility with
older projects. These are displayed with dashed blue lines in the diagram.
The numbersin the diagram identify the individual operating states. The operating states are
described in the following table:
The following table describes the transitions between the states (Source State No. / Destination
State No.) as well as their triggers.
X = Possible from several states.
Introduction
The sequencer OSL controls processing of sequencers.
The operating state logic of the sequencer is defined by the diagram of state changes for
sequencer OSL.
The sequencer OSL is executed independent of the SFC-OSL when a sequencer is processed.
This means that the sequencer has a state which differs from the SFC state. For example, the
state of the SFC OSL can be "Holding", whereas the state of the sequencer OSL is "Run" -
due to the processing of the sequencer to the "Holding" state. The execution of the sequencer
OSL is of lower priority than the SFC OSL. This means that the state change in the SFC OSL
also results in a status transition in the sequencer OSL.
,GOH
6WDUW
$ERUW +ROG
6WDUW 5HVWDUW
FRPSOHWHG 6WDUW
&RPSOHWHG
$ERUW
Key
Operator commands
Implicit transitions triggered by the SFC
The following table describes the transitions between the states (Source State No. / Destination
State No.) as well as their triggers.
Introduction
Since V7.0, SFC Visualization on the Web client was restricted to operation of SFC block icons,
SFC faceplates and SFC controls.
Full Web capability is available as of V8.0. All the sections, overviews and zoom displays are
shown on the Web client and can be operated. All the API functions required in the Web
environment are supported.
Introduction
With equipment phases, the lower-level equipment modules are not permanently assigned,
but instead requested at runtime, allocated and then released again.
The allocation characteristics are configured using an "allocation request" in the step of the
SFC.
The current status of allocation at runtime is shown with the "Allocation status".
You can find additional information about this in the documentation Process Control System
PCS 7; CFC for SIMATIC S7 in the section "Configuring the allocation of an equipment phase".
● The allocation states (plural) are defined in the master data library under "Shared
Declarations > Enumerations > ES_AcquireStates".
The following table describes the available allocation states.
Overview
SFC Visualization requires the following tags for operating and monitoring SFCs:
" D
"Batch" view, 45 Detail window
SFC instance faceplate, 45 Information, 60
"Calculation for SFC" dialog box, 76 Operator input, 60
"Equipment modules" view, 46
"Equipment phases" view, 48
F
Faceplates
A Adapting, 18
Access control, 31 Configuring, 17
Acknowledging operator prompts and step errors, 68 Functions for custom scripts, 27
Actual values view, 37
SFC instance faceplate, 37
Adapting I
Faceplates, 18
Icons
Authorization, 64
Operating states, 95
for changing the operating mode, 64
Information
Detail window, 60
B
Basic SFC settings, 11 M
Block icons
Messages, 78
Configuring for OS pictures, 15
Messages view, 36, 44
Status displays on the SFC block icon, 59
SFC faceplate, 36
Variants for OS pictures, 15
SFC instance faceplate, 44
Monitor
SFC by means of a faceplate, 32
C SFC by means of the SFC status picture, 50
Configurations, 20, 22, 25, 26
Block icons for OS pictures, 15
Faceplates, 17 O
Objects for opening SFC charts, 13
Open
SFC browser selection, 26
Configuring objects for opening SFC charts, 13
SFC button, 25
Operating and monitoring the SFC by means of
SFC Control status picture, 20
faceplate, 32
SFC MultiChart Control status picture, 22
Operating and monitoring the SFC by means of SFC
SFC Topology Control status picture, 24
status picture, 50
Configuring objects for opening SFC charts, 13
Operating mode, 64
Configuring SFC block icons for OS pictures, 15
Changing, 64
Configuring SFC faceplates, 17
Setting, 64
Operating state, 65
Setting, 65
Operating state logic for sequencers, 82
Operating state logic for SFC, 79