SHL
Function - Shift bits of a register to the left.
Inputs
Input |
Data type |
Description |
IN |
ANY |
Register. |
NBS |
ANY |
Number of shifts (each shift is 1 bit). |
Outputs
Output |
Data type |
Description |
Q |
ANY |
Shifted 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 := SHL (IN, NBS);
FBD Language
LD Language
The shift is executed only if EN is TRUE.
ENO has the same value as EN.
Created with the Personal Edition of HelpNDoc: Streamline Your Documentation Process with HelpNDoc's Intuitive Interface