7.6.4 PACK_BYTES_TO_WORD
Function
Implementation of combining 2 BYTE input quantities into a WORD return value
LD graphics
Parameter description
| Interface Variable | Declaration | Type | Description |
|---|---|---|---|
| High_Byte | Var_Input | BYTE | The high BYTE assigned to the WORD return value |
| Low_Byte | Var_Input | BYTE | The low 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_WORD(High_Byte:=hVar,Low_Byte:=lVar);