16 l_dcbitshiftbyte - shift operation, Taconversion.lib, L_dcbitshiftbyte – Lenze E94A User Manual
Page 201: 5function blocks

Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
201
5
Function blocks
5.16
L_DcBitShiftByte - shift operation
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
5.16
L_DcBitShiftByte - shift operation
This FB carries out a bit shift operation with a "BYTE" value.
• The shift factor, i.e. the number of bits by which the input value is shifted to the left or right, is
defined by a parameter.
• The result of the shift operation is output at the output byOut.
Inputs
Outputs
Parameter
Example
Function library:
LenzeDataConversion
FB is available as of library V02.02!
Runtime software licence:
Motion Control HighLevel
Motion Control TopLevel
Identifier/data type
Information/possible settings
byIn
BYTE
Input signal
Identifier/data type
Value/meaning
byOut
BYTE
Output signal according to the parameterised bit shift operation
Parameter
Possible settings
Information
C04194
-7
7 Shift factor
• Initialisation: 0
/B'F%LW6KLIW%\WH
E\,Q
E\2XW
%LW
%LW
&
6KLIWIDFWRU
Bit 0
Bit 7
Bit 0
byOut
Bit 7
byIn
0 0
Bit 0
Bit 7
Bit 0
byOut
Bit 7
byIn
Shift factor = +2
Shift factor = -3