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