EasyManua.ls Logo

ABB ACSM1 - Shr; Xor

ABB ACSM1
448 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Standard function blocks
295
Inputs The input data type is selected by the user.
Input (I): INT, DINT
Number of bits (BITCNT): INT; DINT
Outputs Output (O): INT; DINT
SHR
(10016)
Illustration
Execution time 0.80 µs
Operation 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
Inputs The input data type is selected by the user.
Input (I): INT, DINT
Number of bits (BITCNT): INT; DINT
Outputs Output (O): INT; DINT
XOR
(10017)
Illustration
Execution time 1.24 µs (when two inputs are used) + 0.72 µs (for every additional input). When all
inputs are used, the execution time is 22.85 µs.
SHR
(DINT) 62
TLA1 1 msec (1)
BITCNT
I
O
O(62)
I 11100000111001011101001100110101
O 00011100000111001011101001100110
3 MSB
3 LSB
XOR
63
TLA1 1 msec (1)
IN1
IN2
OUT
OUT(63)

Table of Contents

Other manuals for ABB ACSM1

Related product manuals