pcs7 Compendium Part C en-US en-US
pcs7 Compendium Part C en-US en-US
Preface 2
What's new? 3
SIMATIC
Introduction 4
Process Control System PCS 7
Compendium Part C - 5
Basics
Equipment Phases with
SFC Types (V8.2) Components of equipment
modules 6
Operating Manual
State logic of equipment
modules 7
Functionalities and Solution
Paths 8
Notes, recommendations,
and guidelines 9
08/2016
A5E35031809-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.
Validity
This documentation is valid for the software packages:
● SIMATIC PCS 7 V8.2
Definition of terms
Internationally recognized terms are mainly used in this documentation. How these terms
relate to German terms previously used and their sources (standards) is shown in the table
below.
The aim of separating the EM is to assign precisely one EM to each control module. In some
cases it may be necessary for two different EMs to share one control module (CM) ("shared
resources"). This is not a problem for read-only access, but if actuators are to be activated,
the resolution of possible conflicts must be considered (S88: "arbitration").
Shared resources of this type should be avoided, as they generate additional planning and
configuration effort and come with the risk of usage conflicts during production. In practice,
however, shared resources cannot be avoided 100 % of the time.
See also
Multiplexing control modules (Page 48)
Note
You can find more information about this in the section titled Optional control modules
(Page 51)
Note
You can find more information about this in the section titled Active control strategy change
(Page 38).
Introduction
There are two ways of terminating an EM:
● Self-terminating EM
● Non-self-terminating EM
Both termination methods are supported by the operating state logic. The EM algorithm
controls this process by setting the corresponding states.
Self-terminating EM
With a self-terminating EM, the EM algorithm automatically detects that the process-
engineering target has been reached and sets the state to "Completed". If "Auto" mode is
being used, the higher-level control resets the EM to its initial state. If "Manual" mode is
being used, the state either needs to be reset manually or the "selfreset" property needs to
be activated. A typical example of this is a dosing procedure.
Non-self-terminating EM
With a non-self-terminating EM, the EM algorithm runs until an interim target is reached and
sets the state to "Ready to complete". The phase remains active in this state. If "Auto" mode
is being used, the higher-level control (e.g. SIMATIC BATCH) detects this state and starts to
check the subsequent step enabling conditions in the control recipe. If these conditions are
met, a second handshake is performed with the EM, whereby the EM is disabled and reset
to its initial state. The higher-level control then activates the next recipe step. If "Manual"
mode is being used, the EM must be terminated manually.
A typical example of a non-self-terminating EM is a mixing procedure which is to be
terminated by an external event (e.g. the end of a dosing procedure running simultaneously):
● The active interim state is achieved when the target mixing speed is reached and is
signaled by the status READY_TC: "Ready to complete".
● The completed dosing procedure switches the mixer off.
To help you create an equipment module you will find the following work templates in the
document "Work Templates for the Specification of Equipment Phases with SFC Types"
(https://support.industry.siemens.com/cs/ww/en/view/33412955) as a supplement to the
compendium:
● Creating an SFC type
Planning template designed to facilitate implementation of the EM by means of the SFC
type.
● Instantiation
Table templates designed to facilitate instantiation of the SFC types).
6.2 Setpoints
Setpoints can be used to influence the behavior of the control strategies and the control of
the SFC type. The setpoints can be specified by means of operator input or by a higher-level
SIMATIC BATCH control. Setpoints can be assigned to individual control strategies.
When a setpoint is defined, an input is automatically created for the associated actual value.
Setpoints of an SFC type contain block contacts for process and control values.
The setpoints of an equipment module are BATCH-relevant and are referred to as
parameters on the higher-level SIMATIC BATCH control (not be confused with the
parameters of the SFC type).
Special features of setpoints are the "PI" and "PO" data types available, which represent a
REAL setpoint and are supplemented by the additional attributes "Material" and "Tracking
ID". Data types "PI" and "PO" are required, for example, if setpoint values are used with
reference to materials or material tracking via SIMATIC BATCH according to SIMATIC IT.
The "DEST", "SOURCE", "VIA", and "TKEY" data types are also available. You can assign
enumerations to these and they are required for SIMATIC Route Control and SIMATIC IT.
6.5 Parameters
Parameters are used to modify the behavior of the SFC type on an instance-specific basis
(e.g. limit values, options).
6.7 Times
Timers are often needed when implementing equipment modules, such as a monitoring time
or run time for a mixer. Timers can be implemented using a standard timer block (TIMER_P),
which supports different modes. Possible modes for the timer block:
● Pulse
● Extended pulse
● ON delay
● ON delay with memory
● OFF delay
When the SFC type is used, the timer block is automatically embedded for processing times.
6.11 Messages
Equipment modules transmit messages, which can be set or reset from within the sequence.
To do this, the message class and message class must be defined. An example of a
message could be a valve fault message or an operator prompt.
A sequencer can be stored in the transient states (e.g. "Starting" [2], "Completing" [4],
"Aborting" [13], etc.):
Sequencers cannot be integrated in the final states (e.g. "Completed" [6], "Aborted" [14],
etc.).
A sequencer can be configured in each of the Starting [2] and Run [3] states. A Starting step
sequencer [2] is advantageous if several control strategies are used, where the same basic
settings are made prior to the Run step sequencer [3]. If a starting step sequencer is stored,
"Starting" remains on the block for as long as this step sequencer is being processed.
There are different philosophies when it comes to dividing sequence steps into the "Starting"
[2] and "Run" [3] states in terms of functions:
● The "Starting" state can be used as the state in which switch-on is actually to take place
(e.g. mixer on). In the Run state, the actuators are active.
● The "Starting" state can be used for preparation purposes (resetting of bit memories, etc.)
and the actual EM sequencing logic becomes active (and, therefore, the actuators are
switched on, for example) in the "Run" state.
As a rule, the error case "Held (Error)" [11] or the case "Held" [8] must be carefully
considered:
A return from the "Resuming" [9] or "Resuming (Error)" [12] states leads directly to the "Run"
[3] state. If a lot of data is saved in the "Starting" state, this may also have to be carried out
in the "Resuming" state.
The "TARGETSEQ" and "TARGETSTEP" parameters can also be used to jump to a specific
step in a specific sequencer (notice: you must take the sequencer's starting conditions into
account).
● A start condition for the sequencer Starting [2]:
STARTING = Starting (TRUE)
● A start condition for the sequencer Run [3]:
RUN = Run (TRUE)
See also
Returns when resuming (Page 54)
See also
Returns when resuming (Page 54)
An example of using an INT command is the transition to the Error state (INTERROR) as a
function of a condition.
If the status change does not take place within the specified time, SIMATIC BATCH reports
an error (symbol: red flash) in the batch.
Note
A prepared control strategy is only adopted during SFC start (both in MANUAL and in
AUTO).
If the SFC instance has already started, it must be aborted, stopped, held or processed to
the end in order to be able to start again. You can achieve this in MANUAL by means of
operator input and in AUTO by interconnecting the appropriate inputs (ABORT, STOP,
HOLD, START, RESTART). Note the operating state logic (OSL).
If no setpoint change is required during operation, you can deactivate it for all SFC types in
the dialog box too.
These elements must be reset by the block, if the situation which triggered the message has
been remedied.
An SFC type contains one Alarm_8P and two Notify_8P blocks, although some messages
are allocated by default.
The messages are directly connected to the "SIG_X" und "NSIG_X" inputs. For example,
input "NSIG_12" is the fourth message in the second Notify_8P block (SIG4).
The messages themselves can be edited within the SFC type in the PCS 7 message
configuration window using the “SFC > Message ...” command.
Alternatively, you can adapt the messages instance-specifically via the "Messages" button in
the block property dialog.
As this is what the SFC type requires. If the setpoint is defined in minutes, then the time
must be calculated in seconds.
The SFC calculation can be used in steps or transitions or block "MUL04" can be used for
calculating the time. The time setpoint (e.g. SP_Mix_Q) is interconnected with input "IN1" of
block "MUL04". A process value (e.g. PV_Mix) containing the time in seconds is also defined
on the EM and interconnected with output OUT of the "MUL04" block.
Once the time "xx_Q0" has been reset, the sequencer can continue.
The reset command on the "Termination" tab is also reset (xx_RESET = 0).
If the time is to be started now, the input pulse of the time counter (xx_I0) can be set.
You query whether the time has expired via the output pulse (xx_Q0 = 1).
The time currently remaining is assigned to the bit memory (xx_PTIME). The input pulse of
the time counter (xx_I0) also has to be reset.
Advantage: 3 SFC types do not have to be created and maintained; instead using control
strategies you can select an instance-specific control strategy.
If the "Allow operator instruction" check box is ticked, operator instructions for SIMATIC
BATCH are enabled. These instructions can be output to the operator during the recipe
sequence. Values with or without acknowledgement of the instruction can be entered via the
operator dialog.
Introduction
CMs can be operated both in "Manual" (operating personnel) or "Automatic" (operation via
the EM) modes. The four most important options in terms of which mode CMs can be
operated in are described below.
Example of implementation:
An additional output (control value) is created in order to switch all CMs to "Automatic" mode
(e.g. QV_rel_manual). This element is set in the Initial and Hold states and reset in all other
states.
The "QV_manual" output is interconnected with "ModLiOP" input of the CMs. Output
"OpenAut" (for VIvL) can now be set in the sequencers in accordance with the logic of the
CM blocks in order to switch the CM to "Automatic" mode.
Note
Rules for automatic operation
In order for the Batch Control Server's commands to be processed in automatic mode, the
following inputs must remain unconnected in the interface block and their values set to "1":
• ENSTART
• ENCOMPLETE
• ENHOLD
• ENRESUME
• ENABORT
• ENSTOP
• ENRESET
An optional CM can always be activated from the sequencer. However, for the purpose of
querying the state of optional control modules, it will be necessary to take account of
whether or not the CM is actually present; this query can be performed using parameters.
Introduction
There are two ways of terminating an EM:
● Self-terminating equipment module
● Non-self-terminating equipment module
The SFC type supports both methods. The configuration is set via the SELFCOMP input.
The SELFCOMP input changes the termination behavior of the active sequencer in the SFC
type.
Self-terminating EM
An example of a self-terminating EM is the dosing procedure. When dosing is complete, the
equipment module will be closed automatically.
Non-self-terminating EM
An example of a non-self-terminating EM is the mixing procedure.
If the SELFCOMP input is configured with 0 (false), the SFC remains in the "Run" state and
sets the READY_TC output (= ready to complete).
In this case, the higher-level SIMATIC BATCH control must be informed that the EM has
performed its task. This is reported via the READY_TC output. SIMATIC BATCH can check
the following step enabling conditions in the control recipe. If these conditions are met, a
second comparison is made with the EM, whereby the EM is disabled and reset to its initial
state. The higher-level control then activates the next recipe step.
First, step flags (FL_CUSEQ, FL_CUSTEP), in which the current step (CUSEQ, CUSTEP)
can be saved, are defined. Data types which are not available in the characteristics are
required for this, so the flags must be defined in the I/O view.
The defined FL_CUSEQ and FL_CUSTEP step flags are activated in step 2.
(Step 2 is the step to be returned to during the resumption procedure.)
If the process is to be resumed in the Held state, the return is entered in the resumption
sequencer (via TARGETSEQ and TARGETSTEP).
If the active sequencer starts, a jump will be performed to the resumption step which has
been set – this is provided that the sequencer in the "Resume" state and the one in the
"Run" state are different sequencers.
Note
Only one target step can be programmed in a sequence. If the target step is located in a
parallel branch, the sequence cannot be terminated, as not all parallel branches will be
active.
The “ACTIVE” sequence is used by way of example to show the starting conditions:
● RUN = Run (TRUE) and
● QCS = 1 (control strategy 1) and
● READY_TC <> ReadyTC (flag READY_TC is not yet set)
In some states, executing the final step of a sequencer results in a state change (implicit),
such as "Starting", "Holding", etc., but in other states this is not the case. In these states the
starting conditions remain active, so the sequencer is started over again. However, this is
undesired in most cases.
You will find two examples of SFC types, along with their required transient-state starting
conditions, in the SFC Library. These types are "TypeCtrlStrategy" (FB 1026) and
"TypeStates" (FB 1025).
These actions are executed as follows during cyclic execution of the SFC sequencer:
● Preprocessing: Prior to the initialization or processing or termination of a step
● Postprocessing: Following the initialization or processing or termination of a step
Preprocessing includes the actions to be executed in every cycle after the sequencer has
started and before the steps and transitions are processed. Postprocessing are the actions
to be executed in every cycle after processing the steps and transitions. This, for example,
allows you to make pre-settings or to pass on the results of the sequencer execution.
Introduction
Adding a prefix to the connection elements when naming I/Os is recommended to make it
easier to distinguish between the connection elements of the individual characteristic groups
(setpoints, parameters, control values, etc.) of an EM.
A time element, for example, always starts with "TI_". A mixing time would be called
"TI_Mixer", for example.
Examples
Note
Keep to the recommendations provided here regarding the number of maximum characters
allowed when assigning names.
Text strings of more than 16 or 32 characters will be truncated when the name, text, or string
is passed to the AS or AS blocks.
Name
● No special characters apart from "_"
● No umlauts
● Maximum length: 16 characters (e.g. name of the SFC type)
● ID characteristic (visible designation for batch objects, e.g. for setpoints in master recipe
and batch)
Step sequencers
● Maximum length of sequencer, step, and transition names: 16 characters
Data type
● Relevant for the data types: BOOL, INT, DINT, REAL, PI, PO, String
● PI and PO are analog values for process inputs and outputs with the additional attributes
"Material" and "Tracking ID". The value range and unit of measurement are read by the
recipe system. The data types PI and PO are used for SIMATIC BATCH and for values
with reference to materials.
● The DEST, SOURCE, VIA, and TKEY data types (data types for Route Control) can also
be used.
Note
When the interface is generated, suffixes are added to the names of the automatically
created I/Os for setpoints, times, and block contacts. When selecting names, remember
that only the first eight characters of all contacts can be viewed in CFC.
Long I/O names are only visible in full as tooltip texts.
To ensure that names remain distinguishable, unique, and uniform, it is best to define a
naming convention at the start of configuration work.
Comment
● Maximum length: 80 characters
● Only visible in the characteristics dialog
● Value range (low and high limit: <I/O name>_LL and <I/O name>_HL)
● Relevant for the data types: INT, DINT, REAL, PI, PO
● Can be edited in the instance block for data types
Initial value
● Default setpoint value
● Can be set on an instance-specific basis within the value range already defined
Text length
● Relevant for the data type: String
● Can be defined within the value range [1,254]
● Recommendation: Max. text length 32 (for an explanation see notes on this section)
Precision
● Relevant for the data types: REAL, PI and PO
● Determines the number of decimal places to be displayed
● Can be set to between 0 and 7
Unit
● Relevant for the data types: INT, DINT, REAL, PI, PO
● Defined in shared declarations (max. 16 characters)
● Can be edited on an instance-specific basis in the "S7_unit" system attribute
Enumeration
● Relevant for the data types: BOOL, INT and DINT
● Can be edited at the instance as the "S7_enum" system attribute
● Defined in shared declarations (max. 16 characters)
Combination on the control strategy level means that there is a sequencer for every control
strategy, with branches to the different states within this sequencer.
A rigid combination according to control strategies or states does have its disadvantages and
cannot be sustained if RUNHOLD = FALSE (resumption if a step is held in "RUN"). It would
make more sense to use a combination of the two methods.
Combine the states containing sequences specific to a control strategy (e.g. "STARTING",
"RUN", etc.) in a control-strategy sequencer. States which contain the same sequence in
every control strategy (e.g. "ERROR") can be combined to form a sequencer. The same
sequence is often performed in different states (e.g. "Completing" and "Stopping").
Note
Further information can be found in the FAQ “How can error outputs be reset without starting
the productive step sequencer?”
(https://support.industry.siemens.com/cs/ww/en/view/48933314).
Introduction
Activations within a step in the SFC type are usually retentive. However, another option for
configuring sequential control systems is to use non-retentive sequencers.
Retentive sequencers
With a retentive sequencer, only changes are configured in the relevant steps. The
advantage of this approach is that the number of activations in the steps is reduced, as only
certain activations are performed. Note must be taken of the predecessor which has been
processed and the activations which have already been performed.
With retentive sequencers, nothing needs to be taken into account as regards SFC.
Non-retentive sequencers
With a non-retentive sequencer, all activations are set in each step. This means that the
activations being performed can be tracked in every step, which improves clarity.
To implement a non-retentive sequencer, the activations must be set on the "Initialization"
tab and reset on the "Termination" tab in every step in the sequencer.
Non-retentive sequencers do involve more configuration effort.
From SIMATIC BATCH version V7.1 SP2 onwards there is also the so-called AS-based
mode. SIMATIC BATCH is also able to read the characteristics configured in the SFC type
(control strategies and setpoints) of a type and the related instances in this new mode.
The difference between EOP and EPH becomes apparent in the SIMATIC BATCH recipe
editor. If EPH is selected, a corresponding RPH (recipe phase) is generated in the BATCH
system. The recipe phase can be used in the SIMATIC BATCH recipe editor as part of
recipe operations.
If EOP is selected, a closed recipe operation which can be used on the operation level in
recipes is generated on the recipe level.
If the SFC type should not be used for SIMATIC BATCH, then select the setting "None".
9.11 Start and resumption lock for SIMATIC BATCH for equipment
module previously started manually
From SIMATIC BATCH V8.1 onwards, each manual start of an SFC creates the same status
information as those that are started automatically. This therefore ensures that all manual
commands create the same status information as those that were started automatically by
the control recipe. The functionality is implemented and cannot be turned off. Each status
event for equipment phases and operations generates a message on the PCS 7 OS. These
messages form part of the batch report.
The continuous operation of equipment phases has been extended as of version V8.2 of
SIMATIC BATCH. In the project settings, you can specify whether continuous or extended
continuous operation is used.
Until now, equipment phases have been completed automatically by the end of the batch at
the latest in continuous operation and the unit enabled. In extended continuous operation the
equipment phases can be assigned to other batches even once the unit has been completed
and enabled. The equipment phases retain their “RUN” status.
Technical Forum
Exchange your experience and know-how about our products or systems or benefit from the
knowledge of others.
Have discussions on special products or general topics, discover new ideas and inspiration
and help yourself and others on the Technical Forum
(http://www.siemens.com/automation/forum) – free of charge, outside office hours and at the
weekend.
Technical Support
The Siemens Industry Technical Support offers you fast and competent support for any
technical queries you may have with a number of tailor-made solutions – ranging from basic
support to individual support contracts.
Send your queries to Technical Support using the following web form:
www.siemens.com/industry/supportrequest
Range of services
Our range of services includes the following:
● Product training courses
● Plant data services
● Spare parts services
● Repair services
● On-site and maintenance services
● Retrofitting and modernization services
● Service programs and contracts
You can find detailed information on our range of services in the service catalog:
https://support.industry.siemens.com/cs/sc
Contact partner
If you have any questions or need support, please contact your local representative, who will
put you in contact with the responsible service center. You can find your contact partner in
the contact database:
www.siemens.com/yourcontact