Energy Edition
Energy Edition
Energy Edition
v.7.00
1
© 2012 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. The technical data contained herein has been
provided solely for informational purposes and is not legally binding. Subject to change, technical or
otherwise.
Contents
3
4.3.4 Logging in the CEL ..................................................................................................................... 117
4.3.5 Lock return variable .................................................................................................................. 117
4.3.6 Server change in redundant operation .................................................................................... 118
4.3.7 Exit Runtime ............................................................................................................................. 118
4
Welcome to COPA-DATA help
GENERAL HELP
If you miss any information in this help chapter or have any suggestions for additions, please feel free to
contact us via e-mail: documentation@copadata.com (mailto:documentation@copadata.com).
PROJECT SUPPORT
If you have concrete questions relating to your project, please feel free to contact the support team via
e-mail: support@copadata.com (mailto:support@copadata.com)
If you realize that you need additional licenses or modules, please feel free to contact the sales team via
e-mail: sales@copadata.com (mailto:sales@copadata.com)
5
Energy Edition
2. Energy Edition
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.
License information
Must be licensed in Editor and Runtime.
ALC (Automatic Line Coloring): Already included in the license for Energy Edition, provides basic
properties for line coloring.
Topology package: Requires additional licensing on the server (not on the client) and expands
ALC by:
Multiple supplies
Secured supply
Topological interlockings
Topological element disconnector
Error detection and ground fault search
6
Automatic Line Coloring (ALC) - Topology
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.
Info
The ALC algorithm only runs through once from a source starting from each switch.
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 36) can be displayed with the data from
different equipment parts, for instance outputs or partial networks.
LICENSING
Must be licensed for Editor and Runtime (single-user, server, standby). No need to be licensed for Runtime
client. Licensing is carried out using the zenon Energy Edition.
ALC: Included in the license for Energy Edition; provides basic properties for line coloring.
Topology package: Requires additional licensing on the server (not on the client) and expands
ALC by:
Multiple supplies
Secured supply
Topological interlockings
Transformer and separator topological elements
7
Automatic Line Coloring (ALC) - Topology
CONFIGURATION
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 19).
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.
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
8
Automatic Line Coloring (ALC) - Topology
Source active
Switch closed
Undefined or invalid
Info
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.
Property Description
Function type Defines the technological type of the Combined element.
Conclusion For bus bar ends. Blocks the error message "Line only connected on one
side" when being compiled in the Editor.
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.
9
Automatic Line Coloring (ALC) - Topology
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 with the defined
source color up to the next switch. In this case a switch forwards the source color
of the input line to the output line.
See Switch example - colors from ALC (on page 12) section.
Valve A valve acts in a similar manner to a switch, but it is used for water and gas
lines.
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 customers
are considered for the calculation of the ALC interlockings (command groups)
'Consumer is undersupplied'.
Transforme A transformer is a drain and a source at the same time. SO with a transformer the
r input color (input source) can be transformed to a new output color (transformer
source color).
The output connection is only active, if the transformer is switched active. But the
output line does not get the color of the input line as with a switch, but the source
color of the transformer. So a source has to be defined for each transformer. A
transformer cannot be switched active or inactive, it always is active.
10
Automatic Line Coloring (ALC) - Topology
Link With a link a line can be continued on some other place. If a link is supplied by a
line, all other links with the same link number 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. So screen independent lines can be defined. It is possible to have
more than two links with the same link number in one project.
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
source information is passed on to all connected lines.
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).
A link cannot be switched active or inactive, it always is active.
Link number Only the link number is entered for a link function. All identical link numbers in a
project correlate with each other. Detailed description in the function type Link.
This property is only active, if the function type link has been selected.
Source Here a source is assigned to an element. In this selection box 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.
A variable of the IEC type BOOL or integer has to be linked to the element as the main variable, so that
the switch can get the status (open, closed, invalid). In the same way, the source gets its status
(active/inactive) from the linked main variable.
For the function types source and transformer the defined source number is forwarded to the
consumers (drains) over open/closed switches. The statuses and colors of all connected lines are
calculated from the superposed sum of the supplying source numbers and procedural elements.
11
Automatic Line Coloring (ALC) - Topology
Info
Only the first two bits are considered for the switching. The first bit stands for the actual
switching. 0 equals off and 1 equals 1.
STATES
A switch and a source are switched on 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.
An invalid switch provides the source number 0 (undefined) at its exit (connection 2) instead of
the source number entering. In the direction towards the input the switch behaves as normal.
if the (acknowledgement) 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 (routed) using subsequent closed switches.
Attention
If in the single status the color and the filling color from the ALC is activated, also the
procedural elements are colored by the status of the connected lines in the Runtime.
EXAMPLE 1
Combined element with value status 00 and line color from ALC:
12
Automatic Line Coloring (ALC) - Topology
EXAMPLE 2
13
Automatic Line Coloring (ALC) - Topology
EXAMPLE 3
14
Automatic Line Coloring (ALC) - Topology
EXAMPLE 4
15
Automatic Line Coloring (ALC) - Topology
16
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.
All possible connection points are shown in detail in the following illustration:
X = 1/3 width
Z = 1/3 height
Info
If a line is outside the area shown above, there is no connection and thus no coloring. So
there will also be no coloring for further lines.
With sources, drains and links, all described connection points can be generally used.
Attention
With sources and drains only one connection point must be used at the same time. It
does not matter which connection point. 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.
In switches/disconnectors/valves and transformers, the connection 1 (input) is on the left or on the top
and connection 2 (outputs) are on the right or on the bottom. This background color can be changed
with the Switch input/output property.
17
Automatic Line Coloring (ALC) - Topology
Info
At switches and transformers it has to be cared, that only one input connection and one
output connection is used. The simultaneous use of several input or output connection
points results in inconsistencies and is therefore not reliable.
Info
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, disconnector or switch is configured, the input and output can be switched. To do this:
The input is then placed at the right or at the bottom and the output is placed left or at the top.
OVERVIEW
18
Automatic Line Coloring (ALC) - Topology
3.1.2 Lines
Lines are represented by vector elements Line, Polyline and Tube.
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.
19
Automatic Line Coloring (ALC) - Topology
Parameters Description
Color from ALC Activates the automatic line coloring for these vector elements. 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 supplies
Secured supply The element is displayed according to the rules of the secured supply.
Multiple supplies The element is displayed according to the rules of the multiple supply.
No priority The coloring rules for multiple supply and for secured
supply are applied at the same time if both criteria are met.
That means:
If a line
20
Automatic Line Coloring (ALC) - Topology
display multiple Multiple supply means that a line is supplied by multiple sources at the
supplies same time. Here you can define how lines with multiple supply are
displayed.
highest priority The line gets the color of the source with the highest priority.
source 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 the these two colors (dashed). The dash length can be changed
using the Dashing length supplied multiple
times property.
System sources apply fir multiple supplies just as with genuine sources
and color lines in two colors it they are configured accordingly.
Dashing length Defines the dash length (in pixels) of lines, polylines or tubes for
supplied multiple the dashed ALC coloring for two sources with the
times highest priority for display multiple
supplies.
Maximal: 32767
Default: 0
Alternative color Alternative color for the ALC coloring of lines, polylines or tubes
with multiple supplies.
display secured Secured supply means that a line gets multiple supply from one source
supply (parallel). Here you can define how 'secured supply' is displayed.
21
Automatic Line Coloring (ALC) - Topology
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:
The color is always defined by the source with the highest priority!
normal The element is displayed in the color of the source and with the
configured width.
Alias Opens the dialog (on page 36) for selecting a model.
Info
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.
22
Automatic Line Coloring (ALC) - Topology
Info
The calculation of the color of a line in the Runtime is done with the following
priority list:
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
23
Automatic Line Coloring (ALC) - Topology
two highest
priority sources
double width
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!
In the following illustration the connection area is displayed graphically (the green lines are connected
to the black one, the red line not.
24
Automatic Line Coloring (ALC) - Topology
Info
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.
25
Automatic Line Coloring (ALC) - Topology
Info
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.
ALC: Screen '%s' - Two Link elements with different Link number are connected to line '%s' .
(Double click opens the screen and selects the line.)
ALC: Screen '%s' - More than two connection points are used at element '%s'. For each element
only one input and one output may be used. (Double click opens the screen and selects the
element.)
The following warnings can be displayed.
ALC: Screen '%s' - Alias line '%s' is connected to a no-alias line. (Double click opens the screen
and selects the line.)
ALC: Screen '%s' - Alias element '%s' is connected to a no-alias line. (Double click opens the
screen and selects the element)
ALC: Screen '%s' - No-alias element '%s' is connected to an alias line. (Double click opens the
screen and selects the element)
ALC: Screen '%s' - Line '%s' is only connected on one side. (Double click opens the screen and
selects the line.)
ALC: Screen '%s' - Element '%s' is not connected. (Double click opens the screen and selects the
element)
ALC: Screen '%s' - Element '%s' is only connected on one side. (Double click opens the screen and
selects the element)
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.
26
Automatic Line Coloring (ALC) - Topology
3.2 Configuration
Standard
The 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 the following status, the UNDEFINED color is
used for coloring from this point onwards:
is invalid [value: 3]
27
Automatic Line Coloring (ALC) - Topology
With the Supply takes priority 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.
In the first stage, as with Standard, the source color is distributed in the network from each
switched source, as long as the next switch is closed. The search is ended if the switch is open or
invalid/undefined.
In the second stage, the search is started at each invalid/undefined switch that receives a supply
from one side and the UNDEFINED color is distributed to the unsupplied side. This search also
considers the switches that are invalid/undefined as closed and thus distributes the UNDEFINED
color in the network until it meets a clearly open switch. In addition, a search is ended if a line
element is reached that is already supplied.
28
Automatic Line Coloring (ALC) - Topology
29
Automatic Line Coloring (ALC) - Topology
Parameters 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.
IDs 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 Enter or by selecting another source.
Foreground Foreground color of the source. This color is used for coloring lines, polylines and as
the outside color of tubes.
Background Background color of the source. This is used as the background color for tubes and
procedural elements (Combined element).
The definition of the colors can directly be done with entering the according hexadecimal code. To do
this click the color with the left mouse button, so that the edit mode is activated. The changes are
accepted with Enter or by selecting another source.
Alternatively the color can also be selected from a dialog. When activating the hexadecimal code, a ...
button appears in the columnClicking it opens the color selection.
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 is 0-FF
GG 2 digits are the green value of the color in hexadecimal system. 0-255 is 0-FF
BB 2 digits are the blue value of the color in hexadecimal system. 0-255 is 0-FF
New sources are created or existing sources are deleted by means of the 'New' and 'Delete' buttons.
30
Automatic Line Coloring (ALC) - Topology
Attention
Limitations for deleting sources:
The sources 0 to 9 are reserved for system sources and cannot be deleted.
Info
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
Info
This dialog is only available when both the "Energy Edition" and the "Automatic Line
Coloring" modules are licensed.
31
Automatic Line Coloring (ALC) - Topology
The following conditions are available: The settings made here apply globally, for the whole Topological
Model:
Parameters Description
Voltage towards Interlocking is active if a switch/disconnector is to be closed and a grounded
ground potential is connected to its first connector and its other connector is connected
or undefined.
Switching action Interlocking is active if a switch disconnector is to be closed and both of its
in an area with an connectors are 'undefined' or 'disturbed'.
undefined status
Disconnector under Interlocking is active if certain conditions have been met for switching on or off.
load
Conditions: See "Disconnector under load - interlocking conditions (on page
33)" section.
Device would no Interlocking is active, when a consumer, which was supplied before, would be
longer be supplied unsupplied after the switching action (by switch or disconnector).
Area with Interlocking is active if a switch disconnector is to be closed and one connector
undefined status is 'undefined' or 'disturbed' and the other not.
would increase
If you click in the Status column in one of these interlockings, a drop-down list opens with three
choices:
32
Automatic Line Coloring (ALC) - Topology
Parameters 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 a command (Command screen). This unlocking action is
logged in the Chronological Event List.
not unlockable The selected condition is considered in this project. The user cannot unlock it.
the variable is manually corrects or set to Alternate value and with this is set to the same
variable value as the initial value; in other words if the switch:
is set to OFF and then it is manually correted to OFF or replaced with Alternate value
OFF.
is set to ON and then it is manually correted to ON or replaced with Alternate value
ON.
For the disconnector under load topological interlocking, a disconnector can be switched if one of
the following conditions is met:
The left and the right line segment receive energy from the same source
If the left line segment does not receive any voltage, the right line segment is grounded
If the left line segment is grounded, the right line segment does not receive any voltage
33
Automatic Line Coloring (ALC) - Topology
The left and the right line segment would receive energy from the same source
If the left line segment does not receive any voltage and the right line segment is grounded
If the left line segment were grounded, the right line segment would not receive any voltage
Info
Meaning of "not under load"
All of the following conditions must be met for the status of not under load:
All switches and disconnectors connected to the line segment are open.
All sources and consuming devices connected to the line segment are switched off.
It must not be a line that is only connected to this disconnector (open line).
34
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.
35
Automatic Line Coloring (ALC) - Topology
CREATE ALIAS
Line
Polyline
Tube
Combined element
To create a source element as an alias:
(to do this, ALC must be licensed and the Color from ALC property active)
36
Automatic Line Coloring (ALC) - Topology
37
Automatic Line Coloring (ALC) - Topology
Parameters 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 standard search term with wild cards (*). The last 12 search
terms are offered in the list until the Editor is ended.
Selected alias Shows the selected element in the field of Available ALC elements.
Info
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 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. The same dialog as is opened for the target as the Alias property.
38
Automatic Line Coloring (ALC) - Topology
Info
This function is only available when both the "Energy Edition" and the "Automatic Line
Coloring" modules are licensed.
ERROR DETECTION
Error detection runs locally. 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 network.
Configure (on page 9) ALC to the corresponding combined elements (switch, transformer,
disconnector, valve)
configure (on page 19) the lines so that they are colored by ALC
Special functions are available in Runtime for error detection:
acknowledge (on page 46) ground fault message (on page 46)
39
Automatic Line Coloring (ALC) - Topology
COLORINGS
Errors can be shown by a special coloring for the lines in ALC. 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 34) function.
Messages are processed in the order in which they arrive. In the event of conflicts
40
Automatic Line Coloring (ALC) - Topology
Which network parts potentially have a ground fault can be deduced from the ground fault messages
from ground fault identification devices (ground fault indicators, protective device with ground fault
recording). The following applies for ground faults:
Ground faults are either dealt with by permanent message processing or by transient message
processing.
For directional ground fault devices, the direction can be lagging or leading in relation to
triggering.
leading: First the message, then the transient bit.
lagging: First the transient bit, then the message.
Info
A network component that potentially has a ground fault is then no longer considered to
have a ground fault if this has been successfully connected.
1. assign the combined element that represents the switching element to the Function type
switch (on page 42)
2. define the ground fault search mode (on page 42), fault display (on page 43) and ground fault
indication triggering (on page 44)
3. set up the functions for start ground fault search (on page 45), acknowledge ground fault search
(on page 46) and end ground fault search (on page 47)
Info
In order to also be able to set limits in intermeshed networks, only one area subject to a
ground fault per path is searched for a fault.
41
Automatic Line Coloring (ALC) - Topology
select the desired mode in the Mode of the search for ground faults property
drop-down list
Color network part: colors only the network parts that are potentially subject to a
short circuit
color whole network: colors in the whole linked network where the ground fault is
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 information processing for the switch type combined element are determined
by the Type setting. to configure:
1. navigate to the Automatic Line Coloring node in the combined element properties
3. select the desired type with the direction and type of alarm processing in the Type property
Direction:
indicates if the raising edge of trip alarm or if the raising edge of a direction comes
before
leading: The current direction status is used for the raising edge of the trip alarm
lagging: after a raising edge of the trip alarm, the first raising edge of a direction is
waited on; if this does not occur within 2 seconds, the earth fault device is
considered non-directional
42
Automatic Line Coloring (ALC) - Topology
Information processing:
states which information can be processed
none: normal switch; information is not processed
Permanent message processing: Newly received messages are considered a new
ground fault trip
Transient message processing: Messages that are received during a current Search
(on page 45) are suppressed
Note: The distinction between permanent message processing and transient message processing only
relates to processing the message, not to the type. Transient bit message processing need not therefore
relate to a transient bit.
Attention
To suppress intermittent ground faults, ground fault messages that are received in
intervals shorter than 2 seconds are ignored.
The variable linked at Display is an output variable for error detection and displays the recorded
status of the ground fault identification 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:
Value Meaning
0 no ground fault
43
Automatic Line Coloring (ALC) - Topology
Info
To reduce problems in network operation, the variable linked here should be a linked
variable.
The alarm to report an earth fault is defined by the Triggering variable It can contain information on
the presence of an earth fault and the direction of the earth fault from the point of view of the earth
fault recognition device. In doing so, a distinction is made between:
1. navigate to the Automatic Line Coloring node in the combined element properties
select the variable you wish to import in the dialog that opens
44
Automatic Line Coloring (ALC) - Topology
Note: If you address a directional identification device 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:
1. Messages from all ground fault identification devices that were configured with transient
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.
45
Automatic Line Coloring (ALC) - Topology
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.
If no variable has been linked, all ground fault messages are acknowledged.
Acknowledgement can also take place via the zenon API object model.
To configure the Acknowledge ground fault message function:
46
Automatic Line Coloring (ALC) - Topology
You end the ground fault search with the Stop search for ground fault function in Runtime.
47
Automatic Line Coloring (ALC) - Topology
The network parts that are potentially subject to short circuits are deduced from short circuit reports. A
short circuit identification device (short circuit indicator, protective device) can have one to three short
circuit messages. For directional short circuit indication devices, the direction can be lagging or leading
in relation to triggering. A network component that potentially has a short circuit is then no longer
considered to have a ground fault if this has been successfully connected.
CONFIGURATION
48
Automatic Line Coloring (ALC) - Topology
1. assign the combined element that represents the switching element to the Function type
switch (on page 49)
2. define Short circuit display (on page 49) andShort circuit identification triggering (on page 50)
3. Set up the Acknowledge short circuit message (on page 51) function
The direction and type of information processing for the switch type combined element are determined
by the Type setting. to configure:
1. navigate to the Automatic Line Coloring node in the combined element properties
The variable linked at Display is an output variable for error detection and displays the recorded
status of the short circuit identification 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.
49
Automatic Line Coloring (ALC) - Topology
Each time a recording is made, a set value is sent to this variable. In doing so, the values are as follows:
Value Meaning
0 no short circuit
The variable for the message from the short circuit identification device is defined by the Triggering
variable You can receive information about the presence of a short circuit and the direction of the short
circuit from the point of view of the short circuit identification device.In doing so, a distinction is made
between:
1. navigate to the Automatic Line Coloring node in the combined element properties
select the variable you wish to import in the dialog that opens
50
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.
If no variable has been linked, all short circuit messages are acknowledged.
Acknowledgement can also take place via the zenon API object model.
51
Command input
select the variable you wish to import in the dialog that opens
4. Command input
Command input 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).
In general a variable for the command input consists always of two physical variables: The response
variable and the command variable. Depending on the action to be executed, they are executed on one
of the two variables.
52
Command input
Example
' Double command On: Sends the command/the new value to the command
variable. By way of the response variable, the success of the executed action can be
checked.
The synchronization of the actions from the command input is done via a
communication object that is runtime-monitored and updated cyclically in the driver.
This object is automatically assigned to the response variable. The activation of such
an object is evaluated in the system by the activation of the "Select" status bit.
Status input off: Resets all the active states of the response variable; the
command variable is not affected by this action.
Two-step command operations are usually performed via a context menu and the screen type
„Command input“. Specific control elements are provided for this. They enable an individual optical and
functional design of the command input. Thus you can for example assign individual actions to button
Actions. After that you can access them directly. This screen type also provides the necessary
requirements in order to carry out functions such as unlocking, two-step execution, two-hand control,
locking etc. Such a screen can be loaded over a function directly at the element (instead of the Set value
dialog), or via a context menu.
Whether an action (switching action) at a specific moment is allowed (no interlocking conditions apply)
or forbidden (a non-unlockable condition applies) or whether it can only be executed after unlocking (an
unlockable condition applies), is determined from the command groups and the current state of the
topological model in the Runtime.
Editor profile Opens the drop-down list for selecting a Editor profile.
53
Command input
Info
The interlockings can be exported and imported as well as exchanged and duplicated on
the interlocking level.
Attention
All the following functions are only available if the 'Energy Edition' was licensed.
54
Command input
New set value input Creates a new set value input and opens the properties.
New status input Creates a new status input and opens the properties.
New release Creates a new manual correction and opens the properties.
New manual correction Creates a new manual correction and opens the properties.
55
Command input
56
Command input
Info
Please use the IEC-60870 101/104 driver also for tests if possible. This driver fully
supports the COT (cause of transmission) evaluation. This is an extended functionality for
communication monitoring. The communication can be evaluated in the multi-
numerical and multi-binary reaction matrices.
The screen 'Command input' is used for user interaction via command input during the runtime (one
and two-step command input) It allows the user to perfrom all activities that are necessary for
command execution. This can be e.g. the unlocking of an upcoming command group or the confirmaton
of the execution of a two-step command input.
57
Command input
Info
When using the one-step command input, you can also use a context menu or a standard
function. The screen type command input is then not required in the project.
You can use specific control elements (on page 109) for this screen type, which allow all user actions
necessary for command input and which visualize current information about the status of the action to
be executed. (e.g. display of the switching direction)
After the screen is opened an empty screen is displayed. You add the default control elements via menu
Control elements/Add template.
Info
Beneath the groups you can find a collection of control elements which you need for
special actions, e.g. all control elements for locking elements . Thus saving the time for
manually searching for all needed control elements.
These texts give the user a better understanding and a better overview of the actions that are available
in the Runtime (e.g. 'Command: Open disconnector')
This also allows you to use different texts for every variable that uses the same interlocking, without
needing to make adjustments on the user interface.
58
Command input
Info
As the switching direction texts are read out from the limit settings, they are completely
language switchable.
On @ON
Diff @INTER
Fault @FAULT
None @NONE
Direct @DIR
Info
Because of the different use of limits/reaction matrices for the command/response
variable, individual switching direction texts can be displayed for the actions. Always
depending on the variable, on which the action is executed.
59
Command input
Project-spanning variables
Attention
The variables used in the command groups must be in the same project in order for the
command input to work properly.
If you do use a variable from another project (e.g. subordinate project in multi-project administration),
the command group, the response variable, the action variable and the action-specific screen
('command input' screen) is expected to also exist in the other project.
Info
You can also use project-overlapping variables for the interlockings by the process. The
above limitations apply only to the variables of the command group.
After creating a new command group, it is added to the detail view of the project manager with
standard name "Command group + index". The index is replaced by a consecutive number. This name
serves for the unique identification of the interlocking in the system.
Info
You can assign any name you like to the command groups. However, the names must be
unique within the project (applies for standard interlockings and command groups).
60
Command input
Parameters Description
Name Name of the command group. Must be unique among all interlockings in
the project. This name is used later with the variable which uses this
interlocking. The actual allocation is done with a unique consecutive
numerical ID. The name is only used for GUI, Export and Import.
Variable name of This is the variable name or the mask for the replacement of the response
response variable.
The placeholder for the replacement text is the character sequence ‚*’
within a name. Only one placeholder can be used in a name. When
entering the mask, it is important to take care that this name results in an
existing variable name after replacement.
If the variable that is used here (replaced or absolute) does not exist
during compiling, the command group is not available in the RT. An
according message announces this error during compiling.
Watchdog timer There is the following setting for this drop-down list:
61
Command input
Screen modal If this is active, the screen is displayed modally, independent of the setting
'Modal dialog' in the screen settings.
Screen titel from The identification of the response variable is shown in the screen title.
response variable This only happens when there a title was configured for the screen at the
frame.
Command screen Name of the screen to be loaded if no action specific screen is defined and
if the screen is not opened via the function 'Screen : Switch to'.
With active recognition all variable whose status or value are used in the
formula for the breaker tripping detection, are activated for reading at the
program start after loading all projects and stay this way as long as the
Runtime runs. With this variables of all projects which are loaded in the
Runtime can be used independent of the loading order.
Suppress detection Entering the formula with which the detection of a breaker tripping
can be suppressed. A click on button ... opens the formula editor.
For the formula all variables of the interlocking can be used. Name
replacements as for example at the definition of the Interlocking
condition of an action (on page 62) are also possible.
Actions
Command groups always contain a set of predefined actions, which are usually adjusted to a specific
variable (a specific device) . For example, different command groups can be defined individually and
centrally for different topological elements (switch / disconnector etc.) .
A defined command variable is assigned to every action inside a command group. The response variable
is defined centrally for the whole command group.
62
Command input
NAME REPLACEMENT
To simplify and to generalize the definition of the variables, these variable references (for command and
response variables) can be defined over a name replacement. At this wild cards can be used. (Notice:
Wildcards are only allowed as prefix or suffix; e.g. *xxx or xxx*. With this flexible definition, general
interlocking conditions can be defined very simply. With this the number of the command groups which
must be defined is reduced considerably.
Example
ACTION TYPES
The action types are the actually available switching commands. 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:
Set point
default
Status default
Manual
correction
Replace
63
Command input
Revision
In the detail view of the command input the actions in the tree are shown with the corresponding
switching direction and at direct write set value with the selected set 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 77). If two actions have the same ID,
they are tagged with the special symbol M in the action tree.
According to the command type, this is used as 'Single command' or 'Double command' in the system.
When a command is executed, the configured Command status (0 or 1) is written to the command
variable. The value which is expected from the response variable as a result of the command is defined
under the property Return state/switching direction '(on / off / none)'.
On Value will be 1
For single commands, there is an automatic reset of the variable to 0 or 1 (depending on the switching
direction), after the engineered 'edge delay'. This does not apply if SBO is activated for the command
variable.
Info
If during the action execution the current value of the response variable is different to the
one defined in the switching direction or if the switching direction was defined to be On
or Off, the status bit In progress (PROGRESS) is set.
Offers the possibility to write any numerical value to the selected command variable. The command
window offers special control elements for that, which allow the definition of the set value. With the
64
Command input
help of property Return state/switching direction you can define how the set value
should be written:
The text which should be displayed can be engineered using a limit/rema for the
state/value 5. If this is not the case, a standard text (on page 58) is used.
Set value Value of the control element Set value is written to the response variable.
If set values are set via command input and a response variable is set in the combined element dynamic
element, it can be set regardless of the setting of the Setting values active property. All action
buttons in the command input screen that trigger a direct modification of the response variable are then
set to invisible.
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.
65
Command input
Switching Action
direction
Off The states configured in the list 'Modifiable states' 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 list 'Modifiable states' must be defined in the Runtime
with the help of the control element 'Set status'. Every status is defined individually.
If you change a status in the Runtime, that change is logged in the Chronological Event List (status incl.
value). You have the possibility to switch between languages in the Runtime.
Info
For all status defaults, there is always a write to the response variable.
The action can only be executed in Runtime, if the replacement value (ALT_VAL) (value: 1).
is active for the selected response variable.
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.
66
Command input
Info
Manual correction means:
Correction of a non-remote-controlled switch in zenon.
A marker variable is usually corrected (no connection to the process). There should never
really be an I-bit pending for marker variables. It is possible, but makes no sense, to have
a variable with a connection to the process.
Behavior:
Correction is completely normal values setting from the perspective of the driver.
The correct action sets the value of the selected response variable according to the setting of the
switching direction:
Switching Action
direction
Off 0
Diff 2
DIR Set value is written directly. You define the value which should be written with the
help of function Set value.
The text which should be displayed can be engineered using a limit/rema for the
state/value 5. If this is not the case, a standard text (on page 58) is used.
On 1
Set value Value of the control element Set value is written to the response variable.
Fault 3
67
Command input
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.
Info
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 response variable is set to the status alternative value Alternate value (ALT_VAL). Additionally,
the value defined by the 'Switching direction' is placed on the response variable.
Switching Status
direction
Off 0
On 1
Diff 2
Fault 3
None 4
Enables the lock of a response variable for the actions of the command input.
Info
If a switch is locked using action Lock, status bit M1 is set.
68
Command input
Prerequisites for this is that there are users present in the system who have a configured 'Lock code'.
Locking/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 variable are
possible only after alls locks have been unlocked by entering the lock code.
actions of the command variable use the locked variable as response variable
The lock code can be defined individually for every user. This parameterization is done directly for an
already existing user with the property 'lock code'
You can also set the lock code during Runtime/Online for an existing user.
In the Runtime you cannot delete users who still have an active command lock.
Attention
Users can be deleted in the development environment. This causes the loss of the defined
locks after restarting or reloading.
Users locked (deactivated) in the administration cannot activate or deactivate command locks.
69
Command input
Info
Information about active locks are also synchronized in the redundant network and
therefore are available after a server switch.
A list of the currently active locks can be shown in the command screen over a special
control element ('lock list').
Sets the status bit Revision of the response variable to the value configured in property Return
state/switching direction.
Switching Status
direction
Off Set to 0
On Set to 1
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 about the defined action are also shown in the detail view after creation (e.g. 'Double command:
*_BE [ON,1].
70
Command input
All further settings for the actions are made in the properties window. Some of the properties are
inactive, depending on the action type.
Available properties:
71
Command input
Property Description
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 RT. An according message
announces this error during compiling.
Initialization: No Allocation
Type Determines the type of the command. Options are: single or double
command.
Double command
Single command:
Like a double command, but after the edge delay, a rewrite with the value 0
is performed automatically. This rewrite is no longer runtime-monitored.
Switching Defines the expected value or the status of the response variable after action
direction execution.
Locked for the actions Block, Set value, Lock and Release.
Initialization: Off
Command setting Defines the value that is written to the command variable during the action
status 'Command'.
Locked for all actions except 'Single command' and 'Double command'.
Initialization: 0
Suppress CEL If this is active, no entry in the CEL will be made when executing an action.
entry
Initialization: Inactive
Timeout Timeout used for watchdog timer. Only available for the actions Command
and Setpoint input. Unit is seconds
72
Command input
Initialization: 30
Edge delay Time in milliseconds, with which the writing of 0 is delayed for a single
command.
The system does not wait until the watchdog timer is ended.
Initialization: 1000 ms
Modifiable List of the states which can be modified with the action 'Set status'.
states
Only available for the action 'Status input' .
Nominal/actual If this is active, there will be a check whether the value of the response
value comparison variable already matches the switching direction. If this is true, an unlockable
interlocking variable is shown.
Initialization: Inactive
Menu spec. Screen of type 'Power' which is activated when the action is activated over
screen the context menu of the element. If no screen is entered here, the screen
entered for the command group is used. A screen that was configured, but
that does not exist, causes an error message during compiling and the action
is not taken over.
Initialization: No Allocation
Command button Allocation of the action to an action button in the screen, defined at the
command group. If the command group is used for another screen (e.g. via
function), the allocation to the action button remains nevertheless. In other
words, the action is always placed on the button with the allocated action ID.
If such a button is missing, the action is not available in the screen. Only the
action buttons that were not allocated yet are provided in the selection list.
This setting is locked for the action type "Lock", or if no screen was allocated
to the command group.
Initialization: No Allocation
Close If this is active then the screen is closed automatically after action execution.
automatically
Initialization: Inactive
Two-hand If this is active, the control 'Execute 2' is only active when you hold the key
operation 'Ctrl'.
73
Command input
Initialization: Inactive
Two-stage If this is active, an action is executed only after operating the control 'Execute
2'. If not active, the action is executed after releasing the last interlocking or,
if there is no upcoming interlocking, immediately.
Initialization: Active
Info
By selecting single properties, you receive additional information about functionality in
the Property Help.
Info
Actions and command conditions, once defined, can be exported / imported in XML. This
allows for easy archiving and reusing in other applications.
Info
The status can be set using the command status input.
Execute actions
Command input in the Energy Edition can be used in different situations. The user can choose the
variant he prefers. It is also possible to use different methods simultaneously (element-related).
74
Command input
To activate, the Set value via element property must be Command input.
To activate, the Set value via element property must be input field or element (for
example, command input as replacement for setting values).
4 Call via a context menu if command input was set for the action type property.
5 Call via a context menu if Set value was set for the action type property.
75
Command input
Parameters Description
Variable defining The variable configured here defines the command group to be used.
the command input The screen determines the appropriate response variable and the
associated action variable via the name of the selected variable.
Initial step Defines the step (status) in which the command input 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.
Lock: The screen is opened in the command step for the action lock.
Info
If the option 'Command' was selected, the command window is loaded instead of the 'Set
value' dialog.
76
Command input
1 Numerical value
2 Text element
3 Bar Graph
4 Indicating
instrument
5 Binary Element
6 Clock
7 Universal slider
If no command group was defined for the variable assigned to the element, or if the response variable
of the command group does not exist, an error entry for the diagnosis viewer is generated and the
screen is not opened.
The action 'Set value' must be configured for the command group and the resulting action
variable is the variable of the selected screen element.
Info
If one of the above requirements is not met, there is no write and no set value is written
to the variable.
77
Command input
The menu must have an entry of the command 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 input (on page 52), 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.
1. Create the desired actions in the command input (on page 52)
2. Select Action type in the properties of the context menu item as command input
3. Select the desired action and switching direction via the drop-down menu with the Menu ID
property
Attention
The name of the Text property must be unique. If two names the same are issued,
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 82) available for these.
78
Command input
79
Command input
Entries which were created via ID_CMD_AUTO automatically receive a name after the following
pattern: 'Action name' plus 'Limit 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.
Command, Set value, Status, Replace, Release, Manual correction, Block, Lock, Revision
Action Text
Single command Text from the limit text, according to the switching direction.
Double command
Manual If a switching direction (other than 'None') is defined, the text from the limit text
correction according to the switching direction is displayed.
Replace
Revision Text from the limit text, according to the switching direction.
80
Command input
Example
Displayed text for a double command with defined limit:
Info
All displayed texts are language switchable with the standard mechanisms.
See also: Which texts are language switchable?
Info
The menu entries of the command input 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.
CONDITIONS
The menu entries are only released when the corresponding actions are executable. The following
conditions are requirements:
All menu entries are locked, when the status bit SELECT(10) 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 an Internet Client without write access.
81
Command input
The menu entry connected to the action 'Release' is locked, when the status bit
ALTERNATEVALUE(27) of the action variable is not active.
The menu entry connected with the action 'Replace', whose switching direction matches the
value of the action variable, is locked.
All menu entries, except the one which is connected with the action 'Lock', are locked, when a
change lock is active for the response variable.
When the status bit REVISION(9) 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 status bit SELECT also stays active.
The menu entry connected with the action 'Revision', whose switching direction matches the
value of the action variable, is locked.
A macro is a defined character sequence that is replaced by another 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 case insensitive
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. $NOTE$
2. $TAG$
3. $REMA<Status>$
4. $RDIR$
5. $ALL$
6. $DIR$
7. $ACT$
8. $NOTE$
82
Command input
Macro Description
$NOTE$ The whole text including the macro is interpreted as a note. If the resulting
text is empty, the $ALL$ macro is used.
$REMA<Status>$ <Status> is a Rema or limit value state, the text of which is used as a
replacement.
The status can be a number between -231 and 231-1. Leading characters and a
prefix are permitted. If characters are contained that cannot be converted to a
number, or the number is outside the given area, the menu item is not
displayed.
$RDIR$ Text for the switching direction from reaction matrix/limit value as in
$DIR$ macro, with the exception of:
$NOTE$ 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
83
Command input
inserted.
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.
Error messages
When menus are loaded in the runtime environment, their content is checked for consistency. Errors
cause error messages for the online diagnosis tool. The following messages can appear:
84
Command input
Parameters Description
Menu entry for command input The menu already contains a menu entry with the name used in
suppressed, because name is several the command input. Do not use that name for any other menu
times in the menu! entries.
Menu entry for command input 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
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! Statusbit SELECT(10) could not be activated within the timeout.
Executing actions
After activating a menu entry for command input, the associated action is executed. Execution over the
menu causes setting of the Status bit 'SELECT'. Only if this was successful, the execution of the actual
action is started (e.g. started 'double command').
After that the command windows opens if one of the following criteria are fulfilled:
If the action to be executed is 'Set value', 'Set status' with input or 'Manual Correction', the
screen associated to the action is opened in 'Step 1'. The desired value / status can then be
defined in the screen.
If the action to be executed is 'Lock', the action-specific screen is called in the step 'Lock'
If an upcoming interlocking condition prevents the execution, the screen engineered for the
action is called in the step 'Unlocking'. This also happens if the SBO could not be activated
without errors.
If a two-layered execution is engineered for the action, the action-specific screen is called in
'Step 2'.
85
Command input
If no specific screen was engineered for the action, the screen that was engineered centrally for
the command group is opened.
The internal Select and the SBO are passed on to the screen.
Info
If none of the above conditions apply, the action is executed immediately, without any
further user actions.
Info
An upcoming interlocking condition prevents the setting of a set value.
Command conditions
Command groups contain the definition of the switching actions as well as the definition of the
command conditions. Command conditions are optional parameters that can be defined application-
specifically.
Every action within a command group can be extended with 'Command conditions'. These process-
controlled interlockings prevent an unwanted execution of actions, depending on the current process
status.
86
Command input
Parameters Description
Actions These define which command is executed and on which variables these
actions should be applied and they parameterize the internal
interlockings.
Condition variables These define which variables can be used in the command conditions.
Command conditions These conditions make the execution of commands dependent on the
current process status.
See also
Interlockings
Info
The condition variable is automatically replaced if you use a '*' in the definition.
87
Command input
Info
If a variable which was used in a command condition is deleted later on, the index within
the condition is adjusted. The succeeding variables are put forward and the formulas are
adjusted automatically.
Example
1. Select the node Variable in the detail view of the command input and select
the option 'New' in the context menu.
2. In the selection dialog, select a process variable, which serves as the base for
the formulas of the command conditions. You can also abort the variable
selection dialog, which leads to an empty definition. You can define an
automatic replacement for this empty link with a '*'.
3. Select an already existing action and the node 'Conditions' in the detail view.
With 'Condition new', you can define any number of conditions for every
action. The definition is not performed with formulas; rather, non-fulfilled
conditions cause a lock of the associated actions in the Runtime.
All further settings (e.g. the allocation of an interlocking to a variable) can be made in the properties
window. The properties are described in detail in the properties help section of the Editor.
Interlocking condition
Any number of command conditions can be defined for every action. Theses conditions are checked
before execution of the respective action. If a check fails, the respective action cannot be used during
runtime.
The conditions are defined as formulas. The syntax is analogous to the definition of the formulas in the
Formula Editor.
Additionally, the following interlocking types (in addition to the command groups) are checked before
action execution:
88
Command input
These conditions are checked automatically before every action execution; the engineer cannot
influence this. These Internal interlocking conditions (on page 89) are predefined by the system and
serve as plausibility checks.
Example
Select could not be activated.
These conditions result from the current topological status during Runtime. The definition of these
conditions is done in the 'Configuration of the topological interlockings (on page 31)' settings.
89
Command input
Parameters 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 command group of the
'Nominal/actual value comparison' is active.
Differences between local Single command parameter not consistent. Parameterizing error
and global interlocking This interlocking is not unlockable.
One or more values are not Value of condition variable not available. Lock code: 14
available Value of condition variable disturbed. Lock code: 15
This interlocking is not unlockable.
Locking administration not The administration of the lockings could not be loaded or is invalid.
valid This interlocking is not unlockable.
SBO rejected The activation of the Select was rejected by the PLC.
This interlocking is not unlockable.
Timeout for SBO activation No confirmation for the activation (positive or negative) was received
within the timeout.
This interlocking is not unlockable.
Timeout for SBO deactivation No confirmation for the deactivation (positive or negative) was received
within the timeout.
This interlocking is not unlockable.
Timeout for execution There was no notice for finishing the action execution within the timeout.
This interlocking is not unlockable.
SBO expired The PLC has reported the expiration of the SBO activation.
90
Command input
Info
Because the command conditions and the general interlockings (standard functionality /
without energy edition) are deposited in the same structure in the editor, the checkout
symbol is set to identical for both nodes in the project tree (enable changes). All actions
on the command conditions also apply to the general interlockings and vice versa.
Variables marked for deletion are considered as not existent for the compilation of the command
conditions. During compiling, the respective error messages are displayed in the output window.
Formula editor
The formula editor provides support when creating formulas with logical or comparative operators with
a combined element, for interlockings and commands. 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 .
Click on the Formula button in the status window The formula editor opens
91
Command input
You select the bits for your formula in the left screen.
On the right, you find the operators for logical and comparative operations.
Info
Up to 99 variables can be linked in one formula. X01 to X99. The length of the formula
may not exceed 4096 characters.
Parameters Description
value bits 32 value bits (von 0 -31) are available. They describe the variable value bit by bit. For
BOOLEAN 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.
status 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 94).
not Not acknowledged is treated like a usual status bit. But here it is listed
acknowledged separately, because it does not belong to the classical variable statuses.
value and In the formulas, all values (value bits and status bits) are treated as binary values
status 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 with a constant (on
page 98). 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).
Info
The status bits NORM and N_NORM are only available in the formula editor here. They
cannot be engineered using the status.
If other settings outside the formula are set for the current status, they are combined with the formula
with a logical AND.
92
Command input
Info
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:
X01.Value & X02.Value -> works
But:
X01.00 AND X02.00 AND X03.00 AND X04.00 AND X05.00 -> works
93
Command input
94
Command input
95
Command input
Info
In formulas all status bits are available. For other use the availability can be reduced.
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'.
96
Command input
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'
Priority Operator
1 & (operator for bit formulas (on page 97))
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 here. They
cannot be engineered using 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).
97
Command input
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:
X01.M1 OR X01.M2 OR X01.M3 OR X01.M4 OR X01.M5 OR X01.M6 OR X01.M7 OR X01.M8
This request can be made much easier by using the logical ORing of the (complete) status.
LOGICAL ORING:
X01.Status & 0xFF
0xFF corresponds to decimal 256; 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 (|) in a similar manner to this example.
98
Command input
Comparative operators
Comparison operators serve 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
< smaller
> greater
= 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.
There can also be a constant to the right of the comparison operator. (the constants can only be
integers; a comparison to a floating point number is not possible.)
These constants are entered as hexadecimal values or decimal values in the combined element.
Hexadecimal figures are automatically converted to decimal values by clicking on OK (for example, 0x64
is in decimal figures 100).
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)
99
Command input
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)
Example
(X01.Value> X02.Value) AND (X01.Value = X02.Value) OR (X01.03 = X02.03)
Example
Formula: (X01.Value = 111)
If a hexadecimal values is used, this is later transferred to decimal by clicking on OK. If a decimal value is
entered and confirmed, the value continues to be displayed as a decimal value after reopening.
100
Command input
Info
It is not possible to use a comma or a period when entering values.
Parameters Description
Action Sets out which type of action is to be carried out via the corresponding menu item in
type Runtime. Not all action types are available in the main menu, some are only available via
the context menu.
Function
Help
No action
Underline text: Entering a & causes the following characters to be displayed as underlined.
Plan entries
101
Command input
2. In properties, select:
Action type: depending on menu type
see also: Main menu action types and Context menu action types
Menu ID: entry ID
Hint: There are pre-defined types with a fixed ID available in the command input at
Command input
Text: clear labeling of the menu cells
Attention
The name of the Text property must be unique. If two names the same are issued,
further menu items with the same name are not displayed.
You can find details on the definition on context menus for command in chapter menusCommand.
See also
See chapter Import and Export / Command groups.
Info
With the clipboard, you can only copy and paste on the level of the complete
command group. You cannot copy single actions.
102
Command input
For every variable which has a command group allocated to it, a specific version of the command group
for zenon is created. This version only contains these actions which can be triggered over this variable.
Example
The command group for the command variable only has actions on this command
variable anymore. Except for the action 'Lock'. This action is also available for the
command variable.
Info
The compiling of the command input must also be triggered after changes to the
variables.
Replacing links
To raise the reusability of the command group, it is possible to replace variable references. Replacement
is possible for response, command and condition variables.
When replacing, the placeholder '*' is automatically replaced by name of the variable associated with
the command input.
103
Command input
Example
Suppose we have the variables xyz_RM, abcRM and bool_RM.
Info
If the variable for which the command group is to be compiled, matches the
response variable, Thus the replacement text is determined by the response variable.
Otherwise, the replacement text is determined by the action variable oft the first
action that fits the variable.
If the replacement text was successfully determined, the place holder '*' is replaced by
this text.
This is why the following points should be considered for the names.
The names of the variables and the mask should allow for a clear allocation.
The names of the variables used for the response/command/condition variables, should be
producible over the same replacement text.
If the response variable is replaced but the command variable is not, it is important to consider
that the command group created for the command variable has to use the expected response
variable.
An additional test run makes sure that the command group of the response variable contains
only actions with action variables using the same response variable in their compiled
interlocking. Actions violating this rule will cause a warning and will be removed.
104
Command input
At the creation of the Runtime data for the command input, an extensive validation is carried out
concerning wrong engineering and not-available references.
Info
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 but runs error-free.
<VERNAME> Placeholder is replaced in the error message by the name of the command
group.
<VERRM> Placeholder is replaced in the error message by the name of the response
variable.
<AUFVAR> Placeholder is replaced in the error message by the name of the variable to
which the command group is assigned.
<ACTVAR> Placeholder is replaced in the error message by the name of the variable of
the action.
<Actionname> Placeholder is replaced in the error message by the description of the action.
The following error messages can occur during the creation of the Runtime files:
105
Command input
Variable '<AUFVAR>' uses not existing command Variable uses a non-existing command input.
input!
(<AUFVAR>) command input '<VERNAME>' contains Command groups without action are not
no actions! considered by the Runtime. This message can also
be a follow-up error.
(<AUFVAR>) response variable '<VARRM>' does not A response variable using another command group
use the command group '<VERNAME>' is used. The response variable always has to be
linked with the interlocking, which uses it as
response variable.
(<AUFVAR>) response varibale '<VARRM>' for The response variable must lie on a driver with
command '<VERNAME>' uses a driver without process connection.
process linking!
(<AUFVAR>Command '<VERNAME>' contains no A command group without actions does not make
actions after compiling! sense.
(<AUFVAR>) response variable '<VARRM>' of The used response variable is not present or
command '<VERNAME>' not available! marked as deleted.
(<AUFVAR>) command '<VERNAME>' uses screen This message is a warning. If a user action becomes
'<Bild GUID>'(<BILDNAME>) which is not of the type necessary during execution, it cannot be
Power! performed.
(<AUFVAR>) command '<VERNAME>' uses not The screen assigned to the command group does
available screen '<Bild GUID>'! not exist.
(<AUFVAR>) Replaced action variable '<ACTVAR>' for The action variable, after a replacement, is not
action '<Action name>' of command '<VERNAME>' present or marked as deleted.
not available!
(<AUFVAR>) action '<actionname>' of the command The action uses a varibale which is not present in
input '<VERNAME>' uses the not existing variable the project or marked as deleted.
'<ACTVAR>'
(<AUFVAR>) action variable '<ACTVAR>' for action The variable assigned to an action must not lie on
'<Actionname>' of command '<VERNAME>' uses a an internal driver.
driver without process connection!
<VERNAME>(<AUFVAR>): Aktion '<Actionname>' The following actions may only be configured once
already exists! per action variable and command group:
106
Command input
Single command
Release
Block
Lock
<VERNAME>(<AUFVAR>): Action '<Actionname>': Single and double command must not be used in
Single and double command for the same command parallel.
variable not possible!
(<AUFVAR>) command '<VERNAME>' uses screen This message is a warning. No user actions will be
'<Bild GUID>'(<BILDNAME>) which is not of the type possible.
Power!
(<AUFVAR>) action '<actionname>' of the command The action is assigned to a non-exising screen.
input '<VERNAME>' uses the not existing screen
'<Bild GUID>'!
(<AUFVAR>) variable '<VARRM>' of action Variable of the interlocking condition does not
interlocking condition of the command input exist.
'<VERNAME>' does not exist!
(<AUFVAR>) action variable '<ACTVAR>' for action The action variables used for a command group
'<Actionname>' of command group '<VERNAME>' may only be connected to no command group or to
uses another command group! the command group in which they are used.
(<AUFVAR>) command variable <ACTVAR> does not The action variable used in the action has no
have a validly compiled interlocking! Action compiled command group. This message can also
<Actionname> removed. be a follow-up error.
(<AUFVAR>) command variable <ACTVAR> uses The compiled command group of the response
response variable <VARNAME>! Action variable contains actions with action variables
<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.
107
Command input
1. The value and COT_act (6) are sent to the action variable.
3. If the PLC receives the value COT_act, the subsequent value COT_actcon (7) or COT_actterm (10) is
awaited.
and
The value of the response variables corresponds to the switching direction (Return
state/switching direction property).
It does not matter, which of the two conditions are fulfilled first. As soon as both of
them are fulfilled, the procedure will be terminated.
a) If only one or none of the above conditions from item 5a is met within the configured
timeout, then:
- the process is ended and will be terminated and
- the TIMEOUT status bit of the response variable is activated.
Value changes of the response variable will only be accepted after receiving COT_act.
108
Command input
Info
COT 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. DNP3). You can find details in the corresponding driver documentation.
109
Command input
110
Command input
Action variable set status List Defines the status to be set for the action
'Status default' for the switching direction
'None'. The statuses are set to the current
status and updated when changes occur.
Status: On or Off
Others: empty
111
Command input
'Correct'.
- No action is active.
Set value Numerical, Text Allows the input of the set value.
- No action is active.
112
Command input
User identification Input field For entering the user identification for the
lock.
Lock code Input field For entering the user-specific lock code.
Execute lock Button Activates a lock for the user entered in the
113
Command input
Action variable Status Text Status of the active action variable in short X
form.
114
Command input
Some requirements must be met in order to unlock the controls in the screen. Since these requirements
usually concern several controls, they are not listed with the control each time, but they are
documented here.
the currently-registered user does not have the necessary authorization levels
1. All Controls except Exit and the controls for the lock are locked when:
the status bit S_MERKER_1(0), i.e. the command lock, of the response variable was set
COMMAND INPUT
Action buttons: Action buttons are locked if the authorization level of the registered user forbids
execution.
115
Command input
Unlocking: Unlocking is only possible if the user does not have the necessary authorization levels
for this.
Context menu: Menu items that are assigned to a command action can only be selected if the
registered user has the necessary authorizations.
If the screen is loaded with the initial step 'Lock', all but the following controls are hidden in the screen:
RV TTA
RV identification
RV value
RV status
RV unit
Lock code
User identification
Execute lock
4.3.3 Reload
If an online reload is started, you have to take the following possible effects into consideration:
If a watchdog timer, an edge generation or an SBO is currently active, the reload is delayed until they are
closed.
An open screen of type command input is closed and the procedure is restarted after the reload,
depending on the current step.
116
Command input
Unlocking or Step 2 Step 'Unlocking level' is activated. The interlocking check is re-
executed.
Before loading, the add-on variable, response variable, command variable, command group and action
are re-determined. If one of the objects does not exist anymore, the controls are locked.
If the command group of the add-on variable was removed or exchanged, the screen is loaded with
locked controls. The screen has to be reloaded afterwards or the command input has to be re-executed.
If the command group of the response variable was removed or exchanged, all locks against command
input are removed from the variable.
If a user, for whom a command lock was activated, does not exist anymore, the lock is removed. The
status bit S_MERKER_1(0) is updated accordingly.
Parameters Description
Unlocking The unlocking of an interlocking is logged in the CEL.
Execute action If the action setting 'Suppress CEL entry' is not active, the action exection is logged in
the CEL.
117
Command input
Info
The locks are automatically synchronized in the network; therefore, they can also be used
in redundant operation.
Exiting is also delayed while the SBO procedure is active. If SBO is active, it will be deactivated.
Info
This situation can arise especially for the action 'Single command' with watchdog and/or
edge generation with one-step execution. The runtime is exited after the action was
finished.
118