Shl - Allen-Bradley Micro800 General Instructions Manual

Programmable controllers
Hide thumbs Also See for Micro800:
Table of Contents

Advertisement

Chapter 7
Binary instructions

SHL

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

Advertisement

Table of Contents
loading

Table of Contents