Visualization Element 'Analog clock'

 

Symbol:

_visu_icon_clock.png

Tag: Date/time controls

The element is a clock that displays the current time of day. The clock can also display any time.

Element properties

Element name

Example: GenElemInst_1

Type of element

Analog clock

Element property 'Position'

The position defines the location and size of the element in the visualiza­tion window. These are based on the Cartesian coordinate system. The origin is located at the upper left corner of the window. The positive hori­zontal x-axis runs to the right. The positive vertical y-axis runs down­wards.

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 (_visu_icon_position_element.png) to other positions in the editor.

See also

Element property 'Center'

The properties contain fixed values for the coordinates of the point of rotation. This point of rotation is shown as the _visu_icon_center_point.png symbol. The point is used as the center for rotating and scaling.

X

X-coordinate of the point of rotation

Y

Y-coordinate of the point of rotation

Note

You can also change the values by dragging the symbols (_visu_icon_center_point.png) to other positions in the editor.

Element property 'Time Display'

Use system time

_cds_icon_option_activated.png: The system time of the PLC is displayed.

Variable

Variable (time data type TOD, TIME_OF_DAY). This receives the time of day that is not the system time.

Example: PLC_PRG.todTimeTokio

Requirement: The Use system time property is not activated.

Design

  • From style: All settings are preconfigured according to the style.

  • Explicit: The Settings property appears. Here you can customize the analog clock.

Element property 'Absolute movement'

The properties contain IEC variables for controlling the position of the element dynamically. The reference point is the upper left corner of the element. In runtime mode, the entire element is moved.

Movement

X

