27 l_lcb_postounit - position value conversion, The l_lcb_logiccontrolbasic library – Lenze PLC Designer R3-x User Manual
Page 145

Lenze · Commissioning of Lenze drives · 1.3 EN - 06/2014
145
The L_LCB_LogicControlBasic library
L_LCB_PosToUnit - position value conversion
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
13.27
L_LCB_PosToUnit - position value conversion
This FB converts a position value specified in the internal unit [increments] to a position value in the
real unit of the machine on the basis of the machine parameters transmitted.
Inputs
Outputs
Function library:
L_LCB_LogicControlBasic
Runtime software licence:
LPC 1x00
MPC 1x00
MPC 2xx0
MPC 3x00
L_LCB_AccToUnit
DINT ⎯ diPosIn_p
diAccOut_e4 ⎯ DINT
⎯ scAxisData
xLimit ⎯ BOOL
xError ⎯ BOOL
eError ⎯
Identifier/data type
Information/possible settings
diPosIn_p
DINT
Position in [increments]
scAxisData
Machine parameters
Identifier/data type
Information/possible settings
diPosOut_e4
DINT
Position in [unit]
Display in "e4" view (fixed point with four decimal positions)
xLimit
BOOL
"Output signal is limited" status
• TRUE: The output signal is limited to the representable value range
±214748.3647
xError
BOOL
"Error" status signal
FALSE Conversion carried out without errors
TRUE Error during the conversion
eError
Error number, error code