ROL
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

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

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

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


