23 l_lcb_setaxisdata - machine parameters, L_lcb_setaxisdata - machine parameters ( 141), L_lcb_setaxisdata – Lenze PLC Designer R3-x User Manual

Page 141: Machine parameters, The l_lcb_logiccontrolbasic library

Advertising
background image

Lenze · Commissioning of Lenze drives · 1.3 EN - 06/2014

141

The L_LCB_LogicControlBasic library

L_LCB_SetAxisData - machine parameters

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

13.23

L_LCB_SetAxisData - machine parameters

With this FB the machine parameters of a higher-level drive can be mapped. The FB conditions the

machine parameters, which you specify in the physical units of the machine via parameters, for the

internal representation.

• The FB outputs a pointer to the data structure with the prepared machine parameters at the

output scAxisData.

• In order to pass the machine parameters to an FB which requires these data for internal

calculations, the output scAxisData is to be connected to the input with the same name of the

corresponding FB.

Inputs

Function library:

L_LCB_LogicControlBasic

Runtime software licence:

LPC 1x00

MPC 1x00

MPC 2xx0

MPC 3x00

L_LCB_SetAxisData

REAL ⎯ rFeedConstant

diCycleLength_p ⎯ DINT

REAL ⎯ rCycleLength

scAxisData ⎯

L_LCB_SetAxisData -

machine parameters

DWORD ⎯ dwGearNumerator
DWORD ⎯ dwGearDenominator

REAL ⎯ rReferenceSpeed

STRING ⎯ sAxisName

L_LCB_AXISMODE

⎯ eMode

DINT ⎯ dwResolution

Identifier/data type

Information/possible settings

rFeedConstant

REAL

Feed constant, initial value: 360.0 units.

rCycleLength

REAL

Cycle length, initial value: 360.0 units.

dwGearNumerator

DWORD

Gearbox factor numerator, initial value: 1.

dwGearDenominator

DWORD

Gearbox factor denominator, initial value: 1.

rReferenceSpeed

REAL

Reference speed

sAxisName

STRING(16)

Axis name

eMode

L_LCB_AXISMODE

Traversing range

• 0 Unlimited (Lenze setting)

• 1 limited

• 2 modulo

dwResolution

DINT

Resolution of one revolution

Advertising