TO_WORD
PROGRAM TO_WORD_DEMO VAR W1: WORD; INT1: INT; END_VAR W1:=TO_WORD(INT1); END_PROGRAM
The function brings the bit value of the input value to the output.
Input | Type | Description |
IN | ANY_ELEMENTARY | Input value |
Output | Type | Description |
⇒ | WORD | Output value |