0% found this document useful (0 votes)
285 views15 pages

Schweitzer SEL-121F-221F and SEL-121G-221G Master Protocols

Uploaded by

JOSE
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
285 views15 pages

Schweitzer SEL-121F-221F and SEL-121G-221G Master Protocols

Uploaded by

JOSE
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

Reference Manual

Schweitzer SEL-121F/221F
& SEL-121G/221G Master
Protocols
Documentation for part numbers P-SMPR-1902 and P-SMPR-1903
© 2012 Cooper Power Systems, LLC – All rights reserved.
The information in this document is subject to change without notice.

Cooper Power Systems


Energy Automation Solutions
730 Commerciale Street
Suite 200
Saint-Jean-Chrysostome, Quebec
Canada G6Z 2C5
Phone: +1.418.834.0009
Fax: +1.514.227.5256
Email: [email protected]
Web: http://www.cooperpower.com

Technical Support: [email protected]

S1120-20-4, version 5
Contents
1. Introduction ............................................................................................................................. 1
2. Features.................................................................................................................................... 2
2.1 Communication ........................................................................................................................ 2
2.2 Supported Requests ................................................................................................................. 2
2.3 Device Configuration ................................................................................................................ 2
3. Configuration Settings ............................................................................................................. 3
3.1 General Settings....................................................................................................................... 3
3.2 Analog Input Settings ............................................................................................................... 3
3.3 Binary Input Settings ................................................................................................................ 4
3.4 Scanning Sequence Settings ..................................................................................................... 4
4. Implementation Details ........................................................................................................... 7
4.1 Startup Sequence ..................................................................................................................... 7
4.2 Scan Process............................................................................................................................ 7
5. Troubleshooting ....................................................................................................................... 9

SCHWEITZER SEL-121F/221F & SEL-121G/221G MASTER PROTOCOLS REFERENCE MANUAL ●I


Tables
Table 2-1 Communication Features .................................................................................. 2
Table 2-2 Supported Requests .......................................................................................... 2
Table 3-1 General Settings ............................................................................................... 3
Table 3-2 Analog Input Settings ....................................................................................... 4
Table 3-3 Binary Input Settings ........................................................................................ 4
Table 3-4 Scanning Sequence Settings ............................................................................. 6
Table 5-1 Troubleshooting ................................................................................................ 9

SCHWEITZER SEL-121F/221F & SEL-121G/221G MASTER PROTOCOLS REFERENCE MANUAL ● III


1. Introduction
This manual provides the information required to install and set up a SEL­121F/221F or
SEL­121G/221G master protocol component in an SMP Gateway.
You need to be familiar with the SMP Gateway environment, master protocol concepts, and the
SEL­121/221 protocol specification before proceeding with this document. You can get this
information by reading the following documents:
 Protocol Common Concepts Reference Manual, S1120-11-1, Cooper Power Systems, LLC.
 SMP Gateway User Manual, S1120-10-1, Cooper Power Systems, LLC.
 SEL user manuals or datasheets.

SCHWEITZER SEL-121F/221F & SEL-121G/221G MASTER PROTOCOLS REFERENCE MANUAL ●1


2. Features
This chapter enumerates the features provided by the SEL­121/221 master protocol component.

2.1 Communication
The following communication features are available when interconnecting end devices to the
SMP Gateway hardware:

Feature Comment
Serial Port This protocol component supports RS-232, RS-422 and RS-485
interfaces at bitrates up to 19,200 b/s.
Passthrough This protocol component allows passthrough connections. Note that
Connections it is necessary to suspend link activity to establish such a
connection.

Table 2-1 Communication Features

2.2 Supported Requests


The following table illustrates which SEL­121/221 requests are currently supported by the
SEL­121/221 master protocol component.

Request Description
ACC Selects access level.
OTTER Default password
MET The MET command provides access to the relay metering data.
TAR x The TAR command provides access to the target states.

Table 2-2 Supported Requests

2.3 Device Configuration


The ACC request (along with the password) is used to select the proper access level to the device
upon link reset.

2● SCHWEITZER SEL-121F/221F & SEL-121G/221G MASTER PROTOCOLS REFERENCE MANUAL


3. Configuration Settings
This chapter enumerates the configuration settings you have to specify for each SEL­121/221
master protocol instance. The SMP Config software program is generally used to define these
settings.
Note: Only the settings specific to the SEL­121/221 protocol are described here. Settings
common to all master protocol components are described in the Protocol Common
Concepts Reference Manual.
3.1 General Settings
Every instance of this master protocol component contains general settings, which set the
general behavior of the component. The following table shows the general settings that are
specific to the SEL­121/221 master protocol.

