Function - Rotate bits of a register to the left.

Inputs

Input

Data type

Description

IN

ANY

Register.

NBR

ANY

Number of rotations (each rotation is 1 bit).

Outputs

Output

Data type

Description

Q

ANY

Rotated register.

Diagram

Fixed_Image

Remarks

Arguments can be signed or unsigned integers from 8 to 32 bits.

In LD language, the input rung (EN) enables the operation, and the output rung keeps the state of the input rung.

ST Language

Q := ROL (IN, NBR);

FBD Language

Fixed_Image

LD Language

The rotation is executed only if EN is TRUE.
ENO has the same value as EN.

Fixed_Image

Fixed_Image See also

SHL  SHR  ROR  SHLb  SHRb  ROLb  SHLw  SHRw  ROLw


Created with the Personal Edition of HelpNDoc: Effortlessly Publish Your Word Document as an eBook