Lag 14
Lag 14
Lag 14
Version 1.4
,QWURGXFWLRQ
This paper describes the use of LonWorks Network and its protocol LonTalk protocol in protection
and control systems used in medium or high voltage substations, power stations or in industrial
power distribution.
The purpose of this paper is to outline possible physical structures, message formats, communication
procedures and different system aspects.
The term “LON-bus” implies the use of the LonWorks Network as described in this document.
Two main categories of devices were kept in mind when this paper was written:
- devices which are mainly sold as part of ABB’s own substation automation systems and
compatibility with existing ABB’s systems is the most important factor
- devices which are also sold to open industrial or utility market.
Those devices, which are sold as part of ABB’s substation automation systems, will exchange data
using data formats and procedures optimised for ABB’s Substation Automation purposes.
For devices, which are sold to the open market, conformance to LonMark Application Layer
Interoperability Guidelines is important. This means the use of network variables of standardised
types (SNVTs), modelling the device by using LonMark Objects (node object, sensor objects,
actuator objects and controller objects) and transfer of parameters using network variables or
configuration parameter files.
The intended audience of this paper is design engineers and other technical people. This paper uses
names and terms from the papers of Echelon Corporation and Motorola Inc. listed in the references.
Refererences are indicated by [ref] in the document, further information for the reference are listed in
References.
It is assumed, that the reader has the general knowledge about the LonWorks network, its operation
principles and Echelon’s and other manufacturer’s LonWorks products.
This paper may contain errors and incomplete definitions. This is mainly due to the tough time-table
of the first delivery projects. The work with this paper will continue to make corrections and
additions.
Echelon, LON, LonBuilder, LonManager, LonTalk, Neuron and 3150 are U.S. registered trademarks of Echelon Corporation. LonLink,
LONMARK, LonSupport, LonUsers, LONWORKS, LonMaker, and 3120 are trademarks of Echelon Corporation.
This document is an intellectual property of ABB Transmit Oy, ABB Calor Emag AG, ABB Netzleittechnik AG, ABB Network Partner AG, ABB
Network Partner AB and may not be distributed nor used by other parties without a written permission from the ABB T&D Technology Ltd.
PRG 3DJH
2 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7DEOHRI&RQWHQWV
,1752'8&7,21
7$%/(2)&217(176
'(),1,7,216$1'$%%5(9,$7,216
&21),*85$7,216758&785(6
3.1 GENERAL ................................................................................................................................................................ 11
3.2 STAR COUPLER ........................................................................................................................................................ 11
3.3 TYPICAL LON-BUS CONFIGURATIONS ..................................................................................................................... 12
3.4 A SYSTEM WITH SINGLE MONITORING DEVICE ......................................................................................................... 13
3.5 A SYSTEM WITH TWO MONITORING DEVICES ........................................................................................................... 14
3.6 BIG SYSTEM WITH MULTIPLE SUBNETS .................................................................................................................... 15
3.7 A SYSTEM WITH INTERFACE TO STANDARD INDUSTRIAL LON NETWORK ............................................................... 16
&20081,&$7,21352&('85(6
4.1 GENERAL ................................................................................................................................................................ 17
&RPPXQLFDWLRQFDWHJRULHV
/RQWDONDSSOLFDWLRQOD\HUSURWRFRO
4.1.2.1 Network variables .........................................................................................................................................................21
4.1.2.2 Explicit messages ..........................................................................................................................................................21
7UDQVSRUWVHUYLFHVDQGDGGUHVVLQJSRVVLELOLWLHVSURYLGHGE\/RQ7DONSURWRFRO
6HUYLFHW\SHVDGGUHVVLQJIRUPDWVDQGWLPHUYDOXHV
1HWZRUNYDULDEOHQDPLQJFRQYHQWLRQV
0HVVDJHOHQJWK
4.1.6.1 Maximum length of message used on LON-bus ...........................................................................................................25
4.1.6.2 Background ...................................................................................................................................................................25
/RQ7DONILOHWUDQVIHUSURWRFRO
4.1.7.1 Predefined nv indexes and selector values ....................................................................................................................26
4.1.7.2 File directories...............................................................................................................................................................27
$%%DSSOLFDWLRQSURWRFRO
4.1.8.1 Introduction...................................................................................................................................................................28
4.1.8.2 Signal/Message Description.........................................................................................................................................31
4.1.8.3 Session Properties .........................................................................................................................................................32
4.1.8.4 Network TPDU/TPCU format......................................................................................................................................33
4.1.8.5 Session Protocol ............................................................................................................................................................34
4.1.8.6 Transport Protocol.........................................................................................................................................................37
4.1.8.6.1 Data integrity..........................................................................................................................................................37
4.1.8.6.2 Data flow control....................................................................................................................................................38
4.1.8.6.3 Transmitter Procedures...........................................................................................................................................39
4.1.8.6.4 Receiver Procedures ..............................................................................................................................................42
4.1.8.6.5 TPDU / TPCU flow diagrams ................................................................................................................................44
4.1.8.6.6 Transport protocol timers .......................................................................................................................................49
4.2 HORIZONTAL COMMUNICATION .............................................................................................................................. 50
*XLGHOLQHVIRU19ELQGLQJ
$OORFDWLRQRI3ULRULW\VORWV
&RPPXQLFDWLRQVHUYLFHVIRU19GDWDH[FKDQJH
*XLGHOLQHVIRUVHWWLQJ1HXURQFKLSSDUDPHWHUVDQGEXIIHUFRXQWV
4.3 VERTICAL COMMUNICATION ................................................................................................................................... 52
*HQHUDO
,QLWLDOL]DWLRQRIWKHHYHQWVHVVLRQV
4.3.2.1 General..........................................................................................................................................................................52
4.3.2.2 Event session.................................................................................................................................................................52
4.3.2.3 Event filters...................................................................................................................................................................53
4.3.2.4 Event history .................................................................................................................................................................53
PRG 3DJH
3 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
$33(1',;3(5)250$1&(2)/211(7:25.,17(5)$&(
$33(1',;*(1(5$//210(66$*()250$7
PRG 3DJH
7 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
'HILQLWLRQVDQGDEEUHYLDWLRQV
,QWHURSHUDELOLW\
A condition that ensures that multiple nodes (from the same or different
manufacturers) can be integrated into a single network without requiring custom
node or tool development. At application layer, interoperability between
LonWorks-based products is facilitated through the use of LonMark objects and
SNVTs.
/21
Local Operating Network
/21EXV
A name given to our way of using LonWorks Network in Substation Automation
applications, referring especially to the fibre-optic physical star network structure
and our own message and data formats.
/RQ0DUN
LonMark interoperability association is an independent world-wide industry
association, which facilitates the development and implementation of open,
interoperable LonWork based control products and systems. LonMark
association includes manufacturers, end-users and integrators of LonWorks
products. The association establishes guidelines such as “LonMark Application
Layer Interoperability Guidelines”.
/RQ0DUNREMHFW
A set of one or more network variable inputs and/or outputs implemented as
SNVTs with semantic definitions relating the behaviour of the object to the
network variable values, in addition to a set of configuration properties.
/RQ7DONSURWRFRO
Communication protocol used in LonWorks networks.
/RQ:RUNVQHWZRUN
A communication network built using LonWorks technology, including e.g.
Neuron chip and LonTalk protocol.
0RQLWRULQJGHYLFH
A device in substation automation system, which collects alarm and event
information from the other devices to be further transferred to another system or
to be presented to the user. The devices also provide controlling interface for the
system.
1&&
Network Control Center
PRG 3DJH
9 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
1HWZRUNYDULDEOH
A data item in LonTalk application protocol containing max. 31 bytes of data.
Network variables are addressed on application level using network variable
selectors. The selector is a 14-bit number in the range 0...12287 (2FFFH). The
selector is used a network wide identification of the Network Variable.
6197
Standard Network Variable type. The definition of a SNVT includes unit, range,
resolution and data format. SNVTs are listed in the SNVT Master List and
Programmer’s Guide. This list is updated by Echelon and it includes network
variable types, which are commonly agreed to be used by multiple manufacturers.
6&6
Substation Control System
73&8
Transport Protocol Control Unit
A message with transport control information only . These messages are volatile,
and will not be retransmitted if lost
73'8
Transport Protocol Data Unit
A message with transport control information and some higher layer information.
These messages will have a sequence number, and the Transport Provider will
retransmit the message until it is acknowledged.
PRG 3DJH
10 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
&RQILJXUDWLRQVWUXFWXUHV
This chapter describes possible structure of the LON-bus system. The use of star-
couplers and routers will be described. The maximum number of nodes in
different system configurations will be indicated.
*HQHUDO
Physical layer media of the LON-bus is fibre optic cabling. The physical network
is star network implemented using star-couplers. The default speed of the
network is 1.25 Megabits per second.
6WDUFRXSOHU
The star couplers contain 3 or more fibre optic connections, each connection
being a transmitter-receiver pair. The star couplers may be hierarchically
arranged in two layers as illustrated in the following figures. The arrangement
should be done so that a message sent from any of the devices in the system
should not go through more than three star couplers to reach any other device in
the system.
Two devices may also be chained together using a LON interface module with
two fibre optic connections. In this case one connection of the LON interface
module is connected to a star coupler and the other is connected to another
device’s LON interface module. Care must be taken when building the system, a
message sent by any of the devices in the system should not go through more than
six fibre optic cable lines before reaching any other device in the system.
The maximum recommended distance between any two devices connected with
fibre optic cables to the same system is 2000m.
The limitations in the fibre optic cable arrangements are done in order to control
the pulse width distortion caused by the fibre optic transmitter and receiver.
PRG 3DJH
11 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7\SLFDO/21EXVFRQILJXUDWLRQV
The maximum number of devices, which can be connected together with one star-
coupler (type RER111) is 27. (RER111 includes 9 cards each of which can have
3 fibre optic interfaces.) (See figures 3 and 4).
In big substations where the number of devices is bigger than 27, more than one
star coupler is needed. If the message load of the system is big, routers may have
to be used to divide the LON-bus into several subnets. In case routers are used to
separate subnets, SCS and NCC Gateway have multiple LON interfaces, one
interface for each subnet (see figure 5).
The following pictures show some examples of the maximum number of possible
bay units with different amount of star-couplers (RER111), and different amount
of monitoring devices.
PRG 3DJH
12 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
$V\VWHPZLWKVLQJOHPRQLWRULQJGHYLFH
NCC
Gateway
Star coupler
LON-bus
PRG 3DJH
13 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
$V\VWHPZLWKWZRPRQLWRULQJGHYLFHV
An average size system with local SCS computer and NCC Gateway can be built
with one star coupler if the number of the relays and control units does not exceed
25.
NCC
SCS
Computer
Gateway
Star coupler
LON-bus
PRG 3DJH
14 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
%LJV\VWHPZLWKPXOWLSOHVXEQHWV
A big system with high data flow requirements can be built so that there are many
subnets which are separated by routers. The monitoring devices contain multiple
LON-bus interfaces and are connected to each subnet.
The big data flow from the relays and control units to the monitoring devices is
divided to many subnets and a monitoring device has many interfaces to handle
the big data flow.
NCC
SCS
GW
Star coupler
LON subnet 1
Star coupler
R SC R SC
Note:
PRG 3DJH
15 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
$V\VWHPZLWKLQWHUIDFHWRVWDQGDUGLQGXVWULDO/21QHWZRUN
Interface to twisted pair LON networks are arranged using routers. In this way a
system may be connected e.g. to an industrial control system which has a standard
LON interface or to standard industrial LON devices. This kind of system in
described in the following figure (figure 6).
NCC
SCS NCC
Computer Gateway
Industrial
LON star-coupler control system
LON/SPA- LON/SPA-
gateway gateway
PRG 3DJH
16 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
&RPPXQLFDWLRQSURFHGXUHV
*HQHUDO
&RPPXQLFDWLRQFDWHJRULHV
The SCS system is organised in a way that it includes one or more PRQLWRULQJ
GHYLFHV and multiple SURWHFWLRQDQGFRQWUROGHYLFHV. Protection and control
devices may be connected to the LON-bus either directly or via a LON/SPA-
gateway. The system may also communicate with anLQGXVWULDOFRQWUROV\VWHP
and LQGXVWULDO/21GHYLFHVor other “standard” (interoperable) LON devices.
Communication over the LON-bus can thus be classified in the following way:
− vertical communication (communication between monitoring devices and
protection and control devices)
− horizontal communication (communication between protection and control
devices)
− LSG communication (communication with LON/SPA-gateways)
− interoperable communication (communication with interoperable LON
devices)
Each communication category has its own features and some specific
communication procedures and data formats. A device may be configurable so
that it operates in more than one of the communication categories. The event
format may be configurable. The type of used network variables may be
configurable. Also a mixture of these categories in one device is possible. A
device -especially a monitoring device- can support all of the categories
simultaneously.
PRG 3DJH
17 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
NCC
SCS NCC
Computer Gateway
Vertical Industrial
comm. control system
LON/SPA- LON/SPA-
gateway gateway
NCC
SCS NCC
Computer Gateway
Industrial
control system
Horizontal
comm.
LON/SPA- LON/SPA-
gateway gateway
PRG 3DJH
18 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
NCC
SCS NCC
Computer Gateway
Industrial
control system
LSG comm.
in vertical
direction
LSG comm.
in horizontal
direction.
LON/SPA- LON/SPA-
gateway gateway
PRG 3DJH
19 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
NCC
SCS NCC
Computer Gateway
Industrial
control system
Interoperable
communication
LON/SPA- LON/SPA-
gateway gateway
PRG 3DJH
20 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
/RQWDONDSSOLFDWLRQOD\HUSURWRFRO
The application message data formats of the LonTalk protocol can be classified
into two basic types: network variables and explicit messages.
1HWZRUNYDULDEOHV
The data items in the LonTalk application protocol are called network variables.
Network variables can be any single data item or data structure with the
maximum length of 31 bytes.
Each network variable must be assigned a network variable selector, when system
is configured (this is called binding). This is normally done by a network
management/configuration tool. During configuration the data objects are
addressed using a 8 or 16-bit network variable index.
NV Poll and NV Fetch message are used to poll/fetch a Network Variable. The
message contains either the selector (poll) or index (fetch) of the network
variable.
1RWH All the multi byte structures are sent msb-byte first and lsb-byte as last
byte (in Motorola fashion).
([SOLFLWPHVVDJHV
For applications where data object larger than 31 bytes need to be transmitted,
request/response service is desired, or the network variable model is not suitable,
then the application can use explicit messaging. The application construct
messages containing up to 48 bytes of data (see chapter 4.1.6). These messages
can be explicitly addressed to other nodes using subnet/node, group, broadcast or
unique ID addressing (or they may be addressed to other nodes or groups of
nodes via implicit address connections called message tags.)
Different types of explicit messages are classified using an 8-bit message code. A
special range of message codes is reserved for foreign frame transmission. An
array of bytes of data may be embedded in a message packet and transmitted like
any other message. The LonTalk protocol applies no special processing to
foreign frames - they are treated as a simple array of bytes. The application
program may interpret the data in any way it wishes.
PRG 3DJH
21 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
Some of the messages codes are reserved for LonTalk Network Management and
Diagnostic services. So called "Foreign messages/responses" can be sent using
messages codes 40H...4FH.
PRG 3DJH
22 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7UDQVSRUWVHUYLFHVDQGDGGUHVVLQJSRVVLELOLWLHVSURYLGHGE\/RQ7DON
SURWRFRO
1RWH The number of address table entries within the Neuron chip is limited to
15. Address table can be extended in nodes which have a separate host processor
and they use Neuron chip only as a communication processor with MIP (or in
nodes using SLTA as network interface). But in this case only 15 first entries can
be used for group addressing, because the group addressing is always handled by
the Neuron chip and not by the attached host.
PRG 3DJH
23 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
6HUYLFHW\SHVDGGUHVVLQJIRUPDWVDQGWLPHUYDOXHV
The (default) timer values for different messages types can be changed project
and application based.
NV poll or NV fetch
ack NM message sent with Clock sync message message sent with
request/response service sent with unackd service request/response service
PRG 3DJH
24 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
1HWZRUNYDULDEOHQDPLQJFRQYHQWLRQV
The following network variable naming conventions are used in this paper.
0HVVDJHOHQJWK
0D[LPXPOHQJWKRIPHVVDJHXVHGRQ/21EXV
We recommend that the maximum number of message data bytes used on LON-
bus messages is 48 bytes.
Maximum length of APDU (Application Protocol Data Unit) is 49 bytes, because
APDU contains message code byte and data bytes. (See appendix 2).
%DFNJURXQG
PRG 3DJH
25 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
/RQ7DONILOHWUDQVIHUSURWRFRO
This file transfer method breaks up data files into packets containing 32 bytes of
data and transfer packets sequentially. The set up of a file transfer is implemented
with network variables of standard type (SNVTs). The actual transfer itself is
implemented with explicit messages, using a windowed protocol. Most data
packets are sent with unacknowledged service with a request/response packet sent
every sixth packets. These five unacknowledged packets and the sixth
request/response packet constitute a data window. The message code used for file
transfer is 3EH (62). The performance of this protocol is about 2 kilobytes per
second.
The LonTalk file transfer protocol defines three roles for file transfer: initiator,
sender and receiver. In substation automation applications files are normally not
sent spontaneously from protection and control devices to the monitoring device
but instead files are transferred when requested by one of the monitoring devices.
The monitoring device which requests the file transfer is the initiator and the
other device is either file sender of receiver.
3UHGHILQHGQYLQGH[HVDQGVHOHFWRUYDOXHV
Substation automation products use the conventions with file transfer related
network variables described in Appendix 3.
If a device has reserved these NV indexes and selector values for file transfer
SNVTs, then the only thing a monitoring device has to know to start file transfer
is the node address of the device (no binding of network variables has to be done
before starting the transfer).
When transferring a file from/to a foreign device the network variables reserved
for file transfer have to be bound before the actual file transfer can start.
PRG 3DJH
26 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
)LOHGLUHFWRULHV
During the LonTalk file transfer a file is identified with a 16 bit file index. To get
more information about a file before starting the file transfer a file directory
lookup can be done. The file directory lookup command returns 16-bit file type,
32-bit file size and a 16-character file information string corresponding to the
given file index.
PRG 3DJH
27 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
$%%DSSOLFDWLRQSURWRFRO
,QWURGXFWLRQ
An ABB specific application protocol on top of the LonTalk protocol is used for
different types of Information (e.g Events, Commands) to have an acknowledge
protocol service for LON Applications. The information is transferred using
explicit messages with unacknowledged transport service of the LonTalk
protocol. The ABB special session protocol and sliding window transport
protocol have been built on top of the LonTalk protocol’s application layer.
(Note: LonTalk protocol’s own transport or session protocol has not been
changed.)
In the following text the devices of the substation automation system are called as
follows:
- clients: monitoring devices, which receive events
- servers: bay level devices, which produce events
The adressing scheme for the application protocol is used as described in 5.4.2.5
PRG 3DJH
28 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
The following text serve as introduction to the main operation principles of the
used session protocol and sliding window transport protocol:
• the client opens the session connection using session connection request
TPCU message
• the server stores the subnet/node number of the client and some other data
describing the connection to memory and replies with a session connection
accept TPCU or in special case a session connection reject TPCU message
(see messages chapter 5.7.2.2)
• TPCU TranAck messages are sent to confirm the previously sent messages
• the client opens the event session by sending TPDU data command using
event ES (Event setup, types defined in chapter 5.4.4.2.1.10) and cause of
transmission is 6 (activation).
• the server replies with TPDU data command using event ES (Event setup
response) and cause of transmission (cot) for positive acknowledge is cot=21
+ PN=0 or for negative acknowledge cot=21 + PN=1 or cot =22 in special
case.
• after this the server may start sending TPDU events
• the number of events allowed to be sent, before waiting for an
acknowledgement, was defined in the session connection phase by the client
using TPCU TranAck message where embedded “credit” field gives this
information
• when a certain number of events is sent (credit becomes to zero) the server
must wait for an acknowledgement TPCU message (TranAck) from the client
and from that message it gets new credit from the client
• after setting up the event session the client may update its database by
requesting the latest values of the most important data values in the server’s
database using a TPDU data command event GI (General Interrogation)
message
• the server cannot rely on a GI to start sending Events to the client
• when there is nothing to be sent TPCU TranAck messages are cyclically sent
both by the server and by the client to keep the session connection alive
• when the client wishes to stop the server from sending events it close the
event session by sending ES close cmd.
The details of the messages and the protocol are described later in the text.
_________________________________________________________________
______________
Additional terminology:
Session Protocol: A set of rules to establish and maintain a session. The session
layer will establish and monitor connections and dataflow. Server and client
restart and similar topics are left to the session layer.
PRG 3DJH
29 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
Credit Scheme: In a credit scheme the window size is controlled by the receiver.
A new window size is embedded in the ACK/NACK message.
PRG 3DJH
30 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
6LJQDO0HVVDJH'HVFULSWLRQ
A message with transport control information and some other higher layer
information. These messages will have a sequence number, and the Transport
Provider will retransmit the message until it is acknowledged.
A message with transport control information only. These messages are volatile,
and will not be retransmitted if lost.
s-conn.req (TPDU)
A signal from initiating session to remote session provider that a new session is
being requested.
s-conn.res (TPDU)
A signal from responding session provider to requesting session that session was
established or rejected. Also used to indicate a session shutdown initiated from
remote session or application.
conn.req (internal)
conn.ind (internal)
A signal from session to application that inform the application about a new
session establish request. The receiving application should reply with a FRQQUHV
or GLVFRQQHFWUHT
conn.res (internal)
A signal from application to local session that the application will serve the new
requested session.
conn.con (internal)
A signal from session to application that the FRQQUHT has been honoured by the
remote session provider. Session is ready to accept data on the channel.
disconnect.req (internal)
disconnect.ind (internal)
6HVVLRQ3URSHUWLHV
A Session exist for each client/server instance pairs. The session implements a
bi-directional, safe and monitored data channel between the applications.
• $IXOOGXSOH[VDIHYLUWXDOFLUFXLWWRWKHUHPRWHQRGH
Session control and user Data in either direction will be encapsulated within a
TPDU frame, and the Transport protocol will retransmit all TPDU’s until
acknowledged.
• 6HVVLRQVXSHUYLVLRQ
When the keep-alive mechanism of the protocol detect a channel breakdown, the
session provider will will cause the session to be terminated and a GLVFRQQHFWLQG
will be delivered to the application layer and to the opposite node.
• 8VHUFRQWUROOHGVHQGDQGUHFHLYHTXRWD
PRG 3DJH
32 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
1HWZRUN73'873&8IRUPDW
WinId
If AppDir = 0: Window identifier in transmitting entity
If AppDir = 1: Window identifier in receiving entity
SeqNo
If TranData = 0:
If TranAck = 1: (Accepted sequence number+1) MOD 256.
If TranNack = 1: (Expected sequence number) MOD 256.
If TranData = 1:
(Message sequence number) MOD 256.
Credit
TranData = 0: Credit. New receiver quota. Send message with sequence number less than SeqNo+Credit.
PRG 3DJH
33 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
6HVVLRQ3URWRFRO
conn.req
s-conn.req
conn.ind
conn.res
s-conn.res(Ack)
conn.con
conn.req
s-conn.req
conn.ind
disconnect.req
s-conn.res(Nack)
disconnect.ind
PRG 3DJH
34 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
conn.req
s-conn.req
Tconn
disconnect.req
s-disconnect.req
conn.req
s-conn.req
conn.ind
conn.res
s-conn.res(Ack)
conn.con
disconnect.req
s-conn.res(Nack)
disconnect.ind
PRG 3DJH
35 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
C lie n t T ra n s p o rt S e rv e r
S e s s io n S e s s io n
c o n n .r e q
s - c o n n .r e q
c o n n .in d
s -c o n n .re s (A c k )
c o n n .re s
c o n n .c o n
Tconn
d is c o n n e c t .in d
d is c o n n e c t. r e q d is c o n n e c t .in d
PRG 3DJH
36 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7UDQVSRUW3URWRFRO
Messages may be lost due to buffer contention in receiving entity or severe media
contention. Lon implements a very simple transport protocol with the following
qualities:
- Very high network load. Ack must be generated for each message.
- Loss detection only and very limited retransmit functionality.
- Minimal flow control.
The cure for this is to implement a transport protocol on top of the LonTalk
application layer. The protocol to be used has the follwing features:
• 6OLGLQJZLQGRZ
• 'XSOLFDWHGHWHFWLRQ
• /RVVGHWHFWLRQ
If a message is lost, the sequence number will be larger than the one expected.
The receiver will send a NACK whith requested sequence number.7KHUHFHLYHU
PD\NHHSWKHPHVVDJHDQGUHLQVHUWLWLQWKHLQSXWVWUHDPZKHQWKHORVWPHVVDJH
KDVEHHQGHOLYHUHG7KLVLVQRWPDQGDWRU\DVWKHHQWLUHPHVVDJHVHTXHQFHZLOOEH
UHWUDQVPLWWHGLQQHFHVVDU\.
• 5HVHTXHQFLQJ
All messages have a sequence number, and the messages are guaranteed to be
delivered in correct order7KHUHFHLYHUPD\LPSOHPHQWUHVHTXHQFLQJEXWWKLVLV
QRWQHFFHVVDU\IRUWKHSURWRFROWRZRUN
• )ORZ&RQWURO
PRG 3DJH
37 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
Flow Recovery.
Transmitter Recovery
The first unacknowledged message will always have a retransmit timer running. When the
timer expire, a credit of 1 will be generated internally and the message will be transmitted.
If receiver transport is now able to handle message, a normal ACK with new credit will
be generated.
If receiver transport is still unable to handle message, the receiver tranport may choose to
send a zero-credit NACK or to do nothing.
Receiver Recovery.
The receiver must send ACK or NACK cyclic to keep the channel alive. If a non-zero credit
ACK is lost, the next one may success.
PRG 3DJH
38 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
&KHFNWUDQVPLWWHUTXRWD
Return error if transmitter quota exceeded. This is neccessary to implement the end-to-end flow
control. Transmitter quota should be larger than maximum credit to ensure backpressure on
channel. Without backpressure the application must generate new data after each ACK, and
the control flow become more complex.
$SSHQGPHVVDJHWRRXWSXWTXHXH
Allocate a new sequence number for the message and link it into the list of pending messages. If
this is the oldest message (no transmitted messages with pending ACK and no other
pending messages) do restart retransmit timer (Tretr). This must be done to enable
transmitter flow recovery after lost non-zero ACK.
*HWILUVWSHQGLQJPHVVDJHIURPTXHXH
Cyclic
• &KHFNFRQQHFWLRQWLPHU
• 7LPHRXWUHDFKHG
Return all messages and buffers to global pool.
Generate a disconnect.ind to session provider as the connection is closed.
• &KHFNUHWUDQVPLWWWLPHURIROGHVWPHVVDJH
• 7LPHRXWUHDFKHG
This timeout may have two possible reasons.
• Message has not been transmitted because of flow-control
• Message has been transmitted but not ACK’ed within time-slot.
5HJDUGOHVVRIUHDVRQWKHIROORZLQJVWHSVVKRXOGEHWDNHQ
• Set first pending to oldest message.
• Set Credit to 1
• Set TranAck flag for oldest ( = pending ) message.
• Send oldest (=pending) message.
• Compute retransmitt timeout for message.
• Set first pending to next pending.
• 7LPHRXWQRWUHDFKHG
No further action
PRG 3DJH
39 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
TranAck received
• 5HVHWFRQQHFWLRQWLPHU
• 'LVFDUGDOOPHVVDJHVZLWKVHTXQFHQXPEHUOHVVWKDQ7UDQ$FN6HT1R!
*HWILUVWSHQGLQJPHVVDJHIURPTXHXH
• 6HTXQFHQXPEHULQROGHVWVHTQR!ROGHVWVHTQR&UHGLW!UDQJH
• Set TranAck flag if this is last with current credit. This is neccessary to force an ACK
from receiver when message is received. Without this flag the receiver will not send
ACK until the Ack-Push timer has expired, a situation which will cause severe
performance degradation
• Send message as credit available.
• Compute retransmitt timeout for message.
• Set first pending to next pending
• Goto 1.
• 1RPRUHSHQGLQJPHVVDJHVDYDLODEOHRU
• 6HTXQFHQXPEHURXWVLGHROGHVWVHTQR!ROGHVWVHTQR&UHGLW!UDQJH
• No further action as dataflow or message loss prevent new messages from being
accepted in receiver transport.
• Generate indication to application if send-quota EHFDPH non-zero.
Reason for this is to reactivate application which may have stopped transmitting due to flow
control.
PRG 3DJH
40 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
TranNack received
• 5HVHWFRQQHFWLRQWLPHU
• 'LVFDUGDOOPHVVDJHVZLWKVHTXQFHQXPEHUOHVVWKDQ7UDQ1DFN6HT1R!
A negative acknowledge is also a positive acknowledge for all messages with sequence numbers
below the NACK’ed sequence number.
• Set first pending to oldest message.
• Set Credit to 1
• Set TranAck flag for oldest ( = pending ) message.
• Send oldest (=pending) message.
• Compute retransmitt timeout for message.
• Set first pending to next pending.
• Generate send-quota available message to application if send-quota EHFDPH non-zero.
Reason for this is to reactivate application which may have stopped transmitting due to flow
control.
PRG 3DJH
41 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
In this chapter there are a few program states abbreviations used to help reader to understand
different situations. Here is short decsriction of the program states:
IN_SEQ = This means that the message receiced is in right position in the
message stream. So in this situation no errors are occured.
IN_ERR = This means that the message receiced caused an error. The sequence
number in a message was not in line with previous received messages. Now the
receiver program is in error state.
IN_IDLE = This means that the message receiced is in right position in the
message stream but there has not been any data messages in the bus for
awhile.This message is part of keep alive mechanism and the receiver program is
in this state when the receiver has not received any data messages after last
acknowledged messsage.
• Increment <Credit> as Application/Session has granted the transport layer a new receive-quota
unit. The <Credit> is always the number of available quota-units. A quota-unit represent a
buffer or the right to allocate and consume a buffer. The actual handling of this is of course
implementation specific.
• If Credit was 0
• if state = IN_SEQ or IN_IDLE
• generate an ACK(expected,Credit)
• recompute Tseq ACK-push timer
• if state = IN_ERR
• generate a NACK(expected,Credit)
• recompute Terr ACK-push timer
• Deliver first message from input-queue.
TPDU Received.
Allocate receive buffer from granted buffer quota. Implementation of resequncing is not descibed
here.
• $OORFDWHEXIIHU2.
• Read message from network.
• Decrement Credit property of receiver transport entity.
• 0HVVDJHVHTXHQFHQXPEHU2.RU73'87UDQ6HT!IODJVHW
• Append message to input-queue
• Check if <TPDU.TranAck> flag set
• Set.
• Send ACK(expected,Credit)
• Compute new Tseq ACK-push timer
• set state = IN_SEQ
• Clear.
• If state = IN_SEQ or IN_IDLE
• Compute new Tseq ACK-push timer
• set state = IN_SEQ
• If state = IN_ERR
• Send ACK(expected,Credit)
• Compute new Tseq ACK-push timer
• set state = IN_SEQ
PRG 3DJH
42 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
Cyclic
PRG 3DJH
43 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
6HUYHU &OLHQW
ACK(SeqNo=1,Credit=5)
01
FromServer application
produced events
01
Conf (1)*
02
Conf(2)
03
Conf(3)
04
TPDU(SeqNo=5,TranAck=1) Conf(4)
05
Server releases Conf(5)
buffers after ack. ACK(SeqNo=5,Credit=4)
msg fromreceiver
01
TPDU(SeqNo=6)
04 06
Tseq Conf(6)
ACK(SeqNo=7,Credit=5)
05
06
Tidle
ACK(SeqNo=7,Credit=5)
PRG 3DJH
44 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
6HUYHU &OLHQW
ACK(SeqNo=1,Crd=5)
TPDU(SeqNo=1)
01
02
03 01
Conf(1)
04 02
Conf(2)
05
TPDU(TranAck=1) 04
Client rejects
05 wrong msgs
NACK(SeqNo=3,Crd=5)
01 TPDU(SeqNo=3,TranAck=1)
03
02
Conf(3)
ACK(SeqNo=3,Crd=4)
TPDU(SeqNo=4)
04
Conf(4)
06 05
TPDU(SeqNo=6) 06
Tseq
Keep session
alive mechanism
Keep session
live mechanism ACK(SeqNo=5,Crd=3) Conf(5)
Conf(6)
03 ACK(SeqNo=1,Crd=5)
04
Tidle
05
ACK(SeqNo=1,Crd=5)
06
Figure 16. A single message Lost. Keep alive mechanism working in both
direction.
PRG 3DJH
45 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
6 H UY H U & OLH Q W
A C K (S e q N o = 1 ,C rd =5 )
01 T P D U (S e q N o = 1 )
02
03 01
C o nf(1)
04 02
C o nf(2)
05 03
C o n f(3 )
04
T P D U (S e qN o = 5 ,T ra n A ck= 1 ) C o n f(4 )
05
C o n f(5 )
06
T retr A C K (S e q N o = 5 ,C rd =4 )
05
T P D U (S e q N o = 6 )
06
C o n f(6 )
T se q
A C K (S e q N o = 7 ,C rd =5 )
06
Figure 17. A single ACK lost. More than <Credit> messages available.
PRG 3DJH
46 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
6 H UY H U & OLH Q W
A C K ( S e q N o = 1 ,C r d = 5 )
T P D U (S e q N o = 1 )
01
02
03 01
04 02
C o n f.( 0 1 )
05
04
T P D U ( S e q N o = 5 ,T ra n A c k = 1 )
05
N A C K ( S e q N o = 2 ,C rd = 4 )
T e rr
N A C K ( S e q N o = 2 ,C rd = 4 )
01 C lie n t a lr e a d y
T P D U ( S e q N o = 2 ,T ra n A c k = 1 ) h a n d le d m s g
02
A C K ( S e q N o = 2 ,C r d = 4 )
06 03
04
T P D U ( S e q N o = 6 ,T ra n A c k = 1 ) 05
06
A C K ( S e q N o = 2 ,C r d = 0 )
07
T r e tr
M s g r e je c te d b e c a u s e
th e r e is n o m o r e fre e
T P D U ( S e q N o = 7 ,T ra n A c k = 1 ) b u ffe r s a v a ila b le
07
N A C K ( S e q N o = 2 ,C rd = 0 )
C o n f( 0 2 )
A C K ( S e q N o = 3 ,C r d = 1 )
02 T P D U ( S e q N o = 3 ,T ra n A c k = 1 ) C o n f( 0 6 )
03
N A C K ( S e q N o = 7 ,C rd = 5 )
03 T P D U ( S e q N o = 7 ,T ra n A c k = 1 ) 07
A C K ( S e q N o = 7 ,C r d = 4 )
Tseq
A C K ( S e q N o = 8 ,C r d = 5 )
07
PRG 3DJH
47 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
6HUYHU &OLHQW
ACK(SeqNo=1,Crd=5)
01 TPDU(SeqNo=1)
02
03 01
04 02
05 Conf (01)
TPDU(SeqNo=5,TranAck=1)
Tseq
06
ACK(SeqNo=2,Crd=4)
Conf (02)
Tret
TPDU(SeqNo=1,TranAck=1)
01
NACK(SeqNo=3,Crd=5)
01 TPDU(SeqNo=3,TranAck=1) 03
02
ACK(SeqNo=3,Crd=4)
Conf (03)
TPDU(SeqNo=4)
TPDU(SeqNo=6) 04
05
06
Conf (04)
ACK(SeqNo=7,Crd=5)
03
04
05
06
Figure 19. Cable break down, many messages lost. Recovery situation.
PRG 3DJH
48 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
Tseq Timer
The Tseq timer control the time the receiver wait after it receive a message before
it send an ACK. This timer is restarted for every received message, and will only
time-out when the channel is idle. Under high traffic periods, the sender will
exhaust the Credit and flag the message for immediate ACK ( TranAck flag). In
such circumstances the Tseq timer will not expire. Default value for this timer is
300 mSec.
Terr Timer
The Terr timer control the cyclic sending of NACK after a message sequence
error. This timer is only active when network congestion occur, and should be in
slightly less that Tretr-Timer. Default value for this timer is 750 mSec.
Tidle Timer
The Tidle timer is used to keep channel alive and to retransmitt an ACK’s in case
of ACK loss. The flow will driven by the Tretr in case of ACK loss, so this need
only be smaller than Tconn. Default value for this timer is 10000mSec.
PRG 3DJH
49 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
+RUL]RQWDOFRPPXQLFDWLRQ
*XLGHOLQHVIRU19ELQGLQJ
The source and sink types are the NV types as defined in this paper, chapters 5.5
and 5.6. The LSG source and LSG sink are the type names used in the description
of the LON SPA Gateway and SRIO1000.
$OORFDWLRQRI3ULRULW\VORWV
Priority should only be used by NV when exchanging time critical data. For all
vertical communication (events, disturbance recorder data etc.) priority should not
be used.
For the allocation of priorities on the LON bus the following 3 rules must be
applied:
1. The highest priority slot is reserved for tools temporarily connected to the bus.
This will prevent that a continuously sending unit with priority shall block the bus
for a tool.
2. For NV data exchange between units with distributed applications having high
demands on availability of the communication media and short response times the
next higher priorities shall be distributed, one priority slot per unit.
PRG 3DJH
50 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
3. The unit responsible for the sending the clock synchronising NVs must have a
priority either lower than the units mentioned in 2. or the lowest of the priorities
reserved for the units mentioned in 2. The latter is the case when the unit
responsible for the sending of the clock synchronising NVs also has a distributed
application as described in 2.
&RPPXQLFDWLRQVHUYLFHVIRU19GDWDH[FKDQJH
*XLGHOLQHVIRUVHWWLQJ1HXURQFKLSSDUDPHWHUVDQGEXIIHUFRXQWV
With 1.25 Mbits/s network the timer values in Appendix 5 . are recommended.
PRG 3DJH
51 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
9HUWLFDOFRPPXQLFDWLRQ
*HQHUDO
,QLWLDOL]DWLRQRIWKHHYHQWVHVVLRQV
*HQHUDO
The substation automation system has two categories of devices regarding the
events. The bay level devices that produce events are here called event servers.
The station level monitoring devices that monitor the events are called event
clients. The event server has no pre-configured event clients, i.e. the bay level
devices do not know the system structure of the substation. The event client is
configured to know what event servers are available in the system, i.e. the station
level devices know what bay level devices the system contains.
(YHQWVHVVLRQ
The connection between an event client and an event server is called an event
session. It is always the event client that has the initiative to establish the event
session. The event server dynamically accepts session requests from clients.
However the event server may have a limit of simultaneous event clients that he
supports. When the limit is exceeded the event server should reject session
request of the client. The event server may in addition have other criteria’s for
rejecting event session (see below).
When the bay unit starts up it should not accept event session requests until the
event server is initialised and ready to serve requests by event clients, e.g. general
interrogations. When the event client is started it will try to establish sessions to
the event servers it is configured for. If the client fails to establish a session to a
certain server or if a session dies, e.g. due to communication failures, the client
will periodically try to re-establish the session. The delay between the trials is
configurable.
The event session is kept alive by the event server by sending the event messages.
If no events are produced the event session is kept alive by both event server and
event client according to the description of the transport provider (chapter 4.1.8).
Both server and client may shut down the session.
PRG 3DJH
52 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
(YHQWILOWHUV
Event filters are used to reduce the event flow to an event client by masking out
events that the event client is not interested in. The event filters are identified by a
number. The event client selects the filter it want’s to use when he establishes the
event session. More than one client is allowed to use the same filter. If a client
want’s to change filter he has to close the event session and start a new one with
the new desired filter number. If a client requests an unknown or not configured
filter the server should reject the event session.
A default filter is identified by number zero (0). All event servers should support
at least the default filter. The event server may be configured to map the default
filter to another filter number. It is recommended that the default filter has the
coarsest mask.
(YHQWKLVWRU\
Optionally the event server keeps a history of unfiltered time stamped events.
Entries in the event history buffer are removed only when the buffer becomes full.
The event server may have different buffers for different event categories such as
measurands, indications and abstract events, in order to prevent “important”
events from sliding out from the event buffer as a result of entries from frequent
event producers (like measurands).
The event client may request “history” events in conjunction with establishing the
event session. History events are events produced (time stamped) before the
session was established. The client selects the length of the history he is interested
in by specifying the time of the oldest event he wants. The messages carrying
history events has a specific cause of transmission (HISTORY). Events from the
history buffer are filtered with the same mask as spontaneous events.
(VWDEOLVKLQJWKHHYHQWVHVVLRQ
1) The event session is started according to chapter 4.1.8.5. At this stage the
server is not yet allowed to send events to the client.
2) The client sends a ES command to the server. The command carries the
following information:
a.The number of the desired event filter. Number zero (0) is used if no specific
filter is desired.
b.A flag indicating if the event client requests an event history.
c.The time of the oldest event requested in the event history. If no history is
requested the time is void.
PRG 3DJH
53 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
Server Client
History &
Spontaneous events
Confirm
GI response (cause 7)
GI data
History &
Spontaneous events
Server Client
Subscription
(Filter, History)
ES command
Figure 21. Establishment of the event session, session rejected by the server.
PRG 3DJH
54 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
&ORVLQJWKHHYHQWVHVVLRQ
Before closing a communication session the client shall close the event session
with an ES command (cause of transmission equal to 8). The server may not send
any events after it has received the event session close command. The only valid
answer to the close command is the ES response with cause of transmission equal
to 21 + PN=0. This means that the client will close the session unconditionally
either after that the server responds to close command, or when it consider that
the close command is concidered to have gone into a timeout. Note that the client
must process incoming events until the server responds to the event session close
command (or until close command timeout).
Server Client
History &
Spontaneous event(s)
PRG 3DJH
55 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
*HQHUDOLQWHUURJDWLRQ
General interrogation (GI) is used by the event client in order to get a fresh image
of the objects participating in the event session. The GI is initiated by means of a
parameterless GI command. The GI command may be sent by the event client at
any time when there is an active event session. The event server has to
acknowledge the GI command.
The event server has the knowledge of which objects that are subject to GI. These
objects are generally digital indication objects (single- or double point) or
analogue measurement objects. Following a GI command the objects are sent
successively within the event session using the normal transmission of event
messages. If the event session dies the GI is automatically aborted by the event
server. GI data may be sent without a time tag. The messages carrying
interrogated data are identified by a specific cause of transmission (GENERAL
INTERROGATION). GI data is sent only within the session that requested the
GI.
The event server is allowed to send history and spontaneous events before the
first GI within an event session. Under all circumstances the correct chronological
(except for history events) order of reported data (e.g. events) for a certain object
has to be maintained by the server.
After all objects subject to GI have been transmitted, the event server sends a GI
termination message. If a new GI initiation command occurs within a GI cycle,
the current GI cycle will be aborted without a GI termination message. A new GI
cycle will be started from the beginning. The event client may also abort a
running GI by sending a GI termination command. The GI termination command
is confirmed by the server.
PRG 3DJH
56 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
6HWXS6HVVLRQ
A setup session is used as an optional, additional step (if used) between transport
session establishment and setup of an event session.
The flow of information from server to client is initiated in two steps (see Figure
23):
1) The session is started according to chapter 4.1.8.5. At this stage the server is
not yet allowed to send events to the client.
Server Client
Conn.ind S-conn.req
Conn.req
S-conn.res(Ack)
Conn.res Conn.con
SS command (cause 6)
Session Setup
SS response (cause 7 )
Obj.con
...
GI command (cause 6)
Confirm General Interrogation
GI response (cause 7)
GI data
History &
Spontaneous events
GI termination
GI response (cause 10)
PRG 3DJH
57 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
If the server device is configured for a setup session, neither spontaneous events
nor history events nor GI data are transferred from server via any open client
session as long as :
• the setup session has not successfully completed (i.e., been succeeded by an
event setup from setup session client, see 4.3.2.8.2) or
• a timeout for waiting for setup session establishment has not yet expired;
timeoutss-establish value configurable (default 10 min) or
• a timeoutss-finish for supervision of finishing the setup session has not yet
expired; timeout value configurable.
If a server is not configured for a setup session the setup session command
response is negatively confirmed (see Figure 24).
Server Client
Subscription
(Filter, History)
SS command
Reject
SS response (cause 7 & PN=1)
PRG 3DJH
58 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
The following pictures depict the behavior for setup session with multiple clients.
Only one client is configured for the setup session establishment.
Server (cfg for SS) Client_1 Server (cfg for SS) Client_2
S-conn.req S-conn.req
S-conn.res(Ack) S-conn.res(Ack)
………..
….
wait
ES command (cause 6)
Datatrigger
GI data
ES response (cause 21+ PN=0)
History &
GI command (cause 6) Spontaneous
events
GI response (cause 7)
GI data
History &
Spontaneous GI Termination (cause 10)
events
GI termination (cause 10)
Figure 25: Establishment of the setup session, one server, two clients, normal
operation, client_1 and client_2 same start.
Datatrigger due to finished setup session to send data to other
clients.
PRG 3DJH
59 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
Server (cfg for SS) Client_1 Server (cfg for SS) Client_2
S-conn.req
S-conn.res(Ack)
ES command (cause 6)
GI command (cause 6)
timeout ss-establish
S-conn.req GI response (cause 7)
S-conn.res(Ack)
…
SS command (cause 6) wait
Trigger
….
Obj.Hdl.-Command (cause 6)
Obj.Hdl.-Command (cause 7)
...
timeout ss-finish
ES command (cause 6)
Datatrigger
ES response (cause 21+ PN=0)
GI command (cause 6) GI data
Figure 26: Setup session, one server, two clients, client_2 starts first, timeoutss-
establish not expired, trigger of timeoutss-finish for setup session due to
SS command.
Datatrigger due to finished setup session to send data to other
clients
In case a client without setup session (client_2) starts up before a client with setup
session (client_1) the timeoutss-establish is triggered by the ES command.
If the server receives the ES command, via the session where the setup session
has been carried out, a datatrigger will release sending server data (e.g. GI-data,
history events etc., see Figure 26) to other open client sessions.
PRG 3DJH
60 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
Server (cfg for SS) Client_1 Server (cfg for SS) Client_2
S-conn.req
S-conn.res(Ack)
ES command (cause 6)
GI command (cause 6)
timeoutss-establish
GI response (cause 7)
…
expired
GI data
History &
S-conn.req
Spontaneous
S-conn.res(Ack) events
SS command (cause 6) GI Termination (cause 10)
SS response (cause 7 )
Obj.Hdl.-Command (cause 6)
Event due to Subst. Cmd
Obj.Hdl.-Command (cause 7)
...
ES command (cause 6)
GI response (cause 7)
GI data
History &
Spontaneous
events
Figure 27: Setup session, one server, two clients, client_2 starts first,
timeoutss-establish expired,
In case a client without setup session (client_2) starts up before a client with setup
session (client_1) the timeoutss-establish is triggered by the ES command.
If the server carries on in normal operation and the client with setup session starts,
operates the SS command procedures, the object handling command results (e.g.
substitutions) are transmitted as spontaneous events (see Figure 27).
PRG 3DJH
61 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
Server (cfg for SS) Client_1 Server (cfg for SS) Client_2
S-conn.req S-conn.req
S-conn.res(Ack) S-conn.res(Ack)
………..
….
wait
timeout ss-finish
expired GI data
History &
Spontaneous
events
Figure 28: Setup session, one server, two clients, client_1 start first,
timeoutss-finish expired due to failure of client_1
In case a client with setup session (client_1) starts up before a client without setup
session (client_2) the timeoutss-finish is triggered by the SS command.
If the timeoutss-finish expires due to failure of the setup session from client_1 the
server discards the necessary object handling command changes (e.g. substituted
information must be desubstituted ) and carries on with normal operation (i.e
server sends GI data, history & spontaneous events, see Figure 28) .
If the abnormal condition occur that the setup session client (client_1 )
periodically restart during the timeoutss-finish has not expired this has to be
considered by the server or client :
• The server can limit the max. number of retrigger for the timeoutss-finish .
• The restart of the client for setup session can be extended over the value of
timeoutss-finish .
PRG 3DJH
62 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
Server States
Server restart
configured for SS
timeoutss-establish expired
Init Normal
timeoutss-finish expired
timeoutss-finish expired
Figure 29: State diagram for a server configured for setup session
If a server is not configured for setup session the restarted server will directly go
into normal state and no timers must be handled.
a. Trigger conditions
timeoutss-establish : first ES command
timeoutss-finish : Setup session command
b. Reset conditions
timeoutss-establish : SS command after the trigger of a ES command (from
another client)
timeoutss-finish : ES command after SS command (from same client)
PRG 3DJH
63 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
&RPPDQGKDQGOLQJ
&RPPDQGWUDQVIHU
Command transfer via explicit message over LON is based on [IEC5] (section
6.8).
The features of command transfer via message data are:
• The status of the command transfer and acceptance is coded in the CAUSE
OF TRANSMISSION.
• The transfer of the information ACTERM from a server is optional and has to
be configurable in the server
The ACTERM generation can be done as follows :
Type Id ACTERM
45 Configurable
46 Configurable
47 Configurable
50 Configurable
51 Configurable
101 Not needed
110 Not needed
228 Not needed
229 Not needed
230 Not needed
• Command responses are transfered with the same address as the command
itself
PRG 3DJH
64 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
Client Server
Control direction
Monitor direction
timeout
...
Cmd response (COT=10) Acterm (optional)
Command response
&RPPDQGVWUDQVIHUHGDV63$0HVVDJH
• The message is sent using explicit messages with LON message code 41H and
using acknowledged transport service.
• Both the SPA-bus command messages (R or W) and the reply messages (D, A
or N) are sent using the same message code. It is mandatory that one device
sends out only one SPA-bus message at a time to one node and waits for the
reply before sending the next message.
• If the SPA messages to be sent are longer that what is allowed by the LON
telegram length, then fragmentation/defragmentation is done as described in
[SPCP]. Each fragment as specified in [SPCP] is sent as a transparent SPA
message over LON.
PRG 3DJH
65 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
)LOH7UDQVIHU
File transfer is supported by transfer of the respective ASDU. The mechanism are
described in Appendix 6.
7UDQVSDUHQW'DWD7UDQVIHU
Client Server
Control direction
Monitor direction
timeout
...
TD (COT=3) Transparent Data spontaneous
TD spontaneous
Figure 31: Transparent Data Transfer sequence (Monitor and Control direction)
3DUDPHWHUWUDQVIHU
'LVWXUEDQFHUHFRUGHUILOHV
&RQILJXUDWLRQILOHV
7UDQVIHURI&RXQWHU9DOXHV
• The server sending requested counter values with ASDU140 must use the
originator from the counter command
• The server must indicate, if counter values are intermediate reading (IR) or
end of period reading (EOP) by the Counter Qualifier (CQS).
PRG 3DJH
67 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
/6*FRPPXQLFDWLRQ
3URFHVVGDWDWUDQVIHU
1HWZRUNYDULDEOHV
All the service types (acked, unack_repeated, unacked) may be used for network
variables, the service type is decided during the system engineering phase.
SNVT_state SNVT_state
SNVT_state NV_control
SNVT_state NV_bit_write
NV_32b_analog NV_32b_analog
NV_16b_analog NV_16b_analog
NV_clock_warning NV_clock_warning
NV_clock NV_clock
From the network management tool’s point of view SNVT_state, NV_control and
NV_bit_write are all of type SNVT_state. It is the responsibility of the
application software, who owns the network variables of type SNVT_state to take
care that it generates correct 16-bit bit map to enable connection to network
variables of type NV_control and NV_bit_write (on the other hand this would be
the case also when of binding two network variables of type SNVT_state).
PRG 3DJH
68 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
/6*HYHQWV
LSG Events are sent to the bus using acknowledged service. Each LSG Event is
sent to each monitoring device (master device) as a separate message.
If the sending of a message does not succeed (the receiving node does not send an
acknowledgement within specified time) during the first try the normal repetitions
after time-out on the link layer are done. If the event delivery fails also after
repetitions, then the same event is resent from the application layer after about 2
seconds. After a successful delivery of an event the next pending LSG event is
sent after a delay of 100...200 milliseconds. This sending algorithm is followed
for each monitoring device, so the event producer multiple pointers in a single
event buffer.
If the monitoring node runs out of communication buffers, the LSG event flow
stops automatically because the sending nodes do not receive acknowledgements.
The LSG event flow restarts when the monitoring node has communication
buffers available, because a retry is done after every 2 seconds.
&RQWUROFRPPDQGV
3DUDPHWHUGDWDWUDQVIHU
The message is sent using explicit messages with message code 41H and using
acknowledged transport service.
Both the SPA-bus command messages (R or W) and the reply messages (D, A or
N) are sent using the same message code. It is recommended that one device
sends out only one message at a time and waits for the reply before sending the
next message.
&RQILJXUDWLRQGDWDWUDQVIHU
PRG 3DJH
69 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
/6*WLPHV\QFKURQLVDWLRQ
For general information about the time synchronisation see chapter 4.6.4.
PRG 3DJH
70 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
,QWHURSHUDEOHFRPPXQLFDWLRQ
2EMHFWPRGHO
Interoperable device are modelled using LonMark objects: node object, sensor
objects, actuator objects and controller objects. The following figures include
general object model for a substation automation node and an object model for
simple bay control unit.
The object model is “visible” in the SI/SD information of the device. The SI/SD
information defines the allocation of network variables to different objects (see
also chapter 4.6.1.3).
PRG 3DJH
71 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
SNVT_obj_status
SNVT_obj_request Node
Object
SNVT_alarm
Sensor
Sensor
Object
Sensor
Object
SNVT_xxx Interoperable
(Type #1) SNVT_xxx
Object
(Type #1)
SNVT_xxx communication
Actuator
SNVT_xxx Actuator
Object
SNVT_xxx Actuator
Object
(Type #3)
SNVT_xxx (Type #3)
Object
Controller
SNVT_xxx Controller SNVT_xxx
Object SNVT_xxx
SNVT_xxx Controller
Object
(Type #5)
SNVT_xxx (Type #5)
Object SNVT_xxx
Events
LSG Events
PRG 3DJH
72 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
nvoStatus
nviRequest
Node SNVT_obj_status
SNVT_obj_request
Object nvoAlarm
SNVT_alarm
Sensor Object
nvoObjectStatus2
Status of Object 2
SNVT_state
nviBreakerControl
SNVT_state Actuator Object
Control the Breaker
Figure 34. An example of an object model for a simple interoperable bay control
unit.
3URFHVVGDWDWUDQVIHU
Process data, like status and measurement values and control commands, are
transferred using QHWZRUNYDULDEOHV. All the service types (ackd,
unackd_repeated, unackd) may be used. The service type is decided during the
system engineering phase.
Network variable of type SNVT_alarm may be used to report time tagged alarms
to (one) monitoring device. Network variable of type SNVT_obj_status is used to
report the status bits of the objects.
3DUDPHWHUGDWDWUDQVIHU
Parameter data, like relay setting values and dead-bands for measurement values,
are transferred either using QHWZRUNYDULDEOHV or FRQILJXUDWLRQSDUDPHWHUILOHV
PRG 3DJH
73 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
When configuration parameters are transferred using file transfer then two types
of files are used:
- Configuration Parameter Template File and
- Configuration Parameter Data File.
Example:
Template file:
1,1,4,0,
1,1,4,1,
1,1,4,2,
1,2,4,0,
1,2,4,1,
1,2,4,2,
Data file:
100128903000499957770000
PRG 3DJH
74 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
&RQILJXUDWLRQILOHV
Configuration files are sent using LonTalk file transfer protocol, as defined in
chapter 4.3.8 and in [FTLW].
PRG 3DJH
75 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
6\VWHPFRRUGLQDWLRQ
1HWZRUN0DQDJHPHQW
1HWZRUN0DQDJHPHQWUHVSRQVLELOLW\
LON-bus nodes are built so that the network management can be done using
commercially available Network Management programs. But if these programs
are used then there are some limitations: only 15 entries of the address table can
be used; configuration of the device specific features by special methods (like
LSG configuration commands) is not possible.
Note: From the network management point of view the network variables used in
horizontal communication, LSG communication and interoperable
communication are treated in equal way.
7KHWDVNRIWKH1HWZRUN0DQDJHPHQW
To what extent a tool supports other than SI/SD information depends on the type
of the tool.
The detailed specification of the Network Management messages can be found for
example in the following papers: [LTPT] and [MOTD].
The basic information for the network manager is stored in the LON nodes of the
network. The following tables and arrays of the network nodes are used:
- Neuron chip domain table
- Neuron chip configuration and diagnostic data
- Network Variable configuration table (in Neuron chip or host processor)
- Extended Network Variable configuration table in the host processor memory
- Address Table in the Neuron chip
- (Extended) Address Table in the host processor
PRG 3DJH
76 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
Note: The network management tools can be used also to make network
configurations without having connection to the LON-bus. In this case the
required data is read from library files of the network management tool or from
interface libraries generated by other engineering tools.
6HOI,GHQWLILFDWLRQDQG6HOI'RFXPHQWDWLRQ,QIRUPDWLRQ
Example 1:
PRG 3DJH
77 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
Self-documentation of the node (null terminated text string, max. 255 bytes):
@ ASCII “@”, separator character
x,x,x,x,...,x List of standard object types in the node.
. ASCII “.”, period character, separator.
Node name Name of the node.
Node self documentation text.
00H Null, terminator character
PRG 3DJH
78 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
Example 2:
An example of the use of SI/SD information by the Network Manager Tool when
binding network variables is given in the following figure. The SI/SD
information is read from the nodes and NV names given in the information is
used when selecting objects to be bound. (If NV names would not be available
the selection of the objects to be bound would have to be done using NV
indexes.)
PRG 3DJH
79 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
1RGH 1RGH
Network Variable
Network Variable
NV index Configuration table NV index Configuration table
0 pri|dir|VHOHFWRU|t|serv|a|DGGUBLQGH[ 0 pri|dir|VHOHFWRU|t|serv|a|DGGUBLQGH[
1 pri|dir| |t|serv|a|
1 pri|dir|VHOHFWRU|t|serv|a|DGGUBLQGH[
2 pri|dir|VHOHFWRU|t|serv|a|DGGUBLQGH[ 2 pri|dir||t|serv|a|DGGUBLQGH[
Figure 35. An example of the use of SI/SD information to help the binding of
network variables.
,QLWLDOLVDWLRQDQGVWDUWXS
*HQHUDO
Data initialisation after start-up in the monitoring devices is done in one of the
following ways:
- by initialisation of the event session (ref. chapter 4.3.2)
- by polling network variables
- by cyclic background sending of network variables
&\FOLFEDFNJURXQGVHQGLQJRIQHWZRUNYDULDEOHV
Analogue values which are sent as network variables are also sent with a slow
cyclic background sending.
The background cycle is defined by the sending device and it may be between
10...60 seconds. There may be a configuration parameter by which the cycle is
set (per data point or per device) during the system configuration or during
normal operation.
PRG 3DJH
80 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
&\FOLFQHWZRUNYDULDEOHSROOLQJ
A monitoring device may cyclically poll Network Variables. This has to be done
for those network variables which are not sent with cyclic background sending:
network variables carrying digital input data or network variables carrying
analogue data (from devices which do not support cyclic background sending).
1HWZRUNVXSHUYLVLRQ
1RGHVXSHUYLVLRQ
Nodes supporting event session are supervised as described in chapter 4.3.1. This
supervision is based on the idea that if the event session is working then also the
node is working. Event session is working, if the node either sends events or
acknowledgement messages, which are used for event session supervision.
Those nodes, which do not support event session and which are not able to send a
heartbeat messages (LSG, Routers or nodes which are not built for substation
automation applications) can be supervised by sequentially polling the status of
the Neuron chip. (LonTalk Network Management Message “Query Status”,
message code 51H.)
The monitoring nodes of the system should also be able to monitor the status of
interoperable LON nodes. This can be done by enabling the reception of various
types of heartbeat Network Variables (e.g. nvoStatus network variable of type
SNVT_obj_status).
6WDWXVDQGHUURUPHVVDJHV
- Coldstart, is when a unit is started by turning the power on after being without
power long enough for the unit to recognise as a power off state.
- Warmstart, is when a unit restarts without any deliberate power off operation as
far as the unit can recognise and differ this operation from a temporary power
loss.
The unit sends at least a Coldstart event on power up and optional a Warmstart
event if it can restart during power on. Both events are of the ON characteristic. It
is up to the unit designer to define what state changes are defined as Coldstart and
Warmstart. Both above events have their own object addresses but do not have an
associated state and are not possible to read during a GI.
A unit connected to the LON bus must support at least an error status and may
support also a warning status (and more user defined status).
PRG 3DJH
81 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
Both events have the ON/OFF characteristics. The interpretation of the events and
the combination of them are: the warning is representing a state where some
malfunction is detected but the main functionality of the unit is not affected. The
error is representing a state where the main function of the unit is affected.
After a coldstart or a restart the two above states are assumed to be both OFF i.e.
no warning and no error state.
Both states above have their own object addresses and associated states that must
be possible to read during a GI.
An event buffer overflow must be signalled with a buffer overflow event. This
event has only ON characteristic and is sent as soon as a unit recognises that
stored events, not yet read by an event receiver, have been overwritten or deleted.
The overflow event must be sent individually to each event receiver when this
happens. since it may not concern all event receivers. The buffer overflow event
has its own object address but has no associated state and is not possible to read
during a GI.
PRG 3DJH
82 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7LPHV\QFKURQL]DWLRQ
Time synchronization of the LON bus devices via the bus can be done using
different methods depending on the accuracy and which method is supported by
the devices in the system .
All methods are based on network variables.
• SNVT_time_stamp
6\QFKURQL]DWLRQXVLQJ6197BWLPHBVWDPS
SNVT_time_stamp contains year, month, day, hour, minute and second. It may be
expected that in the best case the real-time clocks of the clock master node and
the other nodes are synchronized to each other with the accuracy of 10...100 ms,
if the clock master node attempts to send the SNVT_time_stamp exactly when
the full second is elapsing.
6\QFKURQL]DWLRQXVLQJ19BFORFNBZDUQLQJDQG19BFORFN
When a node receives the NV_clock_warning it must stop sending other than
high priority messages and start waiting for NV_clock. The time received in
NV_clock is used to adjust the real-time clock of the node.
PRG 3DJH
83 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
9HU\DFFXUDWHWLPHV\QFKURQLVDWLRQ9$76
PRG 3DJH
84 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
'HWDLOGHVFULSWLRQRIWLPHV\QFKURQL]DWLRQPHWKRGV
When a node receives the NV_clock_warning it must stop sending other than
high priority messages and start waiting for NV_clock. When NV_clock arrives
the real-time clock of the node can be adjusted according to the time given in
NV_clock.
If a node has an external clock reference it can ignore the contents of the
NV_clock and instead receive NV_time and use it as a time reference to set the
real-time clock’s year, day, hour and minute.
The NV_time contains the time in CP562a format according to IEC870-5. This
time format includes a valid/invalid bit and a daylight-saving time bit. The same
time format is used in the event messages. The daylight-saving time bit shall
follow the NV_time.
The stopping of sending while waiting for NV_clock is done to guarantee that the
input message buffers of the nodes are empty at the time of NV_clock reception.
When the buffers are empty and nothing is sent to the bus the propagation time of
the NV_clock is more predictable than otherwise and it can be partially
compensated.
All devices connected to LON must be able to stop sending not prioritised
messages when a NV_clock_warning is received and start again after the
NV_clock is received or after a time-out.
The devices, only synchronised via the LON bus, must be able to compensate for
propagation delays in e.g. routers.
PRG 3DJH
85 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
On the LON-bus there must be only one clock master, which is synchronising the
other nodes to its own time. The clock master is synchronised e.g. via a minute
pulse input, satellite/radio clock or from the NCC.
In addition (or instead of ) to sending the clock messages to the network the clock
master can generate a minute pulse output for synchronisation of the LON-bus
nodes via hardwired connection.
If a monitoring device is able to act as the clock master node, it must be possible
to enable or disable this feature. If the clock master feature of a monitoring node
is disabled, then it must receive the clock synchronising message sent by an active
clock master node.
If the system is divided into subnets using routers each subnet (may probably)
have to be synchronised separately. This means that a clock master node have to
have an access to all the subnets or there must be a subnet clock master in each
subnet. The subnet clock masters must be synchronised to each other e.g. using a
minute pulse.
It must be possible to configure the clock master node so that it sends the clock
synchronising messages either with subnet broadcast or domain broadcast.
Subnet broadcast is used when there are subnets separated with routers and there
is a clock master for each subnet. Domain broadcast is used if the system is
divided into subnets but routers are not used.
A node which has an other type of interface than the one based on the use of
MIP/P50, may further compensate the received time in the NV_clock message if
it knows how much its own receive propagation time differs from the MIP/P50
propagation time.
PRG 3DJH
86 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
In some cases remotely located node(s) may be connected to the system via e.g. a
long twisted pair line with routers in both ends and the node(s) can only be
synchronised via the LON-bus. In this case the node’s own clock sync
compensation must include both the router delays and the delay of possibly low
speed twisted pair line. If this compensation is not possible then accurate clock
synchronisation is not possible and we must state what is the time difference
between the “main” system and the “remotely located” node(s).
PRG 3DJH
87 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
'DWDIRUPDWV
*HQHUDO
/216SHFLILF'DWDIRUPDWV
There are two main types of application message data formats in LON protocol:
- data format for network variables and
- data format for explicit messages
1HWZRUNYDULDEOHGDWDIRUPDW
7 6 5 4 3 2 1 0
1 d NV selector msb
NV selector lsb
NV application data
([SOLFLWPHVVDJHGDWDIRUPDW
0 Message code
Message application data
Message code is used to classify different types of messages. The message code
can be used to differentiate the following messag data formats.
$SSOLFDWLRQGDWDPHVVDJHV
1HWZRUNPDQDJHPHQWFRPPDQGV
PRG 3DJH
88 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
1HWZRUNGLDJQRVWLFFRPPDQGV
)RUHLJQIUDPHPHVVDJHV
1RWH
A summary of the general format of LON messages can be found in Appendix 2.
Complete decription of the protocol can be found in [LPS]
The foreign frame formats in Substation Automation applications are used in the
following way:
PRG 3DJH
89 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
'DWDIRUPDWVIRUKRUL]RQWDOFRPPXQLFDWLRQ
The format definitions of the network variables can be found in chapters 5.6.1 and
5.5.
Network variable polling is used to request a network variables using
request/response service.
'DWDIRUPDWVIRUYHUWLFDOFRPPXQLFDWLRQ
*HQHUDO
Events are sent using explicit messages, the format of events is based on
[IEC101] standards.
'DWDPHVVDJHVLQ0RQLWRULQJDQG&RQWUROGLUHFWLRQ
*HQHUDOIRUPDWGHILQLWLRQ
The data formats for data messages used in vertical communication to transfer
events and control commands are based on the conceptional definitions of
[IEC101] and partly from [IEC103].
Especially the data presentation with value, quality and time is taken from profile
[IEC101].
The addressing and organisation of the objects is extended as it is described in
[IEC3] to allow multiple ASDU in one APDU.
The ASDU presentation is modified to allow a shorter message length.
The data format is prepared to allow more then one ASDU per message. But it
can also be used with one ASDU only. It is a question of both sides (sender and
receiver) to allow multiple ASDUs per message. The use of multiple ASDUs is to
allow to transmit values which must be handled as one information set (e.g. the
different requiered values for synchrocheck).
The message structure allows both, several values of the same data type and / or
several data types to be transmitted in one message.
PRG 3DJH
90 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7 6 5 4 3 2 1 0
0 1 0 0 0 1 0 0 LON Message Code
Mtype Message type Application
WinId (Sink Window ID) Window Identification layer
Sequence No. (0 / 1...255) Message Seq_No. message
Credit Credit flow control
T P/N COT Cause of Transmission
Unit No. (MSB) UNIT ADDRESS
Unit No. (LSB) OF ASDU
ASDU_No.=1 Number of different ASDUs
DMCD type TYPE IDENTIFICATION
SQ=0 0 0 0 0 0 0 1 VARIABLE STRUCTURE QUALIFIER ASDU
Object No. (MSB) OBJECT ADDRESS
Object No. (LSB) OF ASDU
data Information elements
value, quality
Information Application
Time tag object Time tag of information object Service
milliseconds ... years Data
Unit
)LJXUHExample of Event Data message in monitoring direction with one ASDU = one data signal
type
PRG 3DJH
91 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7 6 5 4 3 2 1 0
0 1 0 0 0 1 0 0 LON Message Code
Mtype Message type LON bus
WinId (Sink Window ID) Window Identification message
Sequence No. (0 / 1...255) Message Seq_No. flow control
Credit Credit
T P/N COT Cause of Transmission
Unit No. (MSB) Data unit Unit Address
Unit No. (LSB) identifier of ASDU
$6'8B1R Number of different ASDUs
DMCD type Type Identification
SQ=0 0 0 0 0 0 0 1 VARIABLE STRUCTURE QUALIFIER ASDU
Object No. (MSB) Information object identifier
Object No. (LSB)
data Information elements
value, quality
Information Application
Time tag object Time tag of information object Service
milliseconds ... years Data
Unit
)LJXUH Event Data Message in monitoring direction with three ASDU = three different data signal
types
PRG 3DJH
92 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7 6 5 4 3 2 1 0
0 1 0 0 0 1 0 0 LON Message Code
Mtype Message type Application
WinId (Sink Window ID) Window Identification layer
Sequence No. (0 / 1...255) Message Seq_No. message
Credit Credit flow control
T P/N COT Cause of Transmission
Unit No. (MSB) UNIT ADDRESS
Unit No. (LSB) OF ASDU
ASDU_No=1. Number of different ASDUs
DMCD type TYPE IDENTIFICATION
SQ=0 0 0 0 0 0 1 1 VARIABLE STRUCTURE QUALIFIER ASDU
Object No. (MSB) Information OBJECT ADDRESS
Object No. (LSB) object
data Information element
value, quality
)LJXUHExample of Event Data message in monitoring direction with one ASDU = one data signal
type and SQ = 0 with three information objects.
PRG 3DJH
93 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7 6 5 4 3 2 1 0
0 1 0 0 0 1 0 0 LON Message Code
Mtype Message type Application
WinId (Sink Window ID) Window Identification layer
Sequence No. (0 / 1...255) Message Seq_No. message
Credit Credit flow control
T P/N COT Cause of Transmission
Unit No. (MSB) UNIT ADDRESS
Unit No. (LSB) OF ASDU
ASDU_No=1. Number of different ASDUs
DMCD type TYPE IDENTIFICATION
SQ=0 0 0 0 0 0 1 1 VARIABLE STRUCTURE QUALIFIER ASDU
Object No. (MSB) Information OBJECT ADDRESS
Object No. (LSB) object
data Information element
value, quality
Object No. (MSB) Information OBJECT ADDRESS
Object No. (LSB) object
data Information element
value, quality
Object No. (MSB) Information OBJECT ADDRESS
Object No. (LSB) object
data Information element
value, quality
)LJXUHExample of Event Data message in monitoring direction with one ASDU = one data signal
type and SQ = 0 with three information objects (ASDU without time tag).
PRG 3DJH
94 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7 6 5 4 3 2 1 0
0 1 0 0 0 1 0 0 LON Message Code
Mtype Message type Application
WinId (Sink Window ID) Window Identification layer
Sequence No. (0 / 1...255) Message Seq_No. message
Credit Credit flow control
T P/N COT Cause of Transmission
Unit No. (MSB) UNIT ADDRESS
Unit No. (LSB) OF ASDU
ASDU_No=1. Number of different ASDUs
DMCD type TYPE IDENTIFICATION
SQ=1 0 0 0 0 0 1 1 VARIABLE STRUCTURE QUALIFIER ASDU
Object No. (MSB) Information OBJECT ADDRESS
Object No. (LSB) object
data Information element
value, quality
data Information element
value, quality
data Information element
value, quality
)LJXUHExample of Event Data message in monitoring direction with one ASDU = one data signal
type and SQ = 1 with three information elements (no time tag)
PRG 3DJH
95 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7 6 5 4 3 2 1 0
0 1 0 0 0 1 0 0 LON Message Code
Mtype Message type Application
WinId (Sink Window ID) Window Identification layer
Sequence No. (0 / 1...255) Message Seq_No. message
Credit Credit flow control
T P/N COT Cause of Transmission
Unit No. (MSB) UNIT ADDRESS
Unit No. (LSB) OF ASDU
ASDU_No=1. Number of different ASDUs
DMCD type TYPE IDENTIFICATION
SQ=1 0 0 0 0 0 1 1 VARIABLE STRUCTURE QUALIFIER ASDU
Object No. (MSB) Information OBJECT ADDRESS
Object No. (LSB) object
data Information element
value, quality
data Information element
value, quality
data Information element
value, quality
Application
Time tag Time tag of information object Service
milliseconds ... years Data
Unit
)LJXUHExample of Event Data message in monitoring direction with one ASDU = one data signal
type and SQ = 1 with three information elements (one time tag)
1RWH : If a single ASDU_Type with time tag is packed in that manner (SQ=1, SQ_Nr > 1) one time tag
is at the end of the
ASDU and valid for all information elements
PRG 3DJH
96 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
$%%DSSOLFDWLRQSURWRFROIORZFRQWUROE\WHV
The definition and contents of these bytes is described in chapter 5.7.2.
PRG 3DJH
97 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7 6 5 4 3 2 1 0
T P/N Cause COT = Cause of Transmission
• P/N is used for confirmation services in the Cause field of Cause of Transmission.
In the case of irrelevance the P/N bit is zero (e.g Events).
• The Test bit defines ASDUs which were generated during test conditions.
It is used e.g. to test transmission and equipment without controlling the process.
• Confirmed application services in control direction (e.g commands) are mirrored in monitor direction with
different causes of transmission.
7DEOH: Semantics of COT which are used within this LON application guideline
0 invalid
1 periodic, cyclic
2 history event
3 spontaneous
5 request or requested
6 activation
7 activation confirmation
8 deactivation
9 deactivation confirmation
10 activation termination
PRG 3DJH
98 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
SQ Single/Sequence
0 Addressing of an individual information element in a number of
information
elements of the same type
1 Addressing of a sequence of information elements in one object
information object address = address of the first information
element in the
sequence of „n“ elements
SQ_No Sequence Number
0 Message contains no information object
1..127 number of information objects or information elements
PRG 3DJH
99 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
$GGUHVVLQJ
The adressing with the different information types are done as followed :
• Commands contain the destination address of the unit.
• Events contain source address from the unit.
7 6 5 4 3 2 1 0
Unit No. (MSB) Unit Address
Unit No. (LSB)
The unit number is a logical node number. One physical LON node can contain
several logical nodes (e.g. the control- and protection units within a device can be
seperated in logical units connected to one physical LON node interface).
1RWH : Its not mandatory for a client to support several logical units on one
physical device
7 6 5 4 3 2 1 0
Object No. (MSB) Object Address
Object No. (LSB)
*They will be used for status-, error and other unit specific messages.
Within this LON application guide, only the object numbers specified in chapter:
‘5.4.2.6 Reserved object numbers’ are allowed to be used.
The others are reserved.
PRG 3DJH
100 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
The bay control units and the protection relays are structured in the addressing to
the SPA address presentation with SPA slave, channel and data item. And also the
external presentation of an object is given in the form of SPA identification.
The bay control units can either be connected to a SPA bus master or to the LON
bus.
An object must be identified in both cases in a unique way.
That means the bay unit is responsible to support a cross reference table which
gives the SPA and LON address for the object.
SPA address when connected to Object address for LON bus Object description
SPA master connection
Slave Channel Data item Unit Object address Object name
x y z a b object number 1
x y z+1 a b+1 object number 2
5HVHUYHGREMHFWQXPEHUV
PRG 3DJH
101 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
$6'8B1R
7 6 5 4 3 2 1 0
0..255 ASDU_No
The ASDU_No. describe how many different ASDUs are included in this message.
PRG 3DJH
102 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
'0&'W\SHV'DWDW\SHVLQ0RQLWRULQJDQG&RPPDQG'LUHFWLRQ
'0&'7\SH,GHQWLILFDWLRQ
7 6 5 4 3 2 1 0
0..255 Type Identification
50 Set Point Command Short Floating Point Number CON 16 Process Control
138 Measured value real 32 bit (IEEE STD 754) with time tag 21
142 Step Position Information with Time Tag CP56 (SOE) 17 Process Monitoring
147 Measured value, signed integer 32 bit without Time Tag Mon 14 Monitoring
148 Measured value, signed integer 32 bit with Time Tag Mon 21 Monitoring
PRG 3DJH
103 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
155 Packed Start Event of protection equipment with time tag Mon 19 Monitoring
201 Diagnosis Information with Time Tag CP56 & QDS 20 System Monitoring
PRG 3DJH
104 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
,QIRUPDWLRQHOHPHQWV
7 6 5 4 3 2 1 0
0..255 ACR = Application Command Response
1RWH: ACR is used for transfer of application-specific responses to a command (used for FBP response, in
general).
7 6 5 4 3 2 1 0
ER PN AFQ = Acknowledge File Qualifier
7 6 5 4 3 2 1 0
0..255 ASC = ASCII Character
7 6 5 4 3 2 1 0
Octet 1
.
. AVA = Attribute Value
.
.
Octet 26
1RWH : Length of AVA depends on length of attribute value (LOV) and is specified by the TOV.
PRG 3DJH
105 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7 6 5 4 3 2 1 0
S Value (MSB)
Value BCR = Binary counter reading
Value
Value (LSB)
7 6 5 4 3 2 1 0
32 MSB 25
8 LSB 1
7 6 5 4 3 2 1 0
0..255 CHS = Checksum
PRG 3DJH
106 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7 6 5 4 3 2 1 0
Milliseconds (MSB)
Milliseconds (LSB)
IV Res1 Minutes CPT
SU Res2 Hours
Day of week Day of month
Res3 Months
Res4 Years
Milliseconds 0..59999
Minutes 0..59
Res1 0
IV Time Valid/Invalid
0 valid
1 invalid (no sync trigger for the respective device)
Hours 0..23
Res2 0
SU Summer time
0 standard local time
1 daylight saving time
Day of month 1..31
Day of week 1..7
Months 1..12
Res3 0
Years 0..99
Res4 0
7 6 5 4 3 2 1 0
Milliseconds (MSB) CP16 = Two Octet Binary Time
Milliseconds (LSB)
Milliseconds 0..59999
1RWH: It is used for an elapsed time such as „Relay operating time“ or „Relay duration time“.
PRG 3DJH
107 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7 6 5 4 3 2 1 0
IR DRS Res SQ CQS = Counter Qualifier & Sequence
7 6 5 4 3 2 1 0
QOC DCS DCO = Double Command
Direct commands are transferred with S/E set to zero (S/E = 0, Execute).
7 6 5 4 3 2 1 0
DPI DPI = Double Point Information
PRG 3DJH
108 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7 6 5 4 3 2 1 0
DPI_rev DPI_rev = Double Point Information reversed
1RWH : The definition of DPI_rev is used only for compatibility reason and should QRW EH XVHG
in future implementation.
7 6 5 4 3 2 1 0
IV NT SB BL 0 0 DPI DIQ = Double Point Information
IV
0 valid
1 invalid
NT
0 topical
1 not topical
SB
0 not substituted
1 substituted
BL
0 not blocked
1 blocked
RES 0 Reserved
DPI
0 indeterminate or intermediate state
1 determined state OFF
2 determined state ON
3 indeterminate state
PRG 3DJH
109 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7 6 5 4 3 2 1 0
IV NT SB BL 0 0 DPI_rev DIQ_rev = Double Point Information reversed
IV
0 valid
1 invalid
NT
0 topical
1 not topical
SB
0 not substituted
1 substituted
BL
0 not blocked
1 blocked
RES 0 Reserved
DPI_rev
0 indeterminate or intermediate state
1 determined state ON
2 determined state OFF
3 indeterminate state
7 6 5 4 3 2 1 0
0..255 EQL1 = Error Qualifier Level 1
7 6 5 4 3 2 1 0
0..255 EQL2 = Error Qualifier Level 2
7 6 5 4 3 2 1 0
0..255 EQL3 = Error Qualifier Level 3
PRG 3DJH
110 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
0 1 2 3 4 5 6 7
UI8 EQL4 = Error Qualifier Level 4
7 6 5 4 3 2 1 0
HI FI_No. ESQ = Event setup qualifier
7 6 5 4 3 2 1 0
Value (MSB) FAN = Fault Number
Value (LSB)
1RWH The fault number is used to identify an event associated with a protection function, for example, a start/pick-up from a
protection equipment will increment a fault number. This means that a sequence with an unsuccessful auto-reclosure
will be recorded as two separate fault numbers. The fault number need not to be reset or preset.
7 6 5 4 3 2 1 0
P/N Res FRQ = File Ready Qualifier
PRG 3DJH
111 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7 6 5 4 3 2 1 0
0..255 LSQ = Last Segment Qualifier
7 6 5 4 3 2 1 0
MSB LOFD = Length of File od Directory
LSB
7 6 5 4 3 2 1 0
0..n LOS = Length of Segment
7 6 5 4 3 2 1 0
0..n LOV = Length of Attribut value
7 6 5 4 3 2 1 0
0..255 LTD = Length of Transparent Data
PRG 3DJH
112 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7 6 5 4 3 2 1 0
GRN GRP 0 0 L4 L3 L2 L1 MLQ= Measured value quality
Measured value limit violation quality. The quality bits are set for each limit independent. If e.g. the value exceeds
the highest upper limit L3 and L4 are set.
PRG 3DJH
113 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7 6 5 4 3 2 1 0
MSB NOFD = Name of File or Directory
LSB
0 1 2 3 4 5 6 7
OAD__Originator Originator_Address
OAD_Internal_Adress
7 6 5 4 3 2 1 0
GC CL1 CL2 CL3 Res Res Res Res OCI = Output circuit information of P.E
PRG 3DJH
114 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7 6 5 4 3 2 1 0
IV NT SB BL Res Res CA CY PCQ = Pulse counter quality
The pulse counter quality bits are extended to the use within substation control.
7 6 5 4 3 2 1 0
FRZ RQT QCC = Qualifier of Counter Interrogation Command
PRG 3DJH
115 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7 6 5 4 3 2 1 0
IV NT SB BL EI Res Res Res QDP = Quality Descriptor for events of P.E
RES 0 Reserved
Elapsed time is valid if it was correctly acquired. If the acquisition function recognizes abnormal conditions the
elapsed time is marked invalid. The elapsed time of the Information object is not defined under this condition. The
mark INVALID is used to indicate to the destination that the elased time may be incorrect and cannot be used.
PRG 3DJH
116 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7 6 5 4 3 2 1 0
IV NT SB BL Res Res Res OV QDS = Quality Descriptor
IV = INVALID/VALID
A value is valid if it is correctly acquired. After abnormal conditions of the information source are recognised
(missing or non operating updating devices, oscillating source) the value is then marked invalid. The value of the
information object is not Defined under this condition (e.g. hardware failure of the board). The mark INVALID is
used to indicate to the destination that the value may be incorrect and cannot be used.
NT = NOT TOPICAL/TOPICAL
A value is topical if the most recent update was successful. It is not topical if it was not updated successfully
during a specified time interval or it is unavailable.
SB = SUBSTITUTED/NOT SUBSTITUTED
The value of the information object is provided by input of an operator (dispatcher) or by an automatic source.
BL = BLOCKED/NOT BLOCKED
The value of the information object is blocked for transmission; the value remains in the state that was acquired
before it was blocked. Blocking and deblocking may be initiated by a master unit (on operators request) or
automatically when an internal state cause it (e.g. when oscillation suppression occurs for an indication)
OV = NO OVERFLOW/OVERFLOW
The value of the information object is beyond a preDefined range of value (mainly applicable to analog values).
PRG 3DJH
117 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7 6 5 4 3 2 1 0
S/E QU QOC = Qualifier of Command
S/E Select/Execute
0 Execute
1 Select
QU
0..31 compatible or private definitions
Direct commands are transferred with S/E set to zero (S/E = 0, Execute).
The qualifier of command PXVW be accessable on the application layer for private definition reason.
e.g. projects specific definition.
Compatible or private definition of QOC must be transferred over LON
7 6 5 4 3 2 1 0
0..255 QOI = Qualifier of Interrogation
7 6 5 4 3 2 1 0
0..255 QST = Queue State
7 6 5 4 3 2 1 0
0..255 QUT = Queue Type
PRG 3DJH
118 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7 6 5 4 3 2 1 0
QOC RCS RCO = Regulating Step Command
Direct commands are transferred with S/E set to zero (S/E = 0, Execute).
PRG 3DJH
119 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7 6 5 4 3 2 1 0
ERN SF SCQ = Select and Call Qualifier
3 deactivate file
4 delete file
7 6 5 4 3 2 1 0
QOC Res SCS SCO = Single Command
Direct commands are transferred with S/E set to zero (S/E = 0, Execute).
PRG 3DJH
120 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7 6 5 4 3 2 1 0
IV NT SB BL EI Res ES SEP = Single Event of Protection Equipment
IV Valid/Invalid
0 valid
1 invalid
NT Topical/Not Topical
0 topical
1 not topical
SB Substitutef/Not Substituted
0 not substituted
1 substituted
BL Blocked/Not Blocked
0 not blocked
1 blocked
EI Elapsed time
0 elapsed time valid
1 elapsed time invalid
RES 0 Reserved
ES Event State
0 indeterminate state
1 OFF
2 ON
3 indeterminate state
PRG 3DJH
121 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7 6 5 4 3 2 1 0
IV NT SB BL Res Res Res SPI SIQ = Single point information with quality descriptor
IV Valid/Invalid
0 valid
1 invalid
NT Topical/Not Topical
0 topical
1 not topical
SB Substitutef/Not Substituted
0 not substituted
1 substituted
BL Blocked/Not Blocked
0 not blocked
1 blocked
RES 0 Reserved
SPI Single Point Indication
0 OFF
1 ON
7 6 5 4 3 2 1 0
FA FOR NOM NFD Res SOFD = Status of File
PRG 3DJH
122 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7 6 5 4 3 2 1 0
GS SL1 SL2 SL3 SIE SRD Res SPE = Start Event of Protection Equipment
Start events are generated by the protection equipment when it detects faults. Start events are transient
information.
Commands to output circuits are generated by the protection equipment when it decides to trip the circuit breaker.
Output circuit information is transient information.
The time between start and end of operation is the relay duration time. The time between start of operation and
command to output circuit is the relay operating time.
PRG 3DJH
123 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7 6 5 4 3 2 1 0
SPI SPI = Single Point Information
7 6 5 4 3 2 1 0
0..255 SSQ = Session Setup Qualifier
R32-IEEE STD 754 floating point number. The resolution is not defined. If the resolution is coarser than the unit
of the LSB, then the least significant bits are set to zero.
7 6 5 4 3 2 1 0
S Value (Exponent)
Exp Value (Fraction) (MSB) SVAF = Short floating point number
Value (Fraction)
Value (Fraction) (LSB)
Value -2128+2104...+2128-2104 IEC 870-5-4 type 5: REAL (R), IEEE STD 754
S sign (+/-) Sign bit
0 positive
1 negative
This subclause is in line with IEEE Standard 754 and specifies the following ranges for floating point arithmetics:
PRG 3DJH
124 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7 6 5 4 3 2 1 0
Sec Res Res TCI = Timer Counter Interrogation
1RWH Used for determine the saving point for counter values in counter interrogation command
7 6 5 4 3 2 1 0
0..255 TOH = Type of Handling
7 6 5 4 3 2 1 0
0..255 TOV = Type of Object Value
7 6 5 4 3 2 1 0
Value (MSB) VAI = Signed integer value
Value (LSB)
The resolution is not defined. Transmitter and receiver have to be configured in the same way to engineer the
represented value. The format is represented in Two’s bit complement form. This is a general format for a value
which is represented by a 16 bit word including sign.
PRG 3DJH
125 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7 6 5 4 3 2 1 0
Value (MSB) VAI = Signed integer value 32 bit
Value (LSB)
The resolution is not defined. Transmitter and receiver have to be configured in the same way to engineer the
represented value. The format is represented in Two’s bit complement form. This is a general format for a value
which is represented by a 32 bit word including sign.
7 6 5 4 3 2 1 0
Tran Value VTI = Value with Transient State Indication
PRG 3DJH
126 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
'HILQLWLRQDQG3UHVHQWDWLRQRI$6'8
V'0&'W\SHV
5.4.4.2.1 Commands
CAUSE OF TRANSMISSION:
In control direction:
6 activation
8 deactivation
In monitor direction:
7 activation confirmation
9 deactivation confirmation
10 activation termination
48 destination unit not reachable
49 destination unit application not reachable
PRG 3DJH
127 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
CAUSE OF TRANSMISSION:
In control direction:
6 activation
8 deactivation
In monitor direction:
7 activation confirmation
9 deactivation confirmation
10 activation termination
48 destination unit not reachable
49 destination unit application not reachable
PRG 3DJH
128 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
CAUSE OF TRANSMISSION:
In control direction:
6 activation
8 deactivation
In monitor direction:
7 activation confirmation
9 deactivation confirmation
10 activation termination
48 destination unit not reachable
49 destination unit application not reachable
PRG 3DJH
129 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
CAUSE OF TRANSMISSION:
In control direction:
6 activation
8 deactivation
In monitor direction:
7 activation confirmation
9 deactivation confirmation
10 activation termination
48 destination unit not reachable
49 destination unit application not reachable
PRG 3DJH
130 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
5.4.4.2.1.5 DMCD type = 50 = C_SE_NC , Set-Point Command, Short Floating Point Number:
CAUSE OF TRANSMISSION:
In control direction:
6 activation
8 deactivation
In monitor direction:
7 activation confirmation
9 deactivation confirmation
10 activation termination
48 destination unit not reachable
49 destination unit application not reachable
PRG 3DJH
131 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
CAUSE OF TRANSMISSION:
In control direction:
6 activation
8 deactivation
In monitor direction:
7 activation confirmation
9 deactivation confirmation
10 activation termination
48 destination unit not reachable
49 destination unit application not reachable
PRG 3DJH
132 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
CAUSE OF TRANSMISSION:
In control direction:
6 activation
In monitor direction:
7 activation confirmation
48 destination unit not reachable
49 destination unit application not reachable
PRG 3DJH
133 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
CAUSE OF TRANSMISSION:
In control direction:
6 activation
In monitor direction:
7 activation confirmation
48 destination not reachable
49 destination application not reachable
1RWH Unit address of ASDU specifies destination unit of general object handling command.
1RWH Unit Address and Object Address specify the object to be handled , it is used for all types of handling.
1RWH Any modification of object attributes causes the update of the object to higher levels via event channel. In
case of substitution this means that the new value is transferred with the corresponding qualifier SB=1 (SB is
set in the bay unit).
PRG 3DJH
134 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
CAUSE OF TRANSMISSION
In control direction :
6 activation of a GI
8 deactivation of a GI
In monitoring direction :
7 activation confirmation of a GI
9 deactivation confirmation of a GI
10 activation termination
GI command send from event client to event server and forces the event server to transmit all process information
with their actual values.
The command is confirmed in the way that it is mirrored in monitor direction with different cause of
transmissions.
GI response is transmitted from event server to event client to acknowledge the GI command or to indicate end of
GI message transmission.
PRG 3DJH
135 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
CAUSE OF TRANSMISSION:
In control direction
6 activation of event transmission
8 deactivation of event transmission
In monitoring direction
21 + P/N=0 command acknowledgement positive
22 or 21 + P/N=1 command acknowledgement negative
ES command (Event Setup) is sent from event client to event server to establish or to reestablish the transmission
of events from event server to event client.
The command is confirmed in the way that it is mirrored in monitor direction with different cause of
transmissions.
ES response is transmitted from event server to event client to acknowledge the ES command.
1RWH The time represents the start point from which on the event client wants to get the history events
transmitted
if the history bit is set. History events transmitted may be all events or from the time being present in
CPT.
PRG 3DJH
136 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
CAUSE OF TRANSMISSION:
In control direction
6 activation of transmission of setup information
8 deactivation of transmission of setup information
In monitoring direction
7 activation confirmation of transmission of setup information
9 deactivation confirmation of transmission of setup information
Setup Session command (SS) is sent from client to server to establish or to reestablish the transmission of setup
session data (e.g. substituted informations) from client to server.
The command is confirmed in the way that it is mirrored in monitor direction with different cause of
transmissions.
SS response is transmitted from server to client to acknowledge the SS command.
PRG 3DJH
137 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
5.4.4.2.2 Events
5.4.4.2.2.1 DMCD type =129 = M_SP_N, Single-point information without Time Tag
CAUSE OF TRANSMISSION
PRG 3DJH
138 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
5.4.4.2.2.2 DMCD type =130 = M_SP_T, Single-point information with Time Tag
CAUSE OF TRANSMISSION:
2 history event
3 spontaneous
11 return information caused by a remote command
12 return information caused by a local command
PRG 3DJH
139 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
5.4.4.2.2.3 DMCD type =131 = M_DP_NR, Double-point information without Time Tag (reversed)
CAUSE OF TRANSMISSION
5.4.4.2.2.4 DMCD type =132 = M_DP_TR, Double-point information with Time Tag (reversed)
CAUSE OF TRANSMISSION:
2 history event
3 spontaneous
11 return information caused by a remote command
12 return information caused by a local command
PRG 3DJH
140 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
5.4.4.2.2.5 DMCD type =133 = M_BO_N, Bitstring of 32 bit without Time Tag
CAUSE OF TRANSMISSION
PRG 3DJH
141 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
5.4.4.2.2.6 DMCD type =134 = M_BO_T, Bitstring of 32 bit with Time Tag
CAUSE OF TRANSMISSION:
2 history event
3 spontaneous
11 return information caused by a remote command
12 return information caused by a local command
PRG 3DJH
142 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
5.4.4.2.2.7 DMCD type =135 = M_MEN_N, Measured value, signed integer without Time Tag
CAUSE OF TRANSMISSION
1 periodic/cyclic
20 interrogated by general interrogation
PRG 3DJH
143 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
5.4.4.2.2.8 DMCD type =136 = M_MEN_T, Measured value, signed integer with Time Tag
CAUSE OF TRANSMISSION:
1 periodic/cyclic
2 history event
3 spontaneous
5 requested
11 return information caused by a remote command
12 return information caused by a local command
PRG 3DJH
144 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
5.4.4.2.2.9 DMCD type =137 = M_MEF_N, Measured value, short floating point without Time Tag
CAUSE OF TRANSMISSION
1 periodic/cyclic
20 interrogated by general interrogation
PRG 3DJH
145 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
5.4.4.2.2.10 DMCD type =138 = M_MEF_T, Measured value, short floating point with Time Tag
CAUSE OF TRANSMISSION:
1 periodic/cyclic
2 history event
3 spontaneous
5 requested
11 return information caused by a remote command
12 return information caused by a local command
PRG 3DJH
146 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
5.4.4.2.2.11 DMCD type =139 = M_PC_T, Pulse counter value with Time Tag
CAUSE OF TRANSMISSION
1 periodic, cyclic
20 interrogated by general interrogation
1RWH For transfer of counter value only Type 139 RU Type 140 can be used
PRG 3DJH
147 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
5.4.4.2.2.12 DMCD type = 140 = M_IT_T, Integrated Totals with Time Tag
CAUSE OF TRANSMISSION:
1 periodic,cyclic
37 requested by general counter request
38 requested by group1 counter request
39 requested by group2 counter request
40 requested by group3 counter request
41 requested by group4 counter request
1RWH For transfer of counter value only Type 139 RU Type 140 can be used
PRG 3DJH
148 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
CAUSE OF TRANSMISSION:
20 general interrogation
PRG 3DJH
149 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
5.4.4.2.2.14 DMCD type = 142 = M_ST_T, Step Position Information with Time Tag
CAUSE OF TRANSMISSION:
2 history event
3 spontaneous
11 return information caused by a remote command
12 return information caused by a local command
PRG 3DJH
150 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
5.4.4.2.2.15 DMCD type =143 = M_DP_N, Double-point information without Time Tag
CAUSE OF TRANSMISSION
5.4.4.2.2.16 DMCD type =144 = M_DP_T, Double-point information with Time Tag
CAUSE OF TRANSMISSION:
2 history event
3 spontaneous
11 return information caused by a remote command
12 return information caused by a local command
PRG 3DJH
151 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
5.4.4.2.2.17 DMCD type =147 = M_MEI_N, Measured value, signed integer 32 bit without Time Tag
CAUSE OF TRANSMISSION:
1 periodic/cyclic
20 interrogated by general interrogation
PRG 3DJH
152 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
5.4.4.2.2.18 DMCD type =148 = M_MEI_T, Measured value, signed integer 32 bit with Time Tag
CAUSE OF TRANSMISSION:
1 periodic/cyclic
2 history event
3 spontaneous
5 requested
11 return information caused by a remote command
12 return information caused by a local command
PRG 3DJH
153 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
5.4.4.2.2.19 DMCD type = 154 = M_EP_TA , Event of protection equipment with Time Tag
CAUSE OF TRANSMISSION:
3 spontaneous
20 interrogated by general interrogation
PRG 3DJH
154 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
5.4.4.2.2.20 DMCD type = 155 = M_EP_TB , Packed Start Event of protection equipment with Time
Tag
CAUSE OF TRANSMISSION:
3 spontaneous
PRG 3DJH
155 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
5.4.4.2.2.21 DMCD type = 156 = M_EP_TC , Packed Output circuit information of protection
equipment with Time Tag
CAUSE OF TRANSMISSION:
3 spontaneous
PRG 3DJH
156 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
CAUSE OF TRANSMISSION:
13 file transfer
5.4.4.2.3.2 DMCD type = 122 = F_SC_N , Call Directory, Select File, Call file
CAUSE OF TRANSMISSION:
PRG 3DJH
157 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
CAUSE OF TRANSMISSION:
13 file transfer
CAUSE OF TRANSMISSION:
13 file transfer
PRG 3DJH
158 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
CAUSE OF TRANSMISSION:
13 file transfer
1RWH The Type 125 is transferred with a fixed length always 31 Octets with SQ=0, ASDU_Number = 1
LOS determine how many Octets in the segment are valid
PRG 3DJH
159 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
ASC 1
. Name of file or directory in
Defined in 5.4.4.1.3 ASCII - Code
.
.
.
ASC 20
CAUSE OF TRANSMISSION:
3 spontaneous
5 requested
1RWH The Type 126 is transferred with a fixed length always 20 Octets with SQ=0, ASDU_Number = 1
PRG 3DJH
160 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
5.4.4.2.4.1 DMCD type = 201 = M_GD_T , Generic Diagnosis Information Time Tagged with
Qualifier
CAUSE OF TRANSMISSION:
3 spontaneous
5 requested
Diagnosis Information with Time Tag is issued within the devices of the substation control system, e.g., if a state
change of Status of Node has occurred.
UNIT and OBJECT ADDRESS of ASDU of diagnosis information equals the address of the issuing device or
module.
Diagnosis Information with different error qualifier must have a different object address
PRG 3DJH
161 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
Transparent Data
Octet 35
CAUSE OF TRANSMISSION:
In control direction
6 activation
In monitor direction
3 spontaneous
7 activation confirmation
48 destination unit not reachable
49 destination unit application not reachable
1RWH The Type 231 is transferred with a fixed length always 35 Octets with SQ=0, ASDU_Number = 1
No General Interrogation for Transparent Data is applicable (can not be state information)
PRG 3DJH
162 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
'DWDIRUPDWVIRU/6*FRPPXQLFDWLRQ
1HWZRUNYDULDEOHV
PRG 3DJH
163 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
Description:
Coding:
1 0 selector msb
selector lsb
x x x x x x x x x = bit not used
x x x x d d d d dddd = data bits
0001 = select open (or direct open)
0010 = select close (or direct close)
0100 = execute
1000 = cancel
Note:
Note:
The same NV type can also be used to control an object which can be controlled
without preselection. In this case data bit values “direct open” or “direct close”
are used and “execute” and “select” are not used..
PRG 3DJH
164 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
Description:
Bit write command is used to set or reset one bit in a 16-bit bit string in the
receiving device. The bit string is identified with one NV selector.
Coding:
1 0 selector msb
selector lsb
iiii xxxx iiii = bit number (0..15)
xxxx xxx d xxxx xxxx xxx = not used
d = bit value (0 or 1)
1RWH
The NV_bit_write is used in cases when e.g. mapping to ANSI X3.28 protocol’s
BitWrite command is required.
PRG 3DJH
165 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
Description:
The value field shows the current value of the analog input or output at the time
of reporting, or the last reported value form the originating device.
Coding:
1 0 selector msb
selector lsb
data, byte 1, msb 32-bit analog value, 32-bit signed fixed point integer value,
data, byte 2 negative values presented with two’s complement,
data, byte 3 scaling factor 1000 (E.g. value 1.05 is sent as 1050)
data, byte 4, lsb
1RWH
The 32-bit analog NV can be used to send the value of an analog input point or to
set a value for a analog output point or set point.
PRG 3DJH
166 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
Description:
The value field shows the current value of the analog input or output at the time
of reporting, or the last reported value form the originating device.
Coding:
1 0 selector msb
selector lsb
data, byte 1, msb 16-bit analog value, 16-bit signet fixed point integer value,
data, byte 2, lsb negative values presented as two’s complement,
with scaling factor 100 (E.g. value 1.05 is sent as 105)
1RWH
The 16-bit analog NV can be used to send the value of an analog input point or to
set a value for a analog output point or set point.
1RWH
Many of the Standard Network Variables (SNVT) are coded with 16 bits, but the
scaling factor may be 1, 10, 100 or 1000. It is recomended that the data collecting
devices like monitoring devices and gateways to other systems are prepared for
this.
PRG 3DJH
167 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
/6*(YHQW0HVVDJHV
LSG event messages are used to report SPA-event or the change of state of an
application function or digital or analog data point. Event messages use explicit
message frame format and message code is 40H.
Coding:
Event type 8:
PRG 3DJH
168 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
PRG 3DJH
169 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
Description:
Coding:
Note:
The receiver of the LSG SPA Event must be able to convert the 3-bit slave index
to original SPA-bus slave number. (See also LSG extended SPA event).
Note:
If the SPA-bus channel number in the SPA-device is bigger than 63 the higher
order bits will be placed in the slave index field (this is not a problems, if there is
only one SPA-slave under the LON/SPA-gateway). It is the responsibility of the
receiving device to handle this situation correctly.
PRG 3DJH
170 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
Description:
LSG analog event message format is used by to send changed values of an analog
information objects.
Coding:
Note:
In order to use this message format the sending device must have a corresponding
network variable of type NV_32b_analog, which specifies the NV selector value
to be used..
PRG 3DJH
171 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
Description:
LSG digital event message format is used by to send changed values of a digital
information objects.
Coding:
Note:
In order to use this message format the sending device must have a corresponding
network variable of type SNVT_state, which specifies the NV selector value to
be used.
PRG 3DJH
172 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
Description:
Coding:
Note:
The receiver of the LSG SPA analogue event must be able to convert the 3-bit
slave index to original SPA-bus slave number.
Note:
If the SPA-bus channel number in the SPA-device is bigger than 63 the higher
order bits will be placed in the slave index field (this is not a problems, if there is
only one SPA-slave under the LON/SPA-gateway). It is the responsibility of the
receiving device to handle this situation correctly.
PRG 3DJH
173 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
Description:
The “slave number” is an identification of the node running the application. The
slave number for each node in the system must be unique.
Coding:
Note:
This event type is planned but not yet (23.08.1995) implemented in LON/SPA-
gateway or SRIO1000M.
Note:
The benefit of LSG event type 8 compared to LSG event type 0, is that in type 8
the whole slave number is given, and the monitoring device does not have to have
a look-up table for converting slave index to slave number.
PRG 3DJH
174 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
/6*&RQILJXUDWLRQ0HVVDJHV
LSG configuration messages are sent using explicit message with message code
43H. These messages are used to send and read configuration data of LON/SPA-
gateways.
Command/response
message composed of ASCII
characters. Command/response end character, carriage return.
0DH
PRG 3DJH
175 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7UDQVSDUHQW63$EXVPHVVDJHV
The message is sent using explicit messages with message code 41H and using
acknowledged transport service.
Both the SPA-bus command messages (R or W) and the reply messages (D, A or
N) are sent using the same message code. It is recommended that one device
sends out only one message at a time and waits for the reply before sending the
next message.
Transparent SPA-bus messages are used to read and write parameter data.
Parameter data may be one or more parameter values or it may be a “parameter
file”, e.g. disturbance recorder file.
Coding:
Note:
Long SPA-bus messages are sent in pieces of max. 45 bytes. Each separately sent
piece (except the last piece) contains end characters ’&’, 0DH, 0AH (46th, 47th
and 48th byte).
First piece:
41H Message code 41H.
">" or "<" Message start character ">" or “<“.
SPA-bus message bytes End of data piece.
"&" Message end characters,
0DH carriage return, line feed.
0AH
Following pieces:
41H Message code 41H.
SPA-bus message bytes
"&" End of data piece.
0DH Message end characters,
0AH carriage return, line feed.
Last piece:
PRG 3DJH
176 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
PRG 3DJH
177 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
63$SDUDPHWHUUHDGPHVVDJH
Description:
The reply message may be sent using one or more transparent SPA messages,
each containing one piece of the SPA-reply message.
Coding:
SPA-bus message
":" End of data part/header.
CC Two checksum characters.
0DH Message end character, carriage return.
PRG 3DJH
178 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
63$SDUDPHWHUZULWHPHVVDJH
Description:
Coding:
SPA-bus message
":" End of data part/header.
CC Two checksum characters.
0DH Message end character, carriage return.
PRG 3DJH
179 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
'DWDIRUPDWVIRULQWHURSHUDEOHFRPPXQLFDWLRQ
Description:
SNVT_count is used for the Lon clock Master for configuration reasons of time
synchronisation.
(see [LCMF]).
Description:
SNVT_lev_disc is used for the Lon clock Master for diagnostic reasons of time
synchronisation.
(see [LCMF]).
Description:
The value field shows the current value of the digital inputs or outputs at the time
of reporting, or the last reported value form the originating device.
Coding:
1 0 selector msb Network variable selector
selector lsb
data, byte 1 16-bit binary value
data, byte 2
Note:
(YHQWKRXJKDELWGLJLWDO19PD\FRQWDLQWKHYDOXHRIGLIIHUHQWREMHFWVLWLV
UHFRPPHQGHGWKDWRQH19LVXVHGSHURQHREMHFW
Note:
The (C-language) structure definition of SNVT_state is:
PRG 3DJH
180 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
typedef struct {
unsigned bit0 : 1;
unsigned bit1 : 1;
...
unsigned bit15: 1;
} SNVT_state;
Description:
The value field shows the current value of the analogue input or output at the time
of reporting, or the last reported value form the originating device.
Coding:
1 0 selector msb
selector lsb
data, byte 1 (sign, exponent) 32-bit floating point value
data, byte 2 (exponent lsb, mantissa msb) IEEE 754 format
data, byte 3 (mantissa) 1 sign bit, 8 exponent bits, 23 mantissa bits
data, byte 4 (mantissa lsb)
The floating point SNVTs can be used to send the value of an analogue input
point or to set a value for a analogue output point or set point.
Note: Some of the floating point Standard Network Variable types useful in our
application:
PRG 3DJH
181 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
Description:
This output network variable transmit alarm data for each object on a node to a
monitoring node. This message containing all the data relating to the alarm
condition is sent whenever an alarm condition occurs or upon receiving a request
via Object Request network variable.
Coding:
1 0 selector msb
selector lsb
1 Identification string of the node.
2 Location ID Stored in node configuration data.
3 of the node
4 (6 bytes)
5
6
7 Object id Idenfication of the object within the node.
8 (16 bits)
9 Alarm type Type of alarm.
10 Priority level Alarm priority.
11 Index to SNVT SNVT id of the value.
12 (16 bits) (Data type of the value.)
13 Value, 4 bytes of fewer.
14 Value
15 (4 bytes)
16
17 Year Year 0...3000 (0 = year not specified)
18
19 Month 0...12 (0 = not specified)
20 Day 0...31 (0 = not specified)
21 Hour 0...23
22 Minute 0...59
23 Second 0...59
24 Millisecond 0...999
25
26 Alarm limit, 4 bytes of fewer.
27 Alarm limit
28 (4 bytes)
29
Alarm types:
0 = no alarm condition present
1 = unspecified alarm condition present
2 = total/service alarm 1
3 = total/service alarm 2
4 = total/service alarm 3
5 = alarm low limit alarm clear 1
6 = alarm low limit alarm clear 2
7 = alarm high limit alarm clear 1
8 = alarm high limit alarm clear 2
9 = alarm low limit alarm 1
10 = alarm low limit alarm 2
11 = alarm high limit alarm 1
12 = alarm high limit alarm 2
Priority levels:
PRG 3DJH
182 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
b7 b6 b0
Structure EVbit Event Code or Alarm type
Example:
** The “location” field in the SNVT_alarm defines the location of the node.
The location field in an alarm or event is normally the same as the contents of the
“location” field in the Neuron chip configuration stucture (which is stored in the
Neuron chip EEPROM memory.) Neuron chips location field is used to pass a
six-byte ASCII string describing the physical location of the node to the network
management node. Normally this string is set during installation time by the
network management node.
In case of gateway nodes, which are sending alarm/event messages to the LON
network, the location field in an alarm or event messages may also be used to
indicate the physical location of the original source of the alarm/event.
It is recomeded that in this case: the 3 last ASCII characters of the “location” =
node number of the source of event in the other network. (For example: location
= xxx125, would be used to transfer events from node number 125 of the other
network.)
Note:
PRG 3DJH
183 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
Description:
Coding:
1 0 selector msb
selector lsb
1 object_id Idenfication of the object
2 (16 bits) within the node.
3 1 2 3 4 5 6 7 8
4 8 10 11 12 13 14 15 16
5 17 18 19 reserved
6 reserved
PRG 3DJH
184 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
Description:
This input network variable provides the mechanism to request the status of an
object or a particular mode for a particular object within a node.
Coding:
1 0 selector msb
selector lsb
1 object_id Idenfication of the object
2 (16 bits) within the node.
3 object_request
The “status bit mask” of an object specifies the supported status bits. A one bit in
the mask means that the object may set the corresponding bit in the object status.
PRG 3DJH
185 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
'DWDIRUPDWVIRUV\VWHPFRRUGLQDWLRQPHVVDJHV
)RUPDWRIQHWZRUNPDQDJHPHQWPHVVDJHV
The detailed specification of the Network Management messages can be found for
example in the following papers: [LTPT] and [MOTD]
In host based nodes the Neuron chip of the network interface processes most of
the network management and diagnostic messages with the following exceptions:
- Set Node Mode (on-line and off-line only)
- Wink
- Update Net Variable Configuration (only if “host selection” is enabled)
- Query Net Variable Configuration (only if “host selection” is enabled)
- Query SNVT
- Network Variable Fetch
The host processor is handling the network variables to enable use of more than
62 network variables, “host selection” in the MIP software is enabled. This
means that the Network Variable Configuration table is located in the host
processor’s memory. Additionally host software may keep a copy of the Address
Table and Domain Table in the memory of the host processor by cyclically
polling the contents of the Domain Table and the Address Table from the memory
of the local network interface’s Neuron chip.
The address table in the host processor memory may be extended to 255 entries.
The first 15 entries (entry numbers 0...14) are copied from the local Neuron chip’s
memory and can thus be accessed in the same way as with normal Neuron chip-
based nodes, using Network Management messages “Query Address” and
“Update Address” or “Update Group Address Data”.
The extension of the address table can only be accessed using the extended
Network Management messages:
- Update Extended Address message
- Query Extended Address message
PRG 3DJH
186 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
8SGDWH([WHQGHG$GGUHVVPHVVDJH
Write to the extended address table in the memory of the host processor.
Message format:
3DH Message code
addr_index Address table entry index.
type Type of address entry or 80H + group size.
d node_or_member d = domain index, node_or_member = node number or member of a
group
rpt_timer retry
rcv_timer tx_timer
subnet_or_group subnet number or group number
This message is the same as the standard “Update Address” message except the
message code.
Timer fields:
rpt_timer = time interval between repetitions in unack_repeated service
retry = retry count
rcv_timer = receive timer for multicast(group) messages
tx_timer = transmit timeout for acked or request/response service
Note:
This message is not Defined in LonTalk protocol, this is an extension created for
substation automation applications.
PRG 3DJH
187 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
4XHU\([WHQGHG$GGUHVVPHVVDJH
Read from the extended address table in the memory of the host processor.
Message format:
3CH Message code
addr_index Address table entry index.
This message is the same as the standard “Query Address” message, except the
message code.
Note:
This message is not Defined in LonTalk protocol, this is an extension created for
substation automation applications.
PRG 3DJH
188 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
8SGDWH([WHQGHG1HW9DULDEOH&RQILJPHVVDJH
This message is used to write the extended Network Variable Configuration table
in the host processor’s memory.
Service type field st defines the service type used with the message:
0 = ackd, aknowledged
1 = unackd_repeated, unacknowledged/repeated
2 = unackd, unacknowledged
Note: This message is not Defined in LonTalk protocol, this is an extension. The
message codes are the same as used in “Update Net Variable Config” message,
but the contents of the request message is extended by one byte in the end of the
message.
PRG 3DJH
189 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
Note: In case the index to address table is 15, there should be no reason to use
the “Update Extended Net Variable Config message” but the standard “Update
Net Variable Config” messages should be used instead.
PRG 3DJH
190 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
4XHU\([WHQGHG1HW9DULDEOH&RQILJPHVVDJH
This message is used to read the extended Network Variable Configuration table
in the host processor’s memory.
Note: This message is not Defined in LonTalk protocol, this is an extension. The
message codes are the same as used in “Query Net Variable Config” message, but
the contents of the response message is extended with one byte in the end of the
message. Additionally the request message’s first data byte is always = 255 and
the msb-bit of the second data byte is always set.
PRG 3DJH
191 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
)RUPDWRILQLWLDOL]DWLRQDQGVWDUWXSPHVVDJHV
6HVVLRQVHWXSPHVVDJHV
The format of session and transmission protocol control messages, which are used
when sending application messages (vertical communication). Chapter 4.1.8.4
contain explanation of the fields of the session and transmission control messages.
6HVVLRQFRQWUROPHVVDJHV
7 6 5 4 3 2 1 0
0 1 0 0 0 1 0 0 Message code 44H
d 0 0 1 0 0 1 1 Message type (13H) LON bus
WinId (Sink Window ID) Window Identification message
Sequence No. (0 / 1...255) Message Seq_No. flow control
Credit Credit
7 6 5 4 3 2 1 0
0 1 0 0 0 1 0 0 Message code 44H
d 1 0 1 0 0 t 1 Message type (D3H,D1H,51H,53H) LON bus
WinId (Sink Window ID) Window Identification message
Sequence No. (0 / 1...255) Message Seq_No. flow control
Credit Credit
1RWH : d := direction 1 = server to client, 0 = client to server, t : 0 = without ACK 1 = with Ack
7 6 5 4 3 2 1 0
0 1 0 0 0 1 0 0 Message code 44H
d 0 1 1 0 0 1 1 Message type (B3H) LON bus
WinId (Sink Window ID) Window Identification message
Sequence No. (0 / 1...255) Message Seq_No. flow control
Credit Credit
PRG 3DJH
192 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
7UDQVPLVVLRQFRQWUROPHVVVDJHV
7 6 5 4 3 2 1 0
0 1 0 0 0 1 0 0 Message code 44H
d 0 0 0 0 1 0 0 Message type (84H,04H) LON bus
WinId (Sink Window ID) Window Identification message
Sequence No. (0 / 1...255) Message Seq_No. flow control
Credit Credit
7 6 5 4 3 2 1 0
0 1 0 0 0 1 0 0 Message code 44H
d 0 0 0 0 0 1 0 Message type (82H,02H) LON bus
WinId (Sink Window ID) Window Identification message
Sequence No. (0 / 1...255) Message Seq_No. flow control
Credit Credit
7 6 5 4 3 2 1 0
0 1 0 0 0 1 0 0 Message code 44H
d 0 0 0 0 0 1 1 Message type (83H,03H) LON bus
WinId (Sink Window ID) Window Identification message
Sequence No. (0 / 1...255) Message Seq_No. flow control
Credit Credit
Data as
Data Defined by one of DMCD types
in chapter 5.4.3
This fomat is used to send data, when immediate acknowledgement from the
receiver is requested.
PRG 3DJH
193 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
PRG 3DJH
194 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
*HQHUDOLQWHUURJDWLRQPHVVDJHV
PRG 3DJH
195 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
)RUPDWRIQHWZRUNVXSHUYLVLRQPHVVDJHV
1RGHVXSHUYLVLRQPHVVDJHV
6WDWXVDQGHUURUPHVVDJHV
The type of the message is Defined by object number (Object No.) of the
message, see next table.
PRG 3DJH
196 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
)RUPDWRIWLPHV\QFKURQLVDWLRQPHVVDJHV
Description:
The NV_clock is an information object that represents the absolute time of day
and date. This NV is used for time synchronisation.
Coding:
Note:
PRG 3DJH
197 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
Description:
After receiving the NV_clock_warning the node should stop sending normal
priority messages. This is to guarantee that the receive buffers in all the nodes are
empty, at the time of sending NV_clock. If the receive buffers are empty, then
the delay between receiving of the NV_clock the processing of it is as short as
possible.
Coding:
PRG 3DJH
198 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
Description:
The NV_time is an information object that represents the absolute time of day and
date. This NV is used for time synchronisation. The time is presented in
CP56Time 2a format [IEC4].
Coding:
PRG 3DJH
199 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
Description:
The NV_sync_time is an information object that represents the absolute time of
day and date.
This NV is used as a base NV for VATS time synchronisation see [LCMF].
7 6 5 4 3 2 1 0
1 d selector (msb)
selector (lsb)
1 year (msb) year in binary format
year (lsb)
2 month month in binary format
3 day of month day in binary format
SU
4 hours hour in binary format
IV
5 minutes minute in binary format
seconds seconds in binary format
6 ms (msb) milliseconds
7 ms (lsb) in binary format
8 res µSec (msb) µSeconds
9 µSec [lsb] in binary format
milliseconds 0..999
µSeconds 0..999
1RWHThe time is always transfered as local time (winter- or summertime)
PRG 3DJH
200 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
)RUPDWRI7UDQVSDUHQW'DWDQHWZRUN9DULDEOH
7 6 5 4 3 2 1 0
1 0 selector msb
selector lsb
1 contents user specific
2 ..
3 ..
4 ..
5 ..
.. .. ..
.. .. ..
30 contents user specific
PRG 3DJH
201 / 216 6SHF&/$
5HIHUHQFHV
[IEC3] IEC 870-5-3, International Standard, First Edition 1992-9, Part 5 Transmission
protocols, Section 3 : General Structure of application data
[IEC4] IEC 870-5-4, International Standard, First Edition 1993-08, Part 5 Transmission
protocols, Section 4 : Definition and coding of application information elements
[IEC5] IEC 870-5-5, International Standard, First Edition 1995-6, Part 5 Transmission
protocols, Section 5 : Basic application functions
[IEC101] IEC 870-5-101, International Standard, First Edition 1995-11, Part 5 Transmission
protocols, Section 101 : Companion standard for basic telecontrol task
[LIOG] LonMark Layers 1-6 Interoperability Guidelines, Version 1.3, document number
078-0014-01D. Echelon corporation 1994.
[LPDB] The 1995 Echelon LonWorks products databook. Echelon corporation 1994.
[LSNMP] The SNVT Master List and Programmer's Guide. Echelon corporation, January
1995.
PRG 3DJH
203 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
5HYLVLRQ,QIRUPDWLRQ
The following information has been changed from the previous version:
PRG 3DJH
204 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
messages were added.
3.6.2.3.4 Chapter was removed. The described message 7.10.1996/OV
is not needed.
2.3.2 Updated pictures and text describing the sliding 7.10.1996/Harri Sirkkala
window protocol.
renumbering of the structure was changed due to add ASDU 08.12.97/DEACE/A.Janz
different chapters and for Command Handling, Command Transfer
PRG 3DJH
205 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
1 server to client , d = 0 client to server
Q. Table 7 : Network Variables with selectors base
types , extended and base type added
R. 3.2.1 timing parameters changed to
1HXURQFKLSSDUDPWHUVDQGEXIIHUFRXQWVand
new configuration parameters
S. 6HUYLFHVDQGDGGUHVVLQJIRUPDWVXVHGLQ
6XEVWDWLRQDXWRPDWLRQ changed into 4.1.4.
Service types, addressing formats and timer
values
T. Table 3 Summary of the use of transport
services and addressing formats removed
U. Short description of used sliding window
protocol timers moved into own paragraph 4.
4.1..8.8. Transport protocol timers
V. Reference for the Time synchronisation
document added
W. Added Note to GI and ES cmd1RWH7KHXQLW
DGGUHVVGRHVQRWFRQWDLQDYDOLGYDOXHDQGWKH
LPSOHPHQWDWLRQLVRQHHYHQWVHVVLRQWRRQH
SK\VLFDOQRGHQRGH removed
PRG 3DJH
206 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
PRG 3DJH
207 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
counts
PRG 3DJH
208 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
$SSHQGL[3HUIRUPDQFHRI/21QHWZRUNLQWHUIDFH
Some performance figures (as given in Echelon’s LonWorks Product Databook) of different types of
network interfaces is collected to the following table:
Note: When an unacknowledged message is sent only one message packet is sent over the bus per
message. When an acknowledged message is sent two message packets are sent over the bus: the
message packet itself and the acknowledgement packet.
In actual implementations including the host software the performance figures may be different than
the ones given in the above table.
PRG 3DJH
209 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
$SSHQGL[*HQHUDO/210HVVDJH)RUPDW
The following message formats are used for sending application messages containing either a Network Variable or
Explicit Message.
Preamble:
Preamble: BitSync 6...n ByteSync 1
Common header:
Prior 1 AltPath 1 Delta_BL 6
Version 2 PDUFmt 2 AddrFmt 2 Length 2 PDUFmt specifies TPDU, SPDU, AuthPDU or APDU
Domain ID:
Domain 0/8/24/48 0,8,16 or 48 bits (0,1,2 or 6 bytes) defined by “Length”
PDU header:
Auth 1 xPDUtype 3 Trans_No 4 PDU header for TPDU, SPDU or AuthPDU
Data part:
Destin&Type 8/16
Data 0...n
Checksum:
CRC msb 1
CRC lsb 1
Note: In the tables above, a number after a field name specifies the field size in bits.
PRG 3DJH
210 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
- Preamble, BitSync = string of logical 1’s, minimum length 181 microseconds or six bits
- Preamble, ByteSync = 1-bit field, logical 0, specifying the end of the preamble
- Prior = 1-bit field specifying the priority of this MPDU: 0 = normal, 1 = high
(MPDU = MAC protocol data unit, or frame; MAC Medium Access protocol layer)
- AltPath = a 1-bit field specifying the channel to use. This is a provision for tranceivers that have the ability to transmit on two different
channels and receive on either one without prior configuration. The transport layer sets this bit for the last two retries, or the MAC sublayer can
be configured to always transmit on the alternate path.
- Delta_BL = a 6-bit field; specifies channel backlog increment to be generated as a result of delevering this MPDU
PRG 3DJH
211 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
- Domain = Domain identification of the sending node and receiving node(s)
- Auth = 1-bit field; specifying the use of authentication; 0 = not used; 1 = used
0 = Acknowledged Message;
1 = Unacknowledged-repeated Message;
2 = Akcnowledgement;
4 = Reminder;
5 = Message-Reminder
0 = Request;
2 = Response;
4 = Reminder;
5 = Message-Reminder
0 = challenge;
2 = reply
Network Variables: 16 bit value >= 8000H, 14 lsb bits specifying the NV selector;
Explicit messages: 8 bit value < 80H, 7 lsb bits specifying the message code;
- Data = 0...31/229 bytes containing message data bytes (max. 31 for NVs)
PRG 3DJH
212 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
Examples:
PRG 3DJH
213 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
$SSHQGL['HIDXOWQHWZRUNYDULDEOHVHOHFWRUYDOXHVDQGLQGH[HV
For network variables used for time synchronisation and file transfer there has been made the following
assumptions what comes to network variable index or selector value. This has been done to enable clock
synchronisation and file transfer to start without network variable binding.
Even though default selector values have been given to network variables, the values can be changed in the normal
way by using network management tool (e.g. when using a file transfer program, which make no assumptions
about the network variable selectors.)
PRG 3DJH
214 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
$SSHQGL[6XPPDU\RIQHWZRUNYDULDEOHW\SHV
The following network variable types are referenced in this document.
1RWH Network variable types having name beginning with letters “SNVT” are standard network variable types.
Network variable types having name beginning with “NV” are ABB specific network variable types. (See chapter
2.1.5 for more details about network variable naming conventions.)
PRG 3DJH
215 / 216 6SHF&/$
LON Application Guidelines for Substation Automation Version 1.4 Aug. 98
$SSHQGL[1HXURQFKLSSDUDPHWHUVDQGEXIIHUFRXQWV
5HDGRQO\GDWDVWUXFWXUH
For all the nodes in a LON-bus the following parameters are to be used in “Read-only structure” of the Neuron
chips.
receive_trans_count 15 ; mandatory, to support maximum number of concurrent receivetransactions
net_buf_in_cnt 15 ; minimum value
all buffer sizes 66 bytes ; minimum buffer size for all types of buffers
&RQILJXUDWLRQVWUXFWXUH
For the nodes in the fibre-optic LON-bus the following parameters are to be used in “Configuration structure” of
the Neuron chips.
packet_cycle 4 ; mandatory
xmit_interpacket 0 ; mandatory
recv_interpacket 0 ; mandatory
node_priority 0 ; mandatory, this can only differ from 0, if priority scheme is used
channel_priority 30 ; minimum, must be equal in all nodes in the system, can be increased
according priority scheme demands
collision_detect 1 ; mandatory,
cd_to_end_packet 1 ; mandatory,
cd_tail 1 ; mandatory
To minimise the risk of misunderstandings the configuration structure is represented here as hex values. Notice that
location string is here 6 blanks.
00 00 20 20 20 20 20 20 05 2E 06 04 00 00 00 00 1E 80 06 00 00 00 00 00 05
PRG 3DJH
216 / 216 6SHF&/$