7.10.4 SWAPB_WORD
Function
WORD high and low byte exchange
LD graphics
Parameter description
| Interface variable | Declaration | Data type | Description |
|---|---|---|---|
| IN | Var_Input | WORD | Data to be converted |
| Function name | Return value | WORD | Output the converted result |
Example
- LD example is shown in the following animation:

- ST example is shown in the following code:
OUT_WORD := SWAPB_WORD(IN_WORD);