Figure 4-18. declare variables window – Micromod Micro-PWC: 53PW6000 MicroPWC Configuration Guide User Manual

Page 156

Advertising
background image

Micro-PWC CONFIGURATION GUIDE

136 Grafx Editor

To create a new variable, click on the Add button. The Declare Variables window (

Figure 4-18

) appears.

The top of this window contains two text entry boxes labelled Private Name and Public Name. Enter the
private name in the first entry box; the private name must begin with the prefix _p. If this prefix is not
entered by the user, it will be prepended automatically.

Enter the public name in the second entry box. If the model being configured is a graphic, the public name
is automatically enclosed in quotation marks.

The Declare Variables window is also used to specify how the value should be collected from the global
database, once the configured graphic is on display in the Operator Window. A set of 3 radio buttons,
labelled Type, is used to specify the type of value to be collected. The available types include:

Float (for floating point numbers)

Integer (for integers)

Text String (for tagnames, legends, and so on)

Use the type Float (the default) if the variable type is numeric but could be either floating point or integer.
For the purposes of this example, the SP atom has a floating point value, so type Float would be selected.

Below the Type selection area is an entry box labelled Size, which is used to specify array variables. Enter-
ing a value greater than 1 declares an array the size of the value entered. If the size is 1 (the default), then
the variable is not an array. For the purposes of this example, a size of 1 would be used.

Below the Size entry box is the Collection definition area. The selections available here include:

Normal

One Shot

These choices, each of which is accompanied by a radio button, are used to specify how often the value is
to be collected from the global database. A normal collection is performed once each second (or every two
seconds if the model is in an Operator Window which does not have keyboard focus). A one shot collection
is performed only once, when the graphic is first called up in an Operator Window. In this example, the
value of CON1.SP is to be updated, so the Normal collection would be chosen.

Figure 4-18. Declare Variables Window

Advertising