Attribute: pin_presentation_order_inputs, pin_presentation_order_outputs
Important
This pragma is not evaluated when {attribute 'pingroup' := '<Group_Name>'}
pragma is used.
The pragmas are evaluated in the CFC, FBD, and LD graphical editors, causing the order of inputs/outputs of the affected function block to be displayed as specified. You program the order 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 names> '} {attribute 'pin_presentation_order_outputs' := ' <first output name> ', ' <next output names> '}
| Comma-separated names of inputs in the desired order |
| Comma-separated names of outputs in the desired order |
| Placeholder for all unspecified names If the placeholder is missing, then the missing inputs/outputs are appended at the end. |
Insert location | Top line in the declaration part of a function block |
{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 FUNCTION_BLOCK PLC_PRG VAR_INPUT END_VAR VAR_OUTPUT END_VAR VAR pouBase_A: POU_BASE; END_VAR
In the representation of function module instance pouBase_A
, the pragmas result in the following arrangement of input and output pins:
