
Lenze · 8400 HighLine · Reference manual · DMS 12.0 EN · 06/2017 · TD23
1306
17
Function library
17.1
Function blocks | L_ConvUnitsToIncr_1
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
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
Parameters
Designator
Data type
Information/possible settings
wInLWord / wInHWord
WORD
Input signal Low Word / High Word
Designator
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]
Parameters
Possible settings
Info
Mode: Position calculation
0 dnOut_p=HW+LW
No conversion (Lenze setting)
Note!
If a cycle length is set in
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
and
wInLWord
=
±214748.3647 [Unit]
/B&RQY8QLWV7R,QFUB
Z,Q/:RUG
GQ2XWBS
81,76
,1&
Z,Q+:RUG
E'DWD9DOLG
& 3RV&DOF0RGH