Command Use Attributed Component as Input

Symbol: Command Use Attributed Component as Input 1:

Function: The command allows to connect a structure component to an input of scalar type.

Call: CFC > Pins menu, context menu > Pins

Requirements: A CFC editor is active and a function block input is selected.

The component of the structure that will be connected to the input of the subsequent function block must be provided with the {attribute 'ProcessValue'} attribute. The data type of the structure component must be compatible with the data type of the subsequent input. Inputs connected in this way are marked with the V symbol.

Sample

TYPE ST_Sample :
STRUCT
    {attribute 'ProcessValue'}
    nVar1 : INT;
    nVar2 : INT;
END_STRUCT
END_TYPE
PROGRAM MAIN
VAR
    stInput   : ST_Sample;
    stOutput  : ST_Sample;
    nVar      : INT;
END_VAR
Command Use Attributed Component as Input 2:

If you do not execute the command Use Attributed Component as Input for this link, a compiler error is generated.

See also: