29 l_lcb_unittoacc - acceleration value conversion, The l_lcb_logiccontrolbasic library – Lenze PLC Designer R3-x User Manual

Page 147

Advertising
background image

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

147

The L_LCB_LogicControlBasic library

L_LCB_UnitToAcc - acceleration value conversion

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

13.29

L_LCB_UnitToAcc - acceleration value conversion

This FB converts an acceleration value specified in the real unit of the machine to an internal

acceleration value 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_UnitToAcc

DINT ⎯ diAccIn_e4

diAccOut_x ⎯ DINT

L_LCB_SetAxisData -

machine parameters

⎯ scAxisData

xLimit ⎯ BOOL

xError ⎯ BOOL
eError ⎯

L_LCB_Error

Identifier/data type

Information/possible settings

diAccIn_e4

DINT

Acceleration in unit/s2]

Selection in "e4" view (fixed point with four decimal positions)

scAxisData

L_LCB_SetAxisData -

machine parameters

Machine parameters

Identifier/data type

Information/possible settings

diAccOut_x

DINT

Acceleration as speed variation/time in [rpm/s]

15000000 rpm/s ≡ 2

22

= 4194304

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

L_LCB_Error

Error number, error code

Advertising