Rec501rp570 en A
Rec501rp570 en A
Rec501rp570 en A
2
Protocol RP 570 The RP 570 protocol is a high-level communi- "RTU Protocol based on IEC 57 part 5-1 (present
cation protocol used between the front-end com- IEC 870) version 0 or 1. The RP 571 protocol is
puter (FE) and the substation to be controlled. an extension of RP 570 and intended to be used
The protocol is based on the low-level protocol in gateway-type devices. The RP 570 protocol is
recommended by IEC TC57, format class 1.2. a standard protocol generally used by ABB in one-
The designation RP 570 is an abbreviation of level networks (Figure 1).
Gateway
substation
RP 571 RP 570
Substation
RP 570
Front-end computer
RP 570
Substation
RP 570 RP 570
Substation Substation
Compared to the ISO/OSI reference model the RP 570 protocol fulfills the layer division of a
stripped three-layer stack model as follows:
RP 570 ISO/OSI
Physical layer Layer 1, physical layer
Link layer Layers 2 - 4, data link, network and transport layer
Application layer Layers 5 - 7, session, presentation and application layer
The other software of the device operates on layer model. The purpose of the protocol is to
the so called user layer located above the three- offer communication services for this layer.
3
The lowest The link layer determines the bit-level param- The frame structure defined by IEC is used
protocol levels eters. The protocol is an asynchronous proto- above the bit level. The frame consists of either
col, in which the message is transmitted one byte a fixed or a variable number of bytes. There are
at a time. The byte is specified as follows: two start characters: a decimal 16 for frames of
- start bit fixed length and a decimal 104 for frames of
- data bits variable length (Figures 2 and 3).
- parity bit, even parity
- stop bit
- in total 11 bits.
Transmission sequence
D7 (MSB) D0 (LSB)
Start character (16 decimal)
0 0 0 1 0 0 0 0
Address (1st user byte)
Checksum
When a frame of fixed length is used, both the the address and a function code byte. Simple
sender and the receiver know the length of the commands and acknowledgements, which do
message. The frame contains two data octets, not contain real data, are of fixed length.
Transmission sequence
D7 (MSB) D0 (LSB)
Start character (104 decimal)
0 1 1 0 1 0 0 0
Length
Header for
communication unit
Length
Checksum
Terminator for
Stop character (22 decimal) communication unit
0 0 0 1 0 1 1 0
A frame of variable length contains 2 - 255 data address and the function code at the beginning
octets. The double length field of the frame of the data part identify the message.
header indicates the length of the data part. The
4
The receiver of the message is identified by the The function octet depends on the message di-
address, which has to be unambiguous and in rection. The task of the octet is to provide in-
the range from 1 to 255. The address zero is a formation about the type of message concerned.
special case recognized by each device in the (Tables 1, 2 and 3). In addition, the byte con-
network. The device does not respond to a zero- tains encoded information defining the message.
address message received.
5
Function Response message Explanation of command
code
6
Function Response message Explanation of command
code
7
In the message direction FE - substation the general, the message is in the dialogue mode.
type of message is indicated with the D1 - D4 When the FE wants to send the same message
(F0 - F3) bits (Fig. 4, Table 1). The D0 bit is to all substations at the same time, it uses the
always one. Bit D5 (M/D) is a monologue/dia- monologue mode. Then the substation address
logue bit indicating whether the master device is zero.
wants its message to be responded to or not. In
D7 D0
Function code
S1 S0 M/D F3 F2 F1 F0 1
The D6 and D7 bits (S1, S0) indicate the se- In the message direction substation - FE the
quence number. For dialogue-mode messages whole octet length is used for identifying the
the sequence runs in the number order 0, 1, 2, message (Fig. 5, Tables 2 and 3), except for the
3, 0, 1, 2,... and the substation verifies that the D0 bit, which is constantly zero. The table
next number of the sequence of the request length is primarily increased by the fact that the
message is in order. Should the sequence number same message appears twice according to the pri-
be another than that expected, the substation ority level ( priority in the table: P1, P2 and
repeats the last message it sent with the con- P3). Secondly, if the device has no new message
cerned sequence. For certain messages, the se- to send after the present message, it can add the
quence can start from the beginning. In the sequence-ending CCR1 or CCR2 character to
monologue mode the sequence number is un- the message. The message checksum is calcu-
important. lated as an arithmetic sum over the data part.
Overflow is not considered in the calculation.
Irrespective of the type of message, a message al-
ways ends with the end character 22 (decimal).
D7 D0
Function code
F6 F5 F4 F3 F2 F1 F0 0
8
Messages Above the messages to be used in the protocol The messages in the direction substation - FE
have been presented in connection with the are divided into the groups
frame structure (Tables1, 2 and 3). In the pro- - process data messages
tocol, the messages from the FE to the substa- - time-tagged event messages
tion are grouped as - response messages
- RTU messages - status messages
- data request messages - special messages.
- process commands.
Messages in direction The RTU message group includes a number of Via data request messages the master requests
FE - substation special messages for the control of the substa- the substation to send the new values of the
tion itself. process points that have changed.
- SCI, Status Check Instruction, is sent to the - RA, Request A, is the request message of the
substation when highest priority. The response to the message
- the FE wants to start polling the substation contains process data of the highest priority
- the substation does not respond to the polling alone.
- the FE wants all possible information from - RB, Request B, is a normal request message
the substation. used to poll the substation for new process
data.
After restart, the substation approves no other - RX, Request X, the message refers to one pro-
message. The SCI sets the sequence number cess value.
to zero and so the first request message has
the sequence number one. If the substation
stops operating, and the communication with Process commands are used to instruct the sub-
the FE is interrupted, the FE starts polling the station to perform a specific action, which typi-
concerned substation for status information cally relates to the process to be controlled.
with repeated SCI messages. The SCI can be
received frequently, if there are disturbances - IXC, Immediate eXecute Command, is sent
on the channel and messages are lost. to the substation, when the FE wants the com-
mand to be executed at once.
- RSEQ, Reset SEQuence number is a message - CBXC, Check Back before eXecute Com-
to be used in test situations. This message mand, is the preselection of a command. In a
forces the sequence to start from the begin- two-step command the object is first selected
ning. The message arrives with the sequence (step one) and then the command is executed
number zero and the next message with the (step two).
sequence number one. - EXC, EXecute Command, executes a given
- FCOM, The Function COMmand message, command in the preselected object. If no ob-
is used for controlling the station itself. The ject has been preselected, the command will
substation incorporates a lot of functions, for not be executed.
instance, restart of the station, which can be - IHC, InHibit Command, allows the preselected
commanded by this message. command to be cancelled.
- FTAB, Function TABle, is intended to be used - SPM, Set Point Message, sets the setting value
for parameterizing the substation. There is a for the process value. The setting value can be
great number of tables which include very digital or analogue.
detailed parameters for handling various pro- - GOM, General Output Message, is a general
cess variables. All tables are sent with the same command used for setting a digital or analogue
function code and they are identified with a object relating to the process.
special subcode. - TDC, Transparent Data in Command Direc-
- TSI, Time Synchronization Instruction, syn- tion, transmits a transparent message to the
chronizes the calender time of the substation substation. This message may be a message of
with the FE time. The handling time has to another protocol, encapsulated in the data part
be compensated for in the substation by re- of the RP 570 protocol.
cording the local time when the receipt of the
message is started and adding it to the calender
time.
9
Messages in direction With process data messages the substation com- By response messages the substation communi-
substation - FE municates the new values of changed process cates that it has received and accepted the mes-
data. sage sent.
- IDM, InDication Message. One- and two-bit - CCR1, Cycle Complete Response of priority 1.
status information can be packed as 16-bit The message is sent as a response to the FE,
blocks in the message. when the substation no longer has any mes-
- IDS, InDication message with Status. One- sages of the highest priority level. The polling
and two-bit status information can be packed sequence ends with this message.
as 16-bit blocks in the message. In addition, - CCR2, Cycle Complete Response of Priority 2,
the message contains status information about is sent as a response to the FE, when the sub-
each bit. Status value one indicates that the station has no more changed process point val-
status data is faulty or out of use. ues on levels below the highest priority level.
- AVM, Analogue Value Message, includes one A polling sequence ends with this message.
or more analogue values. - EXR, EXecuted Response, is given as an indi-
- AVS, Analogue Value message with Status, in- cation of positive acknowledgement.
cludes one or more analogue values. In addi- - EXRR, EXecuted Response - Restarted, is an
tion, the message includes status information acknowledgement of the first SCI message re-
of each data element, block. ceived after restart.
- DVM, Digital Value Message, includes one - NXR, Not eXecuted Response, is a negative
digital value. acknowledgement.
- DVS, Digital Value message with Status, in- - CBR, Check Back Response, is sent in response
cludes one digital value. In addition, the mes- to an accepted preselection made by the FE.
sage includes status information of the data The message contains an identification of the
element, block. command object.
- PCM, Pulse Counter Message, contains the
value of one pulse counter, and, in addition
status data and other counter-related informa- The most important status messages are TSTA
tion. and TEV.
- TDR, Transparent Data in Response direction,
is sent to the FE, when the substation wants to - TSTA, Terminal STAtus. This message is sent
send general information to it, typically, a mes- by the substation in response to an RA/RB
sage in response to a TDC message. The mes- request. The message may contain informa-
sage content is transparent to the protocol. tion about 16 internal status indications.
- TEV, Terminal EVent, is also sent in response
to an RA/RB request. By this message the sub-
Time-tagged event messages forward time- station reports on a change in the internal sta-
tagged information about changes in process tus of a device.
data. The messages are replies to the request
messages RA and RB.
The group of special messages includes one
- ERMI, Event Recording Message for Indica- message:
tion, transfers one time-tagged one- or two-
bit status data item after the change of a value. - PRI, Polling Request Instruction. This mes-
The message contains the new value. sage is used when the device is connected to a
- ERMA, Event Recording Message for Ana- public switched telephone network. The sub-
logue value, contains time-tagged information station dials up the FE, when it has reason to
about exceeding of an analogue process data communicate. Once the line is open the sub-
limit value. station sends the PRI message without a pre-
- ERMD, Event Recording Message for Digital ceding RA or RB request message. The FE
value, contains time-tagged information about identifies the calling substation by this mes-
exceeding of a digital process data limit value. sage
10
Address space Data to be read from the device is called blocks 1...255 (Table 3: Address spaces). It should be
and data to be written to the device is called observed that the address space starts from the
objects. Each message type has its own address address one and not from zero as in C language
space, the size of which, with the exception of indexing.
the command object space, can be in the range
The highest Some rules for the operation of the protocol on cedures for retransmission of messages, priority
protocol layers the application layer have been specified for the handling and polling have been separately speci-
highest layers of the RP 570 protocol. The pro- fied.
Retransmission A message can be destroyed in the transmission The substation stores the function byte of the
of messages channel so that it does not pass the check in the last four messages correctly received, together
FE end or the substation end. Then the FE goes with the sequence number and the whole mes-
on requesting retransmission of the message, un- sage sent. The substation may receive a mes-
til the message arrives correctly or the maximum sage in which the sequence number does not
limit for retransmissions is reached. If all the follow the sequence 0, 1, 2, 3, 0, 1, 2… . In
messages received from the substation have been such a case the substation checks whether the
false, the substation is assumed to be out of op- same function byte has been stored with the se-
eration. In the monologue mode, on the other quence number of the received message and, if
hand, the FE does not necessarily notice that so, the stored message will be sent. The action
the message was not correctly received by the requested in the message will not be repeated.
substation.
If the substation receives a message that forces
The sequence number described before is used the sequence to zero, i.e. an SCI or RSEQ mes-
for the control of retransmissions (Fig. 4). sage - it destroys all the messages and function
bytes stored. However, such event-type mes-
If the FE does not receive a message that passes sages, which cannot be regenerated from e.g.
its checks, it repeats, with the same sequence the database have to be sent. Typically such
number the last message sent, until the repeti- messages are TEV, SYSM, ERMI and ERMA.
tion limiter trips. After this the substation con-
cerned is assumed to be out of use and the FE
starts sending SCI messages to the substation.
No other messages are sent to a substation be-
ing out of use.
11
Priority levels The process data messages from the substation and CCR1 and CCR2 response messages to
to the FE are identified by the type and the block specify the type of the next request message to
number of the message. Each message is of a be sent. On the basis of the same information it
specific priority level: P1, P2 or P3. P1 is the also decides which substation has to be polled
highest priority level. The priority of the mes- next.
sages IDM, IDS, AVM, AVS, DVM and PCM
is indicated by the function byte of the message Once the substation receives an RA or RB re-
(Fig. 4, Table 2 and 3). A priority defining field quest message it has to check the station data
for the messages TDR, ERMI, ERMA, TSTA, and return a response message. This response
TEV and SYSM has not been separately speci- message includes the process point value of the
fied. right process level, provided the value has
changed. Only process points of priority level
The priority has been specified for each process P1 are used to respond to an RA request mes-
data item. Messages sent in response to request sage (Fig. 6), whereas messages of any priority
message, i.e. IDM, IDS, AVM, AVS, DVM or level can be sent in response to an RB request
PCM, are generated according to priority. TSTA message. (Fig. 7). A value that has already been
and TEV messages are high-priority messages sent after a CCR1 or CCR2 message was sent
and always of priority level P1. ERMI, ERMA must not be used in reply to a request message.
and TDR messages contain less important data Of messages which always have a defined prior-
and are of priority level P2. SYSM messages are ity cannot be sent but one between CCR1 and
of priority level P3. The FE uses priority data CCR2 messages.
1 message
P2 cycle IND P2 AVM P2 DVM P2 ... ERMI/A TDR from P3 CCR2
12
Polling principle The main principle of polling is that only data During the following sequence all the messages
that has changed since the previous poll is trans- of the highest priority level have to be given,
mitted from the substation. The FE uses a spe- provided that some of the values have changed,
cific method of using RA and RB request mes- and one message from one of the lower-priority
sages and controlling a number of substations. levels. It is permitted to send just one ERMI,
The substation knows nothing but how the pri- ERMA or TDR message from the P2 level. It is
ority levels behave and how to respond to RA also possible to send just one message from level
and RB request messages. P3, if higher-level messages already were sent.
Only one SYSM message is permitted during a
sequence. During an RB sequence no CCR1
RA sequence message can be sent (Fig. 7).
13
Protocol RP 570 protocol of REC 501 accepts following input messages:
Implementation
Command Meaning Notes
Input Messages
RA Request A. Polls priority 1 blocks
14
Output Messages RP 570 protocol of REC 501 uses following messages:
PRI Polling Request Sent spontaneously without RA/RB poll, when the
Instruction dial-up line is opened by REC 501 built-in modem
(if PSTN line used).
15
Address Mapping The addresses for values to be read from the The addresses are divided into four sub-areas.
of REC 501 device are called blocks. Addresses for values to The data is arranged according to the data type
be written to the device are called objects. so each message type has its own area. The fol-
lowing table collects possible message types,
address ranges used and formats.
Data items type IDM, AVM, DVM and PCM Note that AVM 12 bit is 11 bit for value and
are used for process data read from the device. highest bit for sign. Value range is -2048...2048.
The value is sent to the master device as an ac-
knowledge message of the poll. The CBX type
is used for commands given by the operator and
SPM and GOM for parameters.
Note:
If any of the inputs I3, I4, I5 is connected to
operate as pulse counters, the application SW
will mask the input.
16
AVM Type Addresses
Block Bits in Priority Threshold Relevant SPA parameter
block (note 1)
Note:
Blocks 5 - 10 will not be reported to the network normal sequence. They are reported only when
controller in response to a polling message on requested by interrogation command SCI.
17
GOM Type Addresses
Object Relevant SPA parameter and notes
Note 1:
To be done via Event Handler. Clear event buff-
ers E50, E51 (and the rest, too).
18
TSTA Message Ident 1 is partly used by REC 501.
Content
Ident Bit Bit meaning and relevant SPA parameter
Note 1: Note 2:
Module status information to be read via event REC 501 will always report "not synchronised"
handler, events E50. after disconnecting the SPA-configuration ca-
ble. This is because the RP 570 protocol will
be initialised on a change.
TEV Message Content REC 501 uses only events number 1, 6 and 13.
FCOM Message REC 501 allows the priority and blocking in- All data types are blocked by the target block,
Format formation of the AVM, IDM, DVM and PCM also the IDM type.
type process point to be changed.
19
Communication
Data Channel Para- Data Values Default
Parameters meter direction
Configuration The RP 570 protocol is to be used with a build- Further more, there is one pulse counter input
Example in modem. The REC 501 unit is to call the mas- with a counting period of 1 hour, local remote
ter once the temperature changes more than 4°C. switch, heating and one object to control.
Parameters to be set
• Remote communication parameters
• Modem communication parameters
• Functional parameters
• RP 570 application layer parameters
V221 = ATV0X0E0S0=2
This sets the modem initialisation string. Refer to the modem manual.
V222 = ATH1d,1234567
This sets the dialling string. 1234567 is the phone number of the master station.
V223 = ~~~+++~~~ATH
Hang-up string.
20
21
22
23
1MRS 750751-MUM EN
ABB Oy
Substation Automation
P.O.Box 699
FIN-65101 VAASA
Finland
Tel. +358 (0)10 22 11
Fax.+358 (0)10 22 41094
www.abb.com/substationautomation