XC_Pump

<< Click to Display Table of Contents >>

 

XC_Pump

The XControl XC_Pump simulates a pump's status, according to the settings of XObject XO_Pump.

1.Insert a new XControl in the library, named as "XC_Pump".

2.Insert an image in the pump, added previously as a Resource.

Pump

Pump

3.Insert a Text and a Display object, according to the next figure.

Text and Display

Text and Display

4.On the pump's drawing, right-click it and select the Convert to symbol and Explode symbol options.

 

NOTE

This XControl is inserted on the Initial Screen, over the images of pumps. For that, adapt the size of the Pump figure with the size of the pump images on the Screen, making it easy to further insert other objects.

 

5.Change the OverrideFillMode property to 2 - SolidFill and the OverrideFillColor property to the gray color (RGB(150, 150, 150)).

OverrideFillColor and OverrideFillMode properties

OverrideFillColor and OverrideFillMode properties

6.On the Properties tab, create the Properties shown on the next figure.

Properties tab

Properties tab

7.Texts must create the name of the linked XO_Pump object. In the Texts' Value property, create a Simple Link with the Name property of the XO_Pump object using the Source property.

Link with the Value property

Link with the Value property

8.The Text with pump's name can show on top or at the bottom of the figure, depending on the position of the object on the Screen. Create a Simple Link in bottom Text's Visible property with the Bottom property of object XC_Pump.

9.For the Text on top, create a Simple Link in the Visible property with the expression "NOT XC_Pump.Bottom".

Link between Value and Visible properties

Link between Value and Visible properties

10.In the object representing a pump, create a Digital Link in the OverrideFillColor property, according to the next figure.

Digital Link in the OverrideFillColor property

Digital Link in the OverrideFillColor property

11.In the Text object inserted near the pump, let's display that pump's status (On or Off). To do so, create a Digital Link in the Value property, according to the next figure.

Digital Link in the Value property

Digital Link in the Value property

12.In the Display object, let's show the pump's rotation speed. To do so, let's change the object's letter (L: Low, M: Medium, and H: High) and color. To change the letter, create a Table Link in the Value property with the Speed Property of the object XO_Pump, according to the next figure.

Table Link in the Value property

Table Link in the Value property

13.To change a Display's color, create a Table Link from the ForegroundColor property to the Speed property.

Table Link in the ForegroundColor property

Table Link in the ForegroundColor property

14.For this Display not to be displayed if the pump is turned off, create a Simple Link from the Display's Visible property to the Status Property of the object XO_Pump.

Simple Link in the Visible property

Simple Link in the Visible property

15.Save the changes and register the library.

Was this page useful?