FB_ShiftBitRegister: Shift Bit Register

Overview

The function block FB_ShiftBitRegister provides a left or right shift of binary data bits. This is not a rotating bit shift. Overflow bits are lost.

The following graphic shows the pin diagram of the function block FB_ShiftBitRegister:

G-SE-0033407.1.jpg

 

 

I/O Variables Description

The table describes the input / output variables of the function block in the TwidoEmulationSupport library:

Input / Output

Data Type

Description

iq_iRegister (16 Bit)

INT

Register bit

The table describes the input variables of the function block in the TwidoEmulationSupport library:

Input

Data Type

Description

i_xReset

BOOL

The reset input resets all bits to 0.

i_xShiftLeft

BOOL

On a rising edge, shifts a register bit to the left.

i_xShiftRight

BOOL

On a rising edge, shifts a register bit to the right.