Attribute 'pin_presentation_order_inputs/outputs'
The pragmas are evaluated in the CFC and FBD/LD graphic editors and cause the inputs and outputs of the function block concerned to be displayed in the specified order. The order is programmed by assigning the names of the inputs/outputs to the attribute in the desired order.
Syntax:
{attribute 'pin_presentation_order_inputs' := '<First_Input_Name>, (<Next_Input_Name>, )* ( *, )? (<Next_Input_Name>,)* <Last_Input_Name>'}
{attribute 'pin_presentation_order_outputs' := '<First_Output_Name>, (<Next_Output_Name>,)* ( *, )? (<Next_Output_Name>,)* <Last_Output_Name>'}
- *
The optional terminal sign serves as a placeholder for all inputs/outputs that are not specified in the order of presentation. If the terminal sign is missing, the missing inputs/outputs will be appended at the end. - ( ... )?
The content of the round bracket is optional. - ( ... )*
The content of the round bracket is repeatedly optional and can therefore occur not at all, once or several times.
Insertion location: First line in the declaration part of a function block
Use of the attribute 'pin_presentation_order_inputs/outputs' in connection with the attribute 'pingroup' This pragma is not evaluated if the pragma {attribute 'pingroup' := '<Group_Name>'} is used. |
Sample:
1. Use of the attribute 'pin_presentation_order_inputs/outputs'
Function block FB_Sample:
{attribute 'pin_presentation_order_inputs' := 'nInput2,*,bInput1'}
{attribute 'pin_presentation_order_outputs' := 'nOutput2,nOutput1'}
FUNCTION_BLOCK FB_Sample
VAR_INPUT
bInput1 : BOOL;
nInput2 : INT;
nInput3 : INT;
nInput4 : INT;
END_VAR
VAR_OUTPUT
bOutput1 : BOOL;
nOutput2 : INT;
nOutput3 : INT;
bOutput4 : BOOL;
END_VAR
Program SampleProg:
PROGRAM SampleProg
VAR
fbSample : FB_Sample;
END_VAR
In the presentation of the function block instance fbSample, the pragmas cause the following arrangement of the input and output pins:
See also: