Chapter 7 Binary instructions
140 Rockwell Automation Publication 2080-RM001D-EN-E - February 2015
For 32-bit integers, ROR rotates integer bits to the right.
Arguments
Parameter
Parameter
Type
Data Type Description
EN Input BOOL Function enable.
When EN = TRUE, execute the rotate bit right integer value computation.
When EN = FALSE, there is no computation.
IN Input DINT Any integer value.
NbR Input DINT Number of 1-bit rotations (in set [1..31]).
ROR Output DINT Right rotated value. There is no effect if NbR <= 0.
ENO Output BOOL Enable out.
ROR function language examples
Function block diagram