Setting Description
Scan Interval Scan interval, in milliseconds. A value of 0 means that there will be
no delay.
Range: 0 to 300,000 milliseconds
Default value: 0
Rx Timeout Timer Time to wait for the remote device response before attempting
retries.
Setting a short reception timeout may cause the link to operate
erratically (timeout declared even though response is still coming).
Setting a long reception timeout may cause inefficiencies with a
considerable amount of bandwidth wasted when communication
errors occur.
Range: 100 to 30,000 milliseconds
Default value: 3000 milliseconds
Rx Retry Count The number of consecutive times that a bad response (or no
response) has to be received before a communications failure is
declared and an attempt is made to reinitialize the link.
Range: 0 to 100
Default value: 3
Rx Line Timeout Maximum time allowed for receiving a whole line of data
(milliseconds).
Range: 100 to 30,000 milliseconds
Default value: 350 milliseconds

Table 3-1 General Settings

3.2 Analog Input Settings


Each instance of the master protocol component may contain several analog input points. Analog
input settings tell the component how to process data retrieved from the device. The following
table shows the analog input settings that are specific to the SEL­121/221 master protocol.

Setting Description
Index Logical index that identifies the point (system-generated when the
protocol instance is created).

SCHWEITZER SEL-121F/221F & SEL-121G/221G MASTER PROTOCOLS REFERENCE MANUAL ●3


Setting Description
Unsigned If there is a checkmark, the value is an unsigned integer.
Range: checkmark / no checkmark
Default value: no checkmark

Table 3-2 Analog Input Settings

3.3 Binary Input Settings


Each instance of the master protocol component may contain several binary input points. Binary
input settings tell the component how to process data retrieved from the device. The following
table shows the binary input settings that are specific to the SEL­121/221 master protocol.

Setting Description
Index Logical index that identifies the point (system-generated when the
protocol instance is created).

Table 3-3 Binary Input Settings

3.4 Scanning Sequence Settings


A scanning sequence consists of a series of SEL­121/221 scan requests issued to the
SEL­121/221 end device. Requests are grouped together, in the order they are defined in, to
compose a complete scanning sequence. Each master protocol component instance contains
several predefined scanning sequences. Note that you cannot edit these requests. They are
presented here for reference purposes only.

Setting Description
Request A string containing the request to send. Special characters \r and \n
are allowed to send returns and linefeeds.
This string also contains special request instructions, which specify
when to request and release a serial link in multidrop configurations.
Special requests prevent other parties on a multidrop link from
inserting spurious scan requests in the middle of an ongoing multi-part
exchange that cannot be interrupted.
 ${START}$ is used to reserve the serial link.
 ${END}$ is used to release the serial link.
 All the scan requests between ${START}$ and ${END}$ are
guaranteed to have exclusive access to the serial link.

Disabled Indicates whether or not the request should be included in the


scanning sequence.
This flag could be used, for example, to temporarily eliminate requests
due to hardware problems.
Range: checkmark / no checkmark
Default value: no checkmark

4● SCHWEITZER SEL-121F/221F & SEL-121G/221G MASTER PROTOCOLS REFERENCE MANUAL


Setting Description
Frequency An indication of how frequently this request should be issued. All
frequency indications are based on the assumption that a complete
scanning cycle consists of sending every request in the order that they
are defined.
This setting is read-only and is generated by the system when the
protocol instance is created.
Allowed values:
 0 - Send request only on link resets.
 1 - Send request at every scanning cycle.
 N - Send request at every N scanning cycles.

Expected Response A string specifying the format of the end device response, in the form
of regular expressions.
Each string has the following format:
#<Line number>:<regular expression(s)>
The field preceding the regular expression(s) indicates to which line of
the response the regular expression applies.
Example:
 #3:\ +(-?[0-9]+)
This string indicates to match a number preceded by one or more
spaces in the third line received from the device. The capturing
parenthesis captures a match and assigns it to a “field” that will be
decoded later (see Decoding Directives).
This setting is read-only and is generated by the system when the
protocol instance is created.
Preprocessing A string consisting in a series of search/replace instructions that will be
Directives initially applied to the raw ASCII lines received from the device.
Each string has the following format:
#<Line number>:(<directive1>)[(<directive2>)…(<directiveN>)]
Example:
 #1:(fault,0)
This string will match all “fault” strings and replace the 0 character in
the first line received from the device.
This setting is read-only and is generated by the system when the
protocol instance is created.

