2 example 2 - multiple expressions – Micromod Micro-PWC: 53PW6000 MicroPWC Configuration Guide User Manual

Page 160

Advertising
background image

Micro-PWC CONFIGURATION GUIDE

140 Grafx Editor

Procedure:

1.

Make an instance of the Micro-DCI Submodel ISA_VLVE_ACTR on a graphic.

2.

With the Submodel still selected, click the right mouse button and select the Dynamic
Attributes
item from the resulting pop-up menu. The Expression Dynamics window will appear.

3.

Configure the expression and settings from the table below:

4.3.4.2 Example 2 - Multiple Expressions

Process Conditions:

A valve has two limit switches (TAGS VLV101 and VLV102). VLV101 is closed (VLV101.OUT=1) when the
valve is open and VLV102 is closed (VLV102.OUT=1) when the valve is closed.

Objective:

Assign dynamics to an instance of the submodel ISA_VLVE_ACTR on a graphic so that the submodel
instance is filled in white when the valve is open, unfilled when the valve is closed, and filled in yellow when
the state is unknown (i.e., both limit switches open or closed).

Procedure:

1.

Make an instance of the Micro-DCI Submodel ISA_VLVE_ACTR on a graphic.

2.

With the submodel still selected, click the right mouse button and select the Dynamic
Attributes
item from the resulting pop-up menu. The Expression Dynamics window will appear.

3.

Configure the expressions and settings from the table below:

EXPRESSION

TRUE SETTINGS

FALSE SETTINGS

VLV101.OUT

fill color = 7

fill color = 0

NUMBER

EXPRESSION

TRUE

SETTINGS

FALSE

SETTINGS

1

VLV101.OUT=1 && VLV102.OUT=0

fill color = 7

None

2

VLV102.OUT=1 && VLV101.OUT=0

fill color = 0

None

3

VLV101.OUT=0 && VLV102.OUT=0

fill color = 3

None

4

VLV101.OUT=1 && VLV102.OUT=1

fill color = 3

None

Advertising