7.35
Date Code 20120126
Instruction Manual
SEL-2032 Communications Processor
Settings
Math/Data Movement (SET M) Settings
The objective is to convert to the integer value A5F0 (42,480). Use the SET M
functions to convert as illustrated in
.
0 = 1:D1:7,H1L # convert and store first half of low byte
0 += 1:D1:6,H1L*16 # convert, shift, and add second half of low byte
0 += 1:D1:5,H1L*256 # convert, shift, add low 4 bits of upper byte
0 += 1:D1:4,H1L*4096 # convert, shift, and add upper 4 bits
Figure 7.9
Data Conversion Settings
Flow Control
(IF-ELSE Syntax)
The IF/ELSE/ENDIF statements allow the user to modify the execution of
SET M based on database values.
The SET M branching uses IF, ELSE, and ENDIF to define the expression and
bound statements that are executed based on the results of the expression. The
syntax of the IF/ELSE/ENDIF expressions follows:
IF
Expression
Statements Then
ELSE
Statements Else
ENDIF
The ELSE portion of the IF/ELSE/ENDIF expression is optional. When the
Expression
is evaluated as TRUE (non-zero), then the
Statements
Then
are
executed; otherwise, the
Statements
Else
are executed, if defined.
EXAMPLE 7.3
IF/ELSE/ENDIF Expression
IF 3:TARGET : 52A
5 = 3:METER:IA
ELSE
5 = 4:METER:IA
ENDIF
The Expression of the IF/ELSE/ENDIF is composed of a single bit reference
or the complement of a single bit reference if “!” precedes the expression. The
following types of bit references are allowed:
➤
Bit Label
➤
Port Number:Bit Label
➤
Port Number:Region Label:Bit Label
➤
Port Number:Address:Bit Number
➤
Port Number:Region Label:Address Offset:Bit Number
The SEL-2032 is capable of supporting three nesting levels of IF/ELSE/
ENDIF statements.
Data Type
Considerations
You may need to give special consideration to data types within your
equations. When working with analog quantities, the meaning of integer and
floating-point quantities is straightforward. However, when accessing other
types of data (e.g., status, strings, targets) you will want to be more careful.
These types of items are stored as character or integer data. Generally, you
will simply want to copy them using default data types with no scaling. This
results in no change in their representation.
Содержание SEL-2032
Страница 6: ...This page intentionally left blank Courtesy of NationalSwitchgear com ...
Страница 12: ...This page intentionally left blank Courtesy of NationalSwitchgear com ...
Страница 46: ...This page intentionally left blank Courtesy of NationalSwitchgear com ...
Страница 70: ...This page intentionally left blank Courtesy of NationalSwitchgear com ...
Страница 104: ...This page intentionally left blank Courtesy of NationalSwitchgear com ...
Страница 124: ...This page intentionally left blank Courtesy of NationalSwitchgear com ...
Страница 188: ...This page intentionally left blank Courtesy of NationalSwitchgear com ...
Страница 216: ...This page intentionally left blank Courtesy of NationalSwitchgear com ...
Страница 244: ...This page intentionally left blank Courtesy of NationalSwitchgear com ...
Страница 322: ...This page intentionally left blank Courtesy of NationalSwitchgear com ...
Страница 328: ...This page intentionally left blank Courtesy of NationalSwitchgear com ...
Страница 336: ...This page intentionally left blank Courtesy of NationalSwitchgear com ...
Страница 338: ...This page intentionally left blank Courtesy of NationalSwitchgear com ...
Страница 342: ...This page intentionally left blank Courtesy of NationalSwitchgear com ...
Страница 348: ...This page intentionally left blank Courtesy of NationalSwitchgear com ...
Страница 354: ...This page intentionally left blank Courtesy of NationalSwitchgear com ...