Visualization Element ‘ActiveX Element’

Symbol: 7c343e8ff8286a72c0a8640e01c77dc7_7d85210561317a96c0a8640e01e21d3c

Tag: Special controls

This element is used for linking an existing ActiveX element in the visualization. In the element properties of the ActiveX element, you can configure the method calls and their parameters.

Element properties

Element name Example: GenElemInst_1.
Element type ActiveX element
Element

Installed ActiveX component that is linked to the visualization.

Tip: To avoid typing errors, select the required ActiveX component with the input assistant.

Element property ‘Position’

The position defines the location and size of the element in the visualization window. These are based on the Cartesian coordinate system. The origin is located at the upper left corner of the window. The positive horizontal x-axis runs to the right. The positive vertical y-axis runs downwards.

X

X coordinate of the upper left corner of the element

Specified in pixels.

Example: 10.

Y

Y coordinate of the upper left corner of the element

Specified in pixels.

Example: 10.

Width

Specified in pixels.

Example: 150

Height

Specified in pixels.

Example: 30

Note

You can also change the values by dragging the box symbols ( 7c343e8ff8286a72c0a8640e01c77dc7_7b449e02d0393877c0a8640e01fd8c9e ) to other positions in the editor.

See also

Element property ‘Absolute movement’

These properties are used for dynamically controlling the element position by means of variables. The reference point is the upper left corner of the element. In runtime mode, the entire element is moved.

Movement
X:

Variable (integer data type). Defines the X position (in pixels).

Example: PLC_PRG.iPos_X.

Increasing this value in runtime mode moves the element to the right.

Y:

Variable (integer data type). Defines the Y position (in pixels).

Example: PLC_PRG.iPos_Y.

Increasing this value in runtime mode moves the element downwards.

Element property ‘State variables’

Invisible

Variable (BOOL). Toggles the visibility of the element.

TRUE: The element is not visible at runtime.

Element property ‘Initial calls’

These method calls are executed during initialization. They are executed in the first cycle only.

Method calls

Button ‘Create new

Creates a subnode below Methods with parameters for the method call.

Methods

[<number>]

  • Method: Name of the method
  • Parameter: Parameter passed at the method call
  • Result parameter: Optional variable for the return value of the method

Element property ‘Cyclic calls’

These method calls are executed in every cycle. They are executed in the refresh rate of the visualization.

Method calls

Button ‘Create new

Creates a subnode below Methods for a method call and its parameters.

Methods

[<number>]

  • Method: Name of the method
  • Parameter: Parameter passed at the method call
  • Result parameter: Optional variable for the return value of the method

Element property ‘Conditional calls’

These method calls are executed in the refresh rate of the visualization. You define the call condition in the property Methods ‣ [<number>] ‣ Call condition.

Method calls

Button ‘Create new

Creates a subnode below Methods with a call condition and parameters for the method call.

Methods

[<number>]

  • Method: Name of the method
  • Call condition: Variable (BOOL). A rising edge of this variable triggers the call of this method.
  • Parameter: Parameter passed at the method call
  • Result parameter: Optional variable for the return value of the method

Element property ‘Access rights’

Requirement: User management is set up for the visualization.

Access rights

Opens the Access rights dialog box for changing the access rights for the element.

Status messages:

  • Not set. All rights.: Access rights for all user groups : operable
  • Rights are assigned: limited rights: Access is restricted for at least one group.

See also