6-36 Settings Date Code 20010518
SEL-2020 Instruction Manual
Each line within the SET M entry may contain either an equation, operation, or a comment.
Equations define how to move data into the port User region. They have the following syntax,
where brackets [ ] indicate optional items, and vertical bar | is used to separate mutually
exclusive options:
dest[,type][;[atype][;label]][+|-|*|/]=source[,type][scaling][;repeat_count]
or
dest[,type] [;[atype][;label]][+|-|*|/]=constant[;repeat_count]
or
dest:bit[;[atype][;label]][+|*]=[!]source_bit
or
dest:bit[;[atype][;label]][+|*]=bit_const
where:
type is the data type for the location: f - float (IEEE single-precision), i - signed integer
(16-bit 2’s complement), p-pack character data LSB first (available on left side only),
c-pack character data MSB first (available on left-side only), H1L - read low byte as
ASCII-hex value (available on right-side only), H1H - read high byte as ASCII-hex value
(available on right-side only); dest will default to integer; source will default to location
data type; constant will default to float if a decimal point is present, to integer otherwise;
atype is the access type: B to treat as 16 binary items (default if type is P or equation is a bit
assignment), I to treat as 16-bit signed integer (default if type is I), L to treat as 32-bit
signed integer, F to treat as floating point number (default if type is F), C to treat as
16-bit counter, S to treat as packed ASCII string (default if type is C);
label is an ASCII text label of up to 19 characters;
[+|-|*|/] specifies (for register operations) mathematical operator, add, subtract, multiply,
divide;
source is a source address using any valid register addressing method;
scaling is either /constant or *constant; this is simply a mathematical operation;
dest is the destination address as an offset into the user region in decimal or hexadecimal;
repeat_count is how many times to repeat this for subsequent addresses;
constant is a numeric, decimal (integer or floating-point) constant;
bit is a bit number 0-15
+ used (in bit operations) in front of = to form “+=” indicates that the source bit will be
ORed into the destination bit.
* used (in bit operations) in front of = to form “*=” indicates that the source bit will be
ANDed into the destination bit.
! indicates that the source bit value should be inverted (complemented);
source_bit is a bit from an SEL-2020/2030 database (see Section 6: Database for more
information on bit access methods); and
bit_const is the constant 0 or 1, indicating the state of a bit.