5 division (l_phdiv), Division (l_phdiv), Function library lenzedrive.lib – Lenze DDS Function library Drive User Manual
Page 52: Processing of phase−angle signals

2.4.5
Division (L_PHDIV)
Function library LenzeDrive.lib
Processing of phase−angle signals
2−42
L
LenzeDrive.lib EN 1.7
2.4.5
Division (L_PHDIV)
This FB divides or multiplies phase−angle signals in binary−exponent format.
1
2
b y D i v i s i o n
d n I n _ p
d n O u t _ p
L _ P H D I V
± 2
3 1
R e v o l u t i o n
Fig. 2−53
Division (L_PHDIV)
VariableName
DataType
SignalType
VariableType
Note
dnIn_p
Double integer
position
VAR_INPUT
dnOut_p
Double integer
position
VAR_OUTPUT
65536 inc = 1 encoder revlution
byDivision
Short Integer
VAR CONSTANT RETAIN
Exponent of the divisor
Parameter codes of the instances
VariableName
L_PHDIV1
SettingRange
Lenze
byDivision
C0995
−31 ... 31
0
Function
You can calculate the result of the arithmetical function according to the formula:
dnOut_p
+
dnIn_p
2
byDivision
·
Positive values in byDivision result in a division.
·
Negative values in byDivision result in a multiplication.
·
The output signal is limited to ±2
31
−1 encoder turns.
– The output signal cannot exceed this limit value.