Variable (numeric 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 (numeric data type). Defines the Y position (in pixels).

Example: PLC_PRG.iPos_Y.

Increasing this value in runtime mode moves the element downwards.

Rotation

Variable (numeric data type). Defines the angle of rotation (in degrees).

Example: PLC_PRG.iAngle1.

The midpoint of the element rotates at the Center point. This rotation point is shown as the _visu_icon_center_point.png symbol.

In runtime mode, the alignment of the element remains the same with respect to the coordinate system of the visualization. Increasing the value rotates the element to the right.

_visu_img_prp_rotation.png 

Scaling

Variable (integer data type). Causes centric stretching.

Example: PLC_PRG.iScaling.

The reference point is the Center property.

The value 1 shrinks the element by a factor of 0.001. The value 1000 returns the element to its original size.

Interior rotation

Variable (numeric data type). Defines the angle of rotation (in degrees).

Example: PLC_PRG.iAngle2.

In runtime mode, the element rotates about the point of rotation specified in Center according to the value of the variable. In addition, the alignment of the element rotates according to the coordinate system of the visualization. Increasing the value in the code rotates clockwise.

The rotation point is shown as the _visu_icon_center_point.png symbol.

Note: If a static angle of rotation is specified in the property Position ‣ Angle , then the static angle of rotation is added to the variable angle of rotation (offset) when the visualization is executed.

_visu_img_prp_inner_rotation.png 

Use REAL values

Note: Only available if the device supports the use of REAL coordinates.

_cds_icon_option_activated.png: The properties of the absolute movement are interpreted as REAL values. The values are not rounded.

The option allows for the individual fine-tuning of drawing the element, for example for the visualization of a smoother rotation.

Hint: If a horizontal or vertical line is drawn blurry on a specific visualization platform, then this can be corrected by an offset of 0.5px in the direction of the line thickness.

Note

You can link the variables to a unit conversion.

Note

The properties X, Y, Rotation, and Interior rotation are supported by the "Client Animation" functionality.

See also

Element property 'Settings'

Requirement: The Property is Explicit. Only then is the Clock Settings category visible.

Background

Background color

Color variants of the default background image

  • Yellow

  • Red

  • Blue

  • Green

  • Black

Own background

Background display with the specific Image. Replaces the default background image.

Image

Image from an image pool or library

Example: myImagepool.myImage

Transparency color

The transparent color in the image representation.

Example: White. The white parts of the image are transparent.

Use background color

_cds_icon_option_activated.png: The image background is displayed using the color defined in the Background color property.

Requirement: No image reference is given in the Image property.

Background color

Style color or color

Requirement: Use background color is activated.

Hands

Hand style

Example: Thin arrow

Color hour hand

Style color or color for the hands

Color minute hand

Color second hand

Lines

Lines style

Clock face graduation

  • None

  • Line: Graduation lines by hour

  • Hours and minutes: Graduation lines by hours and minutes

  • Dots: Graduation dots by hour

Color

Color of the clock face graduation

Line width

Line weight of the clock face graduation

Scale in 3D

_cds_icon_option_activated.png: Representation of the clock face with 3D effect

Numerics

Style of numerics

Digits on the clock face

  • None

  • Quarter

  • All

Font

Font for displaying the digits

Font color

Font for displaying the digits

Center point

Color

Color of the center of the clock

Positioning

Usage of

  • Default style values: Presetting of the style values

  • Individual settings: User-defined settings in the subordinate Positioning property.

Positioning

Requirement: Visible when the Usage or property is set to Individual settings.

Numerics movement

Value (in pixels) for shifting the digits.

Example: 80

Line movement

Value (in pixels) for shifting the hour lines.

Example: 100

Hands scaling

Factor for scaling the length of the hour hand. You can customize the exact position of the hour hand relative to the background image.

Example: 100

Scaling type

Defines the scaling of the height and width of the element.

  • Anisotropic: The background image is scaled to the size of the element The height and width are scaled independently of each other.

  • Isotropic: The background image is scaled to the size of the element, retaining its proportion. The proportion of height and width is fixed.

Optimized drawing

_cds_icon_option_activated.png: The background image is drawn one time. When the hour hand moves, only the affected part of the image is redrawn.

_cds_icon_option_deactivated.png: The background image is redrawn in cycles.

Hint: Deactivate this option only for extreme exceptions.

Element property 'Absolute movement'

The properties contain IEC variables for controlling the position of the element dynamically. The reference point is the upper left corner of the element. In runtime mode, the entire element is moved.

Movement

X

Variable (numeric 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 (numeric data type). Defines the Y position (in pixels).

Example: PLC_PRG.iPos_Y.

Increasing this value in runtime mode moves the element downwards.

Rotation

Variable (numeric data type). Defines the angle of rotation (in degrees).

Example: PLC_PRG.iAngle1.

The midpoint of the element rotates at the Center point. This rotation point is shown as the _visu_icon_center_point.png symbol.

In runtime mode, the alignment of the element remains the same with respect to the coordinate system of the visualization. Increasing the value rotates the element to the right.

_visu_img_prp_rotation.png 

Interior rotation

Variable (numeric data type). Defines the angle of rotation (in degrees).

Example: PLC_PRG.iAngle2.

In runtime mode, the element rotates about the point of rotation specified in Center according to the value of the variable. In addition, the alignment of the element rotates according to the coordinate system of the visualization. Increasing the value in the code rotates clockwise.

The rotation point is shown as the _visu_icon_center_point.png symbol.

Note: If a static angle of rotation is specified in the Position ‣ Angle property, then the static angle of rotation is added to the variable angle of rotation (offset) when the visualization is executed.

_visu_img_prp_inner_rotation.png 

Note

You can link the variables to a unit conversion.

Note

The X, Y, Rotation, and Interior rotation properties are supported by the "Client Animation" functionality.

See also

Element property 'State variables'

The variables control the element behavior dynamically.

Invisible

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

TRUE: The element is not visible at runtime.

Note

The Invisible property is supported by the "Client Animation" functionality.

See also

These properties are available only when you select the Preview: Support client animations and overlay of native elements option in the Visualization Manager.

You can animate a movement, a rotation, and the visibility of a visualiza­tion element.

Animation time

Time that the element executes an animation (in milliseconds)

Example: 500

Move to the foreground

Property value (BOOL)

TRUE: At runtime, the element is displayed in the foreground.

FALSE: At runtime, the element is displayed in the layer where it was inserted in the visualization editor.

See also

See also