# LGF_SwapBlockDWord (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_SwapBlockDWord (FC) |
--- | --- | ---
|  |  |  |  | Ret_Val |  |  | Void
Array[*] of DWord |  |  | data |  |  | Array[*] of DWord

### 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 DWord | 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