SHR

Return to Introduction  Previous page  Next page

 

IEC / CEI 1131-3 Compliant

 

shr

 

This function perform a logical right shift of the value applied to the input IN and the resulting word is available on the OUT pin. The number of shifts is specified by the value applied to the pin N. The less significant bit of the word is filled with zero.

 

Net plugs

 

Plug

Description



IN

The word to be shifted

 

 

N

The number of shifts to be performed

 

 

OUT

The resulting word

 

See also : ROL, ROR, SHL