Shr - Allen-Bradley Micro800 General Instructions Manual

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

Advertisement

Chapter 7
Binary instructions

SHR

Parameter
EN
IN
NbS
SHR
ENO
144
For 32-bit integers, SHR moves integers to the right and places 0 in the most
significant bit.
Arguments
Parameter
Data Type
Type
Input
BOOL
Input
DINT
Input
DINT
Output
DINT
Output
BOOL
SHR 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 right.
When EN = FALSE, there is no integer movement.
Any integer value.
Number of 1 bit shifts (in set [1..31]).
Right shifted value. There is no effect if NbS <= 0. If a value of 0, replaces the most significant
bit.
Enable out.

Advertisement

Table of Contents
loading

Table of Contents