30
Event codes
Over the SPA bus a substation level data com-
municator can read event data, such as status
changes, transmitted by the control module
SPTO 6D3. The events are represented, for
instance, by the event codes E1…E11. The
control module transmits its event data in the
format:
<time> <channel number><event code>
where
time = ss.sss (seconds and parts of a second)
channel number = 0...17
event code = E1...E54, depending on the channel
Most of the event codes and the corresponding
events can be included in or excluded from the
event reporting by writing an event mask
(V155…V158) to the control module. The
event mask is a binary number coded to a
decimal number. Each channel (0...17) has its
own event mask.
Each event code is represented by a number. An
event mask is formed by multiplying the corre-
sponding number by either 1, which means that
event is included in the reporting, or 0, which
means that event is not included in the reporting
and, finally, adding up the results of the multi-
plications.
Example 20: Calculation of an event mask value.
Channel
Event Event
Number
Event
Result
code
repre-
factor
of multi-
senting
plication
the event
2
E1
Change in status: xx ->10 (open)
1
x 1
=
1
2
E2
Change in status: xx ->01 (close)
2
x 1
=
2
2
E3
Change in status: xx ->11 (undefined)
4
x 0
=
0
2
E4
Change in status: xx ->00 (undefined)
8
x 1
=
8
2
E5
OPEN output activated
16
x 1
=
16
2
E6
OPEN output reset
32
x 0
=
0
2
E7
CLOSE output activated
64
x 1
=
64
2
E8
CLOSE output reset
128
x 0
=
0
2
E9
Output activation inhibited
256
x 1
= 256
2
E10
Failed to open or close
512
x 0
=
0
2
E11
Attempt to activate an output
1024
x 0
=
0
Event mask V155 for channel 2
347