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

Page 36

Advertising
background image

Function block library LenzeElectricalShaft.lib

Special functions

2.1.4

Homing function (L_REF)

2−26

L

LenzeElectricalShaft.lib EN 1.2

2.1.4.5

Store the present output value after power interruption

[ V A R _ G L O B A L R E T A I N ]

[ V A R _ G L O B A L R E T A I N ]

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−20

Programming to store the present output value after a supply interruption

In order to store the latest value at dnActPos_p after a supply interruption, you must declare a global
variable of type RETAIN (VAR_GLOBAL RETAIN). Link this variable as shown in Abb. 2−20

·

In this variable, the present value is always stored at dnActPos_p The variable will hold the
value after a supply interruption.

·

When the supply is switched on again, the stored value is read into the FB L_REF from the
variable and applied as the starting value.

Note!

This only applies to Mode 21, no RETAIN−type variable needs to be defined for the other modes.

Advertising