
Serial Commands
77
creates a visible, 1.5" x 1.5" (120 x 120 pixel) hopper
widget for screen 2, named
Hopper1
, with no border,
with the upper left-hand corner of the bitmap at pixel
location 30,30 (near upper left corner of display).
9.2.3
Bargraph Widgets
Bargraph widgets allow display of vertical or
horizontal graphs, either a normal bargraph style or a
needle gauge, with or without graduations. The graph
can be used to represent scale weight or progress
toward a setpoint target value.
WDGT#
n
=3,
left, top, width, height, border_style,
bargraph_widget_style, graduations, orientation,
name/alias, data_source, data_field, data_subfield,
visible, screen_number
where:
n
=widget number
3= bargraph widget type
left
= left edge location, in pixels
top
= top edge location, in pixels
width
= width, in pixels
height
= height, in pixels
border_style
= 1 (none) or 2 (fixed single)
bargraph_widget_style
= 1 (basic), 2 (meter)
graduations
= 1 (on), 2 (off)
orientation
= 1 (horizontal), 2 (vertical)
name/alias
= text name or alias
data_source
= 1 (scale), 2 (setpoint)
data_field
= If
data_source
= 1,
data_field
is the scale
channel number; if
data_source
= 2,
data_field
is the
setpoint number, 1–100, or 0 (current setpoint)
data_subfield
= If
data_source
= 1,
data_subfield
is 1
(gross), 2 (net), 3 (displayed value); if
data_source
= 2
and
bargraph_widget_style
is 2,
data_subfield
is the
current value of the setpoint.
visible
= 1 (on) or 2 (off)
screen_number
=
1–10
Example:
WDGT#2=3,30,30,30,100,2,1,1,2,,Graph1,1,1,1,1,2<CR>
creates a visible, 30 x 100 pixel bargraph widget for
screen 2, named
Graph1
, with a single border, with
the upper left-hand corner of the bargraph at pixel
location 30,30 (near upper left corner of display). The
bargraph is of the basic style (1), with graduations
turned on (1) and is oriented vertically (2). Bargraph
source is the gross weight from scale channel 1.
9.2.4
Label Widgets
Label widgets are used to insert a text label in the
display.
WDGT#
n
=4,
left, top, width, caption, border_style,
justification, font_size, name/alias, data_source,
data_field, data_subfield, visible, screen_number
where:
n
=widget number
4= label widget type
left
= left edge location, in pixels
top
= top edge location, in pixels
width
= width, in pixels
caption
= text caption
border_style
= 1 (none) or 2 (fixed single)
justification
= 1 (left), 2 (right), 3 (center)
font_size
= 1 (9 pt), 2 (12 pt), 3 (18 pt)
name/alias
= text name or alias
data_source
= 1 (scale), 2 (setpoint), 3 (
caption
text)
data_field
= If
data_source
= 1,
data_field
is the scale
channel number; if
data_source
= 2,
data_field
is the
setpoint number, 1–100, or 0 (current setpoint)
data_subfield
= If
data_source
= 1,
data_subfield
is the
scale alias (text); if
data_source
= 2,
data_subfield
is the
setpoint name
visible
= 1 (on) or 2 (off)
screen_number
=
1–10
Example:
WDGT#2=4,60,60,120,Caption,
2,1,1,Label1,3,0,0,1,2<CR>
creates a visible, 30 x 100 pixel label widget for
screen 2, named
Label1
, with a single border, with the
upper left-hand corner of the label at pixel location
60,60. The label is left-justiÞed (1), with text in a 9-pt
font (1). Label source is the text speciÞed for the
caption (3)Ñthe word ÒCaptionÓ.
9.2.5
Numeric Widgets
Numeric widgets are used to provide numeric
information in the display.
WDGT#
n
=5,
left, top, width, border_style, justification,
font_size, name/alias, data_source, data_field,
data_subfield, visible, screen_number
where:
n
=widget number
5= numeric widget type
left
= left edge location, in pixels
top
= top edge location, in pixels
width
= width, in pixels
border_style
= 1 (none) or 2 (fixed single)
justification
= 1 (left), 2 (right), 3 (center)
font_size
= 1 (9 pt), 2 (12 pt), 3 (18 pt)
name/alias
= text name or alias
data_source
= 1 (scale), 2 (setpoint)
data_field
= If
data_source
= 1,
data_field
is the scale
channel number; if
data_source
= 2,
data_field
is the
Содержание iRev 920i
Страница 1: ...67887 Programmable Indicator Installation Manual 920...
Страница 2: ......