Energy Edition
Energy Edition
Energy Edition
v.8.00
©2018 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 qualities in the legal sense. Subject to change, technical or
otherwise.
Contents
5. Command Processing................................................................................................................. 93
5.1 Command Processing ................................................................................................................................ 96
5.2 Command processing detail view toolbar and context menu .................................................................. 96
5.3 Configuration in the Editor ....................................................................................................................... 99
5.3.1 Creating a screen of the type Command Processing ................................................................ 101
5.3.2 Variables of the command group ............................................................................................. 119
5.3.3 Configure command processing ............................................................................................... 122
5.3.4 Create menu ............................................................................................................................. 172
5.3.5 Create Runtime files ................................................................................................................. 174
5.4 Operating during Runtime ...................................................................................................................... 179
5.4.1 Execution of a command .......................................................................................................... 179
5.4.2 Screen type Command Processing ........................................................................................... 188
5.4.3 Reload ....................................................................................................................................... 201
5.4.4 Logging in the CEL ..................................................................................................................... 202
5.4.5 Server change in redundant operation .................................................................................... 202
5.4.6 Exit Runtime ............................................................................................................................. 202
5.4.7 Lock return variable .................................................................................................................. 203
Welcome to COPA-DATA help
ZENON VIDEO-TUTORIALS
You can find practical examples for project configuration with zenon in our YouTube channel. The
tutorials are grouped according to topics and give an initial insight into working with different zenon
modules. All tutorials are available in English.
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 [email protected].
PROJECT SUPPORT
You can receive support for any real project you may have from our Support Team, who you can contact
via email at [email protected].
If you find that you need other modules or licenses, our staff will be happy to help you. Email
[email protected].
5
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
Automatic Line Coloring (ALC) - Topology
(n-1) calculation.
Visualization of a possible network overload, for example in the event of a failure of a line.
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 42) can be displayed with the data from different
equipment parts, for instance outputs or partial networks.
7
Automatic Line Coloring (ALC) - Topology
Automatic Line Coloring (ALC) makes it possible to color lines depending on the process status. The
combined element is used as the process element. Automatic line coloring allows easy automatic
dynamizing of tubes in technology (for media) as well as in the topological networks (for electricity).
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 21).
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
8
Automatic Line Coloring (ALC) - Topology
Switch closed
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.
For the correct functioning of the ALC algorithm, the number of connected switches in a series plays a
role.
Arrange a maximum of 256 closed switches in a series between the source and the
drain.
Procedural elements are created in zenon with a combined Element. Their state determines the
coloring of the connected line.
9
Automatic Line Coloring (ALC) - Topology
Property Description
Function type Defines the technological type of the Combined element.
No function The element has no function in the ALC.
The "no function" function type is the default value.
Source Passes on its color. If the source is active (value: 1), all connected lines that have
Color from ALC option set in the element properties 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 assigned
to it. The source is switchable over the state of its main variable. Generally, sources
are considered as net-synchronous and detachable.
For the Interconnect various voltage levels topological interlocking
(on page 34), the nominal voltage of the source is taken into account.
You can find details on the source in the configuration of the sources (on page 28)
chapter.
Generator A generator generally behaves like a source, but it is considered as an independent
and not net-synchronous.
For the Interconnect grids topological interlocking (on page 34), 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 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.
If the status of the switch is invalid (value: 3) or undefined (value: 2) or the
status of the main variable is INVALID, the line colors itself in the color
undefined from the ALC configuration in the project properties. A switch thus
delivers source number 0 (undefined) to its output (connection 2) instead of the
incoming source number.
see Switch example - colors from ALC (on page 14) section.
: If the Switch input/output property is active, the input and output of this
element are reversed for the ALC.
Disconnector A disconnector generally behaves like a switch. However, a disconnector in the
topological model must not be switched when live - topological interlocking
"Disconnector under load" in the command processing.
As with the switch, the main variable determines the status: On, off,
intermediate position, malfunction.
: If the Switch input/output property is active, the input and output of this
element are reversed for the ALC.
Transformer A transformer is a drain and a source at the same time. SO with a transformer the
input color (input source) can be transformed to a new output color (transformer
source color).
The output line is only displayed as active once the transformer has an active input
line. However the output line does not get the color of the input line as with a
10
Automatic Line Coloring (ALC) - Topology
switch, but instead the color of the transformer's own source. So a source has to
be defined for each transformer. A transformer cannot be switched active or
inactive, it always is active, regardless of the value of the linked variable.
: If the Switch input/output property is active, the input and output of this
element are reversed for the ALC.
Reverse-feed-compatible transformer:
To have a transformer capable of reverse feed, you must select, for Source
for reverse feed, a different source than UNDEFINED [0]. This means that
the transformer behaves the same for both directions - from the input to
the output (forward) and also from the output to the input (backward). The
only difference is that the Source for reverse feed property and not the
Source property is used for further distribution of the source number.
Faulty network statuses or missing configurations, such as a feed from the
input and output at the same time or a short circuit from input and output are not
specially colored. This means that the transformer capable of taking a reverse feed
behaves like two transformers switched to run antiparallel that are not capable of
taking a reverse feed.
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.
Slider A slider (a valve) acts in a similar manner to a switch, but it is used for water and
gas lines.
Value of the main variable:
Switch OFF: Value 0 -> Slider closed-> No forwarding
Slider ON: Value 1 -> Slider open completely-> Water flow
Slider value 2 (intermediate) -> Slider partially open-> Water flow
Slider value 3 (error) -> Slider malfunction
11
Automatic Line Coloring (ALC) - Topology
The check valve is also taken into account by the topological interlocking
(on page 34).
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.
Link A link serves to continue a line at another place. If a link is "supplied" by a line, all
other links with the same link name also are supplied by this line. Here it does not
matter, whether the links are in the same screen or on different screens in the
project. Topological networks can thus be designed throughout screens. More than
two links with the same link name in the project are also permitted.
Links are configured with the Link name property.
Links can be supplied by several lines at the same time or can themselves supply
several lines. In principle there is no difference between inputs and outputs. The
ALC colors of the sources are forwarded to all connected lines.
A link cannot be switched active or inactive in the event of a value change: it is
always active. For this reason, it is not absolutely necessary to link the combined
element to a variable.
Two link elements cannot be connected directly to one line. In between,
there has to be at least one other procedural element (switch/disconnector or
transformer).
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.
Parameter Description
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 28)
chapter.
Use the pre-defined system sources for this (ID 0..9). Configure
12
Automatic Line Coloring (ALC) - Topology
In order for a switch, disconnector or slider etc. to be given the status (open, closed, invalid), a BOOL
data type or integer variable must be linked in the respective combined element as the main variable.
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.
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 property group. Alternatively, you can also link a
13
Automatic Line Coloring (ALC) - Topology
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.
CONDITIONS
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.
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 individual statuses of the combined element, the color and the fill color from
ALC is activated, it is not just the line, but also the process-related elements that are
colored in 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
14
Automatic Line Coloring (ALC) - Topology
EXAMPLE 2
15
Automatic Line Coloring (ALC) - Topology
EXAMPLE 3
16
Automatic Line Coloring (ALC) - Topology
EXAMPLE 4
17
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.
The connection area for a connection point is in the middle of each side of the combined
element. Each combined element thus has four connection points.
The size of a connection area corresponds to 2/3 of the height and width of a combined
element, but no more than 20 pixels.
Each connection area is centered in the middle of the respective element corner and stretches
symmetrically inwards and outwards, to a maximum of 10 respective pixels.
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).
18
Automatic Line Coloring (ALC) - Topology
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
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.
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.
At switches and transformers it has to be cared, that only one input connection and
19
Automatic Line Coloring (ALC) - Topology
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.
Switch input/output
If a transformer, a disconnector or a switch is configured, the input and output can be swapped. To do
this:
1. Select either transformer, disconnector or switch as a Function type
2. Activate the checkboxSwitch input/output
The input is then set at the bottom right and the output at the top left.
OVERVIEW
Measuring points
Variables are linked for the visualization of ALC sources that currently supply the process-technical
element or start from this element.
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)
20
Automatic Line Coloring (ALC) - Topology
DISPLAY IN RUNTIME
The linked variables are displayed with the following values in zenon Runtime:
Number (on page 28) of the active sources (STRING data type):
Active source number(s)
Numbers of all active sources are summarized in a STRING variable. This is applicable for
both input and output.
Several source numbers are separated with a semicolon (;). Sorting is carried out according
to the priority of the source.
With multiple sorting, the source is represented with several entries at the input.
<Empty>
Not supplied
Number of the highest priority source (numerical variable):
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 option Color from ALC 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.
Here the color usually comes from the highest priority source number of the media flowing through the
line, or stays "empty/not energized" just as defined in the screen with static or dynamic colors.
21
Automatic Line Coloring (ALC) - Topology
Parameter Description
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/open, the line is
accordingly colored. 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.
If 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,
22
Automatic Line Coloring (ALC) - Topology
highest priority source The line gets the color of the source with the highest priority.
Priorities correspond to the sequence chosen in the ALC
configuration.
two highest priority Applies for lines fed by two or more different sources. The two sources
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.
System sources apply for multiple supplies just as with genuine sources
and color lines in two colors it they are configured accordingly.
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 for
multiple times
the dashed ALC coloring for two sources with the highest
priority for display multiple supplies.
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 supply from one source
(parallel). Here you can define how 'secured supply' is displayed.
A line is always displayed as having a secure supply if it is supplied
by at least two switches with a genuine source (not system source).
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. (Example: A line
with line width 5 pixels is displayed with 10 pixels if secure-fed.)
If this line is fed by two or more different sources (multi-supply), the
line width does not change!
The color is always defined by the source with the highest priority!
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:
1. The defined RGB color is transformed to the HLS system.
2. L (luminance = brightness) is recalculated with
23
Automatic Line Coloring (ALC) - Topology
Alias Opens the dialog (on page 42) for selecting a model.
Information
The source color and the priorities of the sources are defined in the project properties.
User-defined sources must have a higher ID than 9. IDs up to 9 are reserved for system
sources.
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
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
24
Automatic Line Coloring (ALC) - Topology
double brightness
The connection of one line (line, polyline or tube) to another line is done with overlapping drawing in
the screen at connection points. The connection points - either connection areas - are at the start and
the end of each line and are around 3 pixels large.
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!
25
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.
Engineer the desired procedural elements and lines in one or more screens and save these screens.
Then you can check via Create all Runtime files or Create changed Runtime files whether there are
26
Automatic Line Coloring (ALC) - Topology
any 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
4. Configure the desired properties for:
27
Automatic Line Coloring (ALC) - Topology
The sources, e.g. their names and colors (sequence and priority), are configured project-specifically
within the project properties under ALC configuration. Sources with ID between 0 and 9 are reserved
for system sources. Those that already have a function (such as GROUNDED - the color of the "earth"
source) must not have their function changed. Those that do not yet have any functionality in the
current zenon version remain reserved for future versions.
28
Automatic Line Coloring (ALC) - Topology
The source colors from ID #10 are freely available for the process-technical elements.
Source "Generator" or "110kV". Add further colors to do this.
29
Automatic Line Coloring (ALC) - Topology
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.
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 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.
The labels are not language switchable.
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
Dashed Type of display for grounded sources.
active:
Line for grounded source is displayed dashed in the Runtime.
Inactive:
Line for grounded source is displayed normally in the Runtime.
This checkbox can only be activated for the system source GROUNDED. This
check box is grayed out for all other sources.
Voltage [kV] Nominal voltage of the source in kilovolts.
This option is not available for system sources.
Default: empty
Input range:
0 - 4000 KV
Decimal places must be denoted with . (a period).
Invalid entries are set to 0.
Negative entries are set as positive.
New Adds a new color.
Delete Deletes the selected color.
Upwards Moves selected source up one position.
(arrow symbol)
30
Automatic Line Coloring (ALC) - Topology
downwards
(arrow symbol)
CLOSE DIALOG
Option Description
OK Applies all changes in all tabs and closes the dialog.
Cancel Discards all changes in all tabs and closes the dialog.
Help Opens online help.
The colors can be configured directly by entering the corresponding hexadecimal code or by using a
color palette.
For direct input:
1. Click on the color description with the left mouse button.
The field is switched to editing mode.
2. Enter the code.
3. Press the Enter key or select another source to apply the change.
To select via a color palette:
1. highlight the desired line.
2. Click on the ... button behind the color
The ... button is only visible if the color entry is selected with a mouse click.
The color palette is opened in the context menu.
3. select the desired color
The hexadecimal code describes the RGB color value and consists of the following. #RRGGBB.
31
Automatic Line Coloring (ALC) - Topology
Element Meaning
# Identifier to indicate that a hexadecimal color code is used.
RR 2 digits are the red value of the color in hexadecimal system.
0-255 corresponds to 0-FF
GG 2 digits are the green value of the color in hexadecimal system.
0-255 corresponds to 0-FF
BB 2 digits are the blue value of the color in hexadecimal system.
0-255 corresponds to 0-FF
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
Sources with ID between 0 and 9 are reserved for system sources. They 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.
Resetting erroneous colorings
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.
Coloring in the network can be implemented in two modes with the UNDEFINED status:
Standard
Input takes priority
32
Automatic Line Coloring (ALC) - Topology
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
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.
33
Automatic Line Coloring (ALC) - Topology
The Command Processing module can automatically calculate the interlockings in Runtime. These
interlockings are based on the dynamic status of an electricity grid. The topology of the grid is
configured via ALC. If the command input detects that the execution of a command corresponds to the
interlocking condition, the execution of the command is prevented.
Using the ALC configuration and the current states (ON/OFF) of sources, Switches,
disconnectors etc. the command input 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 evaluation of the topological interlockings from the ALC for the Command Processing is configured
centrally - for the respective project. In doing so, a decision is also made as to 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:
34
Automatic Line Coloring (ALC) - Topology
Parameter Description
Voltage towards Interlocking is active if a switch/disconnector is to be closed, to which
ground grounded potential is connected to and one or more connections in the ALC
model are live or undefined.
After switching the element, one side is grounded and the other is live.
Switching Interlocking is active if a switch/disconnector is to be closed and both of
operation in area its connectors are 'undefined' or 'disturbed'.
with undefined
status Default Status: unlockable
Disconnector Interlocking is active if certain conditions have been met for switching the
under load disconnector on (= close) or off (= open).
Default status: unlockable
Conditions: see "Disconnector under load - interlocking conditions (on page 37)"
section.
Device would not Interlocking is active if a switch/disconnector is to be opened and a
be supplied device that is switched on and supplied with voltage from a source (drain)
then loses supply.
Default status: unlockable
Area with Interlocking is active if a switch/disconnector is to be closed and one
undefined status connector has the status undefined or invalid and the other does not.
would increase
The interlocking is also reported if the command has been configured with the
switching direction none.
Default status: unlockable
Interconnect This interlocking is to prevent unintended connection of two networks
grids
with different generator sources.
35
Automatic Line Coloring (ALC) - Topology
A name can be configured for the element with the Transformer name
properties (for transformers) and Line name (for a line). This name is
used in Runtime as an interlocking text if the element would be
overloaded after a switching action.
Interconnect The interlocking is active if ALC sources with different nominal voltages are
various voltage switched together.
levels This check is carried out using the complete network (not just for the switch).
Default status: do not check
STATUS
If you click in the Status column in one of these interlockings, a drop-down list opens with three
choices:
36
Automatic Line Coloring (ALC) - Topology
Parameter Description
do not check The selected condition is not considered in this project (topological model).
unlockable The selected condition is considered in this project. If the condition applies, the
user can unlock it with the Command Processing (in the screen of type
Command Processing). This unlocking action is logged in the Chronological
Event List.
not unlockable The selected condition is considered in this project. If the condition is applicable,
the user cannot unlock it. The action (such as a switching command) is not
carried out.
For the disconnector under load topological interlocking, a disconnector can be switched (opened or
closed) if one of the following conditions is met for the line segments that connect the disconnectors:
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.
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;
37
Automatic Line Coloring (ALC) - Topology
Information
Meaning of "not under load"
The status not under load means:
Either:
All switches and disconnectors connected to the line segment are open.
Or:
Switches and disconnectors connected to the line segment are closed but only connect
to a further segment that is also 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).
38
Automatic Line Coloring (ALC) - Topology
Here you configure the color table for the color marker for the impedance-based fault detection and
calculation of load distribution (on page 63). See also: AddMarker.
Parameter Description
Number Unique internal serial number for clear assignment. This number is given by the system
automatically and cannot be changed.
The colors can be configured directly by entering the corresponding hexadecimal code or by using a
color palette.
For direct input:
39
Automatic Line Coloring (ALC) - Topology
The hexadecimal code describes the RGB color value and consists of the following. #RRGGBB.
Element Meaning
# Identifier to indicate that a hexadecimal color code is used.
RR 2 digits are the red value of the color in hexadecimal system.
0-255 corresponds to 0-FF
GG 2 digits are the green value of the color in hexadecimal system.
0-255 corresponds to 0-FF
BB 2 digits are the blue value of the color in hexadecimal system.
0-255 corresponds to 0-FF
The foreground and background color of an ALC source can be temporarily changed for the coloring in
Runtime using the Change ALC source color function. The change remains until Runtime is ended,
reloaded or the function is executed again. To create the function:
select New Function
Navigate to the Screens node
40
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.
41
Automatic Line Coloring (ALC) - Topology
To display individual screens, a partial area can be taken from the topological network and displayed
individually by means of an Alias. The screen elements in the detail screen are not included in the
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 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
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 (_).
42
Automatic Line Coloring (ALC) - Topology
43
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
The elements can be sorted according to all columns. When setting a filter,
the options offered from all other filters are reduced to values that can be
sensibly combined.
Name: Input of a user-defined search term with wild cards (*). The
last 12 search terms are offered in the list until the Editor is ended.
Element:
Select from drop-down list.
Function type:
Select from drop-down list.
Clicking on ... opens saved search or drop-down list.
If a filter is active, clicking on the X deletes the filter.
Selected alias Shows the selected element in the field of Available ALC elements.
No selection Removes selected element.
OK Saves selection and closes dialog.
Cancel Discards changes and closes dialog.
Help Opens online help.
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.
Aliases can be changed when switching screens with Replace link. A detail screen can therefore be
displayed with the data from different equipment parts, for instance lines or partial networks. Alias
names are replaced along the lines of variables and functions. It is also possible to replace in elements
that are used in symbols. For selecting the target the same selection dialog is opened as for the Alias
property.
44
Automatic Line Coloring (ALC) - Topology
Fault location uses special coloring via ALC to mark the parts of a network that have a ground fault or
earth fault. Starting points for fault detection are called ground fault or short circuit recognition device
(such as a detector of a protective device) that are assigned to a circuit breaker. It is assumed that the
ground fault and short circuit reporters are always at the output of the circuit breaker element. For this
reason, when configuring, the corresponding variables (with detection from the protective device)
should be linked to Function type switch elements.
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 dedections 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.
Graphic error displays can thus also be displayed in the screen, for example with further combined
elements that are only visible if there is a display active.
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.
45
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 Runtime, the color assigned by ALC changes automatically as soon as the
status of the line changes. The colorings configured can be changed in Runtime via the Change ALC
source color (on page 40) 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
46
Automatic Line Coloring (ALC) - Topology
The search for a ground fault serves to highlight the network parts that may have a ground fault by
coloring these. The color is taken from the engineering of ALC source colors (on page 27) for the GROUND
FAULT (ID 1) source. At the same time as this, the notifications are set to the additional variables for
graphical display.
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.
47
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 Runtime via the zenon API object model. In doing so, the short circuit
search is recalculated once again.
The direction and type of message processing for the combined element of type switch are configured
by means of the Type property.
48
Automatic Line Coloring (ALC) - Topology
Attention
To suppress intermittent ground faults, ground fault indications that occur in intervals of
less than 2s are ignored.
The variable linked at Display is an output variable for fault detection and displays the recorded status of
the ground fault identification device. This is necessary because all indications remain saved internally
until until they are acknowledged. The saved indications thus do not necessarily correspond to the
current status of the message variable.
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
1 ground fault forwards
2 Ground fault backwards
3 non-directional ground fault
4 Fault status - > both directions have activated
Information
To reduce problems in network operation, the variable linked here should be a local
variable.
49
Automatic Line Coloring (ALC) - Topology
The variable for the earth fault detection device indication is defined via the Triggering property. It can
contain information on the presence of an ground fault and the direction of the ground fault from the
point of view of the ground fault recognition device. In doing so, a distinction is made between:
Non-directional ground fault recognition devices
directed ground fault recognition devices with a trip alarm
directed ground fault recognition devices without a trip alarm
If you address a directional ground fault recognition devices with Forwards in both directions,
this is then considered erroneous and ignored.
The function Start search for ground fault serves to localize a ground fault and has two effects in
Runtime:
50
Automatic Line Coloring (ALC) - Topology
1. Fault reports from all ground fault identification devices that were configured with wiper
message processing are ignored.
2. The search algorithm is changed: Switch actions can only reduce the area subject to a ground
fault further. Newly received messages do not therefore increase the area potentially subject to
a ground fault.
With the Acknowledge ground fault message function, an internally recorded ground fault from a ground
fault indication device can be acknowledged. In doing so, the internally-latched ground fault status is
reset if the status is still pending, or highlighted as acknowledged. A recorded ground fault message is
only deleted internally if this has been acknowledged and is no longer pending.
51
Automatic Line Coloring (ALC) - Topology
You end the ground fault search with the Stop search for ground fault function in Runtime.
52
Automatic Line Coloring (ALC) - Topology
The short circuit search serves to highlight the network parts that potentially have a short circuit by
coloring these. The color is taken from the configuration of ALC source colors for the SHORT FAULT
source.
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
53
Automatic Line Coloring (ALC) - Topology
2. Define ground fault display (on page 54) andtriggering of ground fault detection (on page 55)
3. Set up the function for acknowledgment of ground fault message (on page 56)
The direction and type of message processing for the combined element are determined by means of
the Type setting. For project configuration:
1. navigate to the Automatic Line Coloring node in the combined element properties
2. open the node Short-circuit detection
3. Select the desired type in the Type property
Direction:
indicates if the raising edge of trigger indication or if the raising edge of a direction comes
before it
leading:
With rising edge of the trigger indication, the current status of the direction is used.
lagging:
After a rising edge of the trigger indication, the first rising edge of a direction is waited for,;
if this does not occur within 2 seconds, the short circuit identification device is considered
non-directional
Indication processing:
states which indication can be processed
none:
normal switch; indication is not processed
Permanent indication processing:
Newly received indications are considered as new ground fault trip
The variable linked for Display is an output variable for error detection and displays the recorded status
of the ground fault detection device. This is necessary because all messages remain saved internally until
they are acknowledged, i.e. they do not necessarily conform to the current status of the message
variables.
Each time a recording is made, a set value is sent to this variable. In doing so, the values are as follows:
54
Automatic Line Coloring (ALC) - Topology
Value Meaning
0 No short circuit
1 Short circuit forwards
2 Short circuit backwards
3 Non-directional short circuit
The variable for the message from the short circuit identification device is defined by the Triggering
variable It can contain information on the presence of a short circuit and the direction of the short
circuit from the point of view of the ground fault recognition device. In doing so, a distinction is made
between:
non-directional short circuit reporters
directional short circuit reporters with a trip alarm
directional short circuit alarms with a trip alarm
55
Automatic Line Coloring (ALC) - Topology
With the Acknowledge short-circuit message function, an internally recorded short circuit from a short
circuit indication device can be acknowledged. In doing so, the internally-latched ground fault status is
reset if the status is still pending, or highlighted as acknowledged. A recorded short circuit message is
only deleted internally if this has been acknowledged and is no longer pending.
select the variable you wish to import in the dialog that opens
link the function to a button
56
Automatic Line Coloring (ALC) - Topology
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.
NOTE ON CONFIGURATION
The following configuration is recommended for a clean graphic display of the curbing in Runtime:
57
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.
58
Automatic Line Coloring (ALC) - Topology
Impedance based fault detection and calculation of load distribution extend the ALC
module.
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.
The ALC elements Combined element and Line (line, polyline, pipe) have special properties for
impedance-based fault locating and to calculate the load distribution. The properties
for the load distribution calculation is configured in the Editor. The evaluation is not carried
out in zenon however, but is available via the zenon API as algorithms to be created by users.
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
With impedance-based fault locating, an error marker is set at the location of the failure in the topology.
The impedance values measured by protective devices are evaluated by the ALC module. Based on the
topology, the fault markers are positioned in the screen correctly in a zenon screen.
If a short circuit occurs and the reactance is not equal to zero, the search for the location of the short
circuit starts:
59
Automatic Line Coloring (ALC) - Topology
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) .
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.
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.
b) Click on the Automatic Line Coloring project property group.
c) Activate the Fault location based on impedance property.
60
Automatic Line Coloring (ALC) - Topology
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
b) Line width of the screen marker
c) Display type of the screen marker
3. Create a zenon screen.
4. Position the combined element on the zenon screen.
The variable selection dialog is opened.
5. Configure the ALC settings for the combined element:
a) Ensure that the combined element has been selected.
b) Switch to the Automatic Line Coloring property group.
c) In the Function type property, select the Switch entry from the drop-down list.
d) Link the Reactance value from protection property (in the Topological properties properties
section) to a REAL data type variable with the value of the measured impedance.
e) Select the type of Short-circuit detection in the drop-down list of the Type property.
f) Configure the color of the marker in the Marker color property.
Each object has a unique ID, via which it is referenced in the file. The attributes correspond to a subset
of the zenon screen elements that have created the elements.
61
Automatic Line Coloring (ALC) - Topology
GRAPHELEMENT
ID Description
Picture Screen name
React Reactance
Resist Resistance
GRAPHALIAS
ID Description
Picture Screen name
ElementID Screen element ID
ElementRef Screen element reference
Type Screen element -type (see "element")
62
Automatic Line Coloring (ALC) - Topology
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()
GraphAliasCount()
GraphElemItem()
GraphAliasItem()
If a topological interlocking is checked, the following event is called up at the ALC engine:
void CheckInterlocking(IALCEdge* pALCEdge, long nNewState, tpLockResult*
LockResult, BSTR* bsText, VARIANT_BOOL* bUnlockable);
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
63
Automatic Line Coloring (ALC) - Topology
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. 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
Marker color: is defined via the index in the marker color table (on page 39), 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 66) in zenon Editor.
In zenon Runtime, the calculation (on page 85) 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.
64
Automatic Line Coloring (ALC) - Topology
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 parameters of the properties relevant to the load flow
calculation must be set up correctly.
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:
65
Automatic Line Coloring (ALC) - Topology
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.
66
Automatic Line Coloring (ALC) - Topology
also the information in the property help for the respective properties.
The availability depends on the configured Function type of the ALC element.
1. Carry out the configuration steps for the Load flow calculation.
2. Activate the (n-1) calculation.
a) Go to the Automatic Line Coloring property group in the project properties.
b) Activate the Activate (n-1) calculation property.
67
Automatic Line Coloring (ALC) - Topology
Information
If command input is used in the project, a line overload (on page 34) topological
interlocking can also be configured.
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.
It is important for the primary coil that the Primary coil for three-coil transformer property is
activated.
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:
Power Input [A]
Voltage input [kV]
Active power input [MW]
Reactive power input [MVar]
The primary transformer should also have a source color for ALC.
68
Automatic Line Coloring (ALC) - Topology
When configuring the secondary and tertiary coil, it is important that the Primary coil for
three-coil transformer property is not activated.
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 outputs:
Power Output [A]
Voltage output [kV]
Active power output [MW]
Reactive power output [MVar]
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
output.
... die gleiche Nennleistung ... (im Realen ist die Leistung auf Sekundär bzw. Tertiärseite durch Verluste
immer geringer als auf Primärseite Eingang!!! Verwendung von 40 MW Primär und 100 MW Sekundär
bzw. Tertiär wär aber möglich)
The result of the load flow calculation can be transferred to the output parameters for a transformer
with linked variables.
69
Automatic Line Coloring (ALC) - Topology
The prefix of the active power and reactive power is positive if it flows from the input (source =
reverse feed) to the output (source).
The fact that input and output can be interchanged with combined elements is also taken into
account.
The phase or the power factor at the transformer (input or output) is not given.
The results of the load flow calculation can be written to 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.
70
Automatic Line Coloring (ALC) - Topology
OUTPUT OF VALUES
All calculated values are output at each component (line or transformer) on a path.
The new Load flow (n-1) calculation screen type visualizes the calculated "N-1" scenario in
Runtime, for example a possible network overload in the event of a failure of a line.
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.
71
Automatic Line Coloring (ALC) - Topology
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
There are two procedures for the creation of a screen from zenon version 8.00:
The use of the screen creation dialog
The creation of a screen using the properties
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.
72
Automatic Line Coloring (ALC) - Topology
(N-1) LIST
73
Automatic Line Coloring (ALC) - Topology
Parameter Description
Breakdown actual [%] Current load of the component (line or transformer) in percent,
which is taken from the network as a calculation for the calculation
of the (n-1) scenario.
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.
The name of the component is shown in the line load column.
Load (n-1) [A] Calculated load (in amperes) of the component that is placed under
the most load when another component (line or transformer) is
loaded most.
This entry shows the calculated load, i.e. the value after another
component is taken from the network.
The name of the component is shown in the line load column.
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.
This entry shows the current load without taking a new
loading into account, i.e. the value before another component is
taken 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.
This entry shows the current load without taking a new
loading into account, i.e. the value before another component is
taken from the network.
Load line/transformer Name of the component (line or transformer) that would be placed
under the most load after another component is removed from the
network (line failure).
TRANSFORMER
74
Automatic Line Coloring (ALC) - Topology
The two-coil transformers (also switched in parallel) are incorporated into the calculation for
both live as well as possibly failed components. The voltage on the input side is output; the
nominal current is compared to the nominal power: / √3 * nominal input voltage.
A three-coil transformer is only considered as a component for the calculation. Load current and
nominal current are taken on by the primary transformer. If the transformer forms a bridge, up
to three non-connected parts of the network can occur if they fail. If parts of the network
continue to be supplied with energy, these are then searched through for the highest-loaded
components after the failure.
The load flow N-1 calculation screen is to visualize current loads of a component (line or
transformer) as well as calculated loads on components (line or transformer). The calculated loads show
the values of a component with the assumption that another component of the mesh network is no
longer present.
ENGINEERING
There are two procedures for the creation of a screen from zenon version 8.00:
The use of the screen creation dialog
The creation of a screen using the properties
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.
75
Automatic Line Coloring (ALC) - Topology
d) If necessary, select additional elements in the Elements drop-down list. Place these at the
desired position in the screen.
4. Create a screen switch function.
A Screen switch function is for calling up screens in Runtime. You can configure the graphical appearance
of the list for screen switching to a load flow (n-1) calculation screen.
ENGINEERING
76
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
[column preview] Preview of the columns that are configured for display in
Runtime.
Column selection... Clicking on the button opens the dialog to select and
arrange the columns (on page 78) for the (n-1) list.
Column format... Clicking on the button opens a dialog to format (on page
80) the (n-1) list.
CLOSE DIALOG
Options Description
OK Applies settings and closes the dialog.
Cancel Discards all changes and closes the dialog.
Help Opens online help.
77
Automatic Line Coloring (ALC) - Topology
Column selection
Here, you configure the columns in which the display is visualized in zenon Runtime.
78
Automatic Line Coloring (ALC) - Topology
Option Function
Available columns List of columns that can be displayed in the table.
Selected columns Columns that are displayed in the table.
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.
CLOSE DIALOG
Options Description
OK Applies settings and closes the dialog.
Cancel Discards all changes and closes the dialog.
Help Opens online help.
79
Automatic Line Coloring (ALC) - Topology
Column format
Configuration of the properties of the columns for configurable lists. The settings have an effect on the
respective list in the Editor or - when configuring screen switching - in Runtime.
80
Automatic Line Coloring (ALC) - Topology
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.
SETTINGS
Option Description
Settings Settings for selected column.
Labeling Name for column title.
The column title is online language switchable. To do this, the @
character must be entered in front of the name.
Width Width of the column in characters.
Calculation: Number time average character width of the selected
font.
Alignment Alignment. Selection by means of radio buttons.
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.
User-defined colors Properties in order to define user-defined colors for text and
background. The settings have an effect on the Editor and
Runtime.
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.
81
Automatic Line Coloring (ALC) - Topology
Lock column filter in the Runtime Active: The filter for this column cannot be changed in
Runtime.
Only available for:
Batch Control
Extended Trend
Filter screens
Message Control
Recipe Group Manager
Shift Management
Context List
CLOSE DIALOG
Option Description
OK Applies all changes in all tabs and closes the dialog.
Cancel Discards all changes in all tabs and closes the dialog.
Help Opens online help.
82
Automatic Line Coloring (ALC) - Topology
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.
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).
Longer texts can also be displayed in Runtime over several lines using the Automatic word wrap
property.
83
Automatic Line Coloring (ALC) - Topology
In the Editor, go to Representation in the properties of the respective list properties and activate the
checkbox of the Automatic word wrap property.
Topologic interlocking
The load flow calculation provides the following topologic interlockings (on page 34):
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 [A] value [A] acceptable current permitted limit
overload [%] value [%]
5 7.51 10 150.2 40.2 yes
2 7.51 10 375.5 265.5 yes
5 4.51 -10 90.2 0.2 yes
5 5 0 100 0 no
In both cases, the interlocking is active and the following interlocking text is displayed:
The load flow calculation could not reach a conclusive result.
84
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 34) 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.
85
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. 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 89)
chapter.
At the start of the load flow calculation, the busbar model is built up from the current topological model
and the switch settings or statuses 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.
86
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 reactive power of all generator bars and the active power of the reference bar are calculated. The
calculated phase of the bars is distributed to all source or drain Function type ALC elements. The
calculated voltage is only distributed to drain Function type ALC elements. The reactive power on the
generator bar that does not come from the loads is distributed to the Generators, in proportion to the
active power generated.
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.
Parallel lines
Parallel connection paths are only permitted between two busbars if they are connected to one another
in series. Intermeshing between two line paths is not supported.
A line can have impedance (resistance from actual resistance and reactance).
Admittance is the inverse of this complex resistance (impedance).
The impedance of a line path is the sum of the impedances of the individual parts of the line.
87
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.
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-dependent magnetization is
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.
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
output.
... die gleiche Nennleistung ... (im Realen ist die Leistung auf Sekundär bzw. Tertiärseite durch Verluste
immer geringer als auf Primärseite Eingang!!! Verwendung von 40 MW Primär und 100 MW Sekundär
bzw. Tertiär wär aber möglich)
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).
88
Automatic Line Coloring (ALC) - Topology
Capacitors
ENGINEERING
The following warning messages are displayed in the output window of zenon Editor when compiling.
89
Automatic Line Coloring (ALC) - Topology
CALCULATION
The following warning and error messages are logged in the LOG file and can be evaluated with the
Diagnosis Viewer.
Cannot calculate Error The load flow calculation cannot be carried out. Possible
90
Automatic Line Coloring (ALC) - Topology
ALC: At least one of the sources must define the voltage of the area:
91
Automatic Line Coloring (ALC) - Topology
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.
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.
92
Command Sequencer
2. Set the parameters for ALC screen elements that represent lines in the topological network.
Information
The State Estimator module builds on the configuration for the Load Flow Calculation (on
page 64) module.
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.
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 99) 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.) .
93
Command Processing
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.
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.
Status input off
Resets status bits of the response variable configured in the action. The command
variable is not relevant to this action.
Note: Action variable is the same as the name of the response.
You can find a description of the command actions in the action types (on page 132) 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; e.g. *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 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.
This is also applicable for condition variables: X01: *_ClsEna.
Other variables - that have been linked to dynamic elements in the command processing screen - can
also be replaced in Runtime.
You can find further details on this in the Substitution of additional variables (on page 117) chapter.
94
Command Processing
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.
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.
You can find detailed information about the process in the Command Processing screen in the
Process in the Command Processing screen (on page 189) 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.
You can find additional information on the procedure of a command in the Execution of a
command (on page 179) 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.
95
Command Processing
Editor profile Opens the drop-down list for selecting a Editor profile.
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.
96
Command Processing
New release Creates a new manual correction and opens the properties.
Check response value Creates a new Check response action and opens the properties.
New lock Creates a new lock and opens the properties.
Paste Pastes action from the clipboard.
Help Opens online help.
97
Command Processing
Remove variable Deletes the selected variable from the group after requesting
confirmation.
Copy Copies selected variables to the clipboard.
98
Command Processing
The Command Processing module is a comprehensive module with many possibilities for expanding the
behavior in Runtime and amending it individually.
Please also note, for your project configuration in the zenon Editor, the information in the introduction
for this manual. (on page 93)
99
Command Processing
100
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.
A command processing screen allows control in Runtime and an overview of the command processing.
The command processing can be controlled in Runtime using buttons.
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 188) 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 add the default control elements
via menu Control elements/Add template.
101
Command Processing
ENGINEERING
There are two procedures for the creation of a screen from zenon version 8.00:
The use of the screen creation dialog
The creation of a screen using the properties
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.
Template
102
Command Processing
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.
103
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.
Standard Compact display of the command processing with
visualization of:
Actions
Interlockings
Buttons for selection and execution
ENERGY
Template Description
Portrait Format Display of command processing in portrait format,
optimized for placing next to an overview screen:
Actions
Interlockings
Buttons for selection and execution
Lock
Portrait format without interlock Simplified display of command processing in portrait
format:
Actions
Interlockings
Buttons for selection and execution
Complete Enhanced display of the command processing with
visualization of:
Response variables
Action variables
Lock
Actions
Interlockings
Buttons for selection and execution
Complete with interlocking list Enhanced display of command processing including all
interlockings:
Response variables
Action variables
104
Command Processing
Interlocking (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.
Apply Inserts the elements of the selected template in the
screen and closes the dialog.
Cancel Closes the dialog without inserting elements.
105
Command Processing
The Standard template only contains the most important control elements for command actions. It is
suitable for actions that are executed using a context menu or from a command sequence.
106
Command Processing
ACTION/COMMAND
INTERLOCKINGS
SELECT/EXECUTE
Off Command button for switching command, to open a switch for example.
107
Command Processing
The following elements are available in the Control elements menu bar in zenon for the command
processing screen:
108
Command Processing
Action buttons Text Buttons, which can have an action assigned Action1
to them. By clicking in the screen, the Action2
assigned action is activated and the screen
changes to the step "Release"
The button is not shown when:
No action is assigned to the button in the
current command group.
The variable, with which the screen was
loaded, is the command variable, and
the action assigned to the button does
not use the command variable as action
variable. However, if the action 'Lock'
was assigned to the button, it is visible.
The button is shown as locked when:
The screen is not in 'Step 1'.
The response variable has set one of the
status bits I_KENNUNG(18), OFF(20) or
NICHT_AKTUELL(29) and writes the
assigned action to the command
variable.
The response variable has the status
REVISION(9) active and the assigned
action writes to the command variable.
The response variable has the status
REVISION(9) active and the assigned
action is 'Correct'.
The assigned action is 'Release' and the
response variable does not have the
status Alternativevalue(27) active.
The assigned action is 'Correct' and the
value of the response variable matches
the switching direction.
The assigned action is 'Replace' and the
value of the response variable matches
the switching direction.
The response variable has the status
REVISION(9) active and the assigned
action is 'Replace'.
The assigned action is 'Revision' and the
value of the response variable matches
the switching direction.
109
Command Processing
Action variable set List Defines the status to be set for the action
status 'Status default' for the switching direction
'None'. The statuses are set to the current
status and updated when changes occur.
Is locked when the active action is not 'Set
status'.
Switching direction Text The switching direction configured for the
active action. The texts are documented with
the setting 'Switching direction'.
X
Depending on the active action,
the following text is shown:
Command, revision, correction, replace: Text
from limit value, depending on switching
direction.
Status: On or Off
Other: empty
Execute Step 2 Button Delivers the actions to execution.
This control element is visible only when the
screen is in 'Step 2'. X
The control element is locked
when:
Two handed operation was configured
and the Ctrl key is not pressed.
The status REVISION(9) of the response
variable is set and the assigned action is
'Command', 'Set value', 'Replace' or
'Correct'.
The button was already clicked.
Action variable Numeric Minimum value of the action variable.
minimum
Not visible if the action variable is of data
type 'String'.
Action variable Numeric Minimum value of the action variable.
maximum
Not visible if the action variable is of data
type 'String'.
Scrollbars Numeric Setpoint input with scroll bar Sets the value
in the control element 'Set value' or is set by
110
Command Processing
this value.
Not visible if the action variable is of data
type 'String'.
The control element is locked
when:
- No action is active.
- The screen is not in 'Step 1'.
Set value Numerical, Allows the input of the set value.
Text
By clicking the control element, it is switched
to edit mode and the setpoint input is
possible. The edit mode can be left again
with "Enter".
The new value is set only after clicking the
control element 'Execute'.
The desired value for the action 'Set value' is
provided with this control element.
The control element is locked
when:
- The status REVISION(9) of the response
variable is set.
- No action is active.
- The screen is not in 'Step 1'.
RV value Text Value of the response variable X
111
Command Processing
112
Command Processing
Action variable Status Text Status of the active action variable in short X
form.
Action variable Name Text Name of the active action variable. X
The complete template contains all control elements for command and lock actions.
113
Command Processing
Parameter Description
Response variable
Name Name of the response variable
Identification Name of the response variable
Status Contains the short description of the status bits for the
response variable.
Value Current value of the response variable
Measuring unit Measuring unit of the response variable
Action variable
114
Command Processing
115
Command Processing
116
Command Processing
Interlockings
Active interlocking The active interlocking (on page 158) according to the
configuration or texts from ALC - topological interlocking
(on page 34).
Unlock This button unlocks an active, unlockable interlocking.
This control element is shown only when the
screen is in the step 'Unlock'.
The Control element is locked when the upcoming
interlocking is not unlockable.
Select / execute
On First-step command button, to close a switch for
example.
Only visible in Step 1.
Off First-step command button, to open a switch for
example.
Only visible in Step 1.
Confirm Second-step command button.
Only visible in Step 2.
Cancel Second-stage command button.
Aborts the execution of the command processing and
returns to 'Step 1'.
The button is grayed out if the screen is in 'Step 1'.
Close Closes the Command Processing screen.
For command processing, in addition to variable substitution of zenon and the use of placeholders in
response and command variables, further substitution rules can be configured for each command group
and command action. You can thus place further dynamic elements in the command screen, which are
linked to additional variables, whose names are then also automatically substituted in Runtime.
Substitution is carried out in accordance with the response and command variables.
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.
117
Command Processing
The response variables and command variables were configured in the command processing
with the * (star) placeholder.
*_RV, *_CO
Response variable: Variable name of response
Command variable: Action variable
A command input screen is assigned in the respective command group or command action in the
Screen property and the replace in screen property contains at least one item of text.
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 *.
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.
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 command action. 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 substitution 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.
118
Command Processing
Information
You can get further information on substitution via the screen switching function in the
command processing chapter in the functions and scripts manual.
EXAMPLE
Command groups use firstly the variables of the switching actions (the response variable an command
variable) ans secondly, optionally, the variables of the command conditions and the variables of
breaker tripping detection.
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.
119
Command Processing
: 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).
: 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
In zenon Logic with the Externally visible property activated.
You can find this property in the External settings properties group of the variable.
Information
If a variable is linked to a command group, it is not possible to describe the variable with
the zenon Write set value function.
If a write set value (on page 137) 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 157) 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.
120
Command Processing
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.
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.
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:
121
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.
Select the Command Processing entry in the project tree. Select New command group in the context
menu.
122
Command Processing
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.
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.
123
Command Processing
Parameter Description
Name Name of the command group. Must be unique for all interlockings in the
project. This name is used later with the variable that uses this command
group.
The command group can be renamed at any time.
Variable name of response This is the variable name or the mask for the replacement of the response
variable.
A wild card * (star) that appears in a name serves as a placeholder for the
substitute text.
*_RV
*/stVal[ST]
Only one placeholder can be used in a name.
If the name remains empty or the variable that is used here
(replaced or absolute) does not exist at the time of compiling, this
command group is not available in the Runtime. A corresponding message
in the output window points this error out during compiling.
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 to 1 if:
the Return state/switching direction of the action is ON or OFF.
The response variable does not already have the value of the
set switching direction.
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
PROGRESS is only set after a successful 'Select' (SE+COT_actcon) and
then remains set during watchdog timer or edge delay.
If the execution of the action is triggered by a context menu or if it is a
one-step action, the status bit is also set accordingly.
124
Command Processing
Watchdog timer There is the following setting for this drop-down list:
none:
The watchdog timer (on page 179) 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 modal If activated, the screen is displayed modally, regardless of the configuration
for the Modal dialog property for the screen.
Screen title from response The Identification of the response variable is shown in the screen title.
variable This only happens when there a title was configured for the screen at the
frame.
Language switching is supported.
Screen Name of the screen to be opened if the command is called up using a
screen element of the response variable (or action variable).
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.
125
Command Processing
Breaker tripping detection Only available if property Set status PROGRESS is activated.
All variables from the Variables node in the command group can be
used for the formula. Variables from projects loaded in Runtime can
be used. Name replacements with '*' - as with the definition of the
interlocking conditions of an action - are possible.
With active recognition, all variables whose status or value are used
in the formula for breaker tripping detection are activated for
reading when the program is started after loading all projects, and
remain this way as long as Runtime is running.
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.
126
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.
Create action
Actions define the switching commands that are possible for command groups. By selecting the element
Action in the detail view of the command group, you can define a new action with a right mouse click.
Details of the defined actions are also shown in the detail view after creation (e.g. "switching
command: *_BE [ON,1]").
All further settings for the actions are made in the properties window. Some of the properties are
inactive, depending on the action type.
127
Command Processing
Parameter Description
Action settings
Action variable Variables on which is written. For some actions, this is the response
variable. In this case, the field is locked.
The placeholder for the replacement text is the character sequence '*'
within a name. Only one placeholder can be used in a name.
If the variable that is used here (replaced or absolute) does not exist
during compiling, the action is not available in the Runtime. An according
message announces this error during compiling.
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 or pulse
command.
Default: Switching command
Return state/switching Defines the expected value and the status of the response variable after
direction action execution.
Locked for the actions block, lock and release.
Default:
The default value depends on the selected command action.
Command Defines the value that is written to the command variable with the
Command action.
128
Command Processing
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 which is
not available, creates an error message when creating the Runtime
files. In this case the action is not taken over.
Default: none.
129
Command Processing
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
called up by the context menu.
Action name Freely-definable name of the command action.
This can, for the Command Processing module, be displayed in
Runtime using a screen of type Command Processing.
in the Command Sequencer module, this name must be used for the
step.
Command Sequencer Project configurations for the Command Sequencer module.
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 set If the property is activated and the actual value corresponds to the
value and actual value expected set value, the action is skipped in Runtime in a command
sequence.
130
Command Processing
Unit is seconds
131
Command Processing
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 148). 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.
Action types
The action types are the available command procedures. According to the command, different activities
are performed.
The system provides a variety of actions. The following action types can be defined for the command
groups:
132
Command Processing
New replace (on page Changes the status of the response variable to substitute value (ALT_VAL)
139) and writes an alternate value to the response variable.
The writing of variables to substitute values allows the
visualization of the process with manually-collected data during a
communication failure, for example via automatic line coloring.
New revision (on page Sets the REVISION status bit of the response variable.
140)
Alarm handling is suppressed in the revision.
New manual Sets the value of the selected response variable according to the switching
correction (on page direction.
140)
the communication protocols in Energy (IEC60870, IEC61850, DNP3)
preclude direct writing to the response variable.
New block (on page 142) Switches off the response variable (OFF status bit).
the switched-off variables are no longer read by the connected
hardware.
New release (on page Sets substitute value replacement value (ALT_VAL) to 0.
142)
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 activity.
(on page 142)
the action is intended for use in the command sequences module.
New lock (on page 143) The response variable is locked or unlocked for further actions when a valid
locking code is entered.
133
Command Processing
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 148). If two actions have the same ID,
they are tagged with the special symbol M in the action tree.
This Action type is used as a switching command or pulse command depending on the configuration.
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.
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.
134
Command Processing
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 protocols do not provide any possibilities to use a
Select with pulse. 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.
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.
The Remote command (via Process Gateway, VBA, etc.) is forwarded to the zenon command processing,
which processes the sequence (checking of interlocking, forwarding to driver, response, etc.) like a
Switching command (on page 134) .
135
Command Processing
The command processing is not accessible via the command screen or the context menu.
The command is only supported by a previous Select . The action variable must have the Select
Before Operate property activated.
When Runtime is ended, or during reloading, any Select that has been set is discarded.
A master that is connected via Process Gateway is not informed of this. For the master
on the Process Gateway, it must be implemented with a separate configuration of the Process
Gateway (via INI file). This can, for example, be taken care of with a configuration for the
disconnection of a connection.
Hint
Activate, in the command group, the Write status bits to command variables property.
As a result, it is ensured that the Auto/Remote command is influenced by the Block
action type.
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 Befehlsgabe module or direct 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.
In order for this method to be able to execute command processing, a remote command action must
exist 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.
136
Command Processing
Information
You can find further information in the Select before Operate chapter in the Process
Gateway manual, chapter IEC870 Slave.
The forced command action type allows the setting of a command, even if the response variable is
empty, OFF, Not topical or invalid (INVALID). It is not intended for emergency shutdowns.
Interlocking conditions cannot be created for the forced command, because it cannot be guaranteed
that the condition variables have a valid value in Runtime.
Attention
The early or erroneous configuration of a forced command in Runtime can have dramatic
consequences for the equipment. Always set this command with care and protect it with
user authorizations.
The setpoint input action type offers the possibility to set any desired numerical value to the command
variable. The command processing screen offers its own control elements for this, which also allow
manual definition of the set value. With the help of property Return state/switching direction you can
define how the set value should be written:
137
Command Processing
Information
If a variable is linked to a command group, it is not possible to describe the variable with
the zenon Write set value function.
If a write set value (on page 137) 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 157) 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 144) chapter.
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.
138
Command Processing
Changes the status bits of the response variable. The following is executed, depending on the definition
of the switching direction:
Switching Action
direction
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 states configured in the Modifiable states list must be defined in Runtime in the
Command Processing screen with the help of the Set 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). These language of these messages can be switched in 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 input.
Examples of this are:
The OFF and REVISION status bits should be changed by block action type (on page 142) or
revision action type (on page 140). 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.
The CB_TRIP and CB_TRI_I status bits represent the result of the Breaker tripping detection
property.
The process value of a remote-controlled switch is temporarily replaced with a replacement value (due
to revision, maintenance work, or an ongoing connection outage, for example).
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.
139
Command Processing
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
Sets the value for the Revision status bit of the response variable. The value is defined in the Return
state/switching direction property.
Switching Status
direction
Off Set to 0
On Set to 1
The correct action sets the value of the response variable according to the setting of the switching
direction:
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.
140
Command Processing
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.
The text to be displayed can be configured using a limit value or a reaction matrix
for the state/value 5. If this is not the case, a standard text (on page 121) is used.
Nominal/actual value comparison is not supported. The action can be carried out
several times in a row.
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 different to
the value set for the switching direction
and
the switching direction was defined as on or off.
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.
141
Command Processing
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 Release actions resets the replacement value (ALT_VAL) status bit to 0 (inactive). If the Switched off
(OFF) status bit is also active, it is also set to 0 (inactive). runtime receives the current value from the
driver for the response variable once the Release action has been carried out.
The action can only be executed in Runtime, if the replacement value (ALT_VAL) (value: 1). is active for
the selected response variable. 1).
The Check response value action type is to check variables for the status ON or OFF.
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 184) - 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:
142
Command Processing
Information
The Check response value action only serves to read the value of the response variable
without executing an activity.
The action is intended for use in the Command Sequencer module.
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.
If the response variable is set to OFF or Revision , the response value can nevertheless be
checked.
Enables the lock of a response variable for the actions of the command processing.
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.
143
Command Processing
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.
Apply actions
Command Processing in the Energy Edition can be used in different situations. The user can choose the
variant they prefer. A simultaneous use (related to an element) of the different types of use is possible
at any time:
Calling up a screen switching function on a Command Processing screen (on page 146).
Calling up a numeric value, combined element, dynamic text, bar graph, clock, universal
slider, pointer instrument or status element screen.
For activation, the Write set value via property of the element must be configured with Command
Processing.
Call via a context menu if Command Processing was set for the Action type property. The
command processing screen is opened for any possible interaction with the user (e.g. pending
interlocking).
You can find this property in the Representation/type group of the menu properties.
It is called up using the Command Sequencer module.
144
Command Processing
Hint
Always link all screen elements or functions that call up the command processing to a
response variable.
Only by linking to a response variable is it ensured that all actions in the command screen are
available for operation in in Runtime.
Linking to a command variable is expressly not recommended!
As soon as the variable is linked to a command group, direct input of set values is only possible using a
zenon command processing screen or a command context menu.
Exception: If the command group contains a setpoint 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 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.
Attention
With this type of execution, a pending interlocking condition in the write set value
action prevents writing of a set value. In doing so, there is no interaction with the
user.
145
Command Processing
If a Command Processing screen is selected with the Screen switch function, the configuration dialog
for the screen switching function has the following parameters:
Parameter Description
Variable defining the Command The variable configured here defines the command group to be used.
Processing 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.
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 193) chapter.
Attention
If there is no operating authorization for the command variable, screen switching to a
command screen is not possible.
The Command Processing can be instigated by clicking (left mouse button) on a dynamic screen
element. In general, it is a combined element with a symbol of a switch in the topology or a numeric
146
Command Processing
value element that displays the value of the position (0 - off, 1 - on, 3 - invalid etc.) of the switch. The
dynamic element should be:
Configured with Command Processing in the Write set value via property
And linked to a response variable (an action variable for example) . That means to a variable that
has been configured with a valid command group - using the command group property, as well as
a suitable action variable (a response variable for example).
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.
147
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 set value function.
If a write set value (on page 137) 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 157) 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.
The command processing can also be instigated at the element directly via the context menu - property
Runtime - context menu. This is the most frequently used method. In this regard, the context menu is
already the first step of the two-step action. For the second stage (Execute or Cancel), or an
interlocking, a screen - which was linked for the action - may possibly be opened.
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 93), 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.
148
Command Processing
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 153) available for these.
The character sequence ID_CMD_AUTO is reserved for automatically created menu
items. These must always be used with macros, because otherwise only the menu item is
inserted.
149
Command Processing
150
Command Processing
AUTOMATIC CREATION
Entries that were 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, for every action under 'Display - Text' a text must be
defined for the entry in the context menu.
Names for the menu entries:
Command
Set value
Status
Replace
Release
Manual correction
Block
Lock
Revision
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 value text
correction according to the switching direction is displayed.
Replace
Status 'OFF' or 'ON', depending on the set switching direction
Revision Text from the limit value text, according to the switching direction.
Others No special action text is displayed.
151
Command Processing
Example
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 (an according error message is transferred to 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.
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.
152
Command Processing
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.
A macro is a defined character sequence that is replaced by a text when menu items are created in
Runtime. Virtually all macros can occur more than once per menu item. They can also contain further
macros as a result. In doing so, the expansion sequence must be considered. Macros are not case
sensitive when configuring menus. If macros contain a macro as a result, the macro must be contained
in capitals in the result. The entry is made with $ as a prefix and suffix.
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$
6. $DIR$
7. $ACT$
8. $NAME$
153
Command Processing
Macro Description
$ALL$ Results in Action naming: Switching direction.
Corresponds to the combination of the $ACT$: macro $DIR$
If a context menu is created for the command processing, the default
text is $ALL$, even if the menu already has text configured for it but the
action type changes to command processing.
$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.
$TAG$ Is replaced by the identification of the action variable.
The identification can be translated by the online language translation
function. If no translation character (@) is contained, the whole identification is
highlighted for translation.
$REMA<Status>$ <Condition> is a Rema or limit value state, the text of which is used as a
replacement.
If the status is not present, the menu item is not displayed.
The limit value text is translated linguistically according to the placement of @ .
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:
154
Command Processing
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.
The labeling for the menu item in the Text property is translated linguistically before macro expansion
from the character @.
If, for the $TAGS$ macro, no translation indicator (@) is contained, the complete text is
translated.
When menus are loaded in the Runtime environment, their content is checked for consistency. If an
error occurs, corresponding error messages are issued for the Diagnosis Viewer. The following
messages can appear:
155
Command Processing
Parameters Description
Menu entry for command processing The menu already contains a menu entry with the name used in
suppressed, because name is several the command processing. Do not use that name for any other
times in the menu! menu entries for the command processing.
Menu entry for command processing There is already a menu entry with the same description in the
suppressed, because description is menu. Automatically created menu entries are not added, when
several times in the menu! a menu entry with the same description is already there.
Text for menu entry cannot be The description of an automatically created menu entry could
detected! not be determined. This most probably indicates a missing limit
value text.
No command group linked to variable The variable associated with the screen element has no
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.
After activation of a menu item for command processing, the assigned action is carried out. Execution
via a menu activates the setting of the NET_SEL status bit in the first step. Only if this was successful is
the execution of the actual action (a switching command, for example) started.
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.
156
Command Processing
Information
If none of the above-mentioned conditions are applicable, the action is executed
immediately, without further operations.
If the variable assigned to a screen element is linked to a command group, the writing of a set value is
also handled by the command processing. The requirement for this is that a Write set value action is
present with Return state/switching direction switching direction in the Command Processing. If this is
missing, the writing of the set value is not carried out.
Information
An active interlocking condition prevents the writing of a set value.
Command conditions
Command groups contain both the definition of the switch actions and the definition of the command
interlocking conditions. Command conditions are optimum parameters that can be defined
application-specifically.
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.
157
Command Processing
Information
In addition to the command conditions, the following interlocking types are automatically checked
before the action is executed:
Internal interlocking conditions
Topological interlocking conditions
These conditions are checked automatically before every action execution; the engineer cannot
influence this. These Internal interlocking conditions (on page 160) are predefined by the system and
serve as plausibility checks.
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).
These conditions result from the current topological status during Runtime. These conditions are
defined in the 'Configuration of the topological interlockings (on page 34)' settings of the project for
Automatic Line Coloring.
Any number of command conditions can be defined for every action. These conditions allow for an
additional restriction of the ability to execute an action. These conditions are defined with formulas, in
which you can use the variables from the active projects. The formula addresses the linked variables via
the index in the condition.
Information
The condition variable is automatically replaced if a ’*’ is used in the definition.
158
Command Processing
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.
Information
Variables used in a formula cannot be removed from the Variables node of the
command group:
In an interlocking 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.
159
Command Processing
With the help of the internal interlocking conditions the basic requirements for the action are checked
(plausibility check). The results, or the addressing of an interlocking, are displayed in Runtime in the
command processing screen in the interlocking text screen element.
160
Command Processing
Parameter Description
Status already exists The state which should be set equals the current value of the response
variable. This check is only active if the property Nominal/current value
comparison has been activated for the action.
161
Command Processing
Timeout for SBO Within the configured Timeout, no confirmation, either positive or
deactivation 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.
: the Watchdog timer of the command group determines what
needs to be fulfilled before the action is completed.
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.
: The respective communication protocol determines whether a
controller can report the Select timeout. If so, the Energy driver signalizes
the process of the Select - the action variable gets the status bits
COT_actterm(10) + N_CONF + SE_870.
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.
Formula editor
The formula editor provides support when creating formulas with logical or comparative operators with
a combined element, for interlockings and command processing. If additional variables are required for
a formula, create these in the formula variables area of the status window by clicking on the Add
button. existing formulas are displayed in the status list with the lettersF .
162
Command Processing
CREATING A FORMULA
Click on the Formula button in the status window. The formula editor opens
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.
163
Command Processing
Parameter Description
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.
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 166).
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 169) 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 169) 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.
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
164
Command Processing
165
Command Processing
Bit number Short term Long name zenon Logic long name
0 M1 User status 1; for Command _VSB_ST_M1
Processing: Action type "Block" (on
page 143); Service Tracking
(Main.chm::/IEC850.chm::/117281.
htm) of the IEC 850 driver
1 M2 User status2 _VSB_ST_M2
2 M3 User status3 _VSB_ST_M3
3 M4 User status4 _VSB_ST_M4
4 M5 User status5 _VSB_ST_M5
5 M6 User status6 _VSB_ST_M6
6 M7 User status7 _VSB_ST_M7
7 M8 User status8 _VSB_ST_M8
8 NET_SEL Select in the network _VSB_SELEC
9 REVISION Revision _VSB_REV
10 PROGRESS In operation _VSB_DIREC
11 TIMEOUT Command "Timeout exceeded" _VSB_RTE
(command runtime exceeded)
12 MAN_VAL Manual value _VSB_MVALUE
13 M14 User status14 _VSB_ST_14
14 M15 User status15 _VSB_ST_15
15 M16 User status16 _VSB_ST_16
16 GI General query _VSB_GR
17 SPONT Spontaneous _VSB_SPONT
18 INVALID Invalid _VSB_I_BIT
19 T_STD_E External standard time (standard _VSB_SUWI
time)
up to version 7.50, this
was the status bit T_CHG_A
20 OFF Switched off _VSB_N_UPD
21 T_EXTERN Real time - external time stamp _VSB_RT_E
22 T_INTERN Internal time stamp _VSB_RT_I
23 N_SORTAB Not sortable _VSB_NSORT
24 FM_TR Error message transformer value _VSB_DM_TR
166
Command Processing
167
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.
Logical operators
Logical links: Variables will only be checked for the logical value '0'; if the value does not equal '0', it will
be considered as '1'.
In contrast to bit formulas, the technical range can be modified by a stretch factor -> (not equal '0' or
'1').
Operator Meaning
AND logical 'AND'
NOT Negation
OR logical 'OR'
XOR logical 'EXCLUSIVE OR'
168
Command Processing
Priority Operator
1 & (operator for bit formulas (on page 169))
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.
Bit formulas
Bit formulas only have a logical high or low state. In contrast to logical formulas, the raw value is already
predefined (0,1).
Operator Description
& AND
| OR
You want to find out if one of the user status bits 1-8 (M1 ... M8) of the variable X01 is set.
USUAL FORMULA:
169
Command Processing
LOGICAL ORING
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).
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).
The bitwise ORing works with the OR character (|), the same as in this example.
Comparison operators
Comparison operators are for the direct comparison of two numeric values. The result of this
comparison is a binary value. "0“ if the condition is not fulfilled and „1“ if the condition is fulfilled.
Operator Description
< less
> greater
<= Less than or equal
>= greater or equal
= Equal
<> unequal
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.
170
Command Processing
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)
Example
(X01.Value> X02.Value) AND (X01.Value = X02.Value)
171
Command Processing
Example
(X01.Value> X02.Value) AND (X01.Value = X02.Value) OR (X01.03 = X02.03)
Example
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.
Command Processing can also be activated via a context menu. Context menus are created in the Editor
using node Menus and are defined in the properties of the element they concern.
172
Command Processing
Parameter Description
Action type Sets out which type of action is to be carried out via the corresponding menu item in
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)
Show Extended Trend
Function
Help
No action
Write set value
VBA macro (context menu only)
Submenu Opens a sub-menu in Runtime.
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.
173
Command Processing
When creating Runtime files for the command groups, a check for engineering errors is performed. In
addition, there is validation for the correct substitution of the variable names.
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.
Exception: the "Lock" action is also available with command processing.
Information
Changes to the configuration for variables require the project to be recompiled.
In order to increase the reusabilty of the command group, there is the possibility to replace the variable
references. Replacement is possible for the response, command and condition variable.
During the replacement, the placeholder (wild card *) is automatically replaced by the name of the
variable that is assigned to the command processing.
EXAMPLE
The command group was configured in the Variable name of response property with the *_RV mask. In
the project, the variables xyz_RV, abcRV and bool_RV are created and linked to the command group.
174
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.
At the creation of the Runtime data for the command processing, an extensive validation is carried out
concerning wrong engineering and not-available references.
175
Command Processing
Information
After an Error the object the caused the error is not available during runtime.
If the command group has an Error, no command group is assigned to the variable.
Consequently, during the Runtime, all user operations are locked.
A Warning is generated when the project would cause a problem in the process of
command input. 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:
176
Command Processing
177
Command Processing
(<AUFVAR>) Variable '<VARNAME>' of Variable of the interlocking condition does not exist.
action interlocking condition of the
command processing '<VERNAME>' does
not exist!
(<AUFVAR>) action variable The action variables used for a command group
'<VARNAME>' for action '<Actionname>' may only be connected to no command group or to
of command group '<VERNAME>' uses the command group in which they are used.
another command group!
(<AUFVAR>) command variable <ACTVAR> The action variable used in the action has no
does not have a validly compiled compiled command group. This message can also
interlocking! Action <Actionname> be a follow-up error.
removed.
(<AUFVAR>) command variable <ACTVAR> The compiled command group of the response
uses response variable <VARNAME>! variable contains actions with action variables
Action <Actionname> removed. which do not use the same response variable as
<AUFVAR>.
: There must not be any actions of response
variables changing other response variables.
178
Command Processing
A watchdog timer is automatically carried out in the background if a used enters commands in Runtime.
This description for the procedure of a command with the command processing is applicable for the
following action types of the Command Processing:
Command (on page 134)
Auto/Remote command (on page 135)
Mandatory command (only in part) (on page 137)
Setpoint input (on page 137)
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 189) chapter.
VARIABLE PROPERTIES
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).
This also applies if "none" or "via response variable" are configured for the watchdog
179
Command Processing
timer.
If no COT_accterm is received, only a TIMEOUT status bit 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 no reaction to a sent Select will be received from the PLC.
Once the configured Timeout has expired, the command processing screen will
inform you of the "Timeout on SBO activation" interlocking condition.
The Watchdog timer property in the command group determines which conditions need to be met in
order to conclude the action as successful. In addition, the Watchdog timer property determines how
long the command processing remains active in order to possibly send a deactivation (Cancel) to the
PLC, to update the status bits of the response variable and to guarantee forwarding via the
auto/remote command.
None
without Select Before Operate:
Direct command to the controller ("fire & forget") - sends the command to the controller
and does not wait for a response.
with Select Before Operate:
There is a wait in the background until the COT process has been completed in full. No
TIMEOUT status bit is set, even if a Timeout has expired.
Via cause of transmission only (COT)
The action has been successfully completed after a complete COT process (COT_actterm(10)
has been received).
Only via response variable (RV)
The action has been successfully completed if the value of the response variable corresponds to
the response status/switching direction in the action.
with Select Before Operate:
There is a wait in the background until the complete COT process has been completed. Even
if a Timeout has expired, no TIMEOUT status bit is set.
Via RV and COT
The action is successfully completed if both of the above-described conditions have been met.
You can find further details in the runtime monitoring (on page 184) chapter.
180
Command Processing
One-step:
After a successful Select , the command processing automatically transfers the Operate/Execute
to the driver.
Two-step:
A successful Select activates the buttons Execute 2nd Step and Cancel in the command
processing screen:
If Execute 2nd Step is clicked on, the Command Processing transfers an
Operate/Execute (COT_act(6) without SE) to the driver.
If Cancel is clicked on, a Cancel(COT_deact(8), SE) is forwarded to the driver via
command processing.
Timeout:
The configured value states how long is waited for a response from the PLC. Respectively:
After writing an Select command.
After writing an Execute command.
After writing an Cancel command.
Timeout can be canceled:
If this property has been activated, the user can also cancel a Watchdog timer that is still running,
for example during an attempt to synchronize the frequencies of the electrical grids in the
controller. The Cancel button in the command screen remains operable whilst the Execute
command is executed. Depending on the configuration of the Cancel Operate variable property,
it is also possible to inform the PLC of the cancellation.
: not all Energy protocols offer a technical possibility to cancel an Operate. It is thus not
possible for every Energy driver to forward a Cancel to the PLC.
Select before Operate is a procedure in Energy protocols (such as DNP3, IEC61850 or IEC60870-101/104
for example). A "reservation/pre-assignment", the Select command, is first sent to the PLC. Only if this
pre-assignment of the PLC is successful is the corresponding Execute command sent via the driver
(using a command).
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.
181
Command Processing
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.
the PN bit - Positive(0)/Negative(1) - is reflected on the status bit N_CONF of the action variable.
The command processing first sends a Select to the driver. All buttons in the command processing
screen are grayed out while the action waits for a reaction from the PLC.
Information is shown in the command processing screen once the Timeout action has expired. This
message is displayed in the field of the interlocking text. Internal interlocking condition
"Timeout for SBO activation".
182
Command Processing
In this case, only the Cancel button is available. All other buttons of the Command Processing screen
are still grayed out.
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 command processing triggers the driver to send a Select (COT_act(6) + SE) . If a negative
response is received by the PLC (COT_actcon(7) + SE + PN=1), waiting is no longer carried out.
The PROGRESS bit is removed by clicking on the Cancel button. The response variable does
not receive a TIMEOUT status bit in the process.
If the action receives a negative response to Select, this information is displayed in the field of
the interlocking text: internal interlocking condition "SBO rejected".
In this case, only the Cancel button is available. All other buttons of the Command Processing
screen are grayed out.
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.
the PN bit - Positive(0)/Negative(1) - is reflected on the status bit N_CONF of the action variable.
If the PLC reacts positively to a Select (COT_actcon(7) + SE) (thus a confirmed Select), the action
goes to the next step => execution
The command processing ends the waiting for a Select.
The response variable has its PROGRESS status bit set. However this is only if the current value
of the response variable is different to the value of the command.
183
Command Processing
b) Two-stage actions:
The Execute 2nd Stage and Cancel become active in the command screen. If a user
confirms the Execute 2nd step button, the command processing sends an
Operate/Execute to the PLC.
The PROGRESS bit is reset if the PLC confirms the Execute (COT_actcon(7)) or after expiry of the
following Watchdog timer.
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.
Watchdog timer
The simplest runtime monitoring, not envisaged for Energy drivers, is carried out if:
The Watchdog timer property in the command group is none or only via response variable
(RV);
Neither the Select Before Operate property (SBO) nor Cancel Operate has been activated.
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.
Value changes of the response variable will only be taken into account after COT_act(6).
184
Command Processing
Information
COTx Status bits result in a value. This value can be evaluated in Runtime - just like all
other status bits - using multi numeric or multi binary reaction matrices.
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.
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 if the confirmation for Select is received or the Timeout for Select has
expired.
185
Command Processing
By clicking on the button to unlock the interlocking, the Execute 2nd step button becomes 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.
In this case, the interlocking cannot be unlocked by a user.
Information
Execute negative
During watchdog timer, the PLC can react negatively to an Execute/Operate (COT_actcon(7) +
PN). If the negative ration to an Execute was received, runtime monitoring is ended.
Execute Termination negative
If Execution Termination (COT_actterm(10) + PN) is reported as negative by the PLC, runtime
monitoring will no longer wait for a value change to the response variable and ends
immediately.
The PROGRESS status bit is reset. The TIMEOUT status bit is not set for the response variable.
the PN bit - Positive(0)/Negative(1) - is reflected on the status bit N_CONF of the action variable.
If the Timeout can be canceled property has been activated for a command processing action, the user
can cancel runtime monitoring - the second stage of execution (Execute) - with the "Cancel" button.
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.
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.
186
Command Processing
The Watchdog timer via the response variable is the most-used type of runtime checking. This reacts to a
change of the value of the response variable. The value which is expected from the response variable as
a result of the command defined in the property Return state/switching direction (on/off).
Negative responses from the PLC (COT_actcon(7) + PN) end runtime monitoring.
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.
With Watchdog timer via COT only, runtime monitoring does not react to the value of the response
variable (RV) but only to the cause of transmission - the status bits COTx status bits of the action
variable.
187
Command Processing
With Watchdog timer via COT and RV, the runtime monitoring reacts to the value of the response
variable (RV) and to the cause of transfer - the COTx status bits of the action variable.
A command processing screen allows control in Runtime and an overview of the command processing.
The command processing can be controlled via buttons. Templates with different appearances are
provided.
ENGINEERING
There are two procedures for the creation of a screen from zenon version 8.00:
188
Command Processing
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.
The command processing screen has a multi-stage process, which consists of the following steps:
1. Initialization
2. Step 1
Specifying the action
3. Unlocking
Checking the interlockings and requesting a Select
4. Step 2
Executing the command
5. Waiting until execution is complete
189
Command Processing
Depending on the step in which the process is currently in, the control elements are updated, opened or
hidden in the screen.
: 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 data points 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. 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 193).
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, it remains specified. If no 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.
190
Command Processing
1. Setpoint input
If a control element has been configured for the entry of action variable value or action
variable value (slider) in the screen and the setpoint input [set value] action
exists for the switch variable.
2. Status input
If a set status control element has been configured in the screen and there is the status
input [none] action for the switching variable.
3. Lock
If the screen has been opened using the Screen switch function with the initial step lock
property and the command group contains the lock action.
4. If no action could be determined from any of the tests, the screen is opened without an active
action. The control elements for entry and also the Execute button are then deactivated.
: 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.
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
If the Confirm (Screen type specific action: Execute 2nd stage button is clicked on and
there is a valid Select ,
no interlocking condition active,
191
Command Processing
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 Select is 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).
In this step, there is a wait until the action has been completed in full. The duration of the execution
depends on the driver (or rather the controller) and the configuration. Negative responses from the
controller cancel execution; a negative response to an Operate, for example.
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.
: 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
192
Command Processing
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.
If, for the lock action, the Close automatically has been configured, the screen is closed once the Lock
or Unlock buttons are clicked on.
Some requirements must be met in order for the entries in the context menu and the control elements
in the screen to become active. Because these mostly concern several elements, a summary of these is
documented here.
the entries in the context menu and the control elements in the opened screen are locked up to Close
if:
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
: 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
: the control elements for the Lock action
An action is running for the action variable and runtime monitoring has not yet been completed
: 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.
193
Command Processing
UNLOCK
If the screen is called up with the Lock command action, only the following control elements are visible in the
screen:
Response variable (name)
Response variable (identification)
Response variable (value)
Response variable (status)
Response variable (measuring unit)
Lock
User
Apply lock code
194
Command Processing
195
Command Processing
: The name is also displayed in the [command] name of the action variable system driver
variable.
196
Command Processing
: The name is also in the [command] name of the response variable system driver variable.
197
Command Processing
: The steps are also displayed in the [command] screen step system driver variable.
198
Command Processing
Control elements from the Lock group are locked if no Lock action is configured in the command group.
199
Command Processing
200
Command Processing
: The interlocking texts are also displayed in the [command] interlocking message system
driver variable.
5.4.3 Reload
201
Command Processing
In the CEL, the following user actions are logged in addition to the switching actions.
Parameters Description
Unlock The unlocking of an active interlocking is noted in the CEL.
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.
If the standby server takes on the role of the Primary Server, the drivers take on the writing to the
controller for the current Primary Server. An ongoing Select Before Operate is canceled as a result.
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.
Please note the behavior or Runtime (on page 202) if redundancy switching is not triggered by a failure
of the Primary Server but by the user.
As long as there are still active actions in the system, the proper exiting of the runtime (e.g. over a
function call) is delayed.
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.
202
Command Processing
A response variable is locked if the M1 user status bit has been set.
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.
203