262
Inputs
Outputs
SHR
(10016)
Illustration
Execution time
Operation
Inputs
Outputs
Standard function blocks
The input data type is selected by the user.
Number of bits (BITCNT): INT; DINT
Input (I): INT, DINT
Output (O): INT; DINT
0.80 µs
Input bits (I) are rotated to the right by the number (N) of bits defined by BITCNT. The N
least significant bits (LSB) of the input are lost and the N most significant bits (MSB) of
the output are set to 0.
Example: If BITCNT = 3
I 1 1 1 0 0 0 0 0 1 1 1 0 0 1 0 1 1 1 0 1 0 0 1 1 0 0 1 1 0 1 0 1
O 0 0 0 1 1 1 0 0 0 0 0 1 1 1 0 0 1 0 1 1 1 0 1 0 0 1 1 0 0 1 1 0
3 MSB
The input data type is selected by the user.
Number of bits (BITCNT): INT; DINT
Input (I): INT, DINT
Output (O): INT; DINT
3 LSB