4 homing function (l_ref), Homing function (l_ref), Function block library lenzeelectricalshaft.lib – Lenze DDS Global Drive PLC Developer Studio User Manual

Page 27: Special functions 2.1.4 homing function (l_ref)

Advertising
background image

Function block library LenzeElectricalShaft.lib

Special functions

2.1.4

Homing function (L_REF)

2−17

L

LenzeElectricalShaft.lib EN 1.2

2.1.4

Homing function (L_REF)

This FB is used to bring the drive shaft to a specific position.

L _ R E F

d n A c t P o s _ I n _ p

C T R L

b P o s L o a d _ b

b M a r k _ b

b O n _ b

n N I n _ a

d n P o s I n _ p

b R e f O k _ b

b R e f B u s y _ b

n N S e t _ a

b y H o m i n g M o d e

d n R e f O f f s e t

d n H o m i n g S p e e d

w T i T i m e H o m i n g

d n T a r g e t P o s

b A c t T P R e c e i v e d _ b

d n A c t T P L a s t S c a n _ p

T P / M P

C T R L

n N A c t _ v

d n A c t P o s

d n P o s O u t _ p

d n P o w D o w n A c t I n t e R e t a i n

Abb. 2−10

Homing function (L_REF)

VariableName

DataType

SignalType

VariableType

Note

bActTPReceived_b

Bool

binary

VAR_INPUT

TouchProbe received

dnActTPLastScan_p

Double Integer

position

VAR_INPUT

Phase−angle difference between TouchProbe and start
of task

dnActPos_In_p

Double Integer

position

VAR_INPUT

Loading value for the current position

bPosLoad_b

Bool

binary

VAR_INPUT

FALSE−TRUE edge = phase−angle at input
dnActPosIn_p is loaded into REF−ACTPOS (start value)

bMark_b

Bool

binary

VAR_INPUT

Home position switch

bOn_b

Bool

binary

VAR_INPUT

TRUE = start homing

nNAct_v

Integer

velocity

VAR_INPUT

Actual speed, for calculating the actual position
(16384

º 15000 rpm)

nNIn_a

Integer

analog

VAR_INPUT

Speed setpoint in [%] of n

max

(C0011)

(C0011

º 100 % º 16384)

dnPosIn_p

Double Integer

position

VAR_INPUT

dnPosIn_p is switched through to dnPosOut_p after
homing

dnActPos

Double Integer

position

VAR_OUTPUT

Actual position of the calculated position profile

dnTargetPos

Double Integer

position

VAR_OUTPUT

Target position of the calculated position profile

bRefOk_b

Bool

binary

VAR_OUTPUT

TRUE = homing completed/reference point known

bRefBusy_b

Bool

binary

VAR_OUTPUT

TRUE = homing function active

nNSet_a

Integer

analog

VAR_OUTPUT

Speed setpoint for n−controller

dnPosOut_p

Double Integer

position

VAR_OUTPUT

Phase setpoint (contouring error for phase controller in
FB MCTRL)

dnPowDownActInte
Retain

Double Integer

VAR_IN_OUT

For Mode 21, to save the position after switching off
the supply power

byHomingMode

Byte

VAR CONSTANT RETAIN

Setting for homing modes

dnRefOffset

Double Integer

VAR CONSTANT RETAIN

Setting for homing offset (1

º 1 incr.)

dnHomingSpeed

Double Integer

VAR CONSTANT RETAIN

Setting for homing speed
(286331153

º 16000 rpm)

wTiTimeHoming

Word

VAR CONSTANT RETAIN

Setting for ramp time (100

º 1 s)

Advertising