Positioning Elements, Adapting Size and Layer

A visualization is a raster image in pixels. The pixel position is specified in x/y-coordinates. The origin (0,0) is located at the upper left corner of the window. The positive x-axis runs to the right, and the positive y-axis runs downwards. The position of an element on the z-axis of the visualization is controlled by the position in the element list (see below).

Configuring the size and position in the editor

The size and position of an element are specified as pixel coordinates in the Properties view. These settings are displayed graphically in the editor view at the same time.

When you drag a visualization element from the ToolBox view to the editor view, it is shown as selected, as in the following example of a rectangle element:

../_images/e2d1e96184b40958c0a8640e01b40f38

The possible positions depend on the set grid. You can change its settings CODESYS options. Commands in the context menu are available for alignment and grouping.

You can now move or resize the element directly in the editor. As an alternative, you configure the Position property in the properties editor, which opens automatically for the selected element. Refer to the description for this, for example in the help page for the button element. The changes are also updated in the other editor.

  1. Focus the element so that the shape of the mouse pointer indicates movement (example: f9504d61840d4cd1c0a8640e015a73e6_72cbb41c84c0a611c0a8640e006dbf2a ).

  2. Drag the element to any position.

    The position of the element is also updated in the properties Position ‣ X and Position ‣ Y .

  3. Focus on a blue box.

    The shape of the mouse pointer is a double arrow that indicates the direction you can drag the box in order to resize the box f9504d61840d4cd1c0a8640e015a73e6_b4711f4884be4adbc0a8640e013dd173 .

  4. Drag the blue box to resize the element.

    The position of the element is also updated in the properties Position ‣ X and Position ‣ Y .

In addition, you can rotate the rectangle, line, polygon, and arc elements.

  1. Select the element for static rotation. Example: Rectangle

    The rectangle is displayed with a handle next to the movable position boxes.

    ../_images/34dd72f2f0a46283c0a86463765b0299
    1. Handle
  2. Drag the mouse pointer over the handle.

    The cursor is displayed as a rotating arrow f9504d61840d4cd1c0a8640e015a73e6_d6216922f0684603c0a8646355d6964d .

  3. Rotate the element to any position.

    ../_images/1d82908cf10c721ac0a864634806dda2

    In the property Position ‣ Angle, the set angle is displayed in degrees.

See also

Moving the visualization element forward and back

Each visualization element is in its own layer of the visualization (z-axis). It can be hidden by other elements in the foreground and hide other elements in the background. The order of layers is visible in the Element list tab above the editor view. The order of elements from front to back specifies the order of visualization layers from back to front.

Use the commands from the Order context menu to move a selected element.

Example of an element list (1):

../_images/99e191a334356a5ac0a8640e01f90b49

See also