FB_ShiftBitRegister: Shift Bit Register
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:
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. |