ROL (Rotation Left)

Rotates the DINT type input by NbR bits to the left in a circular form and fills the bits on the right with the bits that are rotated.
lrsf_ro2
lrsf_ro1_cam5
Arguments
IN
IN
DINT
Any integer value
NbR
NbR
DINT
Number of 1 bit rotations (in set [1..31])
ROL
Q
DINT
Left rotated value
no effect if NbR <= 0
Example
(* FBD Program using "ROL" Function *)
lrsf_ro3_cam5
(* ST Equivalence: *)
result := ROL (register, 1); (* register = 2#0100_1101_0011_0101*) (* result = 2#1001_1010_0110_1010*)
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal