Professional Documents
Culture Documents
net/publication/336878594
CITATIONS READS
0 326
2 authors, including:
Dinesh Baradi
North Carolina State University
8 PUBLICATIONS 7 CITATIONS
SEE PROFILE
All content following this page was uploaded by Dinesh Baradi on 29 October 2019.
INTRODUCTION
Thermal commands (MET T and MET RTD) in SEL products return temperature measurements
from resistance temperature detectors (RTDs). A real-time automation controller (RTAC) is
capable of collecting this temperature information through a flex parse message. The format of
ASCII responses is largely dependent upon the configuration in the SEL product and, therefore, it
will often require a unique search expression based upon specific settings in that SEL device.
This application guide provides a template for creating flex parse messages that use a universal
expression for parsing temperature measurements across all SEL products, regardless of the
configuration.
Specifically, this application guide covers the following:
• An explanation of regular expressions
• A Job Done® example using the SEL-710 Motor Protection Relay, including additional
data other than temperature measurements
• A Job Done example using the SEL-2411 Programmable Automation Controller (PAC),
including only temperature measurements
The following regular expression searches for these three possible conditions:
[\x00-\x09\x0B\x0C\x0E-\xFF]{5,20}\x20(?#<INS>)|( Fail| Open| Short| NA| NONE)|(?=\x03)
As noted previously, this regular expression can be separated into three match conditions
(separated by the logical OR operator: |).
Temperature Measurement
[\x00-\x09\x0B\x0C\x0E-\xFF]{5,20}\x20(?#<INS>)
This expression searches for an integer number that is preceded by a space, which is preceded by
any series of characters (except carriage returns and line feeds) that may repeat 5 to 20 times.
Status Messages
(Fail| Open| Short| NA| None)
This expression searches for any words an SEL product may return indicating something other
than a temperature reading, separated by the logical OR operator: |.
To create a universal expression for this purpose, it is necessary to have a unique parameter that is
shared between all temperature responses. All temperature measurement responses from SEL
devices contain the date and time in the beginning of the message; this marker signals the RTAC
to parse the response for temperature measurements. The following regular expression tells the
device to search for the time in the response and prompts the configured regular expression to
extract temperature measurements.
[\x54\x49\x4d\x45\x74\x69\x6d\x65]{4,4}[\x00-\xFF]{0,95}:[\x00-\xFF]{0,94}:
[\x00-\xFF]{0,94}.[\x00-\xFF]{0,3}
The first bracket of this response indicates a search for the word Time by using hexadecimal
representations of all uppercase and lowercase letter combinations. The next bracketed parts of
the expression indicate searches for hours, minutes, seconds, and milliseconds.
EXAMPLES
Background Information
Temperature (or Thermal) command responses can be classified into two categories based on the
format of the responses.
• First format: Contains only instantaneous RTD-specific measurement information, such
as the temperature in degrees Celsius.
• Second format: Contains all instantaneous RTD-specific measurement information
described previously and additional calculated or recorded data such as Maximum
Temperature across different RTDs.
The following Job Done examples demonstrate how to use a universal expression to parse data
from both response formats.
=>MET T
Step 6. Select the Flex Parse Message RTD tab, click the + icon, and create 14 tags in the
Flex Parse Message RTD tab.
Step 7. Rename the tags as appropriate and ensure that tag type is set to INS.
Step 8. Paste the Universal RegEx in the Parse Expression column for all the tags.
[\x00-\x09\x0B\x0C\x0E-\xFF]{5,20}\x20(?#<INS>)|( Fail| Open| Short| NA|
NONE)|(?=\x03)
Step 9. Use the keywords Ambient, Bearing, Winding, and Other to parse the Maximum
Temperature Tags, as shown in Figure 3.
Step 10. Leave the other settings at their respective default values.
Step 11. Click the Flex Parse Helper Form button at the top right of the display screen to
begin testing the Flex Parse programming for the SEL-710 MET T response (see
Figure 3).
=>MET T
=>MET RTD
INTRTD01 96 C
INTRTD02 96 C
INTRTD03 -32 C
INTRTD04 -32 C
INTRTD05 75 C
INTRTD06 Open
INTRTD07 Open
INTRTD08 Open
INTRTD09 Open
INTRTD10 Open
Step 1. In the SEL-2411 SEL Client configuration in ACSELERATOR RTAC, click the Flex
Parse Messages tab.
Step 2. Click the + option in the bottom left of the display screen and add one flex parse
message. Create a flex parse message named RTD and enter MET RTD <CR>
<LF> in the command string field.
Step 3. Paste the following expression in the Start of Response Parse Expression field:
[\x54\x49\x4d\x45\x74\x69\x6d\x65]{4,4}[\x00-\xFF]{0,9}:[\x00-\xFF]{0,9}:
[\x00-\xFF]{0,9}.[\x00-\xFF]{0,3}
Step 4. Set the poll period to 10000 ms. This setting configures the RTAC to send the
MET T command every 10 seconds.
CONCLUSION
This application guide describes how to use regular expressions allowing for a consistent RTAC
flex parse message for collecting RTD data from SEL products and how you can save time and
increase efficiency through use of a consistent regular expression for multiple SEL products.
FACTORY ASSISTANCE
We appreciate your interest in SEL products and services. If you have questions or comments,
please contact us at:
Schweitzer Engineering Laboratories, Inc.
2350 NE Hopkins Court
Pullman, WA 99163-5603 U.S.A.
Tel: +1.509.338.3838
Fax: +1.509.332.7990
selinc.com
info@selinc.com