46
<DL
n,m,p
>
Define Limit
Mapped Variables
Description
This command defines static minimum and maximum limits for bargraph variables so that optimum
scaling can be chosen
Parameters
n
= 1 to 8
- Input variable number
IN_1
to
IN_8
m
= any 7-bit numeric ASCII string
- Lower limit for the bargraph variable
p
= any 7-bit numeric ASCII string
- Upper limit for the bargraph variable
Initial Value
m
= 0 and
p
= 100
Modes
All Modes
Notes
Valid values for
m
and
p
are 10 characters maximum, including the minus sign and decimal point
i.e. Between the range –999,999,999 to 9,999,999,999
(
NB
Commas only shown for clarity)
Variables which have a value outside the lower or upper limits are shown by empty dotted outline
bargraphs
Uses
The <DL> command allows:
•
Optimum scaling of bargraphs
•
Displaying of process variables in the form of bargraphs when used in conjunction with
the <DB> command
Example
<SD>
Start from a known screen
<CM1,10>
Move to Row 1
<DL1,0.0,100.0>
Define the bargraph limits for
IN_1
as 0.0 and 100.0
<DB1,100,0,0,0>
Define a horizontal bargraph 100 pixels long using
IN_1
, and the
limits specified by the DL command
<CM2,8>
Move to row 2 and write in the scale
<WT0>
Write “0
<CM2,101>
Move cursor to the right
<WT100>
Write “100”
<F4>
Specify a large font (32x19 pixels)
<CM7,5>
Move to Row 7
<DV1,6,3,0>
Define a variable using
IN_1
, 6 character field, 3 chars after the
decimal point, and written left aligned
The process variable linked to
IN_1
in this example has a “good”
status and a value of “23.456”
Gotchas!
This command also affects all bargraphs that are mapped to that process variable on hidden and
saved frames.
See Also
DB
Define Bargraph