7.6.3 PACK_BITS_TO_DWORD
Function
Realize the combination of 32 BOOL input quantities BIT0~BIT31 into a DWORD return value
LD graphics

Parameter description
| Interface Variable | Declaration | Type | Description |
|---|---|---|---|
| BIT0 | Var_Input | BOOL | bit0 of the DWORD return value |
| BIT1 | Var_Input | BOOL | bit1 of the DWORD return value |
| BIT2 | Var_Input | BOOL | bit2 of the DWORD return value |
| BIT3 | Var_Input | BOOL | bit3 of the DWORD return value |
| BIT4 | Var_Input | BOOL | bit4 of the DWORD return value |
| BIT5 | Var_Input | BOOL | bit5 for the DWORD return value |
| BIT6 | Var_Input | BOOL | bit6 of the DWORD return value |
| BIT7 | Var_Input | BOOL | bit7 for the DWORD return value |
| BIT8 | Var_Input | BOOL | bit8 for the DWORD return value |
| BIT9 | Var_Input | BOOL | bit9 for the DWORD return value |
| BIT10 | Var_Input | BOOL | bit10 of the DWORD return value |
| BIT11 | Var_Input | BOOL | bit11 of the DWORD return value |
| BIT12 | Var_Input | BOOL | bit12 of the DWORD return value |
| BIT13 | Var_Input | BOOL | bit13 of the DWORD return value |
| BIT14 | Var_Input | BOOL | bit14 of the DWORD return value |
| BIT15 | Var_Input | BOOL | bit15 of the DWORD return value |
| BIT16 | Var_Input | BOOL | bit16 of the DWORD return value |
| BIT17 | Var_Input | BOOL | bit17 of the DWORD return value |
| BIT18 | Var_Input | BOOL | bit18 of the DWORD return value |
| BIT19 | Var_Input | BOOL | bit19 of the DWORD return value |
| BIT20 | Var_Input | BOOL | bit20 of the DWORD return value |
| BIT21 | Var_Input | BOOL | bit21 of the DWORD return value |
| BIT22 | Var_Input | BOOL | bit22 of the DWORD return value |
| BIT23 | Var_Input | BOOL | bit23 of the DWORD return value |
| BIT24 | Var_Input | BOOL | bit24 of the DWORD return value |
| BIT25 | Var_Input | BOOL | bit25 of the DWORD return value |
| BIT26 | Var_Input | BOOL | bit26 of the DWORD return value |
| BIT27 | Var_Input | BOOL | bit27 of the DWORD return value |
| BIT28 | Var_Input | BOOL | bit28 of the DWORD return value |
| BIT29 | Var_Input | BOOL | bit29 of the DWORD return value |
| BIT30 | Var_Input | BOOL | bit30 of the DWORD return value |
| BIT31 | Var_Input | BOOL | bit31 of the DWORD return value |
| Function name | Return value | WORD | Converted result |
Example
- LD sample animation is as follows:

- ST example is shown in the following code:
OUT:=PACK_BITS_TO_WORD(
BIT0:=1,
BIT1:=1,
BIT2:=1,
BIT3:=1,
BIT4:=1,
BIT5:=1,
BIT6:=1,
BIT7:=1,
BIT8:=1,
BIT9:=1,
BIT10:=1,
BIT11:=1,
BIT12:=0,
BIT13:=1,
BIT14:=0,
BIT15:=1
);