Skip to main content

7.10.3 SWAPB_LWORD

Function

LWORD high and low byte exchange

LD graphics

Alt ​​text

Parameter description

Interface variableDeclarationData typeDescription
ENVar_InputBOOLEnable input
ENOVar_OutputBOOLEnable output
INVar_InputLWORDData to be converted
Function nameReturn valueLWORDOutput the converted result

Example

  • LD example is shown in the following animation:

alt text

  • ST example is shown in the following code:
OUT_LWORD := SWAPB_LWORD(IN_LWORD);