TO_BYTE
PROGRAM TO_BYTE_DEMO VAR B1: BYTE; INT1: INT; END_VAR B1:=TO_BYTE(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 |
⇒ | BYTE | Output value |