6-38 Settings Date Code 20010518
SEL-2020 Instruction Manual
If the data were parsed using Character String parsing (parse type 3), the VIEW command
display appears as follows:
VIEW 1:D1:4 NR 4
0041h 0035h 0046h 0030h
The objective is to convert to the integer value A5F0 (42,480). Use the SET M functions to
convert as illustrated below:
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
SET M 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 will result in no change
in their representation.
When multiple equations are used to manipulate the same register, the access type and label from
the last reference to that register will be used to define its final access type and label.
Another thing to consider is reasonable limits to the repeat count. Generally, you should only
copy one type of data with a single equation. This is because the SEL-2020 will do its type
determinations based on the first item only. Thus, if your repeat count tries to copy data of
multiple types, the data of types that differ from the initial type will be misinterpreted.
Two types of operations are allowed:
FREEZE n
RELEASE n
where n is a port number. The FREEZE operation prevents the specified port’s database from
changing until the corresponding RELEASE operation has been performed. Use these operations
to maintain data coherency while moving multiple data items from a specific port database. If
you do not use these, it is possible that data may be updated in the midst of copying a block of
data. For every FREEZE operation, a corresponding RELEASE operation is required. Only one
port database may be frozen at a time.
You may also add comments. Comments start with a ‘#’ character and continue to the end of the
line. Comments may exist as stand-alone lines or following equations or operations.
On any type of entry, comment, equation, or operation you may continue the entry to a second
line by placing a backslash (\) as the last character on the line. Whether you make an entry all on
one line, or use multiple lines, the total length of the entry may not exceed 80 characters.