17 l_dcbitshiftdword - shift operation, L_dcbitshiftdword, 5function blocks – Lenze E94A User Manual
Page 202

5
Function blocks
5.17
L_DcBitShiftDWord - shift operation
202
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
5.17
L_DcBitShiftDWord - shift operation
This FB carries out a bit shift operation with a "DWORD" 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 dwOut.
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
dwIn
DWORD
Input signal
Identifier/data type
Value/meaning
dwOut
DWORD
Output signal according to the parameterised bit shift operation
Parameter
Possible settings
Information
C04191
-31
31 Shift factor
• Initialisation: 0
/B'F%LW6KLIW':RUG
GZ,Q
GZ2XW
%LW
%LW
&
6KLIWIDFWRU
Bit 0
Bit 31
Bit 0
dwOut
Bit 31
dwIn
0 0
Bit 0
Bit 31
Bit 0
dwOut
Bit 31
dwIn
Shift factor = +2
Shift factor = -3
0 0
0