48 l_convunitstoincr_1, 48 l_convunitstoincr_1 6, L_convunitstoincr_1 – Lenze 8400 HighLine User Manual
Page 1296: Winl, Winh, Poscal, 17 function library
17
Function library
17.1
Function blocks
1296
Lenze · 8400 HighLine · Referenzhandbuch · DMS 10.0 EN · 06/2014 · TD05/TD14
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
17.1.48
L_ConvUnitsToIncr_1
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)
Note!
, a
calculation is made under the
following conditions:
• Position specification is higher
than or equal to the cycle length.
• Position specification is negative.
For a correct positioning process,
wait until bDataValid = TRUE.
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 und wInLWord =
±214748.3647 [Unit]
/B&RQY8QLWV7R,QFUB
Z,Q/:RUG
GQ2XWBS
81,76
,1&
Z,Q+:RUG
E'DWD9DOLG
& 3RV&DOF0RGH