beautypg.com

3 example 3 - using the true expression, 4 example 4 - creating a new submodel with, Dynamics – Micromod Micro-PWC: 53PW6000 MicroPWC Configuration Guide User Manual

Page 161

background image

Micro-PWC CONFIGURATION GUIDE

Grafx Editor 141

4.3.4.3 Example 3 - Using the TRUE Expression

Process Conditions:

None.

Objective:

Make a static instance of the submodel ISA_VLVE_ACTR. Set the color of the valve to cyan.

Procedure:

1.

Make an instance of 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.4 Example 4 - Creating a New Submodel with Dynamics

Objective:

Create a new submodel (DynamicValve) with the same dynamics as the submodel instance shown in
Dynamic Configuration Example 2. Use variable names in place of controller database points so that
instances of Dynamic Value can be configured for different controller database points.

Procedure:

1.

From the File pull-down menu in the Grafx editor menu bar, open the Micro-DCI Submodel
ISA_VLVE_ACTR. Notice that the Model Type changes to Submodel.

2.

Choose Edit > Select All from the Grafx editor menu bar.

3.

Click the Group button from the View toolbar.

4.

With the pointer over the group of objects, click the right mouse button. Select Dynamic
Attributes
from the resulting pop-up menu. In the resulting Expression Dynamics window,
configure the expressions and settings from the table below:

5.

Select Save As from the File pull-down menu and enter the name "DynamicValve" when
prompted for the model name. The new submodel is now placed in the disk location dedicated
to storage of off-line user-created submodels (i.e., the off-line submodel directory).

6.

Select File > Install.

EXPRESSION

TRUE SETTING

FALSE SETTING

TRUE

fill color = 6

none

NUMBER

EXPRESSION

TRUE

SETTINGS

FALSE

SETTINGS

1

open_switch=1 && closed_switch=0

fill color=7

None

2

closed_switch=1 && open_switch=0

fill color=0

None

3

open_switch=0 && closed_switch=0

fill color=3

None

4

open_switch=1 && closed_switch=1

fill color=3

None