Attribute ‘pin_presentation_order_inputs/outputs’

The pragmas define the displayed order of inputs and outputs of a function block.

Syntax:

{attribute 'pin_presentation_order_inputs' := '<input_k>,<input_l>,\*,<input_m>'}

{attribute 'pin_presentation_order_outputs' := '<output_k>,<output_l>,\*,<output_m>'}

\*: Separator between the beginning and end of the sorted list of input or output parameters. The separator is replaced by all undefined input or output parameters. If the separator is missing, then all input or output parameters are displayed that are not defined explicitly in the pragma.

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

Attention

This pragma is not evaluated when pragma ‘pingroup’ is used.

Example

{attribute 'pin_presentation_order_inputs' := 'input_2,*input_1'}
{attribute 'pin_presentation_order_outputs' := 'output_2, output_1}
FUNCTION_BLOCK POU_BASE
VAR_INPUT
\ input_1 : BOOL;
\ input_2 : INT;
\ input_3 : INT;
\ input_4 : INT;
END_VAR

VAR_OUTPUT
\ output_1 : BOOL;
\ output_2 : INT;
\ output_3 : INT;
\ output_4 : BOOL;
END_VAR

This pragma definition leads to the following order of the input and output pins of the POU_Base function block:

../_images/7cee33ae0fdfc4fdc0a864637960fd9d

See also