# LGF_SwapBlockWord (FC / 1.0.2)

Overview

Author: Siemens Industry Support

## Short description

Adjusts/ switches the endianness of multibyte data typed values.
For this to achieve, a loop will iterate through the array elements and swap the bytes intrinsically.

### Block Interface

| LGF_SwapBlockWord (FC) |
--- | --- | ---
|  |  |  |  | Ret_Val |  |  | Void
Array[*] of Word |  |  | data |  |  | Array[*] of Word

### Output parameter

Identifier | Data type | Description
--- | --- | ---
Ret_Val | Void | Void - Function has no return value

### In/Out parameter

Identifier | Data type | Description
--- | --- | ---
data | Array[*] of Word | Contains the data values, which will be endianness adjusted

## Change log

Version & Date | Change description
--- | ---
| 1.0.0 | Simatic Systems Support
| 13-10-2021 | First released version
| 1.0.1 | Simatic Systems Support
| 16-07-2025 | Fixed comments AND block info header
| 1.0.2 | Simatic Systems Support
| 16-07-2025 | Fixed bug in loop upper index