7.10.3 SWAPB_LWORD
Function
LWORD high and low byte exchange
LD graphics
Parameter description
| Interface variable | Declaration | Data type | Description |
|---|---|---|---|
| EN | Var_Input | BOOL | Enable input |
| ENO | Var_Output | BOOL | Enable output |
| IN | Var_Input | LWORD | Data to be converted |
| Function name | Return value | LWORD | Output the converted result |
Example
- LD example is shown in the following animation:

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