User guide

5 Function blocks
5.19 L_DcBitShiftWord - shift operation
204
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
5.19 L_DcBitShiftWord - shift operation
This FB carries out a bit shift operation with a "WORD" 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 wOut.
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
wIn
WORD
Input signal
Identifier/data type Value/meaning
wOut
WORD
Output signal according to the parameterised bit shift operation
Parameter Possible settings Information
C04192 -15 15 Shift factor
•Initialisation: 0
/B'F%LW6KLIW:RUG
Z,Q
Z2XW
 
 
%LW %LW
&
6KLIWIDFWRU
Bit 0
Bit 15
Bit 0
wOut
Bit 15
wIn
00
Bit 0Bit 15
Bit 0
wOut
Bit 15
wIn
Shift factor = +2 Shift factor = -3
000