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 pixels).

Example: PLC_PRG.iAngle1.

The midpoint of the element rotates at the Center point. This rotation point is shown as the e46fa9d0693d2830c0a8640e005b1a1e_d5756805d01180cec0a8640e014cd6a7 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.

../_images/f3db8f5b5c09a29ec0a8640e0029549a
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.

Internal rotation

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

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 e46fa9d0693d2830c0a8640e005b1a1e_d5756805d01180cec0a8640e014cd6a7 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.

../_images/5ea7ab825c0a2740c0a8640e003719f6
Use REAL values

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

e46fa9d0693d2830c0a8640e005b1a1e_9a3f06830c0506c5c0a8640e012f0ace : 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.

Tip: 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.

See also

  • Unit conversion: cds_unit_conversion