21 l_lcb_getposition - conversion block, L_lcb_getposition - conversion block ( 139), The l_lcb_logiccontrolbasic library – Lenze PLC Designer R3-x User Manual

Page 139

Advertising
background image

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

139

The L_LCB_LogicControlBasic library

L_LCB_GetPosition - conversion block

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

13.21

L_LCB_GetPosition - conversion block

This FB converts the input signal transmitted to a position signal.

Inputs

Outputs

Function library:

L_LCB_LogicControlBasic

Runtime software licence:

LPC 1x00

MPC 1x00

MPC 2xx0

MPC 3x00

L_LCB_GetPosition

DINT ⎯ diPosIn_p

rPositionOutUnits ⎯ REAL

L_LCB_SetAxisData -

machine parameters

⎯ scAxisData

xError ⎯ BOOL

eError ⎯

L_LCB_Error

Identifier/data type

Information/possible settings

diPosIn_p

DINT

Position in [increments]

Scaling: 1 encoder revolution ≡ 2

16

increments (or according to scAxisData)

scAxisData

L_LCB_SetAxisData -

machine parameters

Machine parameters

Identifier/data type

Information/possible settings

rPositionOutUnits

REAL

Position value

Display of the input signal dnPosIn_p in the real unit of the machine.

xError

BOOL

"Error" status signal at the function block

FALSE Conversion carried out without errors

TRUE Error during the conversion

eError

L_LCB_Error

Error number, error code

Advertising