User Manual For CYCLONE
FX
Programmers
110
Figure 11-16: Transfers from Char Test to Range-1
In
, the NUmeric (
NU
) characters were transferred to the
Range-1
test using the
down Arrows. Only types with contiguous character sets can be transferred this way. When
contiguous types are transferred, the upper and lower bounds are set to the types maximum and
minimum values for convenience. However, it is easy to change them later. The
MT
type was
transferred using the bulk copy method of section 6.1 since it is non-contiguous. Because of this,
care must be taken about missing value in the Range-1 specified. When non-contiguous sets are
transferred, the upper and lower bounds are both set the
Char Test(ascii)
character value.
Such values can be easily changed later.
11.6.1.5 Adjust Range Character Upper and Lower Bounds
To change upper and lower bound values, first click on either a bound (ascii) box or a bound (hex)
box to set the cursor there to that box. Typing an asci character or a pair of hexadecimal
characters enters them into the appropriate box. Then the cursor is moved to the right one block,
circularly over the set of range blocks. Pairs of upper and lower bounds can also be copied to other
pairs as describer in Section 6.2. All entries in a range can be deleted by double clicking the
Range-1 or the Range-2 buttons. Individual range entries can be deleted by double clicking
anywhere on them.
Figure 11-17: Adjusted Range-1 and Range-2 Bounds
Notice in
, that
Range-1
numeric values run between 00000 and 05436. In addition,
for
Range-1
, the lone
MT
type was adjusted to use only a contiguous range of “A” to “B”.
Range-
1
was adjusted to have the numeric values between 0000 and 9000. Also, its lone
MT
type was set
to a contiguous range of “D”-“E”. These choices created only contiguous ranges, i.e. no holes in a
range. Ranges which are non-contiguous are allowed if necessary but generate confusing results.
When creating range entries, the Upper Bound should be greater than or equal to the lower bound.
If the bounds are not entered that way, an error is generated as shown below in
by
changing the background color of the appropriate
Range button(s)
and the
bound(s) entry
to fuchsia. This can be fixed by swapping the upper and lower bounds.\
Figure 11-18: Bounds Entry Error