SCHWEITZER SEL-121F/221F & SEL-121G/221G MASTER PROTOCOLS REFERENCE MANUAL ●5


Setting Description
Decoding Directives A string consisting of decoding instructions that are applied to each
“field” captured by the regular expressions (see Expected Response).
Each string has the following format:
#<Line number>:(<directive1>)[(<directive2>)…(<directiveN>)]
Each directive has the following format:
(<Type>, <Index>, <Format>, <Bits>)
where:
 <Type> is the type of I/O, which can be one of the following:
 AI Analog Input
 AO Analog Output
 BI Binary Input
 BO Binary Output
 CI Counter Input
 FCI Frozen Counter Input
 NIL No field to extract (skip)
 <Index> is the logical index of the I/O.
 <Format> indicates how the value is formatted in the field. Format
takes one of the following value:
 U Unsigned integer
 I Signed integer
 F Floating-point
 <Bits> is the number of significant bits. This setting is optional.
Example:
 #3:(AI,0,I)
This string indicates that the first field extracted by the regular
expression at line 3 of the device response is an Analog Input, Index 0
(for these devices, the ia value), and that this field is in the Signed
Integer format.
This setting is read-only and is generated by the system when the
protocol instance is created.

Table 3-4 Scanning Sequence Settings

6● SCHWEITZER SEL-121F/221F & SEL-121G/221G MASTER PROTOCOLS REFERENCE MANUAL


4. Implementation Details
4.1 Startup Sequence
The SEL­121/221 master protocol component goes through the following steps on startup:
 Parses the configuration file.
 Initializes the various logs, traces and statistics.
 Creates all I/O points and marks them as invalid (communications failure).
 Initializes the communications link.
 Starts the scan cycle.
If any of these steps fail, the system startup is aborted.

4.2 Scan Process


The protocol component manages the device polling cycle based on the following principles:
 The protocol is half duplex.
 The device never sends data without having first received a request for data
 There is a response to every request.

The standard SEL­121/221 response processing rules are:


 A response is valid if only it arrives within the configured time limit. If this is not the case, the
reception status is TIMEOUT.
 The overall response format must be coherent and as expected. If this is not the case the
reception status is BAD FORMAT.
 The same request is re-issued if the reception status is not correct, up to the number of retry
counts configured.

Whatever the reason, the link is reset if too many consecutive bad reception statuses are
received, “too many” being the number of retry counts configured.

Link initialization occurs under the following circumstances:


 The SMP Gateway is being restarted.
 The communication link is being reset due to too many consecutive errors of any type.

The link initialization procedures are as follows:


 Initialize the physical link.
 Exchange an ACC command followed by the password with the SEL­121/221 end device to
change the access level.
 Exchange all user-defined SEL­121/221 scanning sequences to obtain an initial value for all
I/O points.
The link is not considered initialized until all the above-mentioned steps have been completed in
order and successfully. Once the link has been initialized, and as long as it remains active a
regular scanning cycle is used on a continuous basis.

The regular scanning cycle is as follows:


 If the scan interval timer dictates it, perform configured scanning sequences.

SCHWEITZER SEL-121F/221F & SEL-121G/221G MASTER PROTOCOLS REFERENCE MANUAL ●7


If the normal scanning cycle is abandoned to cause a link reset, all I/O points are tagged as
being defective due to a communications failure. I/O points become valid again on an individual
basis only when valid I/O data is received from the SEL­121/221 device

8● SCHWEITZER SEL-121F/221F & SEL-121G/221G MASTER PROTOCOLS REFERENCE MANUAL


5. Troubleshooting
The following table enumerates solutions to common problems experienced with the
SEL­121/221 master protocol component.

Problem Solution
The SMP Gateway is not This problem can be due to one of the following:
communicating with the  One of the reasons discussed in the “Troubleshooting”
device. section of the Protocol Common Concepts Reference
Manual.
 All requests in the scanning cycle are disabled (the cycle is
set to 0). At least one request must be enabled (cycle
greater than 0) in the Scanning Sequence settings.

The link to my device keeps This problem can be due to one of the following:
resetting.  One of the reasons discussed in the Master Protocol
Common Concepts Reference Manual.
 Reception timeout problem: The value of the configured
Rx Timeout Timer general setting is too small.

Table 5-1 Troubleshooting

SCHWEITZER SEL-121F/221F & SEL-121G/221G MASTER PROTOCOLS REFERENCE MANUAL ●9

You might also like