Skip to main content

Element: Composer

Symbol: cfc_icon_element_composer.png

Function: The composer element handles structure members.

The individual structure members are made available as inputs. For this purpose, you need to name the composer element like the structure in question and rename the initial placeholder ???.

The composer is the counterpart of Selector.

Example 7. Example
PROGRAM POU_1
VAR
    PointXY : Point;
    x : INT;
    y : INT;
    x_out : INT;
    y_out : INT;
END_VAR

Merging structure members with the Composer element:

cfc_img_example_compositor.png

Splitting the structure with the Selector element:

cfc_img_example_selector.png

Assigning structure members without using the Composer or Selector elements:

cfc_img_example_without_compositor.png