Attribute 'TcSwapDWord'

The pragma can be used to define that the word order should be changed for this allocated output variable (swapping of low word and high word). If the pragma is present, the checkbox "Swap LOWORD and HIWORD" is checked for the output within the PLC process image.

Syntax: {attribute 'TcSwapDWord'}

Insertion location: Line above the declaration line of an allocated output variable (AT%Q)

Examples:

VAR
    {attribute 'TcSwapWord'}
    nVar1  AT%Q* : WORD;
    {attribute 'TcSwapDWord'}
    nVar2  AT%Q* : DWORD;
END_VAR