EasyManua.ls Logo

Schweitzer Engineering Laboratories SEL-2020 - ASCII Float (Parse = 2); Character String (Parse = 3); Integer String (Parse = 4); Integer String with XON;XOFF Encoding (Parse = 5)

Schweitzer Engineering Laboratories SEL-2020
470 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
6-18 Settings Date Code 20010518
SEL-2020 Instruction Manual
ASCII Float (Parse = 2)
This technique also parses numbers only, but retains decimals as part of each number. All other
nonnumeric characters are parsing characters. For example, if you selected the ASCII Float
option and set the number of responses (NUMx) to 5, the following message is parsed as shown
below:
Message: “This is a 2020 message with numbers 10, -6.2, and 2,459.884”
Parsed result: “2020, 10, -6.2, 2, 459.884”
If you set the number of responses less than 5, the parsed result will be truncated; if you set the
number of responses greater than 4, the result will include trailing 0s, i.e. “..., 459.884, 0, 0, 0”.
Character String (Parse = 3)
This technique retains all numbers and characters in a character string. For example, if you
selected the Character String option and set the number of responses (NUMx) to 60, the example
message is parsed as follows:
Message: “This is a 2020 message with numbers 10, -6.2, and 2,459.884”
Parsed response: “This is a 2020 message with numbers 10, -6.2, and 2,459.884”
For this parsing method, the SEL-2020 always appends a NULL character (00h) to the end of the
parsed response before storing it to the database. This means that the NUMx setting must be set
to a value one greater than the expected number of response items. The above string is actually
59 characters in length, yet the NUMx setting was set to 60.
If you set the number of responses less than 60, the parsed result will be truncated; if you set the
number of responses greater than 60, the result will include extra trailing nulls, which are non-
printing characters, so you will not see any difference when using default data viewing methods,
i.e., “...d 2,459.884.”
Integer String (Parse = 4)
This technique stores each pair of received bytes in a register, most-significant-byte first. The
Integer String option is primarily useful for capturing data from devices that send data in binary
words. Because this parsing option uses both upper and lower bytes of each register, it stores
data in fewer registers (less space) than the Character String option. You can retrieve data from
these registers using the special strings designed to work with a data word. See Section 8:
Message Strings for more detailed information.
Integer String with XON/XOFF Encoding (Parse = 5)
This technique works just like Integer String, except each pair of received bytes is compared to a
set of special codes that are used to encode the XON (11h) and XOFF (13h) characters. If one of
the special codes is encountered, the appropriate 11h or 13h character is stored. The encodings
used are as follows: a 99h followed by a 01h represents XON (11h), a 99h followed by a 02h
represents a XOFF (13h), a 99h followed by a 03h represents a 99h. Since 99h is always
encoded, any 99h that is received and is not followed by 01h, 02h, or 03h is ignored. For
example, if you set the parse option to Integer String with XON/XOFF encoding and set the

Table of Contents

Related product manuals