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>'}

Insertion location: First line in the declaration part of a function block

Attribute 'pin_presentation_order_inputs/outputs' 1:

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:

Attribute 'pin_presentation_order_inputs/outputs' 2:

See also: