24 l_lcb_setposition - position value conversion, The l_lcb_logiccontrolbasic library – Lenze PLC Designer R3-x User Manual
Page 142

The L_LCB_LogicControlBasic library
L_LCB_SetPosition - position value conversion
142
Lenze · Commissioning of Lenze drives · 1.3 EN - 06/2014
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Outputs
13.24
L_LCB_SetPosition - position value conversion
This FB converts a position to a position in [increments] on the basis of the machine parameters
transmitted and provides them at the output dnPosOut_p for further processing within the
function block interconnection.
Inputs
Outputs
Identifier/data type
Information/possible settings
diCycleLength_p
DINT
Cycle in [increments]
• The cycle in the real unit of the machine can be viewed in the corresponding code.
scAxisData
Machine parameters
• Pointer to the data structure which contains the machine parameters in the
internal measuring system.
• Via this "interface" you can provide the machine parameters to other FBs, which
require these data for internal calculations.
Function library:
L_LCB_LogicControlBasic
Runtime software licence:
LPC 1x00
MPC 1x00
MPC 2xx0
MPC 3x00
L_LCB_SetPosition
REAL ⎯ rPositionInUnits
diPosOut_p ⎯ DINT
⎯ scAxisData
xLimit ⎯ BOOL
xError ⎯ BOOL
eError ⎯
Identifier/data type
Information/possible settings
rPositionInUnits
REAL
Position value in units
scAxisData
Machine parameters
Identifier/data type
Information/possible settings
diPosOut_p
DINT
Position in [increments]
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