Input, Output, Rotation (rrot/lrot) – Watlow LogicPro User Manual
Page 179: Inputs

LogicPro User’s Guide
Chapter 10: Function Blocks
Doc.# 28002-00 Rev 3.00
Watlow Anafaze
163
Input
EN-- is the InterLock-Clear enable bit. In this Function Block,
it has no effect on the program. The ILC FB closes the IL
bracket whenever the preceding IL FB is active.
Output
Q-- is the InterLock-Clear output bit. This bit is always
enabled. It does not affect the rest of the program since the ILC
function block’s position is always at the end of a rung.
Rotation (RROT/LROT)
symbol1 = RROT, LROT
The rotation function, shown in Figure 10.45, performs a bit-
level rotation of 16-bit or 32-bit integers: the right rotation
RROT moves the i-th bit into the (i-1)’th bit, as the lowest bit
is carried into the highest; the left rotation LROT moves the
i-th bit into the (i+1)’th bit, as the highest bit is carried into the
lowest bit. The operation is performed on either BIN or BCD
numerals which are treated simply as a collection of bits, such
that range-checking is not performed.
symbol2 = W, L, WP,
or
LP
The Variable D needs to be declared as integer type, of size
specified in this symbol, as follows. Two memory sizes are
available for this integer, word-length W (16-bit) and long-
word L (32-bit). In addition, the function block’s calculation
can be performed continuously, or only as pulses, when the
enable bit (EN) switches value from False to True. In the
continuous computation case, integers are marked as W or L,
while in the Pulse computation case, they are marked as WP or
LP.
Figure 10.45 The Right and Left Rotation
Function Blocks
Inputs
EN-- is the rotation function block’s enable bit: the conversion
is performed if it is True.
N-- is an integer (
INT
) or long integer (
LONG
) specifying the
number of bits the rotation should be done for per scan.