Energy Edition
Energy Edition
Energy Edition
v.8.20
© 2020 Ing. Punzenberger COPA-DATA GmbH
Distribution and/or reproduction of this document or parts thereof in any form are permitted solely
with the written permission of the company COPA-DATA. Technical data is only used for product
description and are not guaranteed properties in the legal sense. Subject to change, technical or
otherwise.
Contents
GENERAL HELP
If you cannot find any information you require in this help chapter or can think of anything that you
would like added, please send an email to documentation@copadata.com.
PROJECT SUPPORT
You can receive support for any real project you may have from our customer service team, which
you can contact via email at support@copadata.com.
5 | 205
Energy Edition
2 Energy Edition
The zenon Energy Edition is a package with special functionality for the energy sector and the
procedural technology. The user benefits from easy-to-implement functions that allow for an
individual adjustment of the application to the physical environment.
6 | 205
Automatic Line Coloring (ALC) - Topology
State Estimator
The State Estimator module is an additional module to the Load Flow Calculation module.
If, at the nodes in the topological network, not all power in or out is known for a load flow
calculation, the State Estimator can reconstruct this from several measured values in the
network.
Electrical parameters (power outputs) are estimated by the State Estimator. To do this, the
State Estimator measures the values of all measuring points on lines.
Because the tube structure is designed in the screen with all its technological elements (e.g. tanks and
valves, or generators, switches and consumers), it is internally emulated as a model and the media
flow is displayed in the Runtime.
In order to allow screen-overlapping models the entire design and configuration is always
project-wide. You therefore have one entire topological model per project, which is used for the
calculation of the tube statuses and ultimately for the coloring of the tubes.
The whole topology is created automatically from the graphic design. No other engineering actions
are necessary.
Information
Starting with a source, the ALC algorithm runs through each switch only once
per direction.
DETAIL SCREENS
To display individual screens, a partial area can be taken from the topological network and displayed
individually by means of alias. A detail screen (on page 43) can be displayed with the data from
different equipment parts, for instance outputs or partial networks.
7 | 205
Automatic Line Coloring (ALC) - Topology
ENGINEERING
For the design two types of screen elements with different functions are distinguished. On the one
hand these are procedural elements (on page 9) (source, switch/disconnector, drain, transformer or
link) and on the other hand lines (on page 22).
In doing so, the technical elements have a function and a color (source and transformer). If the
procedural elements are active, the connected lines take on the color of these elements at the source
and transformer or they take on the color of the element's input line for the switch and the link. If the
procedural elements are inactive, the color of the lines is taken from the definition in the editor.
The different functions of the elements are assigned in the properties of the combined element.
EXAMPLE
A source has a connected line. A switch is connected to the line. And a second line is connected
there. If the source is active, the first line is colored with the color of the Automatic Line Coloring
defined in the source up to the valve. The other line is not colored before the switch is closed.
Source inactive
Source active
Switch closed
8 | 205
Automatic Line Coloring (ALC) - Topology
Undefined or invalid
Information
If the procedural element status is undefined or malfunction, this is automatically
detected. All connected lines and all further elements are displayed in the color
of the predefined source undefined' for both states.
Recommendation: Arrange a maximum of 256 closed switches in a series between the source and
the drain.
Attention
When ALC is activated, the combined element has no effect on the drawing of
lines. It only controls the visibility of elements.
This means: Even invisible lines continue to forward their colors.
This also applies to ALC lines whose visibility is determined by a variable. This
does not include lines with Alias. These display the color, but do not forward it.
SETTINGS
The procedural type of the combined element is defined by the value of the Function type property.
The available options are:
Function type Description
Source Passes on its color. If the source is active (value: 1), all connected lines
that have the Color from ALC option set in the Automatic Line
Coloring properties group are allocated the color of the source. The
color is defined in the project properties as the source color. (e.g. tanks
or generators). A source is a single pole with a static source number
9 | 205
Automatic Line Coloring (ALC) - Topology
You can find details on the source in the configuration of the sources
(on page 30) chapter.
For the Interconnect grids topological interlocking (on page 35), the
number of the source that is linked to a generator is taken into account.
Switch With this lines can be split. If the switch is closed/active (value: 1), then
the connection between the two lines is closed and the line is colored in
the Runtime up to the next switch with the defined source color. In this
case a switch forwards the source color of the input line to the output
line.
Example: see Switch example - colors from ALC (on page 15) section.
As with the switch, the main variable determines the status: On, off,
intermediate position, malfunction.
10 | 205
Automatic Line Coloring (ALC) - Topology
Reverse-feed-compatible transformer:
Capacitor The capacitor can only be connected as a load on one side. For the
Load flow calculation, the capacitor serves as compensation for the
reactive power.
Valve A slider (a valve) acts in a similar manner to a switch, but it is used for
water and gas lines.
Check valve The check valve only forwards information in one direction.
11 | 205
Automatic Line Coloring (ALC) - Topology
Drain This defines the end of the line. The drain does not influence the
coloring; it is only used so that the model can be displayed in full. If an
external program (e.g. VBA) should access the model, then the drain
probably is needed for further calculations, and so has to be inserted.
In Energy projects, the drain is used for representing consumers. These
are used to calculate the ALC - topological interlockings (in the
command processing) 'Device would not be supplied'.
Terminator For bus bar ends. Blocks the error message "Line only connected on one
side" when being compiled in the Editor.
12 | 205
Automatic Line Coloring (ALC) - Topology
The source number given - for the source and transformer function types - is forwarded via closed
switches (disconnnectors, sliders etc.) up to the devices (drains). The colors of all connected lines and
process-related elements are calculated dynamic from the higher-level sum of the supplying source
numbers.
Source Here a source is assigned to an element. In this drop-down list all sources
defined in the ALC configuration (in the project properties) are available.
All source names are listed.
This property is only active if the function type 'source', 'transformer' or
'generator' has been selected.
You can find details on the source in the configuration of the sources (on
page 30) chapter.
Attention: Use the pre-defined system sources for this (ID 0..9).
Configure separate sources for this linking:
For the configuration of your own sources, click the ... button in the
ALC configuration property in the Automatic Line Coloring
project properties group.
The system sources UNDEFINED [0], GROUND FAULT [1], SHORT
FAULT [2] and GROUNDED [3] are only envisaged for the
configuration of the grounding.
The pre-defined system sources SYSSOURCE4 [4] to SYSSOURCE9
[9] serve as placeholders.
Link name The link name can be configured here for the link function type. All
identical link names in a project correlate with each other.
You can find further information about this in the Link function type.
This property is only active, if the function type link has been selected.
13 | 205
Automatic Line Coloring (ALC) - Topology
Example:
IEC870 driver: Variables with Typ ID T01..T37
IEC850 driver: Variables */Pos/stVal[ST]
DNP3 driver: Input Variables
Pre-requisite: the DPI/DPC mapping has not been deactivated in the driver.
Information
For the position of a switch, only the first two bits of the main variable are taken
into account.
The first bit is the actual switching; 0 is OFF and 1 is ON.
The second bit is the error bit. There is no error if it is 0.
The status of a source ("present" (ON) / "not present" (OFF)) is also evaluated using the linked main
variable. For this evaluation, a BOOL data type variable of the internal driver is recommended. Then
(as is usual in practice) the source can be linked to the rest of the topology via a switch or
disconnector. As a result, it is possible to forward the color of the source - depending on the position
of the switch.
Note: For the main variable of a source that is connected to the network via a switch/disconnector
(ground, for example), create a variable for the internal driver. For this variable, configure the
Calculation properties with the value network and Initial value with value 1 ("always present"). You
can find this properties in the Internal Variable variable properties group. Alternatively, you can also
link a source to the process variable directly (the source and its switch in one). As a result, you can
deactivate or avoid the topological interlocking when switching the source.
STATUSES
The following applies for statuses:
A switch and a source are switched on (closed) if the value of the linked variable is 1.
A switch is invalid if the value of the linked variable is >1 or has an INVALID status bit.
An invalid switch provides the source number 0 (undefined) at its exit (connection 2) instead
of the source number entering. In the direction from input to output, the switch behaves as if
it were open.
14 | 205
Automatic Line Coloring (ALC) - Topology
Note: if the main variable has the status INVALID, the whole subsequent network is INVALID,
because the status of the network is not known. The status INVALID is forwarded using
subsequent closed switches.
Attention
If, in the statuses of the combined element, the color and the fill color from the
ALC property is activated, it is not just the lines but also the procedural elements
that are colored in the Runtime.
EXAMPLE 1
Combined element with value status 00 and line color from ALC:
1. Configuration in the Editor:
Combined element with value status 00
Line color from ALC active
15 | 205
Automatic Line Coloring (ALC) - Topology
EXAMPLE 2
Combined element with value status 01 and colors from ALC:
1. Engineering in the Editor
Combined element with value status 01
Line color from ALC active
Fill color from ALC active
16 | 205
Automatic Line Coloring (ALC) - Topology
EXAMPLE 3
Combined element with value status 00 without colors from ALC:
1. Configuration in the Editor:
Combined element with value status 00
Line color from ALC not active
EXAMPLE 4
Combined element with value status 01 without colors from ALC:
1. Engineering in the Editor
Combined element with value status 01
Line color from ALC inactive
17 | 205
Automatic Line Coloring (ALC) - Topology
18 | 205
Automatic Line Coloring (ALC) - Topology
Attention
Use ALC elements only in un-rotated state because:
The calculation for the topological model for the ALC in the Editor is based on
the position of the elements in un-rotated state and without considering any
dynamics.
Attention
If the combined element is less than 30 pixels, connection areas within an
element overlap. Lines that could touch can cause errors (compilation, coloring).
You can see the possible connection points for combined elements smaller and larger than 30 pixels
in the illustration.
Colors:
Blue: Combined element
Red: Connection areas
19 | 205
Automatic Line Coloring (ALC) - Topology
Dimensions:
A: height of the Combined element
RULES
If a line is outside the connection area, no connection is detected and there is thus no
coloring of the line. So there will also be no coloring for further lines.
With sources, drains and Links, all described connection points can in principle be used.
Attention: With sources and drains, only one connection point can be used at the same
time. If different connection points are used at the same time, undefined states can occur.
Elements of the type Link can also use several connection points at the same time. The
incoming color information is passed on to all lines.
With switches/disconnectors/sliders and transformers, the connection 1 (supply) is on the left
or on the top and connection 2 (output) is on the right or on the bottom. This sequence can
be changed with the Switch input/output property.
Attention: At switches and transformers it has to be cared, that only one input connection
and one output connection is used. The simultaneous use of several input or output
connection points results in inconsistencies and is therefore not reliable.
For all procedural elements the following is true: Only one line can be connected to a
connection point. Junctions cannot be realized directly on an element but must be drawn
with lines.
The input is then set at the bottom right and the output at the top left.
OVERVIEW
Device configuration Input Output
20 | 205
Automatic Line Coloring (ALC) - Topology
These variables are supplied with the current values from the ALC module. Names of the sources can
be visualized by the ALC module by displaying these variables.
These properties are summarized in the Automatic Line Coloring properties group combined
element and summarized in the Condition area.
Configurable properties:
Input active sources
(STRING data type)
Output active sources
(STRING data type)
Highest priority source input
(numeric data type)
Highest priority source output
(numeric data type)
DISPLAY IN RUNTIME
The linked variables are displayed with the following values in zenon Runtime:
Number (on page 30) of the active sources (STRING data type):
Active source number(s): The numbers of all active sources are summarized in a STRING
variable.
This is applicable for both input and output.
Several source numbers are separated by a semicolon (;). Sorting is carried out
according to the priority of the source.
Note: With multiple sorting, the source is represented with several entries at the input.
<Empty>: not supplied
Number of the highest priority source (numerical variable):
21 | 205
Automatic Line Coloring (ALC) - Topology
0 or greater: Number of the highest priority source. This is applicable for both input and
output.
-1: not supplied
3.1.2 Lines
Lines are represented by the vector elements Line, Polylines and Pipe.
If the Color from ALC property is activated for a line, the coloring is defined by the ALC
configuration. Lines are automatically colored by the system depending on the status of the
procedural elements and the ALC settings. The color is usually defined by the highest priority source
number of the medium flowing through the line. If the status is empty/not supplied, the element is
not colored by Automatic Line Coloring. In this case, the configuration of the Line color property (in
the Line properties group or Line color in the Line color dynamic properties group) is used for
visualization in the Runtime.
Attention
Even invisible lines that have an activated Color from ALC property continue to
forward the colors to the linked ALC elements. This forwarding occurs regardless
of whether they are visible or invisible in the Runtime.
Exception: Lines with Alias display the color, but do not forward it.
The ALC color will continue to be forwarded nonetheless. The value of the linked variable does not
play a role. It only affects visibility, not the forwarding.
You define the display type of the line by means of drop-down lists:
Priority for display
display multiple supplies
display secured supply
Color from ALC Activates the automatic line coloring for this vector element.
That means: If the source for the line is active and all
switches/valves leading from the source to the line are closed,
22 | 205
Automatic Line Coloring (ALC) - Topology
Parameter Description
the line is colored accordingly. If the line is fed by a single
source, the defined source color is used for coloring the line.
The line width is not changed.
Priority for display Defines if multiple supply, secured supply or both are displayed.
Default: Multiple supply
Secured supply The element is displayed according to the rules of the secured
supply.
Multiple supply The element is displayed according to the rules of the multiple
supply.
No priority The coloring rules for multiple supply and for secured supply
are applied at the same time if both criteria are met.
That means: The line is displayed twice as wide and in the form
of a two-colored, dashed line if the following have been
configured for a line:
has multiple supplies and a secured supply
the priority is set to No priority
The display for multiple supply is set to two sources with
highest priority,
the display for secured supply is set to double width
display multiple supplies Multiple supply means that a line is supplied by multiple
sources at the same time. Here you can define how lines with
multiple supply are displayed.
23 | 205
Automatic Line Coloring (ALC) - Topology
Parameter Description
highest priority source The line gets the color of the source with the highest priority.
Note: Priorities correspond to the sequence chosen in the
ALC configuration.
two highest priority sources Applies for lines fed by two or more different sources. The two
sources with the highest priorities define the coloring. The line
is displayed with these two colors (dashed). The dash length
can be changed using the Dashing length supplied multiple
times property.
Alternative color The color defined in the Alternative color property is used.
Dashing length supplied Defines the dash length (in pixels) of lines, polylines or tubes
multiple times for the dashed ALC coloring for two sources with the highest
priority for display multiple supplies.
Possible values:
Minimum: 0 (automatic dash length)
Maximum: 32767
Default: 0
Alternative color Alternative color for the ALC coloring of lines, polylines or
tubes with multiple supplies.
display secured supply Secured supply means that a line gets multiple supplies from
one source (parallel). Here you can define how Secured supply
is displayed.
Default: normal
double width Relevant for lines fed in parallel by the same source. If this is
the case, the line is displayed with double the configured
width.
24 | 205
Automatic Line Coloring (ALC) - Topology
Parameter Description
(multi-supply), the line width does not change!
double brightness Relevant for lines fed in parallel by the same source. The line is
displayed with double the original brightness.
If this line is fed by two or more different sources
(multi-supply), the line color does not change!
If this line is multi-fed from one source (secure supply), the line
is displayed with double the original brightness.
Formula for the calculation of the double brightness:
The defined RGB color is transformed to the HLS
system.
L (luminance = brightness) is recalculated by
NewLuminance = 240*3/4 + L/4
The color value is recalculated to the RGB system with
the new brightness.
normal The element is displayed in the color of the source and with
the configured width.
Alias Opens the Dialog (on page 43) for selecting an alias of an ALC
element whose color is supposed to be displayed by the line.
25 | 205
Automatic Line Coloring (ALC) - Topology
Information
The source color and the priorities of the sources are defined in the project
properties.
Information
The calculation of the color of a line in the Runtime is done with the following
priority list:
1. Automatic Line Coloring
(highest priority, overrules all other settings)
2. Dynamic colors
3. Static colors
3.1.2.1 Example
In the following example Source 0 has the color blue and Source 1 has the color red. And Source 0 is
the source with the highest priority.
Source 0
Source 1
26 | 205
Automatic Line Coloring (ALC) - Topology
double width
double brightness
Example
The start point of a line has the coordinates (start point x/start point y): 150/100
pixels.
This results in a connection area (x / y): 147 - 153 / 97 - 103 pixels.
If the line start or end of this line and that of one or more other lines is within this area, the lines are
automatically connected without any further engineering. A mere overlapping of the connection
areas of the single lines is not sufficient!
27 | 205
Automatic Line Coloring (ALC) - Topology
In the following illustration the connection area is displayed graphically (the green lines are connected
to the black one, the red line not.
Information
Any number of lines can be connected in a connection area.
Attention
If a line is outside the connection area (e.g. the red line in the illustration), no
connection is established and there is no coloring of the line. So there will also
be no coloring for further lines.
Line crossings can easily be realized, if the ends of the lines are not in the connection area.
Attention
Use ALC elements only in un-rotated state because:
The calculation for the topological model for the ALC in the Editor is based on
the position of the elements in un-rotated state and without considering any
dynamics.
28 | 205
Automatic Line Coloring (ALC) - Topology
errors or conflicts in the screens. If error or conflicts should exist, corresponding error messages or
warnings are displayed in the output window.
Information
Double click the corresponding line in the output window. The screen with the
erroneous screen element will be opened automatically. If the erroneous screen
element is part of a symbol, the corresponding symbol is automatically selected.
In the error messages or warnings the corresponding elements are identified using the element
reference. This reference also serves as the link key for ALC aliases.
3.2 Configuration
To configure ALC:
1. In project properties, select ALC configuration the property in the Automatic Line
Coloring group
2. Click on the ... button.
3. The dialog for configuration is opened
29 | 205
Automatic Line Coloring (ALC) - Topology
30 | 205
Automatic Line Coloring (ALC) - Topology
The source colors from ID #10 are freely available for the process-technical elements.
Examples: Source "Generator" or "110kV". Add further colors to do this.
SOURCE COLORS
Parameter Description
Number Internal unique consecutive number, so that the source can be identified.
This number is given by the system automatically and cannot be changed.
Attention: The numbers 0 to 9 are reserved for the system sources and
must not be used user-specific.
Name Logical name for the source (e.g.: 'water' or 'grounded'). This name is also
31 | 205
Automatic Line Coloring (ALC) - Topology
Parameter Description
used when selecting the source number for Combined elements. You can
change the name by clicking it with the left mouse button. With this edit
mode is switched on. The changes are accepted with the Enter key or by
selecting another source.
Line color Line color of the respective source. This color is used for coloring lines,
polylines and as the outside color of tubes.
Fill color
Note: This checkbox can only be activated for the system source
GROUNDED. This check box is grayed out for all other sources.
Default: empty
Input range:
0 - 4000 KV
Decimal places must be separated by a (.).
Invalid entries are set to 0.
Negative entries are changed to positive.
32 | 205
Automatic Line Coloring (ALC) - Topology
Parameter Description
(arrow symbol)
CLOSE DIALOG
Option Description
Cancel Discards all changes in all tabs and closes the dialog.
The colors can be configured directly by entering the corresponding hexadecimal code or by using a
color palette.
The hexadecimal code describes the RGB color value and consists of the following. #RRGGBB.
Element Meaning
33 | 205
Automatic Line Coloring (ALC) - Topology
Information
The sequence in this list represents the priority of the sources, with the first
element having the highest priority.
To change the priorities of the single sources, they can be moved upwards or
downwards using the arrow buttons
Attention
Limitations when deleting the sources and resetting fault colorings:
Sources with ID between 0 and 9 are reserved for system sources. You can:
not be deleted:
not be reset as an erroneous color
Deleting sources
In order for sources to be able to be deleted, they must have an ID from 10.
Only the source with the highest ID can be deleted.
In order for erroneous colorings to be able to be reset once the cause has been
rectified, no system source colors can be used. A color for IDs from 10 must be
selected.
This setting is made using the Automatic Line Coloring/Mode for coloring project property.
STANDARD
The internal calcualtion of the topology (= graph search) starts with a source and goes through the
whole network, so that each closed switch (switch variable has the value 1) per direction is only gone
34 | 205
Automatic Line Coloring (ALC) - Topology
through once, so no cycles occur. In doing so, each node visited (=line segment) is colored with the
source color. The directly-related lines are marked as a node.
If the search finds a switch that has a switch variable with one of the following states, the UNDEFINED
color is used for coloring from this point onwards:
INVALID [value: any],
is invalid [value: 3]
is in intermediate position [value: 2])
The graph search is now continued in the same form. Each switch is gone through just once per
direction with the UNDEFINED color. Therefore each switch can be gone through a maximum of four
times per source:
1. with source number in forwards direction,
2. with source number in backwards direction,
3. with UNDEFINED in forwards direction,
4. with UNDEFINED in backwards direction,
With the Prior supply setting, only lines that have a supply from at least one source but not clearly
from any one source are colored as UNDEFINED. If a line is supplied with at least one source, it can
no longer receive an UNDEFINED color from another source.
35 | 205
Automatic Line Coloring (ALC) - Topology
Example: Using the ALC configuration and the current states (ON/OFF) of sources, Switches,
disconnectors etc. the Command Processing can automatically detect that the execution of a
command would lead to the status "Voltage towards ground". In this case, the execution of the
command will be suppressed.
The check of the topological interlockings for the Command Processing in the ALC Model is
configured individually for each project. This configuration also determines whether a user can unlock
an interlocking (provided they also have the authorization level for unlocking for the action).
The settings made here apply globally, for the whole Topological Model. The following conditions are
available:
Parameter Description
36 | 205
Automatic Line Coloring (ALC) - Topology
Parameter Description
ground grounded potential is connected to and one or more connections in
the ALC model are live or undefined.
This ensures that the voltage towards the ground in a line is also
detected by an intermediate transformer.
Examples:
After switching the element, one side is grounded and the other
is live.
Disconnector under Interlocking is active if certain conditions have been met for switching
load the disconnector on (= close) or off (= open).
Note: The numbers of the sources are configured in the dialog of the
37 | 205
Automatic Line Coloring (ALC) - Topology
Parameter Description
ALC configuration project property in the Source tab.
Note: This interlocking is only available for the optional load flow
calculation.
Interconnect various The interlocking is active if ALC sources with different nominal voltages
voltage levels are switched together.
This check is carried out using the complete network (not just for the
switch).
STATUS
Status in the Options column allows you to configure user interaction options in the Runtime. Select
the behavior in the Runtime via a drop-down list.
38 | 205
Automatic Line Coloring (ALC) - Topology
Parameter Description
do not check No check and interlocking is carried out for this condition.
unlockable The interlocking conditions are checked for this condition. If the
condition applies, the interlocking goes into operation. The interlocking
can be unlocked by a user in the Runtime, for instance, on a Command
Processing type screen. This unlocking action is logged in the
Chronological Event List.
not unlockable If the interlocking goes into operation for this condition in the Runtime,
this cannot be unlocked by a user. The action (such as a switching
command) is not carried out.
A check is carried out to see whether the topology before switching to ON is in one of the following
states:
Both line segments are supplied/grounded by the same source;
One line segment does not receive any voltage and the other line segment is grounded;
A line segment is not under load.
39 | 205
Automatic Line Coloring (ALC) - Topology
A check is carried out to see whether the topology after switching to OFF is in one of the following
states:
Both line segments are supplied by the same source;
One line segment stops receiving voltage, the other line segment is grounded;
A line segment stops being under load.
Information
Meaning of "not under load"
In addition, all of the following conditions must be met for the status of not
under load:
All sources and consuming devices connected to the line segment are
switched off.
No transformer may be connected to the line segment.
It must not be a line that is only connected to this disconnector (one open
line).
40 | 205
Automatic Line Coloring (ALC) - Topology
Parameter Description
Number Unique internal serial number for clear assignment. This number is given by
the system automatically and cannot be changed.
Note: Only the last color in the list can be deleted. Standard colors cannot
be deleted.
The colors can be configured directly by entering the corresponding hexadecimal code or by using a
color palette.
41 | 205
Automatic Line Coloring (ALC) - Topology
The hexadecimal code describes the RGB color value and consists of the following. #RRGGBB.
Element Meaning
42 | 205
Automatic Line Coloring (ALC) - Topology
Property Function
Source Drop-down list to select the source and display the colors
currently assigned. These colors cannot be changed here.
New color for source Click on the color and a dialog opens to select a color.
43 | 205
Automatic Line Coloring (ALC) - Topology
topological model, but do however get their ALC colors from the model. These screen elements
relate to an alias of the screen elements from the overall screen.
Attention
Aliases are only valid within a project.
This means that for symbols that contain elements with links to aliases:
If the symbol is added to the general symbol library or the library in the global
project and edited there, all ALC alias information is lost without notice!
CREATE ALIAS
Aliases can be created for the elements:
Line
Polyline
Pipe
Combined element
Attention
An ALC alias cannot be created if a period (.) is contained in the name of the
selected screen.
Solution: Replace the period in the screen name with a different character, such
as an underscore for example (_).
44 | 205
Automatic Line Coloring (ALC) - Topology
Parameter Description
Screen Click the ... button and a dialog opens to select a screen.
Available ALC elements Shows the elements that belong to a screen with the element
name, type of element and function type. Clicking on an element
selects an alias.
Filter
45 | 205
Automatic Line Coloring (ALC) - Topology
Parameter Description
Selected alias Shows the selected element in the field of Available ALC elements.
Information
When selecting an element for a new alias, only elements and screens from the
same project that the alias was defined in can be selected. Elements from
subprojects or parallel projects are not available.
The detections from protective devices are displayed with special coloring with the source colors ID 1
and ID 2. The coloring is only carried out if the detection is applicable for a protective device whilst
the lines are live. At the same time as this, the detections are set to the additional variables for display.
Faults can thus also be shown graphically in a zenon screen. This display can, for example, be carried
out by the configuration of an additional combined element that is only visible if the corresponding
status (= invalid status) is the case.
46 | 205
Automatic Line Coloring (ALC) - Topology
The display must be reset manually (acknowledged) once the protective devices have retracted the
reports.
Information
This function is only available when both the "Energy Edition" and the
"Automatic Line Coloring" modules are licensed.
ERROR DETECTION
Error detection runs locally on each computer in the zenon network. Each client in the network has its
own independent model and can therefore search for ground faults and short circuits in different
parts of the topology.
47 | 205
Automatic Line Coloring (ALC) - Topology
COLORINGS
Errors can be displayed with special coloring of the lines in the ALC if the notifications are received
whilst the lines are live. In the Runtime, the color assigned by ALC changes automatically as soon as
the status of the line changes. The colorings configured can be changed in the Runtime via the
Change ALC source color (on page 42) function.
Messages are processed in the order in which they arrive. In the event of conflicts
The colors for displaying errors take priority
short circuit messages have priority over ground fault messages
48 | 205
Automatic Line Coloring (ALC) - Topology
The network parts that may have a ground fault are derived from the ground fault indication from
ground fault detection devices (ground indicators, protective device that records ground faults). The
following is applicable for ground fault indications:
Each device can have one, two or three ground fault indications.
This ground fault indications are handled either by permanent indication processing or by
wiper indication processing.
For directional ground fault detection devices with direction detection, the direction can be
lagging or leading in relation to triggering.
Leading:
Initially, the indication is determined using the direction (forwards and/or backwards)
and reported, then the indication by means of triggering.
Lagging:
First the triggering, then the direction is determined and reported.
Information
A network component that may have a ground fault is then no longer
considered to have a ground fault if this has been successfully connected.
ENGINEERING
Information
In order to also be able to limit ground faults in mixed networks, only one area
with ground faults is searched per path, starting with a source.
49 | 205
Automatic Line Coloring (ALC) - Topology
The coloring mode is defined via the Mode of the search for ground faults property.
This setting can be changed in the Runtime via the zenon API object model. In doing so, the ground
fault search is recalculated once again.
50 | 205
Automatic Line Coloring (ALC) - Topology
Note: The distinction between permanent indication processing and wiper indication processing is
only how the message is processed, not its type. Wiper indication processing thus does not need to
relate to a wiper bit.
Attention
To suppress intermittent ground faults, ground fault indications that occur in
intervals of less than 2s are ignored.
Each time a recording is made, a set value is sent to this variable. In doing so, the values are as
follows:
Value Meaning
0 no ground fault
Information
To reduce problems in network operation, the variable linked here should be a
local variable.
51 | 205
Automatic Line Coloring (ALC) - Topology
Note: If you address a directional ground fault recognition devices with Forwards in both directions,
this is then considered erroneous and ignored.
52 | 205
Automatic Line Coloring (ALC) - Topology
53 | 205
Automatic Line Coloring (ALC) - Topology
54 | 205
Automatic Line Coloring (ALC) - Topology
55 | 205
Automatic Line Coloring (ALC) - Topology
The network parts that are potentially subject to short circuits are deduced from short circuit reports.
A short circuit identification device (short circuit indicator, protective device) can have one to three
short circuit messages. For directional short circuit indication devices, the direction can be lagging or
leading in relation to triggering. A network component that potentially has a short circuit is then no
longer considered to have a ground fault if this has been successfully connected.
ENGINEERING
To configure the short circuit search:
1. assign the combined element that represents the switching element to the Function type
switch (on page 56)
2. Define ground fault display (on page 57) andtriggering of ground fault detection (on page
57)
3. Set up the function for acknowledgment of ground fault message (on page 58)
56 | 205
Automatic Line Coloring (ALC) - Topology
Each time a recording is made, a set value is sent to this variable. In doing so, the values are as
follows:
Value Meaning
0 No short circuit
57 | 205
Automatic Line Coloring (ALC) - Topology
58 | 205
Automatic Line Coloring (ALC) - Topology
select the variable you wish to import in the dialog that opens
link the function to a button
3.5.3 Curb
With curbing activated, corresponding ALC elements are visualized in Runtime with an additional
border if a ground fault or short circuit is present on the line. The coloring is visualized with the
configured ground fault or short circuit color.
If there is both a ground fault and short circuit on the ALC element, the color is displayed according
to the configured priority. Neither ground fault nor short circuit is displayed. Configured Effects are
also supported for the display in zenon Runtime.
59 | 205
Automatic Line Coloring (ALC) - Topology
NOTE ON CONFIGURATION
The following configuration is recommended for a clean graphic display of the curbing in Runtime:
Draw ALC line elements.
As a result, it is possible that the display of one line protrudes into another.
60 | 205
Automatic Line Coloring (ALC) - Topology
The selected element is moved to the background. As a result, the correct display of the line elements
is guaranteed.
Whereas the ALC base model identifies nodes and beams, this special model also detects lines and
their parameters.
Fault locating from protection is possible by means of configuration in the zenon Editor. Therefore, for
example, the location of the error can be visualized in a zenon screen with a marker.
In addition, this ALC model provides properties and methods for external evaluation of the fault
location and load distribution via API.
61 | 205
Automatic Line Coloring (ALC) - Topology
The simple topological model of the ALC base module for the coloring is supplemented by an
expanded topological model that includes all lines as separate beams. The extended topological
model is stored as ALC.xml and can be read by external applications this way. ALC.xml contains two
sections:
GraphElements:
contains the extended topological model without aliases
GraphAliases:
contains only the aliases
If a short circuit occurs and the reactance is not equal to zero, the search for the location of the short
circuit starts:
Short circuit:
Reported by a linked variable for the Triggering property (Short-circuit detection
properties group of the element).
Reactance:
Value of the variable (from the REAL data type), that is linked to the Reactance value from
protection property (Topological properties properties group of the element) .
Information
Impedance-based causes of error can no longer be applied to mash networks in
this topology.
62 | 205
Automatic Line Coloring (ALC) - Topology
All lines are run through in the corresponding direction. The direction results from negative or
positive reactancy. The respective reactancy of the line run through is deducted and the search
continues until the residual reactancy is less than the reactancy of the next line. A marker is drawn in
the line. The position of the marker corresponds to the residual reactancy.
If there is no reactancy value, no marker is set in the event of a short circuit indication. In order for the
marker to be drawn correctly, the area must not be under load during the short circuit indication.
With lagging short-circuit indications, the reactancy is only evaluated if the notification of direction
has been received or the timeout of 2 seconds has expired.
The search is canceled if an open shift element or another ALC element has been found. Each part of
the network and each individual line therein must only run once per trigger, there are thus less
markers that occur in the line network than would be possible.
When reloading, markers that already exist are drawn at the same point as before reloading. Changes
to the configuration of the fault locating are only evaluated after another short circuit.
If a short circuit indication is removed and acknowledged, all markers of this short circuit trigger are
deleted.
Note: Depending on the order of the rectification of the short circuit and switching on again, marker
can remain drawn in, although the line is no longer colored as a short circuit.
With impedance-based fault locating, an error marker is set at the location of the failure in the
topology. The location is calculated from impedance, on the basis of the expanded topology.
To configure the impedance-based fault location in the zenon Editor, carry out the following steps:
1. Activate impedance-based fault location:
a) To do this, click on the project in your Workspace.
a) Click on the Automatic Line Coloring project property group.
b) Activate property Fault location based on impedance.
Optional:
Configure the Maximum acceptable current overload [%] of the line.
Configure the setting for the line overload interlocking in the ALC configuration
property. This interlocking is not activated by default.
2. Configure the display of the screen markers with the project properties:
a) Screen marker size
63 | 205
Automatic Line Coloring (ALC) - Topology
GRAPHELEMENT
ID Description
64 | 205
Automatic Line Coloring (ALC) - Topology
ID Description
React Reactance
Resist Resistance
GRAPHALIAS
ID Description
3.6.4 API
In the object model of the zenon API, the objects ALCGraphElement and ALCGraphAlias are available for the
model. These contain the same information as the XML file. These objects can be accessed in the ALC
engine via:
GraphElemCount()
65 | 205
Automatic Line Coloring (ALC) - Topology
GraphAliasCount()
GraphElemItem()
GraphAliasItem()
The switch/disconnector to be switched and the new status is transferred. The event can fill LockResult,
bUnlockable and bsText in order to display a violated interlocking condition. If the event handler returns
tpBusy in LockResult, the event handler is queried until it no longer provides tpBusy, however for a
maximum of 10 seconds. The interlocking is active after 10 seconds. The interlocking text and
unlockability are reported back in bsText and bUnlockable.
SCREEN MARKER
Marker elements can be inserted into screens via the zenon API. These marker elements are available
for the following elements:
Line
Polyline
Pipe
The GUID of the marker, which is supplied by AddMarker(), identifies the marker uniquely and serves
as both the element name (with the prefix "$MARKER_") as well as the key for deletion via DelMarker().
The markers inserted via API are saved in the project according to the screen. Attention: Saving is
not remanant, i.e. only until Runtime is restarted.
The markers set there are displayed regardless of the monitor on which the screen is opened. The
markers are treated internally as normally operable screen elements. Mouse events are called up for
this.
The appearance of the markers is set using the project settings in the Automatic Line Coloring area
of the project configuration:
Display type of the screen marker: Triangle, circle, square, cross
Screen marker size: Size in pixels:
Line width of the screen marker: Width in pixels
66 | 205
Automatic Line Coloring (ALC) - Topology
Marker color: is defined via the index in the marker color table (on page 41), that is located in
the properties of the screen elements in the Automatic Line Coloring group
The configuration is carried out in the zenon Editor by setting the parameters of ALC properties for
the corresponding screen elements (combined elements, line, ...). The parameters for these
configurations of the load flow calculation are set in the corresponding properties for ALC screen
elements (on page 69) in zenon Editor.
In zenon Runtime, the calculation (on page 88) is carried out on the basis of the Newton-Raphson
method for iterative and approximative solution of non-linear equation systems. The problem is set
with complex values: applicable for N bars, of which G with generators, is 2N - G - 1 real unknown
(voltage on the load bars, phase of the bars). The nominal voltage without phase moving is assumed
as a starting value.
The results of the load flow calculation are output to the variables that are linked at the respective
ALC element. This configuration continues to serve as a basis for subsequent (n-1) calculations. The
result of this calculation can be visualized with the "load flow (n-1) calculation" screen type in Runtime.
3.7.1 General
The topological network was displayed with the help of ALC elements.
A requirement for the load flow calculation is that the topological network is configured with the help
of ALC elements. A zenon screen (single-phase or three-phase ALC single line screen) with combined
elements and lines must be present. The properties relevant for load flow calculation must be
configured correctly for these screen elements.
67 | 205
Automatic Line Coloring (ALC) - Topology
For generators
The reactive power and the phase.
For lines
Current (average value)
Power factor
Voltage at the input and output
Active power at the input and output
Reactive power at the input and output
For transformers:
Current at the input and output
Voltage at the input and output
Active power at the input and output
Reactive power at the input and output
The values calculated this way can be output to variables that are linked to ALC elements.
The current can also be given as an alternative to power: I = S/U. This is not necessary if the current is
already available via linked variables.
The load flow is calculated using the connection branches between the busbars. to do this, the
generators, transformers and loads are assigned to the bars and the branches (also parallel) are
formed from the lines and switches. Lines with zero impedance are integrated into the busbars.
The following measured values are necessary for the input of the load flow calculation:
For generators and sources:
The active power and the voltage.
A generator is the reference for the phase; the active power is also calculated for it.
Note: Sources do not have output values that can be calculated.
For consuming device (loads)
The active power and reactive power.
For transformers:
The coil ratio and the phase shift.
The parameters for nominal power [MW], power loss, magnetization losses, stepped switches
and phase shift can be set in the Editor.
For lines:
The complex impedance (resistance and reactance).
68 | 205
Automatic Line Coloring (ALC) - Topology
For capacitors:
Increment (s), interconnection (v) and position (i).
This results in the applied reactive power as a measured value: Q = s*v[i].
3.7.2 Requirements
It is recommended that the load flow calculation is carried out on a powerful computer with a 64-bit
operating system.
With the ALC elements, there must be sufficient variables linked to measured values.
69 | 205
Automatic Line Coloring (ALC) - Topology
Information
If command input is used in the project, a line overload (on page 35) topological
interlocking can also be configured.
70 | 205
Automatic Line Coloring (ALC) - Topology
3.7.3.1 Transformers
The ratio of the coil numbers of a transformer correspond to the ratio of the primary voltage to
secondary voltage. The information about voltage is gained from the ALC configuration of the
source colors and the parameters for this do not also need to be set up separately.
Attention
A transformer must be configured for load-flow calculation with:
Nominal output [MW] > 0
Loss reactive power [MVar] > 0
If the transformer does not have tap changing, the properties minimum tap change = maximum
tap change = nominal tap change = 1 should be configured; the tap change increment can be
0%. The transformer thus remains configured to 100% nominal output.
Note: If there are voltages due to deviations from the ratio as a result of the construction type, the
difference can be given as increment. You can thus set the parameters of the transformer in such a
way that it always remains at one stage next to the nominal.
Tap changer of the power transformers are for dynamic changes to the transmission ratios. In order
to take the tap change into account, the following settings should be set for load flow calculation:
Minimum tap change - the lowest level.
Maximum tap change - the highest level.
Nominal - the level at which the transformer provides the secondary nominal voltage.
It is the level at which the voltage ratio is equal primary voltage and secondary voltage; and
equal to 100%.
Tap-change increment [%] - percentage indication of the increment per level, based on
nominal = 100% - upwards and downwards.
Current position tap change - a variable that provides the current position of the tap
change from the process; for example, a 'step position information' of the IEC870 driver or
*/TapChg/stVal[ST] of the IEC850.
Example:
A transformer with 380 kV primary voltage and 110 kV secondary voltage:
200 MW nominal output
Minimum tap change = 1
71 | 205
Automatic Line Coloring (ALC) - Topology
Note: in practical operation, the fluctuating primary voltage is the trigger for an amendment of the
tap change, in order for the secondary voltage to stay close to the nominal value (after deduction of
the voltage loss in the transformer itself, due to impedance and transferred power).
THREE-COIL TRANSFORMER
To configure a three-coil transformer for the load flow calculation, create three combined elements
with the ALC Function type Transformer.
In zenon Editor, a check is carried out to see whether a transformer that has been defined as a
three-coil primary transformer has been connected correctly: to the output of two further
transformers that are not three-coil - primary transformers. An error message is shown in the output
window if there is an error.
Attention: For correct calculation, it is important that all transformers of a three-coil transformer
have the same nominal output.
72 | 205
Automatic Line Coloring (ALC) - Topology
Link the variables for the result of the load flow calculation in the Load flow calculation
transformer output properties group in the properties for the inputs:
Current Input [A]
Voltage input [kV]
Active power input [MW]
Reactive power input [MVar]
Note: The primary transformer should also have a source color for ALC.
The three-coil transformer only uses increments from the primary transformer (and ignores them for
the secondary transformers). The phase shift is only evaluated by the secondary transformers. The
losses correspond to the transformer's data sheet or the following calculation: Nominal voltage
multiplied by the short circuit voltage [%] / 100.
With secondary transformers, power losses are stated in relation to the primary coil. The losses
between the secondary and the tertiary coil are taken into account when calculating the triangle with
the primary transformer.
Magnetization losses are only taken into account by the primary coil.
For correct calculation, it is important that all transformers of a three-coil transformer have the same
nominal output.
73 | 205
Automatic Line Coloring (ALC) - Topology
The result of the load flow calculation can be transferred to the output parameters for a transformer
with linked variables.
The setting of the parameters for the load flow calculation is configured in the following properties of
the ALC screen elements in the Automatic Line Coloring project properties group .
Transformer
The configuration for this is carried out for process-technology elements in the combined
element with ALCFunction type transformer in the Load flow calculation transformer
output properties group
Electric line
The configuration for this is carried out for lines (lines, polylines etc)with the Color from ALC
property activated in the Load flow line result properties group.
74 | 205
Automatic Line Coloring (ALC) - Topology
OUTPUT OF VALUES
All calculated values are output at each component (line or transformer) on a path.
75 | 205
Automatic Line Coloring (ALC) - Topology
A line or a transformer is removed from the network for the (n-1) calculation. The Load Flow
Calculation module calculates the resultant load for the other components (lines and transformers) in
this network and visualizes the consequences. This is determined for all lines and transformers.
The list in the screen can serve to find the part of a path that is under most load (line or transformer,
line load column) after a component is taken from the network (line failure). The load from line
failure that is displayed is in relation to the probability with which the component could fail. A
switching (or failure) in the area of line failure would lead to a transfer of the load flow to line load.
ENGINEERING
Steps to create the screen using the properties if the screen creation dialog has been deactivated in
the menu bar under Tools, Settings and Use assistant:
1. Create a new screen.
To do this, select the New screen command in the tool bar or in the context menu of the
Screens node.
76 | 205
Automatic Line Coloring (ALC) - Topology
(N-1) LIST
Parameter Description
Breakdown actual [A] Current load of the components (in amperes) that has been
taken from the grid for the calculation.
Failure line/transformer Name of the components (line or transformer) that has been
taken from the grid for the calculation.
Failure line load capacity Capacity of the component that has been taken from the
network to calculate the load (calculated diversion of the
load flow).
Load (n-1) [%] Calculated load (in percent) of the component (line or
transformer) that is placed under the most load when
another component fails (line failure).
This entry shows the calculated load, i.e. the value after
another line is taken from the network.
Load (n-1) [A] Calculated load (in amperes) of the component that is placed
under the most load when another component (line or
77 | 205
Automatic Line Coloring (ALC) - Topology
Parameter Description
transformer) is loaded most.
This entry shows the calculated load, i.e. the value after
another component is taken from the network.
Load actual [%] Current load of the component that would be placed under
the most load (in percent) after another component (line or
transformer) has been removed from the network.
Load actual [A] Current load of the component that would be placed under
the most load (in amperes) after another component (line or
transformer) has been removed from the network.
TRANSFORMER
78 | 205
Automatic Line Coloring (ALC) - Topology
ENGINEERING
Steps to create the screen using the properties if the screen creation dialog has been deactivated in
the menu bar under Tools, Settings and Use assistant:
1. Create a new screen.
To do this, select the New screen command in the tool bar or in the context menu of the
Screens node.
79 | 205
Automatic Line Coloring (ALC) - Topology
ENGINEERING
80 | 205
Automatic Line Coloring (ALC) - Topology
In this dialog, you configure the content of the load flow (n-1) calculation for the view in zenon
Runtime.
COLUMN SETTINGS
Parameter Description
CLOSE DIALOG
Options Description
OK Applies settings and closes the dialog.
81 | 205
Automatic Line Coloring (ALC) - Topology
Option Function
Add -> Moves the selected column from the available ones to the
selected items. After you confirm the dialog with OK, they
are shown in the detail view.
Add all -> Moves all available columns to the selected columns.
<- Remove Removes the marked columns from the selected items
and shows them in the list of available columns. After you
confirm the dialog with OK, they are removed from the
detail view.
<- Remove all All columns are removed from the list of the selected
columns.
82 | 205
Automatic Line Coloring (ALC) - Topology
Option Function
possible.
CLOSE DIALOG
Options Description
OK Applies settings and closes the dialog.
AVAILABLE COLUMNS
Option Description
Available columns List of the available columns via Column selection. The
highlighted column is configured via the options in the
Settings area.
83 | 205
Automatic Line Coloring (ALC) - Topology
SETTINGS
Option Description
Possible settings:
Left: Text is justified on the left edge of the column.
Centered: Text is displayed centered in the
column.
Right: Text is justified on the right edge of the
column.
Note:
These settings are only available for configurable
lists.
In addition, the respective focus in the list can be
signalized in the Runtime by means of different text
and background colors. These are configured using
the project properties.
Text color Color for text display. Clicking on the color opens the
color palette to select a color.
Background color Color for the display of the cell background. Clicking on
the color opens the color palette to select a color.
Lock column filter in the Runtime Active: The filter for this column cannot be changed
in the Runtime.
84 | 205
Automatic Line Coloring (ALC) - Topology
Option Description
CLOSE DIALOG
Option Description
Cancel Discards all changes in all tabs and closes the dialog.
85 | 205
Automatic Line Coloring (ALC) - Topology
The following is applicable for the operation of the load flow (n-1) calculation screen in zenon
Runtime:
The list can be sorted
Click for the sorting on the column heading.
The sorting sequence is visualized with an arrow symbol next to the column heading:
Arrow upwards: ascending sorting
Arrow downwards: descending sorting
Another click on the column heading reverses the sorting order.
The list can be filtered
To filter the list:
Enter the desired filter term in the input field below the heading. The default description
of an empty field is filter text (shown in gray font).
In the Editor, go to Representation in the properties of the respective list properties and activate the
checkbox of the Automatic word wrap property.
86 | 205
Automatic Line Coloring (ALC) - Topology
LINE OVERLOAD
The interlocking is active if switching would lead to to a current overload of a line or a transformer in
the ALC network.
If several components are overloaded, only the name of the component with the highest overload is
displayed as an interlocking text.
Example:
Limit value current Calculated Maximum Load [%] Exceedance of Interlocking
carrying capacity value [A] acceptable permitted limit
[A] current overload value [%]
[%]
5 5 0 100 0 No
Interlocking text: The line [component name] will be overloaded by [40.20]% more than permitted
Depending on whether a line or a transformer is overloaded, the interlocking text is amended
accordingly.
In both cases, the interlocking is active and the following interlocking text is displayed:
87 | 205
Automatic Line Coloring (ALC) - Topology
The interlocking is active if switching actions lead to an interconnection of two ALC network areas with
different nominal voltages of the ALC sources.
INTERCONNECT GRIDS
The interlocking is active if switching actions lead to an interconnection of two ALC network areas with
different generators. Process-technical generator elements with different numbers of sources are
considered different generators.
Information
You can find further details on topologic interlockings in the Configuration of the
topologic interlocking (on page 35) in this manual.
3.7.7 Calculation
The calculation is carried out on the basis of the Newton-Raphson method for iterative and
approximative solution of non-linear equation systems. The problem is set with complex values:
applicable for N bars, of which G with generators, is 2N - G - 1 real unknown (voltage on the load
bars, phase of the bars). The nominal voltage without phase moving is assumed as a starting value.
The iterative calculations of the Jacobian matrix and results are repeated until the L2 norm of the
correction vector is less than one thousandth.
VALIDATION
When compiling the Runtime files in zenon Editor, a consistency check of the ALC configuration is
carried out. Error notices are displayed in the Editor's output window.
88 | 205
Automatic Line Coloring (ALC) - Topology
The search is ended with end elements (consuming device, capacitor, end element) and
transformer.
All sources that are found in the process are in the same network segment. With a
transformer - depending on the side - the source or the source for reverse feed is taken into
account.
All transformers that have only been taken into account on one side during the first stage of
the search are the starting point for renewed network investigation on the side that has not
been taken into account.
In doing so, the search takes the defined voltage into account, not the source ID.
System sources are not taken into account during this search.
Note that this output is always applicable for the last zenon screen. The sequence of the screens
results from the basis of the topological model. After correction of this configuration error, it is
recommended that the messages in the output window are heeded once again. You can find further
information on the output messages in the Warning messages and LOG entries (on page 92) chapter.
At the start of the load flow calculation, the busbar model is built up from the current topological
model and the switch positions or conditions and loads of sources.
After identification of the busbars, a check is carried out to see whether they meet the minimum
requirements for the load flow. If the requirements are not met, these busbars are removed from the
model.
Minimum requirements:
The busbar determined for a generator must provide a positive net power: Power of the
generator less power of the loads.
Active busbars must have an outgoing connection for sources and generators.
There must be an incoming connection for drains.
Passive busbars must have at least two connections.
VERIFICATION OF JUNCTIONS
The strongest bar of the busbars with generators is selected as a reference bar (slack-bus). All busbars
connected to the reference bar are combined into a partial network. The network is subdivided into
zones with the same voltage by transformers. The partial networks are numbered consecutively. As a
result, all generator bars are assigned to a network.
89 | 205
Automatic Line Coloring (ALC) - Topology
In doing so, the voltage requirement must be met (by the source, generator, transformer or line)
without contradictions. The network cannot be calculated if this is not the case. In the event of a fault,
a warning message is generated in the LOG file for each busbar.
For each partial network that contains at least one load bus, the per-unit system is created, arranged
according to voltage and output of the reference bar. The complex admittance values of the existing
connections are incorporated into the calculation matrix. In addition, the known values for PQ or PV
are also applied. All unknown values are considered as 0.
The current that flows through two bars corresponds to voltage multiplied by admittance; the
transferred power is calculated from the product of the voltage and the voltage difference, taking into
account the phases, as a complex value, multiplied by the admittance. The difference between the
power fed-in and the power received in a branch is the power loss. Current and power are output to
all ALC line elements between the bars. There is a power loss on each ALC line element with
impedance, corresponding to the proportion of the total impedance. With a serial connection of
several impedance-loaded lines, the fed-in power is output at the first element. The power taken is
output at the last line element. Because only one power output or the current (input or output) can
be output, the fed-in power is output at the first ALC line element. The power taken is output at the
last ALC line element.
All calculated values are written to the linked variables. Existing values of a previous calculation are
overwritten by the most recent result of calculation or set to the value 0 if the element is no longer
under load.
90 | 205
Automatic Line Coloring (ALC) - Topology
A current flows through each line path, according to the difference in voltage, multiplied by
the admittance of the path.
The fed-in power per path is calculated from the initial voltage, multiplied by current.
The power loss on the line path is distributed to the lines proportionally.
3.7.7.4 Transformers
A transformer forms a connection between two busbars, the same as a line. A line with impedence
can be directly connected to a transformer.
A transformer calculates its admittance from power loss, nominal voltage and nominal power. The
admittance is used in the same way as the impedance of a line. The load-independent magnetization
losses are treated as a shunt with transformers. Increment and phase shift are taken into account as a
complex factor when creating the admittance matrix. If several transformers are switched in parallel
between two busbars, the inputs and outputs (primary an secondary side) must be on the same side.
Transformers switched in parallel must have the same output.
Note: In doing so, increment and phase shift must correlate.
Each three-coil transformer has a busbar on the secondary side, to which to transformers must be
connected with their primary side in a star shape. Together, these three transformers generate entries
in the admittance matrix (from the triangle to the star).
The three-coil transformer only uses increments from the primary transformer (and ignores them for
the secondary transformers). The phase shift is only evaluated by the secondary transformers. The
losses correspond to the transformer's data sheet or the following calculation: Nominal voltage
multiplied by the short circuit voltage [%] / 100.
With secondary transformers, power losses are stated in relation to the primary coil. The losses
between the secondary and the tertiary coil are taken into account when calculating the triangle with
the primary transformer.
Magnetization losses are only taken into account by the primary coil.
For correct calculation, it is important that all transformers of a three-coil transformer have the same
nominal output.
The following is applicable in general for three-phase systems: Apparent power MVA = √(MW^2 +
MVar^2) = √3 * kV * A / 1000
With transformers, the reverse feed is also taken into account (load flow of secondary or tertiary coils
to other coils).
Note: For a load-flow calculation, the transformer must have these parameters:
Nominal output [MW]: > 0
91 | 205
Automatic Line Coloring (ALC) - Topology
3.7.7.5 Capacitors
The following is applicable for the calculation with capacitors:
When creating the model, a capacitor is treated the same as a load: it is connected to a
busbar – alone or with other loads or sources.
The increment is the nominal power: the interconnection and position result from the
multiplier and the current power as a product.
The load flow calculation determines the equivalent admittance from nominal power,
multiplier and nominal voltage. The admittance results in the actual voltage as well as the
fed-in reactive power.
ENGINEERING
The following warning messages are displayed in the output window of zenon Editor when compiling.
Warning message Description
ALC: Screen ‘screen01’ - The transformer Configuration error for a three-coil transformer.
'trafo01' is defined as a three-coil
There must be precisely two further transformers
transformer but has faulty engineering.
(that are not themselves 3-coil primary
transformers) connected
ALC: No voltages defined for the sources in Configuration errors due to missing voltage levels
the project. of the user-defined sources with the ALC source
configuration.
ALC: The following sources with different Configuration errors due to different voltage levels
voltages are in the same network segment: in ALC screens.
92 | 205
Automatic Line Coloring (ALC) - Topology
ALC: At least one of the sources must define Configuration error with missing voltage levels in
the voltage of the area: %s the ALC source configuration.
CALCULATION
The following warning and error messages are logged in the LOG file and can be evaluated with the
Diagnosis Viewer.
Power Flow Bus voltage Warning No voltage or no unique voltage is defined for the
missing or different sources used at a busbar. The linked variables serves as
at[source var: gen138kV] identification.
[transformer
var: trans30/110kV]
Power Flow Bus voltage Warning A busbar does not have its own source and is not
missing connected to any busbar that has a uniquely defined
voltage.
Cannot calculate load Error The load flow calculation cannot be carried out. Possible
flow due to invalid switch reasons:
positions or measured
Missing or invalid measured values
values
Undefined status of a switch (not on or off)
Calculation of load flow Error The load flow calculation could not achieve a conclusive
did not converge to a result.
result.
93 | 205
Automatic Line Coloring (ALC) - Topology
ALC: At least one of the sources must define the voltage of the area:
94 | 205
Automatic Line Coloring (ALC) - Topology
If, at the nodes in the topological network, not all power in or out is known for a load flow calculation,
the State Estimator can reconstruct this from several measured values in the network.
Electrical parameters (power outputs) are estimated by the State Estimator. To do this, the State
Estimator measures the values of all measuring points on lines.
The measured values are configured in the properties of the functional ALC elements. These
elements include the combined element as well as all lines. Variables that display the
measured values for the calculation of the state estimator are linked in these properties.
These measured values are the basis for the calculation of the load flow in the topological
network.
The result of the State Estimator is written to the same variables as the result of a load flow
calculation. This result is also used for a topological interlocking check, as well as the (n-1)
calculation.
Starting from a given Jacobian matrix of the Load Flow Calculation module, the voltages and phase
differences of the individual busbars are calculated.
The State Estimator determines approximated values for voltage and phases. These calculated values
are compared to the measured values. The calculation is repeated recursively until the precision
required for the State Estimator has been achieved. This precision is 0.0001.
The state estimator can only detect whether the precision has been achieved if an over-determined
network that is fully observable has been configured. Over-determined means that the state estimator
has received more relevant measured values than the result values (voltage and phase per bus) that it
must calculate. A network is thus observable if each line has meaningful measured values or both
buses - without measured values of this line - are known or can be calculated.
The state estimator starts calculations - like the load-flow calculation- with an assumed phase 0 on
each bus and a known voltage; or the nominal voltage as an estimated value. Because a current does
not provide information on the phase or the direction of the power, the entry of the measured value
95 | 205
Automatic Line Coloring (ALC) - Topology
of the current is not sufficient for calculation. The effective power or reactive power to lines is needed
for the calculation.
Attention: The circumstances of the measured values of the voltage, current and power factor (cos
phi) being known cannot be used to calculate effective power and reactive power from them: this is
because the direction of the resultant load flow remains unknown, the prefix of the power is not
known.
Only once the power is measured for all sources and drains on a bus are measured can this net
power continue to be used in the calculation. This is the case regardless of active power or reactive
power. The power can thus only be determined at a bus directly if only one line or only the net power
is unknown. Otherwise there is a recursive estimate.
Information
The State Estimator module builds on the configuration for the Load Flow
Calculation (on page 67) module.
The State Estimator needs entry of measured values of the effective power or reactive power to
lines.
Note: Because a current does not provide information on the phase or the direction of the power,
the entry of the measured value of the current is not sufficient for calculation.
Configure the measured value of the power factor (cos phi) if either effective power or reactive
power at the same point are known (i.e. if not both). The state estimator will then calculate the other
power (with the same prefix) and use it for further calculations (no longer the power factor).
Even if the voltage, current and power factor (cos phi) are known for a line, it is not sufficient in
order to calculate the measured values of the effective power and reactive power - the prefix of
the power remains unknown. The voltage and the current are taken into account in further
calculations.
96 | 205
Command Sequencer
4 Command Sequencer
The Command Sequencer module allows commands from the Command Processing module to be
compiled into processes in zenon, to visualize these and to execute user interactions if required.
You can find an extensive description of the module in the command sequences manual.
5 Command Processing
Command processing serves primarily for the secured switching of variables in energy technology.
'Secured' means that there is a check whether the switching operation is allowed, according to the
configured interlocking condition and the dynamically updated topology (current physical state of the
topological network). The configuration of the topology and the topological commands is done via
the ALC (Automatic Line Coloring) (on page 7) module.
Note: You can find step-by-step instructions for the creation of a configuration of simple command
processing in the Project configuration in the Editor (on page 102) chapter.
Command groups always contain a set of defined actions, which are usually adjusted to a specific
data point (a specific device) . For example, different command groups can be defined individually
and centrally for different topological elements (switch/disconnector etc.) .
A data point for the command processing always consists of 2 physical variables:
Response variable:
The response variable is defined centrally for the whole command group. It represents the
status of the topological element, for example whether the switch is open or closed.
Command variable:
A defined command variable is assigned to every action inside a command group. The driver
uses this variable to write commands to the controller.
Depending on the action to be executed, these commands are executed on one of the two variables.
97 | 205
Command Processing
Example
Switching command on
Sends the command/the new value to the command variable. The success of
the triggered action can be checked by means of the response variable.
Note: You can find a description of the command actions in the action types (on page 136) section.
NAME REPLACEMENT
To simplify or to generalize the definition of the variables, the variable references (for command
variables, response variables and condition variables) can be defined using a name replacement. In
doing so, wildcards '*' can be used. Wildcards are only permitted as a prefix or suffix, i.e. *xxx or xxx*.
As a result of this flexible definition, generally-valid procedures can be defined, which are then
applicable for several data points. The number of command groups that must be defined is thus
reduced considerably.
Example
Definition of the command variables - action variable property = *_CO
Definition of the response variables - name of the response = *_RV
In the Runtime, the command processing automatically adds the name of the
response variable, which is shown/selected in the process screen, to the name of
the command variable. The names of both variables differ only in their endings.
Other variables - that have been linked to dynamic elements in the command processing screen - can
also be replaced in the Runtime.
You can find further details on this in the Substitution of additional variables (on page 121) chapter.
EXECUTION
In general, the single-step operations are executed by means of the context menu of an element in
the topology (such as a switch). A further typical use is the opening of a Command Processing screen
instead of a write set value dialog.
98 | 205
Command Processing
The two-stage operations are executed by means of a context menu or the Command Processing
screen type.
Specific control elements are available for this screen type. They enable an individual optical and
functional design of the command processing. This way, individual actions, for example, can be
assigned to action buttons directly. After this, these actions can be selected by the user directly. This
screen type also includes the necessary requirements in order to carry out functions such as
unlocking, two-step execution, two-hand operation, locking etc.
Note: You can find detailed information about the process in the Command Processing screen in the
Process in the Command Processing screen (on page 193) chapter.
Such a screen is called up on the screen element of the response variable by means of its context
menu or instead of the write set value dialog. The call can also be by means of the Screen switch
function that is linked to a button.
This results from the command groups and the current status of the topological model ALC
configuration - Interlockings tab.
Note: You can find additional information on the procedure of a command in the Execution of a
command (on page 182) chapter.
In the zenon network, there is synchronization for actions from the command that concerns a certain
response variable, by activating the NET_SEL status bit. The simultaneous execution on the same
object (same variables) by different users is thus precluded. Parallel execution on different response
variables is supported.
Editor profile Opens the drop-down list for selecting a Editor profile.
99 | 205
Command Processing
Information
Command groups can be exported, imported and copied and pasted using the
clipboard. The same applies for actions and their interlocking conditions, even
different command groups.
100 | 205
Command Processing
New auto/remote command Creates a new auto/remote command and opens the
properties.
New forced command Creates a new forced command and opens the properties.
New set value input Creates a new set value input and opens the properties.
New status input Creates a new status input and opens the properties.
New replace Creates a new replace action and opens the properties.
New manual correction Creates a new manual correction action and opens the
properties.
New block Creates a new block action and opens the properties.
New release Creates a new manual correction and opens the properties.
Check response value Creates a new Check response action and opens the
properties.
101 | 205
Command Processing
Remove variable Deletes the selected variable from the group after requesting
confirmation.
Please also note, for your project configuration in the zenon Editor, the information in the
introduction for this manual. (on page 97)
102 | 205
Command Processing
103 | 205
Command Processing
The user can now click on the configured screen element in Runtime (right-click for context menu) to
trigger the actions of the command.
Information
For tests too, use a driver that supports the evaluation of the COT (Cause of
Transmission - Cause of transmission) in full, for example the IEC
60870-5-101_104 driver. COT evaluation is an enhanced functionality to monitor
communication during a command using the Watchdog timer settings. The
status bits COTx of the command variables can also be evaluated in the reaction
matrices multi-numerical and multi-binary.
104 | 205
Command Processing
The command processing screen is created in the Editor configuring a new command processing
screen. (You will find more information on the pre-defined screen types in the manual
Screens/Pre-defined screen types'.)
The screen Command Processing is used for user interaction via command during the runtime (one
and two-step command). It allows the user to perform all activities that are necessary for command
execution. This can be, for example, the unlocking of an active action or the confirmation of the
execution of a two-step command.
Information
When using one-step command processing, a context menu can also be used.
The screen type command processing is then not required in the project.
You can use specific control elements (on page 192) for this screen type, which allow all user actions
necessary for command processing and which visualize current information about the status of the
action to be executed (e.g. display of the switching direction).
It is opened as an empty one after a new screen has been created. You create the default control
elements via the Elements (screen type name)/Add Template menu.
ENGINEERING
Steps to create the screen using the properties if the screen creation dialog has been deactivated in
the menu bar under Tools, Settings and Use assistant:
1. Create a new screen.
105 | 205
Command Processing
To do this, select the New screen command in the tool bar or in the context menu of the
Screens node.
5.3.1.1 Template
Several pre-defined templates are available for Command Processing screens.
If you want to edit the list directly using the monitor, activate the Multi-Touch functionality.
You can find detailed information in relation to this in the Configure interactions chapter.
106 | 205
Command Processing
Template Description
List field templates (left) Displays all pre-defined and user-defined template.
Preview and description (right) Shows preview and description of the selected
template.
ENERGY
Template Description
107 | 205
Command Processing
Template Description
including all interlockings:
Response variables
Action variables
All interlockings (list)
Actions
Buttons for selection and execution
CLOSE DIALOG
Parameter Description
Delete existing screen elements Behavior when applying the template for
configuration in the Editor.
Active:
Pre-existing elements in the screen are deleted
when the template is applied.
Default: inactive
108 | 205
Command Processing
ACTION/COMMAND
Control element Description
Switching direction The switching direction configured for the active action. The
texts are documented with the setting “Switching direction”.
INTERLOCKINGS
Control element Description
Note: This control is shown only when the screen is in the step
'Unlock'.
109 | 205
Command Processing
SELECT/EXECUTE
Control element Description
110 | 205
Command Processing
Parameter Description
Response variable
Action variable
Example:
111 | 205
Command Processing
Parameter Description
Bits for COT
Status SE_870 during Select
Status PN bit in the event of a negative
response from the PLC
112 | 205
Command Processing
Parameter Description
Action/command
Status: On or Off
113 | 205
Command Processing
Parameter Description
Other: empty
Interlockings
Select / execute
114 | 205
Command Processing
115 | 205
Command Processing
Set action variable List Defines the state to be set for the action
status 'Status default' for the switching
direction 'None'. The states are set to
the current status and updated when
changes occur.
State: On or Off
Other: empty
116 | 205
Command Processing
- No action is active.
117 | 205
Command Processing
- No action is active.
118 | 205
Command Processing
User identification Input field For entering the user identification for
the lock.
Lock code Input field For entering the user-specific lock code.
119 | 205
Command Processing
120 | 205
Command Processing
When configuring a project in the zenon Editor, you can find the Replace in screen property for
each command group or command action. This properties are in the Command Processing screen
property group.
Variables are then substituted in the command processing screen according to the following rule:
The text from the property is substituted in the variable name that is shown in the command
field.
It is substituted with a text which command found in the name of a response variable or
action variable in place of the placeholder *.
Example:
In the editor, variable linked in the screen: xxx_BlkOpn
replace in screen property: xxx
In Runtime, in the variable name, the xxx is substituted with the current content of *.
Several texts to be substituted are configured separately with a semicolon (;). These phrases are
substituted from left to right when calling up a screen in Runtime. The following phrases are ignored
as soon as a text for replacement is applied.
121 | 205
Command Processing
Note: Substitutions only work if all variables/functions to be replaced are already present when the
screen is saved. If, when calling up the command processing screen in Runtime, there is no variable
name with the configured text, there is also nothing substituted.
Substitution via the screen switching function can be combined with the substitution of command
processing. The following rules apply for substitution:
If the screen is called up with a Screen switch function, the substitution configured in the
function is used in Runtime.
If the screen is called up using the Command Sequencer module or the menu, Runtime gets
the screen and the substitution from the project configuration in the respective replace in
screen property. If there is no substitution configured in the command action, Runtime gets
the screen and the substitution from the command group. If there is also no replace in
screen configured in the command group, there is no replacement.
When clicking on a dynamic element that has new set value input configured, Runtime gets
the screen and the substitution from the setpoint input command action. If the Command
Processing group does not contain a write set value action, the replace in screen of the
status input, lock or command input group is taken into account.
Information
You can get further information on substitution via the screen switching function
in the command processing chapter in the functions and scripts manual.
Several texts to be substituted can be configured separately in the replace in screen property using a
semicolon (;). These phrases are substituted from left to right when calling up a screen in Runtime.
An example with 3 scenarios for which different events have been configured:
Name of the response variable: abc_RV.
Configured response variable for command group: *_RV
Additional variables in the screen: xyz_lock, xy_Switch
Scenario 1
Configured replacement in the screen: xyz;xy
Existing variables in the project: abc_lock and abc_Switch.
Result: Display of the variables in the screen: abc_lock and abc_Switch.
Scenario 2
122 | 205
Command Processing
In order for the Command Processing module to be used, the respective response and command
variables must be assigned to a command group. This assignment is made in the variables node =>
for the variable => in the Write set value properties group => in the drop-down list of the
Command Group property.
Ensure that this assignment is configured for both response variables and command variables.
Note: Errors in project configuration are listed in the output window of the zenon Editor when
compiling the project. In Runtime, invalid or incompletely-configured commands for the variables
concerned are not called up.
For the response variables and command variables, the set value can only be set using the command
processing; it can no longer be set directly using dynamic screen elements. For screen elements that
the user triggers with command processing, the Command value must be selected for the Write set
value via property or a context menu must be linked. To do this, it is preferable to use the screen
elements that are linked to the response variable (not command variable). This guarantees the
availability of all actions of command processing (provided the user is authorized).
Note: The screen element can also be used if the response variable is "read-only", from an IEC 60870
controller for example. A combined element with a circuit breaker symbol can trigger the command,
although the response variable itself cannot be changed. The position of the switch (open/closed)
corresponds to the value of the response variable.
Despite the linked command processing, the values of the command variables also cannot be written
to directly:
via the RGM
via API
123 | 205
Command Processing
Information
If a variable is linked to a command group, it is not possible to describe the
variable with the zenon Write/modify set value function.
Exception: If a write set value (on page 140) command with switching
direction set value has been created, the zenon function calls up this action in
the background without the command processing screen being called up. This
means that the command conditions (on page 160) are checked (but neither
internal, nor topological interlocking conditions). An active interlocking condition
prevents the writing of a set value. During the execution of an action, the
NET_SEL status bit is not set and the Select Before Operate variable property is
ignored.
This is also applicable for the value entry of a variable that is linked to a dynamic
element if Element was selected for the Write set value via property.
GENERAL EXAMPLE
The command group "DPI one stage" was configured with the name of the response variable *_RV
and the switching actions in this group with the name of the action variable *_CO.
In the SCADA project, variables with the name ied9_100_RV (position of the switch) and ied9_100_CO
(command for switch) are configured. And the ied9_100_RV variable was linked to a screen element
with Write set value via = command.
Link the two variables ied9_100_RV and ied9_100_CO with the Command Group in the Write set
value command group property to the "DPI one stage command group". The respective wild card * is
replaced with "ied9_100 in the Runtime.
Other variables, such as ied9_101_RV and ied9_101_CO (etc.) can thus be linked to this command
group. In Runtime, the command groups are then instanced several times and can be operated
independently.
Furthermore, you can also define the optional variables of the command conditions and the breaker
tripping detection with the placeholder *, for example X01: *_EnableClose.
124 | 205
Command Processing
Information
As a result of the different use of limit values/reaction matrices for the command
variable/return variable, individual switching directions can be displayed for the
actions. Always depends on which of the variables the desired action is to be
executed.
5.3.2.1 Limit values and reaction matrices for switching direction texts
The command uses the limit value text of the command variables for the display of the switching
direction in the command screen and in the context menu.
In the context menu in particular, these texts give the user a better understanding or a better
overview of the actions that are available in Runtime (e.g. 'Command: Open disconnector')
You therefore have the possibility to issue different texts for each variable that uses the same
command group. Several variable pairs (each response variables and action variables) can thus only
use one command group and can nevertheless be displayed in an individualized manner.
If no limit value has been created for a variable and no reaction matrices are linked, the action uses a
standard text:
Switching direction of the Standard text
action
None @NONE
OFF @OFF
ON @ON
DIFF @INTER
DIST @FAULT
DIR @DIR
125 | 205
Command Processing
Information
As the switching direction texts are read out from the limit value settings, they
are completely language switchable.
Attention
The variables used in the command groups must be in the same project in order
for the command processing to work properly.
If you do use a variable from another project (e.g. subordinate project in multi-project
administration), the command processing group, the response variable, the action variable and the
action-specific screen ('Command Processing' screen) is expected to also exist in the other project.
Information
You can also use project-overlapping variables for the interlockings by the
process. The above limitations apply only to the variables of the command
group.
After creating a new command group, it is added to the detail view of the project manager with
standard name "Command group + index". The index is replaced by a consecutive number.
Note: This name serves for the unique identification in the system.
Information
You can assign any name you like to the command groups. However, it must be
ensured that the names are unique within the project: applies for general
interlockings and command groups.
126 | 205
Command Processing
Parameter Description
Variable name of This is the variable name or the mask for the replacement of the
response response variable.
Example:
*_RV
*/stVal[ST]
STATUS PROCESSING
Parameter Description
Set status PROGRESS If activated, status bit In progress (PROGRESS) is written for
actions command and Manual correction. The value that the
status bit is set to depends on the switching direction of the
action.
The status bit is set when checking the interlockings and remains
until the execution of the action has been completed.
This also implies that, in the case of Select Before Operate, the
status PROGRESSis only set after a successful
'Select'(SE+COT_actcon) and then remains set during watchdog
127 | 205
Command Processing
Parameter Description
timer or edge delay.
Watchdog timer There is the following setting for this drop-down list:
none:
The watchdog timer (on page 182) is deactivated. However
with Select Before Operate, there is a wait for
confirmation of the 'Select' (SE+COT_actcon) and it is
then ensured that 'Select' has ended (PLC has reacted to
'Execute' COT_act in the envisaged time). If 'Select' has not
yet been ended, the 'Select' is deactivated a 'Cancel'
(SE+COT_deact) is sent to do this.
Response variable only:
The value of the response variable (RV) is used to check
whether the process was successful.
Cause of transmission only:
The status bits for Cause of Transmission (COT) of the
command variable are used to check whether the process
was successful.
COT and RV:
Both conditions defined above.
Screen title from The Identification of the response variable is shown in the
response variable screen title. This only happens when there a title was configured
for the screen at the frame.
Note: Actions called up via the context menu open, for the
confirmation of the second stage or interlocking text, a screen
that has been defined for the action. The screen linked here is
then only offered in the context menu if no screen has been
linked in the command action directly.
128 | 205
Command Processing
Parameter Description
detection
Active: The response variable is monitored for a change from <>
0 to 0. The identification only sets the status bit CD_TRIP (50) to 1
if:
status bit CB_TR_I (51) is not 1, otherwise the
identification is suppressed.
status bit PROGRESS(10) is not 1, otherwise the value
change of the response variable is considered a result of
its own command.
Suppress detection Entering the formula with which the detection of a breaker
tripping can be suppressed. A click on button ... opens the
formula editor.
All variables from the Variables node in the command group can
be used for the formula. Variables from all projects loaded in the
Runtime can be used. Name replacements with '*' - as with the
definition of the interlocking conditions of an action - are
possible.
Information
The response and action variables do not need to be in the list of the variables
linked to the command group. Their names need only be configured for the
command group and in the action.
129 | 205
Command Processing
Information
Because the command conditions and the general interlockings (standard
functionality - without Energy Edition) are saved in the zenon Editor with the
same structure, the check-out symbol (allow changes) is set to exactly the
same for both nodes in the project tree. All actions on the command conditions
also apply to the general interlockings and vice versa.
Variables marked as deleted are considered as not existent for the compilation of the command
conditions. During compiling, the respective error messages are displayed in the output window in
the zenon Editor.
All further settings for the actions are made in the properties window. Some of the properties are
inactive, depending on the action type.
Action settings
Action variable Variables on which is written. For some actions, this is the
response variable. In this case, the field is locked.
Click on the ... button to open the dialog for selecting a variable.
Default: No Allocation.
Action type Shows the type of command. For editing, only approved for
command action type; possible settings are switching command
130 | 205
Command Processing
Parameter Description
or pulse command.
Return state/switching Defines the expected value and the status of the response
direction variable after action execution.
Default:
Command Defines the value that is written to the command variable with
the Command action.
Default:1
Default: 1000 ms
Modifiable states List of the states which can be modified with the Set status
action.
Command Processing
screen
Screen Command Processing screen that is used when the action has
been carried out using the context menu of the element. If no
screen is entered, the screen, which is entered in property
Screen for the command group, is used. An engineered screen
131 | 205
Command Processing
Parameter Description
which is not available, creates an error message when creating
the Runtime files. In this case the action is not taken over.
Default: none:
Replace in screen Substitution rule for command screens: The target of the
substitution is configured in this property. The text that is to be
replaced is configured.
Default: No Allocation.
Nominal/current value If this is active, there will be a check whether the value of the
comparison response variable already matches the Return state/switching
direction. If this is true, an unlockable interlocking variable is
shown.
Only executable if set <> Deactivates an action button in the command screen if the value
132 | 205
Command Processing
Parameter Description
actual of the response variable already matches the value of the set
value. If the value of a response variable is changed, the
corresponding action button is active again.
The same also applies for context menu entries. The
corresponding command action is not displayed in the menu
here.
Default: inactive
two-stage If active, the action is executed after clicking (in Runtime) on the
Execute 2nd stage button. If not active, the action is executed
after releasing the last interlocking or, if there is no upcoming
interlocking, immediately.
Default: inactive
Close automatically If this is active then the screen is closed automatically after action
execution.
Menu ID The menu ID is used for the creation of context menus in the
Runtime.
Note: If two actions are fitted with the same ID, they are tagged
with a special symbol in the action tree. They can then not be
133 | 205
Command Processing
Parameter Description
called up by the context menu.
Ignore \"two-stage\" With the property activated, two-stage actions are executed
immediately during execution in the Command Sequencer
module without opening a command input window. The
two-stage execution configured for the command processing is
ignored in the process.
Skip action for identical With the property activated and if the actual value corresponds
set value and actual value to the expected target value, the action is skipped in the Runtime
in a command sequence.
Options
Suppress CEL entry If this is active, no entry in the CEL will be made when executing
an action.
Default: inactive
Unit is seconds
Default: 30
Timeout can be canceled Allows the cancellation of the timeout in runtime monitoring.
134 | 205
Command Processing
Parameter Description
has been received - the Cancel button cancels the watchdog
timer.
Default: inactive
Attention
The identification of the action types in the Menu ID must be clear, so that they
are clearly identifiable in the context menu (on page 151). If two actions have the
same ID, they are tagged with the special symbol M in the action tree.
Hint
Note:
When selecting individual properties, you receive additional information
about functionality in the embedded help.
Defined actions and commands can be exported into XML and imported
from XML. They can thus be easily archived or reused in other applications.
The status can be set using the command status input.
135 | 205
Command Processing
The system provides a variety of actions. The following action types can be defined for the command
groups:
Action type Remark
New command (on page Switching command or pulse command. The value of the command
137) variable is used to write the configured command processing status to
the controller.
New auto/remote The remote command is forwarded from the Process Gateway or the
command (on page 139) zenon API to the command processing and processed as a switching
command.
New forced command The forced command action type allows the setting of a command,
(on page 140) even if the response variable is empty, OFF, NT or INVALID .
New set value input (on Writes a desired numerical value to the command variable.
page 140)
New status input (on Changes the status bits of the response variable. Only applicable for
page 142) status bits in the modifiable status list.
New replace (on page Changes the status of the response variable to substitute value
143) (ALT_VAL) and writes an alternate value to the response variable.
New revision (on page Sets the REVISION status bit of the response variable.
143)
Note: Alarm handling is suppressed in the revision.
136 | 205
Command Processing
New manual correction Sets the value of the selected response variable according to the
(on page 144) switching direction.
New block (on page 145) Switches off the response variable (OFF status bit).
New release (on page Sets substitute value replacement value (ALT_VAL) to 0.
145)
Note: as a consequence, the response variable has the value
received by the controller again.
Check response value Checks the status of the response variable without executing an
(on page 146) activity.
New lock (on page 146) The response variable is locked or unlocked for further actions when a
valid locking code is entered.
Note: The action types are listed in the above breakdown in the sequence in which the action types
are offered in the zenon context menu. However the sequence in the main window is alphabetical.
In the detail view of command processing, the actions in the tree are shown with the respective
selected switching direction and configured action value.
Attention
The identification of the action types in the Menu ID must be clear, so that they
are clearly identifiable in the context menu (on page 151). If two actions have the
same ID, they are tagged with the special symbol M in the action tree.
When the command is executed, a value (0 or 1) is written to the command variable. The value to be
written is configured with the Command property.
137 | 205
Command Processing
This action type supports Select Before Operate and Watchdog timer. The Select Before Operate
depends on the corresponding property of the command variable and on the driver.
The Watchdog timer, depending on the configured type (via response variable for example) can also
check whether the response variable changes its value according to the command. The value which
that is then expected for the response variable as a result of the command is to be defined under the
Return state/switching direction (on/off/none) property.
Switching Value of the response variable after a command has been executed
direction
None No specific value change is envisaged. The action is ended if the configured
Timeout has expired.
If the response variable already has the value 0 before the command is
executed, an internal interlocking condition is reported if the
Nominal/current value comparison property is activated.
Note: If runtime monitoring is configured with the values none or via cause
of transmission, there is no wait for the response variable.
On The action expects value 1 and (in accordance with Nominal/current value
comparison) is compared to value 1.
With pulse commands a value is written to the PLC twice. The second time, after the configured
Edge delay, there is an automatic reset to 0 or 1 (depending on the configuration of the Return
state/switching direction property). However this does not happen if the Select Before Operate
property has been activated for the command variable. The energy logs do not offer any options to
execute a Select together with the pulse command. If the Select Before Operate property has been
activated for the action variable, a pulse command acts in the same way as a switching command.
Note: The pulse command is not recommended for Energy drivers. The pulse command should only
be used with a PLC that expects a pulse instead of an edge.
Note
If, during the execution of the action, the current value of the response variable
is different to the one defined in the switching direction and the switching
direction was defined to be on or off, the in progress (PROGRESS) status bit is
set. To do this, activate the Set status PROGRESS property in the command
group.
138 | 205
Command Processing
Hint
Activate, in the command group, the Write status bits to command
variables property.
Note: When an interlocking takes effect, a (language-switchable) CEL entry with the configured text
is created.
API
The VBA interface can use the IVariable::SetValueWithStatusEx method and the status bits to be transferred
to decide whether writing should be either via the command input or directly via VBA programming.
If the status bit NET_SEL (bit 8) has already been set (the command processing screen is open
for example), the command is not executed.
If the status bit is not set, it is set and writing is executed by Command Processing or
commands are forwarded to the Command Processing.
The response value of the method provides information on whether command processing
has been activated or whether the command has been executed.
139 | 205
Command Processing
In order for this method to be able to execute command processing, there must be a remote
command action whose switching direction corresponds to the transferred set value. The actual value
written to the driver, Select etc, results form the properties of the action.
Information
You can find further information in the Select before Operate chapter in the
Process Gateway manual, chapter IEC870 Slave.
Attention
Erroneous configuration or use of a forced command in the Runtime can have
wide-ranging consequences for the equipment. You should thus always use this
command with care and protect it with user authorizations.
140 | 205
Command Processing
DIR Set value is written directly. You define the value which should be written
with the help of function Set value of the action.
Set value Value of the command processing screen of the Set value control element
is written to the action variable.
Information
If a variable is linked to a command group, it is not possible to describe the
variable with the zenon Write/modify set value function.
Exception: If a write set value (on page 140) command with switching
direction set value has been created, the zenon function calls up this action in
the background without the command processing screen being called up. This
means that the command conditions (on page 160) are checked (but neither
internal, nor topological interlocking conditions). An active interlocking condition
prevents the writing of a set value. During the execution of an action, the
NET_SEL status bit is not set and the Select Before Operate variable property is
ignored.
This is also applicable for the value entry of a variable that is linked to a dynamic
element if Element was selected for the Write set value via property.
For further information, read the information in the Apply actions (on page 148) chapter.
141 | 205
Command Processing
Attention
When writing the set value with the switching direction DIR, neither the limits
of the linked variable are checked, nor is a check carried out to see whether
write set value is permitted for this variable.
Off The states configured in the Modifiable states list are all reset to 0.
On The states configured in the list Modifiable states are all set to 1 (active).
None The status bits configured in the Modifiable states list must be defined in
Runtime in the command processing screen with the help of the Set action
variable status control element. Each status bit is defined individually using a
checkbox in the control element.
In single-stage execution, the status bits are set by clicking on the
Execute button or when pressing the action button (if configured).
In two-stage execution, the status bits are set when the Execute 2nd
stage button is clicked on.
If you change a status bit in Runtime, the change is logged in the Chronological Event List (status
including value). The language of these messages can be switched in the Runtime.
Information
The status input action type always triggers a write of the response variable.
In addition to the status input action type, values of the status bits can also be modified by other
actions of the Command Processing.
Examples of this are:
The OFF and REVISION status bits should be changed by block action type (on page 145) or
revision action type (on page 143). With these actions, Runtime also receives the current
value of the response variable from the driver.
If a switch is locked using the Lock action, the status bit M1 of the response variable is set.
142 | 205
Command Processing
The CB_TRIP and CB_TRI_I status bits represent the result of the Breaker tripping detection
property.
The response variable is set to the status alternative value Alternate value (ALT_VAL). In addition, the
value defined by the switching direction is placed on the response variable.
Switching Alternate
direction value
Off 0
On 1
Diff 2
Fault 3
None 4
The substitute value is not sent to the connected hardware. It is for the substitution of values using
manually-collected information.
Hint
By switching the response variables to substitute values, it is possible to portray
the current topological status of the network in ALC whilst the SCADA system
was disconnected from the process.
Off Set to 0
On Set to 1
143 | 205
Command Processing
Note: the communication protocols in Energy (IEC60870, IEC61850, DNP3) preclude direct writing to
the response variable. The action will be unsuccessful in these drivers! To execute a command, the
setting of the value to a command variable is expected.
Switching Action
direction
Off 0
On 1
Diff 2
Fault 3
DIR The set value is written directly. You define the value which should be
written with the help of function Set value.
Set value Value of the Set value control element is written to the response variable
in the Command Processing screen.
Attention
When writing the set value directly neither the limits of the linked variable are
checked nor is it checked if the write set value is allowed for this variable.
Information
The In progress (PROGRESS) status bit is set if:
When the action is carried out, the current value of the response variable is
144 | 205
Command Processing
MANUAL CORRECTION
Manual correction is the manual correction of a non-remote switch in zenon. A variable is usually
corrected without a connection to the process. There should never really be an invalid i-bit pending
for such variables. It is indeed possible, but it makes no sense to correct a variable with a reference
to the process! The PLC will overwrite this value again.
Behavior:
Correction is completely normal value setting from the perspective of the driver.
Opposite of this - Action: Replace (on page 143)
The process value of a remote-controlled switch is primarily replaced with a replacement value
(due to maintenance work, for example).
The status bit of the response variable is set to OFF. The switched-off variables are no longer read by
the connected hardware.
If the response variable already has the OFF status bit set, the action of the status bit is no longer set
again when the action is executed once again. Runtime receives the current value of the response
variable from the driver.
The action can only be executed in the Runtime if the replacement value (ALT_VAL) is active for the
selected response variable (value: 1).
145 | 205
Command Processing
Whilst the Check response value action is executed, the standard key Cancel is unlocked in the
Command Processing screen.
In doing so - depending on the setting of the runtime monitoring (on page 187) - there is a wait
until the value of the response variable corresponds to the value of the checking direction -
switching direction action property. If the checking value is EIN, this is the value 1; it is the value 0
for OFF.
If no runtime monitoring has been configured (runtime monitoring= "none"), the set waiting time
(~24 hours) is the maximum time that is waited. Otherwise the action is ended and the TIMEOUT
status bit is set for the response variable.
If, after execution of the action in the Command Processing screen, the other actions are not
available, this is for the following reasons:
The timeout for runtime monitoring has not yet expired.
The response variable does not yet have the expected value (the value change has not yet
been received).
The action has not yet been canceled with the Cancel button.
Information
The Check response value action only serves to read the value of the response
variable without executing an activity.
If the response variable already has the value of the switching direction, the execution of the action
is recognized as completed. The other buttons in the Command Processing screen are thus
immediately available.
Note: If the response variable is set to OFF or Revision , the response value can nevertheless be
checked.
Note:
Can only be configured once per command group.
146 | 205
Command Processing
Interlocking conditions are not supported for the action. Locks can always be executed.
Information
If a switch is locked using the Lock action, status bit M1 is set.
If the Write status bits to command variables property is activated, the status
bit M1 is also set to the command variable.
A prerequisite for this is that users have a Lock code configured in the user administration module.
Locking or unlocking a response variable can only be done with the correct input of a Lock code.
The same variable can be locked by multiple users in parallel. Actions for the response variables are
possible only after alls locks have been unlocked by entering the Lock code.
A list of the currently-active locks can be shown in the command processing screen using a special
lock list control element.
The Lock code can be defined individually for every user. These parameter settings are set directly
for a pre-existing user in the Lock code property.
You can also set the Lock code for an existing user in the Runtime.
In the Runtime you cannot delete users who still have an active command lock.
Attention
Users can also be deleted in the development environment. This causes the loss
of the defined locks after restarting or reloading in the Runtime.
Users locked (activated) in the user administration cannot activate or deactivate command locks.
Information
Information about active locks is also synchronized in the redundant network
and is therefore available after a redundancy switch.
147 | 205
Command Processing
Hint
Always link all screen elements or functions that call up the command
processing to a response variable.
As soon as the variable is linked to a command group, direct input of set values is only possible using
a zenon screen of the command processing type or a context menu of the command processing type.
Exception: If the command group contains a set value input action with Return state/switching
direction 'set value', this action is used for the command variables (not response variables).
This happens:
When the Write/modify set value is called up
When calling up via a screen element; also if the Write set value via property of the
element has the value dialog box or element.
When calling up a set value context menu.
In doing so, the NET_SEL status bit of the response variable is not taken into account and no Select is
executed.
148 | 205
Command Processing
Attention
With this type of execution, a pending interlocking condition in the set input
value action prevents writing of a set value. In doing so, there is no interaction
with the user.
Parameter Description
Variable defining the The variable configured here defines the command group to be
Command Processing used. The screen determines the appropriate response variable
and the associated action variable via the name of the variable.
Initial step Defines the step (status) in which the command processing
screen is loaded.
Step 1
The screen is loaded and waits for action definition and
action execution. Action executions must be performed
manually by the user.
Block
The screen is opened in the command step for the action
block.
Note: Not all configurable control elements are visible
with this initial stage. You can find an overview of all
visible control elements in the blocked or locked elements
(on page 196) chapter.
149 | 205
Command Processing
Parameter Description
Attention
If there is no operating authorization for the command variable, screen
switching to a command screen is not possible.
The screen to be opened - a command processing screen - is defined at the command group of the
variable linked to the element. The corresponding action variable (or response variable) is
automatically determined from the response variable.
Information
With the Command Processing setting selected, the command processing screen
is called up instead of the standard Write set value dialog.
150 | 205
Command Processing
If no command group has been defined for the variable linked to the element, or the configuration
of the command is invalid, an error entry for the Diagnosis Viewer is generated. The screen is not
opened then.
Information
If a variable is linked to a command group, it is not possible to describe the
variable with the zenon Write/modify set value function.
Exception: If a write set value (on page 140) command with switching
direction set value has been created, the zenon function calls up this action in
the background without the command processing screen being called up. This
means that the command conditions (on page 160) are checked (but neither
internal, nor topological interlocking conditions). An active interlocking condition
prevents the writing of a set value. During the execution of an action, the
NET_SEL status bit is not set and the Select Before Operate variable property is
ignored.
This is also applicable for the value entry of a variable that is linked to a dynamic
element if Element was selected for the Write set value via property.
151 | 205
Command Processing
The menu must have an entry of the command processing action type. The display of the single
action is defined automatically by the menu. The display of the actions can be influenced selectively,
depending on the 'names' of the menu entry.
When creating a new action in the Command Processing (on page 97), a menu ID corresponding to
the action type and the switching direction for the Action type property is created and offered in the
drop-down list. If the content corresponds to an ID defined as standard text for the action type and
switching direction, the content is adapted if the action type or switching direction change.
Attention
The engineering of the Text property must be unique. If texts that are the same
are given, further menu items with the same name are not displayed.
Because automatically created menu items with the same action result in the
same text, there are macros (on page 156) available for these.
152 | 205
Command Processing
153 | 205
Command Processing
AUTOMATIC CREATION
Context menu entries that have been created using ID_CMD_AUTO automatically get a name
according to the following pattern: 'Action name’ plus 'Limit value text of the switching direction'.
If the menu entries are created from the table, a text must be defined for the entry in the context
menu for every action in the Representation/type property.
154 | 205
Command Processing
ACTION TEXTS
Action Text
Pulse command Text from the limit value text, according to the switching direction.
Switching
command
Manual If a switching direction (other than 'None') is defined, the text from the limit
correction value text according to the switching direction is displayed.
Replace
Revision Text from the limit value text, according to the switching direction.
Example
Displayed text for a switching command with defined limit value:
Information
All displayed texts are language switchable with the standard mechanisms.
See also: Which texts are language switchable?
All displayed menu entries are automatically sorted alphabetically.
The currently used command group is determined via the variable which is linked with the screen
element. If no command group is assigned to the variable or if there is no response variable, the
context menu is not displayed in the Runtime (a corresponding error message is entered in the
Diagnosis Server).
Information
The menu entries of the command processing are displayed depending on the
command group. The menu entry is showed only when the connected action
exists. Consequently, if the variable of the element is the command variable, only
the actions for the command variable plus the action Lock can be displayed.
Actions for the response variable are hidden automatically.
155 | 205
Command Processing
AVAILABILITY CONDITIONS
The menu entries are only released when the corresponding actions are executable. The following
conditions are requirements:
All menu entries are locked if the NET_SEL status bit of the response variable is active.
All menu entries are locked, when the response variable could not be determined.
All menu entries are locked, when the response variable has no value and could not get a
value within 30 seconds.
All menu entries are locked on the Web Client without write access.
Menu entries are locked when there is no connection to the Primary Server.
The menu entry connected to the Release action is locked when the ALT_VAL status bit of the
action variable is not active.
The menu entry connected to the Replace or Revision action, whose switching direction
matches the value of the action variable, is locked.
All menu entries, except the one which is connected with the action Lock, are locked, when a
change lock is active for the response variable.
When the REVISION status bit of the response variable is active, the actions Set value,
Replace, Correct, and Command are locked.
As long as a watchdog timer, an edge generation or an SBO is active for the command
group, all menu entries are locked. This results from the fact that the NET_SEL status bit also
stays active.
The sequence of the expansion is from left to right in the following priority.
1. $ALL$
2. $NOTE$
3. $TAG$
4. $REMA<Condition>$
5. $RDIR$
156 | 205
Command Processing
6. $DIR$
7. $ACT$
8. $NAME$
Macro Description
$NOTE$ The whole text including the macro is interpreted as a note. If the
resulting text is empty, the $ALL$ macro is used.
For the last macro, the note macro is again checked and the text to
the right of this including the macro is deleted.
If the resulting text is empty or only consists of spaces, the menu item
is not inserted.
$REMA<Status>$ <Condition> is a Rema or limit value state, the text of which is used as
a replacement.
The status can be a number between -231 and 231-1. Leading characters
and a prefix are permitted. If characters are contained that cannot be
converted to a number, or the number is outside the given area, the
menu item is not displayed.
$RDIR$ Text for the switching direction from reaction matrix/limit value as in
$DIR$ macro, with the exception of:
157 | 205
Command Processing
Macro Description
Text is taken from the rema/limit value for the on or off
statuses.
Action Correct direct
The text is taken from the rema/limit value of the status, which
corresponds to the value of the set point to be set.
$NAME$ The $NAME$ macro can be used to create menus and provides the
configured content of the Action name property, the language of
which can also be switched in the Runtime with a @ character.
Automatically created menu items are created as a menu ID with ID_CMD_AUTO. In this case, macros
must always be used, because otherwise only a menu item would be inserted.
COMPATIBILITY
Previous to version 6.51 text at automatic menu items was ignored. When converting projects that
were created with versions earlier than 6.51, the macros $ALL$$NOTE$ are automatically inserted
before the configured text. Therefore the menu items behave as before.
Note: If, for the $TAGS$ macro, no translation indicator (@) is contained, the complete text is
translated.
Menu entry for command The menu already contains a menu entry with the name
processing suppressed, because used in the command processing. Do not use that name
158 | 205
Command Processing
Parameters Description
name is several times in the menu! for any other menu entries for the command processing.
Menu entry for command There is already a menu entry with the same description
processing suppressed, because in the menu. Automatically created menu entries are not
description is several times in the added, when a menu entry with the same description is
menu! already there.
Text for menu entry cannot be The description of an automatically created menu entry
detected! could not be determined. This most probably indicates a
missing limit value text.
No command group linked to The variable associated with the screen element has no
variable of the screen element! command group or a no longer valid command group.
According error messages are given during compiling.
Response variable does not exist! The response variable used in the command group does
not exist.
Select cannot be activated! Status bit NET_SEL (8) could not be activated within the
timeout.
A command processing screen is then opened if one of the following criteria has been met:
If the action to be executed is Write set value, Status input with input or Correction, the
screen assigned to the action in the "Stage 1" step is opened. The status or the set value to
be written can then be defined in the screen.
If the action to be carried out is lock, the action-specific screen is called up with the lock step.
If an active locking condition prevents execution, the screen configured in the Unlocking step
for the action is called up. Execution is also prevented if Select Before Operate could not be
activated without errors.
If two-stage execution is configured for the action, the action-specific screen is called up in
the "Stage 2" step.
If no specific screen has been configured for the action, the screen that has been configured
centrally for the command group is opened.
159 | 205
Command Processing
Information
If none of the above-mentioned conditions are applicable, the action is executed
immediately, without further operations.
Information
An active interlocking condition prevents the writing of a set value.
Each action within a command group can also be supplemented with interlocking conditions. These
process-controlled interlockings prevent unwanted execution of actions, depending on the current
process state.
The following three parts are significant in a command group for the command conditions:
The action for which the conditions were defined and for which the internal interlockings are
also applicable.
The actions define which command is executed, on which variables these actions are applied
and set the parameters for the internal interlockings.
The condition variables, listed in the Variables node of the command group.
These define which variables can be used in the command conditions.
The command conditions, created per action.
These conditions contain one or more formulas that are based on condition variables. This
syntax is the same as the definition of the formulas in the Formula Editor. The execution of
commands can thus also be made dependent on the current process status.
160 | 205
Command Processing
Information
Configured general interlockings have no influence on this check.
In addition to the command conditions, the following interlocking types are automatically checked
before the action is executed:
Internal interlocking conditions
Topological interlocking conditions
Example
Internal interlocking is applicable if:
The response variable is already selected in the zenon network (has set
NET_SEL status from other network client).
The response variable already has the desired value and the action was
configured with Nominal/actual comparison.
In the SBO, the Select was rejected by the PLC (status bits: SE_870 +
COT_actcon(7) + N_CONF).
161 | 205
Command Processing
Information
If a name with *’ placeholder is used as an interlocking variable, this
placeholder is automatically replaced when the action is executed.
If the interlocking text or logical linking of a pre-existing command condition is deleted and the
warning message is not heeded when compiling, no text is shown in the entry in the interlocking list if
an action with precisely these settings is executed. The interlocking is active however.
Note: In the Runtime, missing text - in the entry in the All Interlockings list or in the interlocking
text screen element - is attributable to incorrect configuration of the command condition.
INTERLOCKING CONDITIONS
You can create interlocking conditions and link them to actions. These interlocking conditions use
variables that are linked in the Variables node of the command group.
In the first step, the variables or substitute names of the variables must be configured. These are used
later for the formulas of the command conditions. If the defined conditions are fulfilled by the linked
process variables, the user has the respective actions available during Runtime.
162 | 205
Command Processing
Information
Variables used in a formula cannot be removed from the Variables node of the
command group:
in a command condition
In the breaker tripping detection - detection suppression
ENGINEERING
A command condition is defined using formulas. Conditions that are not met cause the action to not
be executed in Runtime or to initially have to be unlocked by the user. The user must have the
corresponding Authorization level for unlocking for this.
Status already exists The state which should be set equals the current value of the
163 | 205
Command Processing
Parameter Description
response variable. This check is only active if the property
Nominal/current value comparison has been activated for the
action.
Differences between local Pulse command parameter not consistent (configuration error).
and global interlocking This interlocking cannot be unlocked.
164 | 205
Command Processing
Parameter Description
Locking administration not The administration of the lockings could not be loaded and is
valid invalid.
This interlocking is not unlockable.
Variable locked for Command Processing locked by response variable (status bit M1).
changes This interlocking is not unlockable.
SBO rejected The activation of the Select has been rejected by the PLC.
This interlocking is not unlockable.
Note: Only the Energy drivers signal the rejection of the Select -
the action variable gets the status bits COT_actcon(7) + N_CONF
+ SE_870.
Timeout for SBO activation Within the configured Timeout, no confirmation, either positive
or negative has been received for Select activation.
This interlocking is not unlockable.
Timeout for SBO Within the configured Timeout, no confirmation, either positive
deactivation or negative, was received for the deactivation (Cancel to the
Select).
This interlocking is not unlockable.
Timeout for execution There was no notice for finishing the action execution within the
engineered Timeout. The TIMEOUT status bit is set for the
response variable.
This interlocking cannot be unlocked.
165 | 205
Command Processing
Parameter Description
SBO expired The PLC has reported the expiration of the time for the SBO
activation. The second execution step will attempt to send a
Select again.
This interlocking cannot be unlocked.
Note: The numbers of the internal interlocking conditions are also shown in the system driver
variable [command] interlocking code, if this variable has been created in the project.
CREATING A FORMULA
Click on the Formula button in the status window. The formula editor opens
166 | 205
Command Processing
You select the bits for your formula in the left screen.
On the right, you find the operators for logical and comparative operations.
Information
Up to 99 variables can be linked in one formula. X01 to X99. The length of the
formula must not exceed 4096 characters.
value bits 32 value bits (from 0 -31) are available. They describe the variable value
bit by bit. For binary variables, only bit 0 is of importance, for SINT and
USINT only the bits from 0-7, etc.
Note: The value refers to the raw value (signal range) of the variables
and not to the converted measuring range.
State bits Here you find the most commonly used status bits. You find the exact
definition and use of the status bits in the Status Bits List (on page 168).
unreceipted Not acknowledged is treated like a usual status bit. But here it is listed
separately, because it does not belong to the classical variable statuses.
value and status In the formulas, all values (value bits and status bits) are treated as binary
values and can be logically linked with AND, OR, etc.
The total value and overall status are an exception to this. In order to
arrive at a Boolean expression, this total value has to be ORed bitwise (on
page 172) with a constant. For this, we use the operator &.
For the result 0 (FALSE) of this logical ORing, we get the binary value 0
(FALSE), otherwise 1 (TRUE).
Example: See the bitwise ORing example (on page 172) chapter
Info
The status bits NORM and N_NORM are only available in the formula editor and
cannot be engineered via the status.
If other settings outside the formula are set for the current status, they are combined with the formula
with a logical AND.
167 | 205
Command Processing
Information
Formulas with binary X values and bitwise linking can be used with a maximum of 2
binary values. If more values are required, the linking must be carried out without binary
X values.
Example:
But:
X01.00 AND X02.00 AND X03.00 AND X04.00 AND X05.00 -> works
168 | 205
Command Processing
169 | 205
Command Processing
170 | 205
Command Processing
Information
In formulas all status bits are available. For other use the availability can be
limited.
You can read details on status processing in the Status processing chapter.
In contrast to bit formulas, the technical range can be modified by a stretch factor -> (not equal '0' or
'1').
Operator Meaning
NOT Negation
OR logical 'OR'
171 | 205
Command Processing
Operator Meaning
2 NOT
3 AND
4 XOR/OR
Info
Up to 99 variables can be linked in one formula. X01 to X99.
Info
The status bits NORM and N_NORM are only available in the formula editor and
cannot be engineered via the status.
& AND
| OR
172 | 205
Command Processing
USUAL FORMULA:
X01.M1 OR X01.M2 OR X01.M3 OR X01.M4 OR X01.M5 OR X01.M6 OR X01.M7 OR X01.M8
This query can be made much easier by the logical ORing of the overall status.
LOGICAL ORING
X01.Status & 0xFF
0xFF corresponds to decimal 255; these are the first eight status bits (binary 11111111). If one of these
bit is set to 1, the result of this bitwise ORing is 1 (true), otherwise it is 0 (false).
If, for example, all user status bits except the user status bit M7 should be queried, the binary
statement for this would be: 10111111. Bit 7 is not of interest and is thus set to 0. This corresponds to
0xBF in hexadecimal. The expression for the formula is then: X01.Status & 0xBF.
Instead of ORing bitwise with a constant, the value can also be directly compared to a decimal
number. If the comparison is wrong, the binary value is 0 (false) otherwise it is 1 (true).
Example:
You want to find out if the value is equal to the constant 202: The formula is:
X01.value = 202
If the value is equal to the constant 202, the result of the comparison is 1 (True) otherwise it is 0
(False).
Note: The bitwise ORing works with the OR character (|), the same as in this example.
< less
> greater
= Equal
<> unequal
173 | 205
Command Processing
To the left and to the right of the comparison operator, there has to be a (total) value or a (total)
status, single bits cannot be used with these comparison operators.
Note: The combined element is not available in the Batch Control module.
Example
X01.value >= X02.value
The result is 1, if the value of X01 is higher than or equal to the value of X02
X01.value = 0x64
The result is 1, if the value of X01 is exactly equal to the numeric value 100 (= hex
0x64)
Example
Formula: X01.03 AND X02.03
This formula has the status TRUE, if both bit 3 of variable 1 and bit 3 of variable 2 both have the value
1.
Example
(X01.Value> X02.Value)
174 | 205
Command Processing
Example
(X01.Value> X02.Value) AND (X01.Value = X02.Value)
Example
(X01.Value> X02.Value) AND (X01.Value = X02.Value) OR (X01.03 = X02.03)
Example
Formula: (X01.Value = 111)
If a hexadecimal values is used, this is later transferred to decimal by clicking on OK. If a decimal value
is entered and confirmed, the value continues to be displayed as a decimal value after reopening.
Info
It is not possible to use a comma or a period when entering values.
Action Sets out which type of action is to be carried out via the corresponding menu
type item in the Runtime. Not all action types are available in the main menu, some
are only available via the context menu.
Acknowledge alarm (context menu only)
Command processing(context menu only)
Acknowledge flashing (context menu only)
175 | 205
Command Processing
Parameter Description
Show Extended Trend
Function
Help
No action
Write set value
VBA macro (context menu only)
Underline text: Entering a & causes the following characters to be displayed as underlined.
Plan entries
Attention
The engineering of the Text property must be unique. If texts that are the same
are given, further menu items with the same name are not displayed.
You can find details on the definition on context menus for command processing in chapter
menusCommand Processing.
176 | 205
Command Processing
For each variable that has a command group assigned, the command group for the operation in
zenon Runtime is instanced. In each instance, only the actions that can be triggered by means of this
variable are now included.
Example
The command group for the command variable now contains actions for the
respective command variable.
Information
Changes to the configuration for variables require the project to be recompiled.
During the replacement, the placeholder (wild card *) is automatically replaced by the name of the
variable that is assigned to the command processing.
EXAMPLE
During the configuration of a command group, the Variable name of response property is replaced
with the value *_RV. In the project, several variables are created according to the name pattern
xyz_RV, abcRV and bool_RV and linked to the command group.
Variable Part to be Result Comment
replaced
177 | 205
Command Processing
Information
When compiling the command group, the text that corresponds to the part to
be replaced is searched as follows:
The text is stipulated in comparison to the mask with the name of the
response variable.
Otherwise the text is defined by the action variable. In doing so, the first
action appropriate for the variable is applied.
If the text for substitution was determined correctly, the placeholder * is
replaced by this text.
Please note the following points in relation to this when naming variables:
The names of the variables and the mask should be selected in such a way that these can be
clearly assigned.
The names of the variables that are used for the response, command and condition variables
should be able to be created from the same replacement text.
If the response variable is replaced (was defined with a mask) but not the command variable,
particular care should be taken to ensure that the command group that is created for the
command variable also uses the expected response variable.
Additional validation of the response variable for the command group ensures that it only
contains actions whose action variable (for its compiled command groups) uses the same
response variable. Incorrectly-configured actions create a warning and are removed during
compilation.
178 | 205
Command Processing
Information
After an Error the object the caused the error is not available during runtime.
A Warning is generated when the project would cause a problem in the process
of Command Processing. This warning is generated regardless of whether the
project configuration would run in Runtime or not.
The following error messages can occur during the creation of the Runtime files:
Message text Description
<VERNAME>: Interlocking PV <VERRM> does Condition variable for general interlocking not
not exist! available.
(<AUFVAR>) response variable '<VARRM>' for The response variable must lie on a driver
179 | 205
Command Processing
(<AUFVAR>) response variable '<VARRM>' of The used response variable is not present or
command processing '<VERNAME>' not marked as deleted.
available!
(<AUFVAR>) Replaced action variable The action variable, after a replacement, is not
'<ACTVAR>' for action '<Action name>' of present or marked as deleted.
command processing '<VERNAME>' not
available!
(<AUFVAR>) Action '<Action name>' of the The action uses a variable which is not
command '<VERNAME>' uses the not existing present in the project or marked as deleted.
variable '<ACTVAR>’
(<AUFVAR>) Action variable '<ACTVAR>' for The variable assigned to an action must not
action '<Action name>' of command lie on an internal driver.
processing '<VERNAME>' uses a driver without
process connection!
180 | 205
Command Processing
(<AUFVAR>) Action '<Action name>' of the This message is a warning. No user actions
command processing '<VERNAME>' uses will be possible.
screen '<Bild GUID>('<Bildname>') which is
not of the Power type!
(<AUFVAR>) Action variable '<VARANME>' for The action variables used for a command
action '<Action name>' of command group group may only be connected to no
'<VERNAME>' uses another command group! command group or to the command group in
which they are used.
(<AUFVAR>) command variable <ACTVAR> The action variable used in the action has no
does not have a validly compiled interlocking! compiled command group. This message can
Action <Action name> removed. also be a follow-up error.
181 | 205
Command Processing
Information
You can find information such as the execution of a command that influences
the display and availability of the control elements in a command processing
screen in the Process in the command processing screen (on page 193) chapter.
VARIABLE PROPERTIES
Select Before Operate (SBO) inactive:
In this case, a separate Select command is executed by an action.
Note: A driver (for example: DNP3_NG or IEC850) can nevertheless execute a
Selectautomatically. This has no effect on the command processing however. The command
processing will, in this case, react to an unsuccessful Select in the same way as an
unsuccessful Operate/Execute.
Select Before Operate (SBO) active:
In this case, a Select (COT_act(6), SE) is always forwarded to the driver by the command
processing. In doing so, there is a wait - regardless of the type of Watchdog timer
configured - until the complete command process (including Operate) has been completed.
Attention: The Select Before Operate variable property has corresponding effects on
Watchdog timer.
If Select Before Operate is activated, the action buttons (and context menu entries) are
deactivated in runtime monitoring for each configuration until COT contains the value
COT_accterm(10).
182 | 205
Command Processing
This also applies if "none" or "via response variable" are configured for the watchdog timer.
If no COT_accterm is received, only a TIMEOUT status bit of the response variable is set.
Cancel Operate active:
If activated, with command processing, after an Operate, a Cancel can also be sent to the
controller, not just after a Select. Both the execution of the command in the controller and
ongoing runtime monitoring can thus be ended early. The property is automatically treated
like activated Timeout can be canceled in the action.
Info
If a variable is configured with an active Select Before Operate and the driver
does not support a COT, then there is no reaction by the driver when a Select is
sent. Once the configured Timeout has expired, the command processing
screen will inform you of the "Timeout on SBO activation" internal interlocking
condition.
183 | 205
Command Processing
Note: You can find further details in the runtime monitoring (on page 187) chapter.
184 | 205
Command Processing
zenon Energy drivers update the following status bits in the process (by means of command
variables):
SE_870, COTx
N_CONF, if configured to be updated
These status bits and NET-SEL cannot be configured by the person configuring the project. The status
bits are set by the corresponding driver of zenon modules.
The Watchdog timer property only has an influence on the Execute command. The Select
command is not influenced by Watchdog timer. After sending a Select, the command action waits
for the time period configured in the Timeout property (Options properties group in the
command action).
CANCELING A SELECT
For canceling (Cancel) a Select - regardless of the type of Watchdog timer engineering - the
following is applicable:
1. If the Select Before Operate property is activated for the action variable, a Select for
two-stage commands (two-stage command action property activated) can be canceled by
a user. After a successful Select (COT=7, SE), the Command Processing can send a
Deactivation (COT=8, SE) if the Cancel button is clicked.
2. There is then a wait for a response from the PLC or a Timeout.
The action ends:
if the configured timeout time has expired
if the PLC confirms the cancellation (COT=9, any SE or PN).
The receipt of a COT=9 discards the PROGRESS status bit.
3. The measurement time starts when the user clicks the Cancel button. The previous time
period - whilst the action waits for a Select - does not influence the time period in which
the action waits for a confirmation of the cancellation.
4. The response variable does not receive a TIMEOUT status bit.
5. The same behavior always applies, regardless of the configuration of the Watchdog timer
property.
185 | 205
Command Processing
Note: the value of the PN bit - Positive(0)/Negative(1) - is also used as the value for the N_CONF
status bit of the action variable.
After the time configured for an action in the Timeout property has expired, a notification is
displayed in the command processing screen. This message is displayed in the field of the interlocking
text. Internal interlocking condition "Timeout for SBO activation".
In this case, only the Cancel button is available. All other buttons of the Command Processing screen
are still grayed out.
Note: The response variable contains neither a TIMEOUT nor a PROGRESS status bit.
The same action applies for Select, regardless of which value is configured for Watchdog timer . The
process is the same for two-step actions and one-step actions.
The same action applies to Select , regardless of which value is configured for Watchdog timer. The
process is the same for two-step actions and one-step actions.
Note: the value of the PN bit - Positive(0)/Negative(1) - is also used as the value for the N_CONF
status bit of the action variable.
186 | 205
Command Processing
The PROGRESS bit is reset if the PLC confirms the Execute (COT_actcon(7)) or after expiry of the
following Watchdog timer.
5.4.1.1.4 SBO - positive reaction from the PLC but the user does not send
an Execute or Cancel
If the user, after a successful Select , triggers neither an Execute nor a Cancel , there is a wait for user
interaction - with no time-related input of a reaction time. This can lead to - if the PLC supports a
Select Timeout - the Select becoming invalid due to a Select Timeout during the waiting time. This
time expires. If this happens, the PLC sends a Select-Termination (COT=10, SE, PN=1). The
command processing reacts to the Select-Termination received so that - if the user does in fact
trigger an Execute - the command automatically sends another Select first.
Once the Cancel button in a command processing screen has been clicked on, a Select or Cancel is
not sent to the PLC again.
187 | 205
Command Processing
For this configuration, the runtime monitoring checks the interlockings and writes a command to the
controller. After this, the runtime monitoring waits to see whether the response variable changes the
value according to the command. If the Timeout of runtime monitoring is exceeded, the TIMEOUT
status bit is set to the response variable. If the Write status bits to command variables property is
activated in the command group, the status bit TIMEOUT is also set to the command variable.
In conjunction with Energy drivers (for Select Before Operate or COT process), the cause of
transmission (COT) is used to exchange information between zenon and the controller about whether
a command is to be written or whether writing was successful. With Energy drivers, the action variable
gets a COT according to the stage of the command. In the background, the command processing
then checks to see if the response variable then changes its value and if the COT action variable
changes according to the command.
Note: Value changes of the response variable will only be taken into account after COT_act(6).
Information
COTx Status bits result in a value. This value can be evaluated in the Runtime -
just like all other status bits - using multi numeric or multi binary reaction
matrices.
Note: COT is supported not only by IEC870, but also by some other Energy drivers - different
versions thereof. Some drivers support COT although the protocol itself does not contain COT(e.g.
IEC850, DNP3). You can find details in the corresponding driver documentation.
188 | 205
Command Processing
If there is an interlocking in the first stage, the interlocking text is displayed and there is a wait for a
reaction from the user. If the user selected On or Off, the Confirm button will be active. The value is
then sent to the PLC. If the user clicks on Cancel and a Select has already been carried out, the action
sends a deactivation (Cancel).
The two-step action checks the interlocking and provides a message during the first step:
Direct execution - no Select Before Operate:
Applicable for the moment when the first button is clicked.
Active Select Before Operate:
Applicable for the moment when the confirmation for Select is received or the Timeout for
Select has expired.
By clicking on the button to unlock the interlocking, the Execute 2nd step button available. If the
button is clicked on, an Execute is sent to the PLC. If Cancel has been clicked on and a Select has
already been sent, the action sends a deactivation (COT_deact(8)+SE) to the PLC.
If there was no outstanding interlocking for the first stage before the conditions have changed and
before the user has carried out a Confirm by clicking, the action will check the interlocking
conditions again. If there are then still interlockings pending, a message is displayed and there is a
wait for a cancellation from the user.
Information
Single-step actions have the same action in all scenarios.
The PROGRESS status bit is reset. The TIMEOUT status bit is not set for the response variable.
Note: the PN bit - Positive(0)/Negative(1) - is reflected on the status bit N_CONF of the action
variable.
189 | 205
Command Processing
In doing so, the command processing sends the cancellation to the driver. The driver (the IEC850
driver for example) only forwards a Cancel Request to the PLC if the Cancel Operate property has
been activated during configuration. You can find this property in the Write set value variable
property group.
If the Cancel Operate property is activated for the command variable, the user can also cancel the
runtime monitoring with the Cancel button in the command processing screen. It is automatically
considered an activated Timeout can be canceled.
Note: Not all drivers - that support the cancellation of a Select - also support the cancellation of an
Execute. You can find further information in the respective driver documentation.
Negative responses from the PLC (COT_actcon(7) + PN) end runtime monitoring.
Note: Changes to the value of the response variable are only taken into account after COT_act(6) of
the action variable. Early value changes of the response variable are ignored. This can occur, for
example, if there are already value changes for the response variable after a Select without an
Operate/Execute being sent.
190 | 205
Command Processing
3. If the controller receives the value COT_act, there is a wait for the subsequent values
COT_actcon(7) and COT_actterm(10).
4. End of the process:
a) The process is ended if COT_actterm has been received.
b) If, in the configured timeout time, no COT_actterm has been received, then:
- the process is ended and
- the TIMEOUT status bit of the response variable is activated.
Note: You configure this time in the Timeout property for the command action.
5. The PROGRESS status bit is reset.
191 | 205
Command Processing
ENGINEERING
Steps to create the screen using the properties if the screen creation dialog has been deactivated in
the menu bar under Tools, Settings and Use assistant:
1. Create a new screen.
To do this, select the New screen command in the tool bar or in the context menu of the
Screens node.
192 | 205
Command Processing
Depending on the step in which the process is currently in, the control elements are updated, opened
or hidden in the screen.
Note: These steps are shown in the [command processing] screen step system driver variable.
INITIALIZATION
This step installs the internal process administration. There is then an immediate switch to "Step 1",
without user interaction.
Initialization is executed regardless of the reason for switching when the screen is opened:
The response variable and the command variable (if this is the switch variable) are requested
by the driver. In doing so, there is an evaluation to see whether the variables exist. A LOG
entry is generated in the event of an error.
The NET_SEL status bit for the response variable is activated.
Settings for the display are set:
The Screen modal properties and the title of the screen are set accordingly. Note: the
title of the screen is taken on by the Screen title from response variable property.
The buttons without an assigned action are hidden.
You can read more about this in the Blocked or locked elements (on page 196).
STEP 1
The action to be executed can already be specified in this step. This can then be the case if the user
has selected the action from a context menu. Even if the command screen is still open due to a
previous (already-executed) action, the current action to be executed also remains specified. If no
193 | 205
Command Processing
action has been specified yet, the action to be executed is determined automatically. The result of this
determination of the action to be executed is shown in the Active action control element.
The action to be executed is determined by calling up the command processing screen (by clicking
on a screen element, for example). The action to be executed is then not yet specified, because the
command processing screen can include several actions. The result of the determination depends on
the control elements configured in the screen and the actions that are linked to the switch variable.
Note: As a result, you can call up certain command processing screens you have configured yourself
for certain actions and the focus is placed on the respective relevant screen.
UNLOCKING
The step is activated directly when operated via the context menu.
In this step, a check is carried out to see whether there are interlockings active. Only if no active
interlocking has been detected is a switch to "Step 2" possible.
At the same time, there is a Select request to the controller if the Select Before Operate property is
active for the command variable. There is a wait until the PLC confirms the Select or the Timeout
defined for the action has expired. In the event of a timeout or rejection of the Select, a
corresponding, non-unlockable interlocking message is shown.
194 | 205
Command Processing
If there are interlocking conditions, the step is only left once all interlockings have been unlocked. If
logging in the CEL has not been deactivated for the action (Suppress CEL entry property), unlocking
is recorded in the CEL.
When the Cancel button is clicked on. (Screen type specific action: Cancel) a switch back to "Step 1"
is made. This can be necessary if there is a non-unlockable interlocking active. A Select that is already
active is then deactivated (Cancel).
STEP 2
In this step, the fundamental command (Operate) is sent to the controller.
If the Confirm (Screen type specific action: Execute 2nd stage) clicked and
there is a valid Select,
no interlocking condition active,
execution of the action is started. If there is a signing configured with this button, execution is started
after successful signing.
With two-stage execution, there is always a wait for confirmation from a user. Only once the user has
clicked in the Confirm button is another check for interlockings carried out. If interlocking conditions
have become active in the meantime, execution is not started. In this case, there is a return to "Step 1"
by clicking on the Cancel button and the command processing is carried out again.
If the NET_SEL bit is no longer active (on the network client after redundancy switching for example),
an error message is logged. The action is not executed.
If the Select in the controller has expired (command variable has received the status bits SE_870 +
COT_actterm(10) + N_CONF in this case) a Selectis requested from the PLC again. The action is
carried out after a positive confirmation. If, in the process, the repeated SBO activation fails, a
message is shown accordingly.
If, instead of the Confirm button, the Cancel button is clicked on, there is a switch back to "Step 1". A
Select that is already active is then deactivated (Cancel).
195 | 205
Command Processing
Execution waits until all of the following points have been fulfilled:
Configured Select Before Operate for the command variable:
If Select has been confirmed positively by the PLC, there is a wait until Termination.
Conclusion of the configured Watchdog timer (if not all configured with none).
Conclusion of edge generation for the pulse command action.
Note: The Edge delay is not executed if Select Before Operate has been activated for the
command variable.
If execution has been completed and the Close automatically setting has been configured for the
action, the screen is closed. Otherwise there is a switch to the "initialization" stage.
If runtime monitoring has ended, the following applies for the status bits of the response variable:
The PROGRESS bit is deactivated
The TIMEOUT is activated if runtime monitoring has been ended with an error.
LOCK
This step is activated if the screen has been called up with the Screen switch function and with the
initial step lock in the process. What is special about this step is that some control elements are not
displayed. Only the control elements from the response variable and lock groups are visible.
Note: the locking/unlocking functionality is also available in other steps if corresponding control
elements have been placed in the screen.
If, for the lock action, the Close automatically has been configured, the screen is closed once the
Lock or Unlock buttons are clicked on.
While the command processing is running in the Runtime, this step must be confirmed by lock or
unlock. It is not possible to change to another step of the command processing.
the entries in the context menu and the control elements in the opened screen are locked up to Close
if:
196 | 205
Command Processing
Another screen is already the current owner of the active NET_SEL status bit of the response
variable (through a network client, for example)
No command processing was configured for the add-on variable
the response variable does not exist
The response variable has not received a value yet
The INVALID or OFF status is active for the selected variable
Exception: forced command, replace
The response variable was locked for command processing:
the status bit M1, i.e. the command lock, of the response variable was set
Exception: the control elements for the Lock action
An action is running for the action variable and runtime monitoring has not yet been
completed
Exception: The Cancel button can be active here - regardless of the configuration.
There is a wait for the SBO confirmation from the Select (SBO)
the data of the lock are being transmitted
the data of the lock are invalid
the currently-registered user does not have the necessary authorization levels.
UNLOCK
Unlocking is only possible if:
The authorization level of the user who is logged in allows execution
In accordance with the configuration of the interlocking:
For command condition:
if property Unlockable was activated
for topological interlocking
If, in the ALC configuration, the unlockable status has been selected.
197 | 205
Command Processing
Note: The information is also displayed in the[command] identification of the action and [command]
parameter of the action system driver variables.
198 | 205
Command Processing
Example:
Bits for COT
Status SE_870 during Select
Status N_CONF (PN-Bit) in the event of a
negative response from the PLC
199 | 205
Command Processing
Note: The name is also displayed in the [command] name of the action variable system driver
variable.
Note: The name is also in the [command] name of the response variable system driver variable.
200 | 205
Command Processing
Note: The steps are also displayed in the [command] screen step system driver variable.
201 | 205
Command Processing
Control elements from the Lock group are locked if no Lock action is configured in the command
group.
Control element Description
Unlock Removes the lock that has been set up by the user
entered in the User control element.
This guarantees that only people's own locks can
be removed.
202 | 205
Command Processing
Note: The interlocking texts are also displayed in the [command] interlocking message system driver
variable.
5.4.3 Reload
The following is to be taken into account when reloading a command configuration:
If Watchdog timer, edge generation or SBO is active, the reloading is delayed until this has
ended.
203 | 205
Command Processing
An opened Command Processing screen is closed and the process is started again after
reloading depending on the current step:
Step before reloading Action after reloading
Unlock all A corresponding CEL entry is created for each unlocked interlocking.
Execute action If the "Suppress CEL entry" action setting is not active, the execution of the
action is logged in the CEL.
The handling of the Select in the network - NET_SEL status bit - of the response variable cannot be
taken over from the previous Primary Server and the command must be executed again.
204 | 205
Command Processing
Please note the behavior or Runtime (on page 205) if redundancy switching is not triggered by a
failure of the Primary Server but by the user.
An active Select Before Operate process also delays the ending of zenon Runtime. If Select Before
Operate is activated, a deactivation (Cancel) is carried out.
Information
This situation occurs most of all with single-stage execution of the pulse
command action with runtime monitoring or edge generation. Runtime is only
ended once the action has been completed.
In the Lock action, the lock can be activated or deactivated by entering the user name and a Lock
code (configured during user definition). A user can activate a lock for each response variable.
Several users can lock the same response variable.
The active locks are saved remanently in the LOCK.BIN file and are also taken into account after the
system is restarted.
Information
There is automatic synchronization of locking in the zenon network. Locking can
thus also be used in redundant operation.
205 | 205