Professional Documents
Culture Documents
SPORT PROTOCOL
Basics
Block 0:
This block is used in the beginning of all frames except for single character responses.
More blocks may or may not flow this.
Start (27H)
Length
Control Field
Address
CRC
1>Start Address:
This number is usually 27H /14 H and it indicates the beginning of the frame.
If the frame starts with 14H it is a single character frame.
2> Length
. It specifies the number of subsequent user data octets including the control and
address octets but excluding the CRC octets.
The control field contains information that characterizes the direction of the message, the
type of the service provided and supports control functions for suppressing losses or
duplications of messages
1
RES =0 PRM=1 FCB FCV FUNC TION CO DE
8 4 2 1 8 4 2 1
If the data is sent from RCC to RTU .. The following bits are present
1> For Class A Request/Response the four bits/Function Codes will be filled like this
1 0 1 0 i.e. FC = 10
2> For Class B Request/Response the four bits/Function Code will be filled like this
1 0 1 1 i.e. FC = 11
3> For RESET the four bits/Function Code will be filled like this
0 0 0 0 i.e. FC = 0
If the data is sent from RTU to RCC. The following bits are present
1> RES
This will always be 0.
2> PRM
PRM =0 if message is sent from RTU to RCC.
3> ACD
Access demand bit.
This bit is set to 1 at the RTU if an event occurs.
Then RTU sends request for Class A / Class 1 data transmission.
2
NOTE: Class 1 data transmission is typically used for events or for messages with
high priority. Class 2 data transmission is typically used for cyclic transmission or
for flow priority messages.
4> DFC
Data Flow Control: 0 = further messages are acceptable
1= further messages may cause data overflow.
5>Address
This bit contains the RTU Address
6>CRC
This contains the CRC Bit.
Here
27 = Starting Address
02 = Length
5B = Class B request with FCB bit = 0
02 = RTU address
36 = CRC byte
NACK Record
This record contains Type Identification <TI> apart from the Block `O’. Different values
of TI indicate different types of negative acknowledgement. For this record the FC=9 in
control field of Block `O’.
Block `0’
TI
CRC
3
Different types of NACK records supported in this implementation are listed below:
The NACK – ‘RTU powered on’ is used to indicate that the RTU has been switched on.
This can be used by the control station to download data to RTU or get fresh set of data
from RTU. This indication should be there as long as the last section of download
parameters is not sent.
NACK Byte
This negative acknowledgement byte is returned by the RTU to RCC whenever there are
no data objects of the requested class type.
e.g. A2
4
Type Identification (TI)
27 2o
The following tables show the definition of TYPE IDENTIFICATION numbers for all
packets in monitor and control direction.
<1… 127>: = as per standard definitions by6 the IEC 101 standard
<6> := step position information with time tag for acquisition of transformer tap positions
(for future use)
<8> := Bit string of 32 bit with time tag for events acquisition
<10> = bit string of 32 bit for all events.
<11> := measured value, scaled value for acquisition of measurands
<16> := integrated totals for acquisition of integrated MD values (for future use)
5
File transfer
Private range
<220> := diagnostics
<201> := block RTU/controlled station (for future use)
<202> := deblock RTU/controlled station (for future use)
<203> := averaged values (for future use)
<204> := synchronization of MD integration ( for future use)
<205> := all measured values, scaled value
<206> := current value of integrated values (for future use)
6
Seven-Octet Binary Time :
This time record is used where absolute time record is required. For this implementation,
it is used for clock synchronization command. The seven octets shall contain the
following information as per the given format.
Seven octet binary time := {Milliseconds, Minutes, Reserve 1, Invalid, Hours, Reserve 2,
Summer time, Day of month, Day of week, Months, Reserve 3, Years, Reserve 4}
Bits 8 7 6 5 4 3 2 1
Octets 1 Milliseconds
7
2 20
Milliseconds
15
2 2 20
3 RES1 Minutes
5
2 20
4 SU RES2 Hours
4
2 20
5 Day of week Day of month
22 20 2 4
20
6 RES3 Months
3
2 20
(Note 1)
7 Years
7
2 20
Milliseconds := <0….59,999>
Minutes := <0… 59>
RES1 := Reserved – 1 bit
Hours := <0… 23>
RES2 = Reserved – 2 bits
SU Summer time := <0> := Standard time
<1> := Summer time (not to be used)
Day of month := <1…31>
Day of week := <1….7>
Months := <1…12>
RES3 = Reserved – 4 bits
Years := <0..99>
7
Note 1: The MSB bit is used to indicate the current century. `0’ in the MSB position
indicates 20th century and a `1’ indicates 21 st century. Rest of the 7 bits of the byte gives
the last two digits of the absolute year.
This record is used in all the responses except time synchronization. (for example, event
responses, transformer tap position etc.). The 4 octets shall contain the following
information as per the format given below.
Bits 8 7 6 5 4 3 2 1
Milliseconds
27 20
215 20
Minutes
5
RES1 2 20
Hours
RES2 4
2 20
Milliseconds = <0….59,999>
Minutes = <0… 59>
RES1 = Reserved – 2 bits
Hours = <0..23>
RES2 = Reserved – 3 bits
8
Chapter 02
This chapter describes the various Request and Response sequences from RTU to
RSS and vice-versa.
Service Name:
a) Events in bit string of 32 bit with time tag ( events data) (10/8)
b) Measured value, scaled value (11/8)
c) Clock synchronization command (11/8)
d) Single command ( command transmission) (11/8)
e) Double command ( command transmission) (11/8)
f) Test Procedure (11/8)
g) Diagnostics (11/8)
h) All measured values, scaled values (11/8)
i) Download complete information (11/8)
j) Reset controlled station (0/0)
k) All Events in bit string of 32 bit (10/8)
9
1> Events: ( 10/8 )
When ever an event occurs RTU sets the ACD bit to 1 and sends to RCC.
Then RCC sends request for class 1 data
Request:
Block ‘0’
E.g.: 27 2 7a 4 73
Response:
Positive Response:
Block “0”
Type Identification 8
Information Object Address 1…n
Event Data Record 1…n
Four - Octet Time Record 1…n
CRC Byte
FC =8
1> Block 0
2> TI = 8 H
10
3> Information Object Address
The information object address in the packet corresponds to the starting address of
the 32-bit event data record.
Negative Response:
NACK byte
e.g. A2
NACK record
1. RTU powered on
2. RTU not configured
3. CRC error in the received message
Example of Response
E.g.
27 c 8 2 39 | 8 | 1 | 56 55 15 0 | 0 0 3 e | 26
27 c 8 2 39 | 8 | 1 | 55 55 15 0 | 0 0 3 f | 26
11
The whole packet can be divided into following six blocks:
1>Block 0:
8H
12
One can note that there is change only in first byte of this block and remaining bytes are
same .
0 0 3 e
0 0 3 f
These four bytes represent the Four - Octet Time Record <explained above>
0 => Hours
0 => Minutes
3 => Seconds
e => Milli seconds
6>CRC Byte
13
2> Measured Value, Scaled Value / Measurands :
(Request – Respond)
Request:
Block ‘0’
e.g.
27 2 7b 2 3a
Response:
Positive response:
Block “0”
Type Identification 11
Information Object Address #1..N
Measurand value #1..N
Information object address #N
CRC Byte
FC=8
1> Block 0
2> TI = 11 or b H
3> Information Object Address
4> Measurand value
5> CRC Byte
14
E.g
27 b 8 2 55 || b || 1 0 2 c1 3 0 4 cb || 58
TI =11 = b H
NACK record
15
3> Clock Synchronization
(Request – Respond)
Clocks at all the RTUs have to be synchronized with the clock at the RCC to provide
correct chronological sets of time-tagged events or information objects. The clocks are
initially synchronized by the RCC after system initialization and RTU initialization and
then resynchronized periodically by transmission of the `Clock Synchronization’
command.
Request :
Block `O’
Type Identification 103
Seven Octet Time Record
1> CRC byte Block 0
2> TI = 103 = 67 H
3> Seven Octet Time Record
This time record is used where absolute time record is required.
4> CRC byte
E.g.
27 a 5b 1 36 || 67 || 75 4b 28 9 f 7 82 || e
16
Seven Octet Time Record
The following packet is the example of Seven Octet Time Record.
Each Bit is explained as follows
75 4b 28 9 f 7 82
Response :
Positive Response:
Block `O’
Type Identification 103
Seven Octet Time Record
CRC byte
FC=8
The Seven-Octet Time Record will contain the time of the RTU clock after
synchronization taking into account the necessary correction.
E.g
27 a 8 1 46 || 67 || 34 4c 28 9 f 7 82 || 75
17
Seven Octet Time Record
The following packet is the example of Seven Octet Time Record.
Each Bit is explained as follows
34 4c 28 9 f 7 82
34 => 52 milliseconds
4c => 76 seconds
28 => 40 minutes
9 => 9 hours
f =>15 day
NACK Record
4>Single Command
18
Request :
Execute Command
Block `O’
Type Identification 45
Cause of Transmission
Information Object Address
Single Command Operation
CRC byte
FC=11
Cause of Transmission
1> Block 0
2> TI = 45 => 2D H
3> Cause of Transmission = 6 H < fixed>
4> Information Object Address
5> Single Command Operation
6> CRC byte
E.g
The following packet was transmitted when single command was given
27 6 7b 1 6d || 2d || 6 || 1 || 0 || 13
2d => TI = 45 => 2D H
19
Response:
Block `O’
Type Identification 45
Cause of Transmission
Information Object Address
Single Command Operation
CRC byte
FC=8
Cause of Transmission
E.g.
27 6 28 1 1d || 2d || a || 1 || 0 || 44
2d => TI = 45 => 2D H
20
Negative Acknowledgements
NACK byte
NACK record
21
5>Double Command
(1) Request:
Execute Confirmation
Block `O’
Type Identification 46
Cause of Transmission
Information Object Address
Double Command Operation
CRC byte
FC=11
Cause of Transmission
1> Block 0
2> TI = 46 => 2E H
3> Cause of Transmission = 6 H
4> Information Object Address
5> Double Command Operation
6> CRC byte
e.g.
The following packet was transmitted when single command was given
27 6 7b 1 6d || 2e || 6 || 1 || 2 || 18
2e => TI = 46 => 2e H
22
18 => CRC byte
Response:
Execute Confirmation
Block `O’
Type Identification 45
Cause of Transmission
Information Object Address
Single Command Operation
CRC byte
FC=8
Cause of Transmission
E.g:
27 6 28 1 1d || 2e || a || 1 || 2 || 4f
2e => TI = 46 => 2e H
23
Negative Acknowledgements
NACK byte
NACK record
24
6> Test Procedure
(Request – Respond)
Request :
Block `0’
Type Identification 104
Fixed Test Bit Pattern (byte 1)
Fixed Test Bit Pattern (byte 2)
CRC byte
FC=11
e.g. . 27 5 7b 1 51 68 aa 55 b
Response :
Positive Acknowledgements
Block `0’
Type Identification 104
Fixed Test Bit Pattern (byte 1)
Fixed Test Bit Pattern (byte 2)
CRC byte
FC=8
25
Negative Acknowledgements
NACK Record
26
7>All Measured Values, Scaled value
(Request-Respond)
This request can be used to acquire all measurands in one message. The measurand
values will be sent as a sequence of values. The ordering of the sequence will be based on
the address of the measured values starting from the value corresponding to the lowest
address (say address zero).
Request :
Block `0’
Type Identification 205
CRC byte
FC=11
1> Block 0
2> TI = 205 => CD H
3> CRC
Response :
Block `0’
Type Identification 205
Measured value #1
Measured value #2
………….
Measured value #N
CRC byte
FC=8
For each of the requests, the following class of Negative Acknowledgements applies.
NACK record
27
(5) No Points of the requested type connected
This request is used to initialize the link of controlled station. It will be sent by control
station whenever the FCB of RTU is to be reset
Request :
Block `0’
FC=0
The Function Code of control field in Block 0 will be set to 0 to indicate that the remote
link is to be reset. The details are given in section on Frame Format.
e.g.
27 2 40 1 5a
Control Field = 40
The Bits for the Control Field will be filled like this
8 4 2 1 8 4 2 1
FC=0
28
Response :
Block `0’
FC=0
The Function Code of the response will be set to 0 to indicate positive acknowledgement.
e.g.
27 2 20 1 4e
Control Field = 20
For each of the requests, the following class of Negative Acknowledgements applies.
NACK record
29
9>Perform Complete Diagnostics
(Request-Respond)
The RTU, on receiving this command from the RCC, shall enter into diagnostic mode,
perform the diagnostic tests and transmit the results of the diagnostics back to the RCC.
The RTU suspends the data acquisition when the diagnostics is in progress. Any
powered-on RTU responds to this request even if it is not downloaded with configuration
data.
Request :
Block `O’
Type Identification 220
`CRC byte
FC=11
1> Block 0
2> TI = 220 => DC H
3> CRC byte
Response:
Block `O’
Type Identification 220
Type of RTU (Note 1)
Diagnostic result 1(Note 2)
Diagnostic result 1(Note 3)
Card Type (Note 4) No. of cards
Result (Note 5)
Result (Note 6)
Card Type No. of cards
Result
Result
……..
Diagnostic result 1(Note 7)
Diagnostic result 2(Note 8)
CRC byte
FC=8
Eg
30
Note 1:
b a
Value of <a>
0 -- Not used
1 -- TSS
2 -- SP
3 -- SSP
0 -- normal
1 -- blocked
2 -- RTU not initialized
Note 2:
7 6 5 4 3 2 1 0
Each bit indicates the status of the device specified below. A bit set to 1 indicates error.
The diagnostics given above will be optional and will not be a requirement for acceptance
of the system.
Note 3:
31
7 6 5 4 3 2 1 0
Each bit indicates the status of the device specified below. A bit set to 1 indicates error.
The diagnostics given above will be optional and will not be a requirement for acceptance
of the system.
Note 4:
a | b
Remaining five bits are used to indicate the number of each type of cards.
Note 5:
7 6 5 4 3 2 1 0
Each bit indicates the status of the device specified above. A bit set to 1 indicates error.
NACK record
32
(2) CRC error in the received message
This request is sent to obtain the status of all the devices in the field. Whenever the host
or the RTU is coming up for the first time or after a failure it requires the status of all the
devices in the field. Hence this request is used to address that requirement. The Function
code for this request will be 10.
Request:
Block `0’
Type Identification 10
CRC byte
FC=10
Response:
Block “0”
Type Identification 10
Event Data Record
CRC Byte
FC=10
Each event data record contains 32 bits of station information. Number of event records
depends on number of points in that station. This packet will contain the status of all the
points in the RTU.
33
ANNEXURE 1
LIST O F ABBRIVIATIONS
34
PAO Pseudo Analog Output
PDI Pseudo Digital Input
PDO Pseudo Digital Output
PDU Protocol Data Unit
PRM Primary Message
RBE Report by Exception
RCC Remote Control Centre
RTU Remote Terminal Unit
SCADA Supervisory control and Data Acquisition System
SP Sectioning and Paralleling Post
SPORT Standardized Communication Protocol
SSP Sub sectioning and paralleling post
TI Type Identification
TSS Traction Sub Station
TVM Trivactor Meter
35
1>Events
Request:
27 2 7a 4 73
Response:
28 c 8 2 39 | 8 | 1 | 56 55 15 0 | 0 0 3 e | 26
Request:
28 2 7b 2 3a
Response:
27 B 8 2 55 || B || 1 0 2 c1 3 0 4 cb || 58
Request
29 a 5b 1 36 || 67 || 75 4b 28 9 f 7 82 || E
Response
27 a 8 1 46 || 67 || 34 4c 28 9 f 7 82 || 75
4>Single Command
Request
27 6 7b 1 6d || 2D || 6 || 1 || 0 || 13
Response
27 6 28 1 1d || 2D || a || 1 || 0 || 44
36
5>Double Command
Request
28 6 7b 1 6d || 2E || 6 || 1 || 2 || 18
Response
27 6 28 1 1d || 2E || A || 1 || 2 || 4f
Request
27 5 7b 1 51 68 AA 55 b
Response
27 5 8 1 2d 68 AA 55 b
37