shr32/16/8 (Function) |
Top Previous Next |
The bitwise shift function "shrxx" operates on the SINT, INT, and DINT data types. It will shift the value a number of bits to the right. Bits coming in from left 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 shr32 : DINT;
Example: INCLUDE rtcu.inc |