2 widget programming, 1 scale widgets, 2 bitmap widgets – Rice Lake 920i Installation Manual V3.13 User Manual

Page 104: Scale widgets, Bitmap widgets

Advertising
background image

98

920i

Installation Manual

9.2

Widget Programming

The type and location of elements shown on the

920i

display are easily specified using the drag and drop

features of the

iRev

utility. However, display widgets

can also be programmed using serial commands while

the

9 2 0 i

is in setup mode, or through

i R i t e

programming. Up to ten different screens can be

configured.
Serial command widg et p rogramming is

accomplished in setup mode, using the WDGT serial

command. The first parameter specified is the widget

type, listed in Table 9-18. The following sections

describe each of the widget types and the parameters

and values specific to that type.
In setup mode, the WDGT.CLR serial command can

be used to clear all specified widgets from the display.

Some widget types require that the location or size of

the widget be specified, in pixels. Figure 9-18 shows

the pixel counts (80 pixels per inch) used to specify

the pixel location on the display.

Figure 9-1. Screen Location Pixel Values

Setting the

data_source

of bargraph, label, numeric,

and symbol widgets to 2 (program) allows these

widget types to be directly controlled by an

iRite

program rather than by indica tor data. The user

program must provide the code necessary for widget

manipulation.

9.2.1

Scale Widgets

Scale widgets are used to present basic scale data from

one or more configured scales. For multiple scale

applications, up to four scale widgets c an be

configured to be shown on the display at any one time.

Fewer displayed widgets allow each widget to be

larger. Scale data from additional configured scales

can be shown by scrolling up or down through all

configured scales, including a total scale widget, if

configured.

WDGT#n=1, scale_widget_size, scales_displayed,

screen_number

where:

n=widget number
1= scale widget type
scale_widget_size = 1–6 (size refers to numeral height)

1:

1/4

"

2:

1/2"

3:

3/4"

4:

7/8

"

5:

1"

6:

1

5/32

"

scales_displayed = 1–4
screen_number
= 1–10

Example:

WDGT#1=1,2,1,2<CR>

creates a single 1/2" scale widget for screen number 2.

9.2.2

Bitmap Widgets

Bitmap widgets provide a representation of vertical or

horizontal tanks or a hopper. The location, size, and

border style of the widget are specified on the WDGT

command.

WDGT#n=2, left, top, width, height,border_style,

bitmap_widget_style, name/alias, visible,
screen_number

where:

n=widget number
2= bitmap 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)
bitmap_widget_style = 1 (vertical tank), 2 (horizontal

tank), 3 (hopper)

name/alias = text name or alias
visible = 1 (on) or 2 (off)
screen_number = 1–10

Example:

WDGT#2=2,30,30,120,120,1,3,Hopper1,1,2<CR>

Type

Description

1

Scale Widget

2

Bitmap Widget

3

Bargraph Widget

4

Label Widget

5

Numeric Widget

6

Symbol Widget

Table 9-18. Widget Types

0,239

0,0

319,0

319,239

4"

320 pixels

3"

240 pixels

159,119

Advertising