ROR (Rotation Right)

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