7.6.5 PACK_BYTES_TO_DWORD
Function
Implementation of combining 4 BYTE input quantities into a DWORD return value
LD graphics
Parameter description
| Interface Variable | Declaration | Type | Description |
|---|---|---|---|
| HH_Byte | Var_Input | BYTE | HH_BYTE assigned to the WORD return value |
| HL_Byte | Var_Input | BYTE | HL_BYTE assigned to the WORD return value |
| LH_Byte | Var_Input | BYTE | LH_BYTE assigned to the WORD return value |
| LL_Byte | Var_Input | BYTE | LL_BYTE assigned to the WORD 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_BYTES_TO_DWORD(
HH_Byte:=hhVar,
HL_Byte:=hlVar,
LH_Byte:=lhVar,
LL_Byte:=llVar
);