49 l_convunitstoincr_2, 49 l_convunitstoincr_2 9, L_convunitstoincr_2 – Lenze 8400 User Manual
Page 1219: Winl, Winh, Poscal, 18 function library

Lenze · 8400 protec HighLine · Reference manual · DMS 3.0 EN · 03/2013 · TD05
1219
18
Function library
18.1
Function blocks | L_ConvUnitsToIncr_2
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
18.1.49
L_ConvUnitsToIncr_2
Taking into account the machine parameters, this FB converts a position value provided in the real
unit of the machine into an internal 32-bit position value.
• The conversion mode has to be set in
. In the Lenze setting, no conversion takes place
due to compatibility reasons.
• Conversion and provision of the result to dnOut_p do not take place in real time! Hence, the
bDataValid output signalises when the conversion has been completed and the dnOut_p output
value is consistent for transfer to following processes.
Inputs
Outputs
Parameter
Identifier
Data type
Information/possible settings
wInLWord / wInHWord
WORD
Input signal Low Word / High Word
Identifier
Data type
Value/meaning
bDataValid
BOOL
FALSE Conversion is active, dnOut_p is not valid.
TRUE Conversion is completed, dnOut_p is valid (consistent).
dnOut_p
DINT
Result of conversion in [increments]
Parameter
Possible settings
Info
Mode: Position calculation
0 dnOut_p=HW+LW
No conversion
• Lenze setting
1 16 bits: LW=+/-32767
wInLWord = ±32767 [Unit]
2 16 bits: HW=+/-; LW=0..65535
wInLWord = 0 ... 65535 [Unit]
wInHWord = sign
(0 = positive; ≠0 = negative)
3 32 bits: HW_LW=+/-214748_3647
wInHWord and wInLWord =
±214748.3647 [Unit]
For a detailed functional description see
/B&RQY8QLWV7R,QFUB
Z,Q/:RUG
Z,Q+:RUG
GQ2XWBS
81,76
,1&
E'DWD9DOLG
& 3RV&DOF0RGH