Command Use Attributed Component as Input
Symbol:
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
If you do not execute the command Use Attributed Component as Input for this link, a compiler error is generated.
See also:
- PLC documentation: Continuous Function Chart (CFC)
- PLC documentation: CFC Editor