7.6.11 UNPACK_WORD
Function
Achieve disassembly and output of 1 WORD input into 2 BYTE and 16 BOOL
LD graphics

Parameter description
| Interface Variable | Declaration | Type | Description |
|---|---|---|---|
| IN_W | Var_Input | WORD | WORD input amount |
| High_Byte | Var_Output | BYTE | The high BYTE of the value input WORD |
| Low_Byte | Var_Output | BYTE | The low BYTE of the value input WORD |
| BIT0 | Var_Output | BOOL | Value input bit0 of BYTE |
| BIT1 | Var_Output | BOOL | Value input bit1 of BYTE |
| BIT2 | Var_Output | BOOL | Value input bit2 of BYTE |
| BIT3 | Var_Output | BOOL | Value input bit3 of BYTE |
| BIT4 | Var_Output | BOOL | Value input bit4 of BYTE |
| BIT5 | Var_Output | BOOL | Value input bit5 of BYTE |
| BIT6 | Var_Output | BOOL | Value input bit6 of BYTE |
| BIT7 | Var_Output | BOOL | Value input bit7 of BYTE |
Example
- LD sample animation is as follows:

- ST example is shown in the following code:
UNPACK_WORD_1(
IN_W:=IN1,
High_Byte=>hVar,
Low_Byte=>lVar,
BIT0=>bVar0,
BIT1=>bVar1,
BIT2=>bVar2,
BIT3=>bVar3,
BIT4=>bVar4,
BIT5=>bVar5,
BIT6=>bVar6,
BIT7=>bVar7,
BIT8=>bVar8,
BIT9=>bVar9,
BIT10=>bVar10,
BIT11=>bVar11,
BIT12=>bVar12,
BIT13=>bVar13,
BIT14=>bVar14,
BIT15=>bVar15
);