Classes with the attribute [Function]
or [FunctionContainer]
are not allowed to have fields attributed with [Local]
, [Global]
, [Output]
, [Input]
, [InOut]
, [InputPort]
or [OutputPort]
.
You can also use the provided automatic Code Fix to remove the attribute. ( Press Alt + Enter on the Error line to find the Code Fix in the context menu)
Remove the attribute. If the field is intended to be an [Input]
parameter for the IEC [Function]
make it an [Input]
parameter of the method where it is used.