shl32/16/8 (Function) |
Top Previous Next |
The bitwise shift function "shlxx" operates on the SINT, INT, and DINT data types. It will shift the value a number of bits to the left. Bits coming in from the right are always 0.
Input: in : DINT/INT/SINT The value to shift.
n : SINT (0..32/16/8) The number of bits to shift.
Returns: DINT/INT/SINT The resulting value.
Declaration:
FUNCTION shl32 : DINT;
Example: INCLUDE rtcu.inc |