Binding IGSS objects to ActiveX controls

How to bind to and from ActiveX controls

Binding events to or from an ActiveX control is quite simple. Right-click the ActiveX control and select Descriptor Properties in the pop-up menu. The dialog box shows you a list of all properties that you can change from IGSS.

In the Bind column, you can see which properties can be bound to an IGSS object. If the property can be bound, one or two arrows are shown beside the property name.

The following arrow indications are used:

 

This indication is used …

when the property …

images\ocx_bindto_black.gif

can be bound to an IGSS object, but is currently not bound. A left arrow means that the property can be bound to an IGSS object value, for example, the current process value. A right arrow means that the operator can change an IGSS object value during supervision by changing this property. In our example, the operator may change the current process value by moving the needle in the display which changes the NeedleValue property.

images\ocx_bindto_green.gif

is currently bound to an IGSS object. A left arrow means that the property is bound to an IGSS object value, for example, the current process value. A right arrow means that the operator can change an IGSS object value during supervision by changing this property. In our example, the operator may change the current process value by moving the needle in the display which changes the NeedleValue property.

In the following example, the property NeedleValue is bound to an IGSS object value. When the object value changes, the NeedleValue will change accordingly.
 

images\ocx_dsr_props.gif

Binding an IGSS object value to an ActiveX control

When you want to bind an IGSS object value to an ActiveX control, you must do the following:

  1. Right-click the property you want to bind to an IGSS object value and select Bind events TO control in the popup menu.
  2. In the Bind Control Properties dialog box, check the Send object event to control box, click the Browse button and find the IGSS object you want to bind to.
  3. In the Atom drop-down list, select the atom you want to determine the property value. To bind the property to the current process value of an analog object, select the Actual Value atom as shown in the figure below.

  1. Click OK.

Result: TThe property will now be marked with a green arrow pointing left meaning that the property is bound to the ActiveX control.

Binding an ActiveX control event to an IGSS object

  1. Right-click the property you want the operator to be able to change during supervision and thereby send the value to an IGSS object and select Bind events FROM control in the pop-up menu.
  2. In the Bind Control Properties dialog box, check the Send control events to object box, click the Browse button and find the IGSS object you want to bind to.
  3. In the Atom drop-down list, select the atom you want the operator to be able to change by manipulating this property. To bind the property to the High Alarm value of an analog object, select the High Alarm atom as shown in the figure below.

images\ocx_bindfrom.gif

  1. Right-click the NeedleMouseControl property and select Edit Property, then change the property to either MouseControlRelative or MouseControlSnapTo.

Note: If you set the property to NoMouseControl, the operator will not be able to move the needle.

  1. Click OK.

The property will now be marked with a green arrow pointing right meaning that an IGSS object value can be changed by manipulating the ActiveX control during supervision.

Changing static properties

When you want to change the static properties of an ActiveX control, the easiest interface is most often using its own properties dialog box. Click here for details.

You can only bind properties to or from the ActiveX control from the Descriptor Properties dialog box using the pop-up menu. This is not possible from the ActiveX control’s own properties dialog box.