4 dynamic configuration examples, 1 example 1 - single expression, Section 4.3.4, dynamic configuration examples – Micromod Micro-PWC: 53PW6000 MicroPWC Configuration Guide User Manual

Page 159: 3 in, Section 4.3.4, dynamic configuration exam, Ples

Advertising
background image

Micro-PWC CONFIGURATION GUIDE

Grafx Editor 139

.
$tag10$#d$atom$

When an instance of this submodel is configured, the Submodel Configuration window will contain 11 vari-
ables to configure, one named atom and the ten tagn variables. If the #d sequence is not used, the period
(.) should be supplied as part of the atom name.

It may be necessary to include an array index number in a variable name. Like the period, the square
brackets ([ ]) cannot be included directly in variables; they can, however, be used when each is preceded
by a backslash character. For example, "\[n\]" can the used to represent an array index, where n repre-
sents the index number. Alternatively, "#n" can also be used to represent the array index. The following
examples shown two possible alternatives to represent the same item:

$tag$\.PV\[3\] or $tag$#dPV#3

The array index number represented by n must be an integer.

It is important to remember that string substitution in variable names, as described in this sub-section,
occurs at the time an instance of a submodel is configured on a graphic. If the submodel itself is later
changed to use additional variables containing the same or other substitute strings, then all instances of
that submodel will need to be reconfigured on graphics which use the submodel. (If the only change made
to the submodel was to add variable names using the same substitute string (e.g., $tag$) as used previ-
ously in the submodel, then for each graphic the user needs only to select each instance of the submodel,
click on the Configure Submodel option on the right mouse button pop-up menu, click on OK in the Sub-
model Configuration
window, then install the graphic.)

4.3.4 Dynamic Configuration Examples

The following sub-sections provide the user with practical examples of configuring dynamics for submod-
els.

4.3.4.1 Example 1 - Single Expression

Process Conditions:

A valve has 1 limit switch (tagname VLV101). VLV101 is closed (VLV101.OUT=1) when the valve is open
and is open (VLV101.OUT=0) when the valve is closed.

Objective:

Assign dynamics to an instance of submodel ISA_VLVE_ACTR on a graphic so that the submodel
instance is filled in white when the valve is open and is unfilled (i.e., filled with black) when the valve is
closed.

Note

It is necessary to enclose both the atom and tagn portions of the
variable names between '$' characters, so that both portions of the
variable name can be configured.

Note

The index number can, like the tagname, be assigned as a variable;
for example:

$tag$\.PV\[$INDEX$\] or $tag$#dPV#$INDEX$

In this case, both TAG and INDEX can be assigned values by the
user when configuring an instance of the submodel which uses this
variable.

Advertising