Standard function blocks
227
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
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
3 LSB
XOR
63
TLA1 1 msec
(1)
IN1
IN2
OUT
OUT(63)
Summary of Contents for ACSM1 Series
Page 1: ...ACSM1 Firmware Manual ACSM1 Speed and Torque Control Program...
Page 2: ......
Page 4: ......
Page 12: ...Table of contents 12...
Page 49: ...Drive control and features 49...
Page 282: ...Standard function blocks 282...
Page 306: ...Application program template 306...
Page 312: ...Control chain block diagrams 312...
Page 331: ...331...
Page 332: ...332...
Page 333: ......