# LGF_MergeBitsToDWord (FC / 3.0.1)

Overview

Author: Siemens Digital Industry

## Short description

This function merge 32 Bits / 32 Boolean variables into one DWord variable.

### Block Interface

| LGF_MergeBitsToDWord (FC) |
--- | --- | ---
Bool |  |  | bit31 |  | Ret_Val |  |  | DWord
Bool |  |  | bit30 |  |  |  |  |
Bool |  |  | bit29 |  |  |  |  |
Bool |  |  | bit28 |  |  |  |  |
Bool |  |  | bit27 |  |  |  |  |
Bool |  |  | bit26 |  |  |  |  |
Bool |  |  | bit25 |  |  |  |  |
Bool |  |  | bit24 |  |  |  |  |
Bool |  |  | bit23 |  |  |  |  |
Bool |  |  | bit22 |  |  |  |  |
Bool |  |  | bit21 |  |  |  |  |
Bool |  |  | bit20 |  |  |  |  |
Bool |  |  | bit19 |  |  |  |  |
Bool |  |  | bit18 |  |  |  |  |
Bool |  |  | bit17 |  |  |  |  |
Bool |  |  | bit16 |  |  |  |  |
Bool |  |  | bit15 |  |  |  |  |
Bool |  |  | bit14 |  |  |  |  |
Bool |  |  | bit13 |  |  |  |  |
Bool |  |  | bit12 |  |  |  |  |
Bool |  |  | bit11 |  |  |  |  |
Bool |  |  | bit10 |  |  |  |  |
Bool |  |  | bit9 |  |  |  |  |
Bool |  |  | bit8 |  |  |  |  |
Bool |  |  | bit7 |  |  |  |  |
Bool |  |  | bit6 |  |  |  |  |
Bool |  |  | bit5 |  |  |  |  |
Bool |  |  | bit4 |  |  |  |  |
Bool |  |  | bit3 |  |  |  |  |
Bool |  |  | bit2 |  |  |  |  |
Bool |  |  | bit1 |  |  |  |  |
Bool |  |  | bit0 |  |  |  |  |

### Input parameter

Identifier | Data type | Description
--- | --- | ---
bit31 | Bool | Input Bit 31 - MSB
bit30 | Bool | Input Bit 30
bit29 | Bool | Input Bit 29
bit28 | Bool | Input Bit 28
bit27 | Bool | Input Bit 27
bit26 | Bool | Input Bit 26
bit25 | Bool | Input Bit 25
bit24 | Bool | Input Bit 24
bit23 | Bool | Input Bit 23
bit22 | Bool | Input Bit 22
bit21 | Bool | Input Bit 21
bit20 | Bool | Input Bit 20
bit19 | Bool | Input Bit 19
bit18 | Bool | Input Bit 18
bit17 | Bool | Input Bit 17
bit16 | Bool | Input Bit 16
bit15 | Bool | Input Bit 15
bit14 | Bool | Input Bit 14
bit13 | Bool | Input Bit 13
bit12 | Bool | Input Bit 12
bit11 | Bool | Input Bit 11
bit10 | Bool | Input Bit 10
bit9 | Bool | Input Bit 9
bit8 | Bool | Input Bit 8
bit7 | Bool | Input Bit 7
bit6 | Bool | Input Bit 6
bit5 | Bool | Input Bit 5
bit4 | Bool | Input Bit 4
bit3 | Bool | Input Bit 3
bit2 | Bool | Input Bit 2
bit1 | Bool | Input Bit 1
bit0 | Bool | Input Bit 0 - LSB

### Output parameter

Identifier | Data type | Description
--- | --- | ---
Ret_Val | DWord | Composite Bit sequence stored as DWord variable

## Change log

Version & Date | Change description
--- | ---
| 1.0.0 | Simatic Systems Support
| 20.06.2019 | First release
| 3.0.0 | Simatic Systems Support
| 23.04.2020 | Set version to V3.0.0 harmonize the version of the whole library
| 3.0.1 | Simatic Systems Support
| 22.02.2021 | Insert documentation