Ror; Shl - ABB ACSM1 Firmware Manual

Motion control program
Hide thumbs Also See for ACSM1:
Table of Contents

Advertisement

294
Outputs

ROR

(10014)
Illustration
Execution time
Operation
Inputs
Outputs

SHL

(10015)
Illustration
Execution time
Operation
Standard function blocks
Output (O): INT, DINT
(DINT)
TLA1 1 msec
BITCNT
I
1.28 µ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 stored as the N most significant bits (MSB) of
the output.
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 1 0 1 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.
Input (I): INT, DINT
Number of bits input (BITCNT): INT, DINT
Output (O): INT, DINT
(DINT)
TLA1 1 msec
BITCNT
I
0.80 µs
Input bits (I) are rotated to the left by the number (N) of bits defined by BITCNT. The N
most significant bits (MSB) of the input are lost and the N least significant bits (LSB) of
the output are set to 0.
Example: If BITCNT = 3
3 MSB
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 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 0 0 0
ROR
60
(1)
O(60)
O
SHL
61
(1)
O(61)
O
3 LSB
3 LSB

Advertisement

Table of Contents
loading

Table of Contents