2 function blocks, 1 special functions, 1 digital frequency ramp generator (l_dfrfg) – Lenze DDS Global Drive PLC Developer Studio User Manual
Page 11: Special functions, Digital frequency ramp generator (l_dfrfg), Function block library lenzeelectricalshaft.lib, 2function blocks

Function block library LenzeElectricalShaft.lib
Special functions
2.1.1
Digital frequency ramp generator (L_DFRFG)
2−1
L
LenzeElectricalShaft.lib EN 1.2
2
Function blocks
2.1
Special functions
2.1.1
Digital frequency ramp generator (L_DFRFG)
This FB synchronizes the drive (motor shaft) to a digital frequency (phase−angle input). The drive then
runs in phase−synchronism with the digital frequency.
L _ D F R F G
C T R L
S
Q
R
d w T i f F o r Q s p b y S p e e d D i r e c t i o n
d w T i r d n O f f s e t
b y F u n c t i o n w S y n W i n d o w
n M a x S p e e d
d w T h r e s h o l d F o l l o w i n g E r r o r
b S y n c _ b
n O u t _ v
b F a i l _ b
n I n _ v
b Q S P _ b
b S t o p _ b
b R e s e t _ b
d n S e t T P L a s t S c a n _ p
b S e t T P R e c e i v e d _ b
T P / M P -
C t r l
Abb. 2−1
Digital frequency ramp generator (L_DFRFG)
VariableName
DataType
SignalType
VariableType
Note
bSetTPReceived_b
Bool
binary
VAR_INPUT
Zero−pulse or TP (TouchProbe) received
dnSetTPLastScan_p
Double Integer
position
VAR_INPUT
Difference increments between TP and start of the
task
nIn_v
Integer
velocity
VAR_INPUT
Speed/phase−angle setpoint (16384
º 15000 rpm)
bQSP_b
Bool
binary
VAR_INPUT
TRUE = Quickstop
bStop_b
Bool
binary
VAR_INPUT
TRUE = save setpoint
bReset_b
Bool
binary
VAR_INPUT
TRUE = reset
bSync_b
Bool
binary
VAR_OUTPUT
TRUE = drive runs synchronously
nOut_v
Integer
velocity
VAR_OUTPUT
Speed/Phase setpoint
bFail_b
Bool
binary
VAR_OUTPUT
TRUE = exceeded phase−angle difference
dwTir
Double Word
−
VAR CONSTANT RETAIN
Acceleration time
nMaxSpeed
Integer
−
VAR CONSTANT RETAIN
max. rate of catching up
dwTifForQSP
Double Word
−
VAR CONSTANT RETAIN
Deceleration time for QSP (Quickstop)
dwThreshold
FollowingError
Double Integer
−
VAR CONSTANT RETAIN
Second contouring error
(65335
º 1 turn)
wSynWindow
Word
−
VAR CONSTANT RETAIN
Synchronization window
dnOffset
Double Integer
−
VAR CONSTANT RETAIN
Offset related to the digital frequency input
(65335
º 1 turn)
byFunction
Byte
−
VAR CONSTANT RETAIN
Start with/without TP
bySpeedDirection
Byte
−
VAR CONSTANT RETAIN
Input of the direction of rotation