Chapter 7 Binary instructions
142 Rockwell Automation Publication 2080-RM001D-EN-E - February 2015
For 32-bit integers, SHL moves integers to the left and places 0 in the least
significant bit.
Arguments
Parameter
Parameter
Type
Data Type Description
EN Input BOOL Function enable.
When EN = TRUE, move integers to the left.
When EN = FALSE, there is no integer movement.
IN Input DINT Any integer value.
NbS Input DINT Number of 1 bit shifts (in set [1..31]).
SHL Output DINT Left shifted value. There is no effect if NbS <= 0. If a value of 0, replaces the least significant
bit.
ENO Output BOOL Enable out.
SHL function language examples
Function block diagram