The software is supplied to the user as described in this document. Any risks resulting from its quality or use remain the responsibility
of the user. The user must provide all safety measures protecting against possible maloperation.
We do not take any liability for direct or indirect damage, e.g. profit loss, order loss or any loss regarding business.
2006 Lenze Drive Systems GmbH
No part of this documentation may be copied or made available to third parties without the explicit written approval of Lenze Drive
Systems GmbH.
All information given in this documentation has been carefully selected and tested for compliance with the hardware and software
described. Nevertheless, discrepancies cannot be ruled out. We do not accept any responsibility or liability for any damage that may
occur. Required corrections will be included in updates of this documentation.
All product names mentioned in this documentation are trademarks of the corresponding owners.
This Manual contains information on the function blocks that are included in the function library
LenzeDrive.lib for the Drive PLC Developer Studio.
These function blocks can be used in the 9300 Servo PLC, Drive PLC and ECSxA
automation system.
The function blocks are based on the functions that are available in the 9300 servo inverter
(V2.0).
In the Drive PLC Developer Studio (DDS) you make the basic settings for your drive applicationoffline by using variables (in accordance with the IEC61131−3 standard) as aids for parameterizing
the appropriate function blocks.
Via Global Drive Control (GDC) or the keypad you can then set the parameters for the required
functionality of your drive application online by accessing the codes of the function block instances.
1.1.1Conventions used in this Manual
This Manual uses the following conventions to distinguish between different types of information:
Variable names
are written in italics in the explanation:
"The signal at nIn_a ..."
Lenze functions/function blocks
can be recognized by their names. They always begin with an "L_":
"The FB L_ARIT can ..."
Program listings
are written in "Courier", keywords are printed in bold:
"IF (ReturnValue < 0)THEN..."
Instances
For function blocks that have one or more first instances there are tables that describe the
corresponding codes:
Variable nameL_ARIT1L_ARIT2Setting rangeLenze
byFunctionC0338C06000 ... 51
You can access these codes online with Global Drive Control (GDC) or keypad.
L
Tip!
You can use the Parameter Manager to assign the same codes to these instances that are assigned
in the 9300 servo inverter (V2.0).
LenzeDrive.lib EN 1.7
1−1
Function library LenzeDrive.lib
Preface and general information
1.1About this Manual
1.1.2Description layout
All function/function block and system block descriptions contained in this Manual have the same
structure:
FunctionFunction block (FB)/
Heading stating function and function identifier
Declaration of the function:
Data type of the return value
Function identifier
List of transfer parameters
Short description of the most important properties
Function chart including all
associated variables
Transfer parameters
Return value
Table giving information about the
transfer parameters:
Identifiers
Data type
Possible settings
Info
Table giving information about the
return value:
Data type of the return value
Possible return values and their
meaning
Additional information
(Notes, tips, application examples, etc.)
system block (SB)
−
FB/SB chart including all
associated variables
Input variables
Output variables
Table giving information about the
input and output variables:
Identifiers
Data type
Variable type
Possible settings
Info
−
1.1.3Pictographs used in this Manual
Pictographs usedSignal words
Warning of material
damage
Other notesTip!
Stop!Warns of potential damage to material.
Note!
1.1.4Terminology used
TermIn the following text used for
DDSDrive PLC Developer Studio
FBFunction block
GDCGlobal Drive Control (parameterization program from Lenze)
Parameter codesCodes for setting the functionality of a function block
PLC 9300 Servo PLC
SBSystem block
Drive PLC
ECSxA "Application" axis module
Possible consequences if disregarded:
Damage to the controller/drive system or its environment.
Indicates a tip or note.
1−2
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Preface and general information
1.2Lenze software guidelines for variable names
1.2Lenze software guidelines for variable names
The previous concepts for Lenze controllers were based on codes that represented the input and
output signals, and the parameters of function blocks.
For the sake of clarity, names were defined for the codes in the documentation.
In addition, the signal types were defined by graphical symbols.
The user could see at a glance which kind of signal (analog, phase−angle etc.) had to be present at
the particular interface.
The concept for the new automation system does not use direct codes in the
programming. The IEC 61131−3 standard is used instead.
This standard is based on a structure of variable names.
If the user applies variables in his project, then he can name the variables as he chooses.
In order to avoid the growth of a multitude of different conventions for naming variables in existing
and future projects and function libraries that are programmed by Lenze personnel, we have set up
software guidelines that must be followed by all Lenze staff.
In this convention for creating variable names, Lenze keeps to the Hungarian Notation that has been
specifically expanded by Lenze.
If you make use of Lenze−specific functions or function blocks, you will immediately be able to see,
for instance, which data type you must transfer to a function block, and which type of data you will
receive as an output value.
1.2.1Hungarian Notation
These conventions are used so that the most significant characteristics of a program variable can
instantly be recognized from its name.
Variable names
consist of
a prefix (optional)
a data−type entry
and an identifier
The prefix and data−type entry are usually formed by one or two characters. The identifier (the
"proper" name) should indicate the application, and is therefore usually somewhat longer.
An identifier begins with a capital letter.
If an identifier is assembled from several "words", then each "word" must start with a capital
letter.
All other letters are written in lower case.
Examples:
Array of integers anJogValue[10] ;
Bool bIsEmpty ;
Word wNumberOfValues ;
Integer nLoop ;
Byte byCurrentSelectedJogValue ;
1.2.1.1Recommendation for designating variable types
In order to be able to recognize the type of variable in a program according to the name, it makes
sense to use the following designations, which are placed in front of the proper variable name and
separated from it by an underline stroke:
for a global array of type integer that includes fixed setpoints (analog) for a speed setting:
g_anFixSetSpeedValue_a
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Preface and general information
1.2Lenze software guidelines for variable names
1.2.1.2Designation of the signal type in the variable name
The inputs and outputs of the Lenze function blocks each have a specific signal type assigned. These
may be: digital, analog, position, or speed signals.
For this reason, each variable name has an ending attached that provides information on the type of
signal.
Signal typeEndingPrevious designation
analog_a (analog)
digital_b (binary)
Phase−angle difference or speed_v (velocity)
Phase−angle or position_p (position)
Tip!
Normalizing to signal type phase−angle difference/speed: 16384 (INT) ¢ 15000 rpm
Normalizing to signal type analog: 16384 ¢ 100 % ¢ value under [C0011] = n
Normalizing to signal type angle or position: 65536 ¢ 1 motor revolution
Caution: The cyclic task PLC_PRG is not time−equidistant!
Function library LenzeDrive.lib
Function blocks
l
LenzeDrive.lib EN 1.7
2−1
Function library LenzeDrive.lib
General signal processing
2.1.1Programming fixed setpoints (L_FIXSET)
2.1General signal processing
2.1.1Programming fixed setpoints (L_FIXSET)
You can program up to 15 fixed setpoints with this FB. The addressing of the setpoint that is to be
output is made through the boolean (logic) inputs.
Fixed setpoints can be used, for example, for:
Different set dancer positions in a dancer position control
Different stretch ratios (gearbox factor) when using a speed ratio control with digital frequency
coupling
Fig. 2−1Programming fixed setpoints (L_FIXSET)
VariableNameDataTypeSignalTypeVariableTypeNote
nAin_aIntegeranalogVAR_INPUTnAin_a is connected to nOut_a , if (bIn1_b ... bIn4_b)
bIn1_bBoolbinaryVAR_INPUT
bIn2_bBoolbinaryVAR_INPUT
bIn3_bBoolbinaryVAR_INPUT
bIn4_bBoolbinaryVAR_INPUT
nOut_aIntegeranalogVAR_OUTPUT
anSollW[1...15]Array of integersVAR CONSTANT RETAIN Variable that can have fixed setpoints assigned to
nOut_a can be used as a setpoint source (signal source) for another FB (e.g. process controller,
arithmetic block, etc.). The parameterization and handling is the same as for JOG, but it is
independent of JOG. (^ 2−73: L_NSET)
Parameterization of the fixed setpoints
– The individual fixed setpoints can be parameterized through anSollW1 ... anSollW15.
Output of the selected fixed setpoint:
– If the binary inputs are triggered with a HIGH signal, a fixed setpoint from the table is
switched to nOut_a . (^ 2−3)
Range:
– You can enter values from −199.99% ... 199.99% (100 % corresponds to 16384).
nAin_a
bIn1_b
bIn2_b
bIn3_b
bIn4_b
DMUX
0
3
FIXSET1...15
0
15
anSollW1
anSollW2
anSollW15
L_FIXSET
nOut_a
FALSE is on all the selection inputs.
The number of inputs to be assigned depends on the
number of required fixed setpoints.
them.
2−2
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
General signal processing
2.1.1Programming fixed setpoints (L_FIXSET)
2.1.1.1Enable of the fixed setpoints
Number of required fixed setpointsNumber of the inputs to be assigned
1at least 1
1 ... 3at least 2
4 ... 7at least 3
8 ... 154
Decoding table of the binary input signals:
Output signal
nOut_a =
nAin_a0000
anSollW11000
anSollW20100
anSollW31100
anSollW40010
anSollW51010
anSollW60110
anSollW71110
anSollW80001
anSollW91001
anSollW100101
anSollW111101
anSollW120011
anSollW131011
anSollW140111
anSollW151111
0 = FALSE
1 = TRUE
1st input
bIn1_b
2nd input
bIn2_b
3rd input
bIn3_b
4th input
bIn4_b
L
LenzeDrive.lib EN 1.7
2−3
Function library LenzeDrive.lib
Analog signal processing
2.2.1Absolute value generation (L_ABS)
2.2Analog signal processing
2.2.1Absolute value generation (L_ABS)
This FB converts bipolar values into unipolar values. It calculates the absolute value of the input
signal.
This FB adds or subtracts input values, depending on the input that is used.
L _ A D D
± 3 2 7 6 7
Fig. 2−3Addition (L_ADD)
VariableNameDataTypeSignalTypeVariableTypeNote
nIn1_aIntegeranalogVAR_INPUTAddition input
nIn2_aIntegeranalogVAR_INPUTAddition input
nIn3_aIntegeranalogVAR_INPUTSubtraction input
nOut_aIntegeranalogVAR_OUTPUTSignal is limited to ±32767.
Functional sequence
1. The value at nIn1_a is added to the value of nIn2_a.
2. The value of nIn3_a is subtracted from the calculated result.
3. The result of the substraction is then limited to ±32767.
n I n 1 _ a
n I n 2 _ a
n I n 3 _ a
+
-+
n O u t _ a
L
LenzeDrive.lib EN 1.7
2−5
Function library LenzeDrive.lib
Analog signal processing
2.2.3Input gain and offset (L_AIN)
2.2.3Input gain and offset (L_AIN)
This FB is preferentially used for addition circuitry at the analog input terminals, to adjust the gain and
offset.
Fig. 2−4Input gain and offset (L_AIN)
VariableNameDataTypeSignalTypeVariableTypeNote
nIn_aIntegeranalogVAR_INPUTInput signal
nOffset_aIntegeranalogVAR_INPUTOffset of the input signal
nGain_aIntegeranalogVAR_INPUTGain of the input signal
nOut_aIntegeranalogVAR_OUTPUT
Function
Offset
– The value at nOffset_a is added to the value of nIn_a
– The result of the addition is limited to ±32767.
Gain
– The limited value (after the offset) is multiplied by the value at nGain_a .
– Next, the signal is limited to ±32767.
The signal is given out at nOut_a .
nOut_a
nIn_a
nOffset_a
nGain_a
+
+
L_AIN
nOut_a
Fig. 2−5Offset and gain of the analog input
nGain_a
nOffset_a
nIn_a
2−6
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Analog signal processing
2.2.3Input gain and offset (L_AIN)
Funtion in IL
LD nIn_a
INT_TO_DINT
ADD (nOffset_a
INT_TO_DINT
)
LIMIT −32767,32767
MUL (nGain_a
INT_TO_DINT
)
DIV 16384
LIMIT −32767,32767
DINT_TO_INT
ST nOut_a
L
LenzeDrive.lib EN 1.7
2−7
Function library LenzeDrive.lib
Analog signal processing
2.2.4Inversion (L_ANEG)
2.2.4Inversion (L_ANEG)
This FB inverts the sign of an input value. The input value is multiplied by −1 and then output.
This FB is preferentially used for additional circuitry at analog output terminals, to adjust the gain and
offset.
L_AOUT
+
nIn_a
nGain_a
nOffset_a
Fig. 2−7Output gain and offset (L_AOUT)
VariableNameDataTypeSignalTypeVariableTypeNote
nIn_aIntegeranalogVAR_INPUTInput signal
nGain_aIntegeranalogVAR_INPUTGain of the input signal
nOffset_aIntegeranalogVAR_INPUTOffset of the input signal
nOut_aIntegeranalogVAR_OUTPUT
Function
nOut_a
+
Gain
– The value at nIn_a is multiplied by the value at nGain_a .
– The multiplication is performed according to the formula:
16384 @ 16384 @ 2
*14
+ 16384
– The result of the multiplication is limited to ±2
[100% @ 100% + 100%]
14
Offset
– The limited value (after amplification) is added to the value at nOffset_a
– The result of the addition is limited to ±2
Next, the signal is limited to ±2
14
and output to nOut_a .
nOut_a
14
nGain_a
nOffset_a
nIn_a
Fig. 2−8Offset and gain of the analog output
L
LenzeDrive.lib EN 1.7
2−9
Function library LenzeDrive.lib
Analog signal processing
2.2.5Output gain and offset (L_AOUT)
Function in IL
LD nIn_a
INT_TO_DINT
MUL (nGain_a
INT_TO_DINT
)
DIV −32767,32767
ADD (nOffset_a
INT_TO_DINT
)
LIMIT −32767,32767
DINT_TO_INT
ST nOut_a
2−10
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Analog signal processing
2.2.6Arithmetic (L_ARIT)
2.2.6Arithmetic (L_ARIT)
This FB can arithmetically combine two analog signals.
Fig. 2−9Arithmetic (L_ARIT)
VariableNameDataTypeSignalTypeVariableTypeNote
nIn1_aIntegeranalogVAR_INPUT
nIn2_aIntegeranalogVAR_INPUT
nOut_aIntegeranalogVAR_OUTPUTThe signal is limited to ±32767.
byFunctionByteVAR CONSTANT RETAIN Selection of the function
This FB switches between two integer values. So it is, for example, possible to change between an
initial diameter and a calculated diameter during winding.
This FB compares two integer values with each other. You can use comparators to implement
threshold switches.
Fig. 2−11Comparison (L_CMP)
VariableNameDataTypeSignalTypeVariableTypeNote
nIn1_aIntegeranalogVAR_INPUT
nIn2_aIntegeranalogVAR_INPUT
bOut_bBoolbinaryVAR_OUTPUT
byFunctionByteVAR CONSTANT RETAIN Comparison function for the inputs
nHysteresisIntegerVAR CONSTANT RETAIN Hysteresis function
nWindowIntegerVAR CONSTANT RETAIN Window function
Selection: byFunction = 1
This function compares two signals for equality. For instance, you can make the V comparison
"actual speed is equal to set speed" (n
The exact function can be seen in the diagram. (^Fig. 2−12)
nWindow
nHysteresis
1
nWindow
act
nHysteresis
= n
set
).
0
nIn1_a
nHysteresis
nWindow
nIn2_a
nWindow
nHysteresis
bOut_b
Fig. 2−12Equality of signals (nIn1_a = nIn2_a)
Use nWindow to set the window within which the equality is valid.
Use nHysteresis to set a hysteresis, if the input signals are not stable and the output oscillates.
nIn2_a
nIn1_a
t
t
2−14
Note!
With this function, you must use the FB in a fast task, to achieve optimum sampling of the signals.
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Analog signal processing
2.2.8Comparison (L_CMP)
2.2.8.2Function 2: nIn1_a > nIn2_a
Selection: byFunction = 2
With this function, you can make the comparison "actual speed is above a limit" (n
one direction of rotation.
nIn1_a
nIn2_a
nHysteresis
bOut_b
nHysteresis
1
bOut_b
> nx ) for
act
t
0
Fig. 2−13Signal values exceeded (nIn1_a > nIn2_a)
Functional sequence
1. If the value at nIn1_a is below the value at nIn2_a, then bOut_b changes from FALSE to TRUE.
2. Only when the signal at nIn1_a is above the value of nIn2_a − nHysteresis again, will bOut_b
change from TRUE to FALSE.
2.2.8.3Function 3: nIn1_a < nIn2_a
Selection: byFunction = 3
With this function, for instance, you can make the comparison "actual speed is below a limit"
(n
< nx ) for one direction of rotation.
act
bOut_b
nHysteresis
1
nIn1_anIn2_a
nIn1_a
nHysteresis
nIn2_a
bOutb_b
t
t
0
nIn2_a
Fig. 2−14Gone below signal values (nIn1_a < nIn2_a)
nIn1_a
Functional sequence
1. If the value at nIn1_a is below the value at nIn2_a, then bOut_b changes from FALSE to TRUE.
2. Only when the signal at nIn1_a is above the value of nIn2_a − nHysteresis again, will bOut_b
change from TRUE to FALSE.
L
LenzeDrive.lib EN 1.7
t
2−15
Function library LenzeDrive.lib
Analog signal processing
2.2.8Comparison (L_CMP)
2.2.8.4Function 4: |nIn1_a| = |nIn2_a|
Selection: byFunction = 4
With this function, for instance, you can make the comparison "n
This function is the same as function 1. (^ 2−14)
– However, the absolute value of the input signals (without sign) is generated here before the
signal processing.
2.2.8.5Function 5: |nIn1_a| > |nIn2_a|
Selection: byFunction = 5
With this function, for instance, you can make the comparison "n
the direction of rotation.
This function is the same as function 2. (^ 2−15)
– However, the absolute value of the input signals (without sign) is generated here before the
signal processing.
= 0".
act
| > |nx |" independently of
act
2.2.8.6Function 6: |nIn1_a| < |nIn2_a|
Selection: byFunction = 6
With this function, you can make the comparison "n
of rotation.
This function is the same as function 3. (^ 2−15)
– However, the absolute value of the input signals (without sign) is generated here before the
signal processing.
| < |nx |" independently of the direction
act
2−16
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Analog signal processing
2.2.9Curve function (L_CURVE)
2.2.9Curve function (L_CURVE)
This FB converts an analog signal into a characteristic curve.
Fig. 2−15Curve function (L_CURVE)
VariableNameDataTypeSignalTypeVariableTypeNote
nIn_aIntegeranalogVAR_INPUT
nOut_aIntegeranalogVAR_OUTPUT
byFunctionByteVAR CONSTANT RETAIN Selection of the characteristic/curve function
nY0IntegerVAR CONSTANT RETAIN Entry of Y0 from vector (0, Y0)
nY1IntegerVAR CONSTANT RETAIN Entry of Y1 from vector (X1, Y1)
nY2IntegerVAR CONSTANT RETAIN Entry of Y2 from vector (X2, Y2)
nY100IntegerVAR CONSTANT RETAIN Entry of Y100 from vector (16384, Y100)
nX1IntegerVAR CONSTANT RETAIN Entry of X1 from vector (X1, Y1)
nX2IntegerVAR CONSTANT RETAIN Entry of X2 from vector (X2, Y2)
Selection of the functionCurve functionInformationen for entry of the interpolation points
byFunction = 1Characteristic with two co−ordinates^ Fig. 2−16
byFunction = 2Characteristic with three co−ordinates^ Fig. 2−17
byFunction = 3Characteristic with four interpolatio points ^ Fig. 2−18
100% corresponds to 16384.
A linear interpolation is carried out between the co−ordinates.
For negative values at nIn_a the settings of the interpolation points are processed inversely
(see line diagrams).
– If this is not required, insert an FB L_ABS or an FB L_LIM before or after the FB L_CURVE.
L
LenzeDrive.lib EN 1.7
2−17
Function library LenzeDrive.lib
a
Analog signal processing
2.2.9Curve function (L_CURVE)
2.2.9.1Characteristic with two co−ordinates
byFunction = 1
y
n O u t _ a
n Y 1 0 0
n Y 0
- 1 0 0 %
Fig. 2−16Line diagram with 2 co−ordinates
2.2.9.2Characteristic with three co−ordinates
byFunction = 2
y
n O u t _ a
n Y 1 0 0
n Y 1
y 0
- n Y 0
- n Y 1 0 0
y 1 0 0
1 0 0 %
y 1 0 0
y 1
x
n I n _
- 1 0 0 %
Fig. 2−17Line diagram with 3 co−ordinates
2−18
n Y 0
y 0
- n X 1
- Y 0
- n Y 1
- n Y 1 0 0
LenzeDrive.lib EN 1.7
x 1
n X 21 0 0 %
x
n I n _ a
L
Function library LenzeDrive.lib
a
Analog signal processing
2.2.9Curve function (L_CURVE)
2.2.9.3Characteristic with four co−ordinates
byFunction = 3
y
n O u t _ a
- 1 0 0 %
Fig. 2−18Line diagram characteristic with 4 co−ordinates
- n X 1- n X 2
n Y 1 0 0
n Y 1
n Y 0
n Y 2
y 0
- n Y 2
- n Y 0
- n Y 1
- n Y 1 0 0
y 1 0 0
y 1
y 2
x 1x 2
n X 1n X 2 1 0 0 %
x
n I n _
L
LenzeDrive.lib EN 1.7
2−19
Function library LenzeDrive.lib
Analog signal processing
2.2.10Dead−band (L_DB)
2.2.10Dead−band (L_DB)
This FB eliminates disturbances around the zero point (e.g. interfering influences on analog input
voltages).
Fig. 2−19Dead band (L_DB)
VariableNameDataTypeSignalTypeVariableTypeNote
nIn_aIntegeranalogVAR_INPUT
nOut_aIntegeranalogVAR_OUTPUTThe signal is limited to ±32767.
nGainInteger−VAR CONSTANT RETAIN Gain
nDeadBandInteger−VAR CONSTANT RETAINDead band
n G a i n = 1 , 0 0
n D e a d B a n d = 6 , 1 0 % = 1 0 0 0
n O u t _ a
n D e a d B a n d
nIn_a
nGain
nDeadBand
±32767
L_DB
nOut_a
n G a i n = 2 , 0 0
n D e a d B a n d = 0 %
n O u t _ a
n G a i n
n D e a d B a n d
Fig. 2−20Dead band and gain
In nDeadBand you can set the parameters for the dead band.
In nGain you can alter the gain.
100 % corresponds to 16384.
n I n _ a
n I n _ a
2−20
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Analog signal processing
2.2.11Differentiation (L_DT1_)
2.2.11Differentiation (L_DT1_)
This FB differentiates signals. You can use it, for instance, for the acceleration injection (dv/dt).
Fig. 2−21Differentiation (L_DT1_)
VariableNameDataTypeSignalTypeVariableTypeNote
nIn_aIntegeranalogVAR_INPUT
nOut_aIntegeranalogVAR_OUTPUTThe signal is limited to ±32767.
nGainIntegerVAR CONSTANT RETAIN Gain K
nDelayTimeIntegerVAR CONSTANT RETAINDelay time T
bySensibilityByteVAR CONSTANT RETAIN Input sensitivity of nIn_a
bySensibility = 115 Bit
bySensibility = 214 Bit
bySensibility = 313 Bit
bySensibility = 412 Bit
bySensibility = 511 Bit
bySensibility = 610 bit
bySensibility = 79 Bit
nIn_a
bySensibility
nGain
nDelayTime
±32767
L_DT1_
nOut_a
loss
The FB only evaluates the specified most significant
bits, according to the setting.
Fig. 2−22Delay time T
L
K
of the 1st order differential section
loss
LenzeDrive.lib EN 1.7
T
loss
t
2−21
Function library LenzeDrive.lib
Analog signal processing
2.2.12Limiting (L_LIM)
2.2.12Limiting (L_LIM)
This FB limits signals to preset ranges of values. You can fix the range of values by defining an upper
and a lower limit.
Use the constant nDelayTime to set the delay time.
The proportional value is fixed at K = 1 .
L
LenzeDrive.lib EN 1.7
2−23
Function library LenzeDrive.lib
Analog signal processing
2.2.14Ramp generator (L_RFG)
2.2.14Ramp generator (L_RFG)
This FB functions as a ramp generator to control the rate of rise of signals.
Fig. 2−26Ramp generator (L_RFG)
VariableNameDataTypeSignalTypeVariableTypeNote
nIn_aIntegeranalog/velocityVAR_INPUT
nSet_aIntegeranalog/velocityVAR_INPUT
bLoad_bBoobinaryVAR_INPUT
nOut_aIntegeranalog/velocityVAR_OUTPUT
dnTirDouble IntegerVAR CONSTANT RETAIN Acceleration time T
dnTifDouble IntegerVAR CONSTANT RETAIN Deceleration time T
Calculation and setting of the acceleration and deceleration times
Loading of the ramp generator
2−24
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Analog signal processing
2.2.14Ramp generator (L_RFG)
2.2.14.1Calculation and setting of the acceleration and deceleration times
The acceleration time and deceleration times refer to a change of the output value from 0 to 100 %
(100% = 16384). The times to be set: Tir and Tif can be calculated from the formula in Fig. 2−27:
[%]
nOut_a
100%
w2
w1
0
t
ir
T
ir
t
if
T
if
t
Tir+ t
Fig. 2−27Acceleration and deceleration times of L_RFG
w1, w2 Change of the main setpoint, depending on tir resp. t
100%
ir
w2 * w1
Here tir and tif are the required times for the change between w1 and w2. The calculated values T
and Tif are entered under dnTir and dnTif.
2.2.14.2Loading of the ramp generator
By using nSet_a and bLoad_b you can initialize the ramp generator with defined values.
As long as bLoad_b = TRUE, the signal at nSet_a is output to nOut_a.
If bLoad_b is set = FALSE, then the ramp generator runs with the preset T
loaded value through nSet_a to the value at nIn_a.
Note!
16384 100 % C0011 (n
max
)
Tif+ t
if
100%
if
w2 * w1
−times from the
i
ir
L
LenzeDrive.lib EN 1.7
2−25
Function library LenzeDrive.lib
Analog signal processing
2.2.15Sample & Hold (L_SH)
2.2.15Sample & Hold (L_SH)
This FB can store analog signals. The stored value is also available after mains disconnection.
Fig. 2−28Sample & Hold (L_SH)
VariableNameDataTypeSignalTypeVariableTypeNote
nIn_aIntegeranalog/velocityVAR_INPUT
bLoad_bBoolbinaryVAR_INPUTFALSE = store
nOut_aIntegeranalog/velocityVAR_OUTPUT
nCurValRetainIntegerVAR_GLOBAL RETAIN
Function
By using bLoad_b = TRUE the signal at nIn_a is switched to nOut_a.
By using bLoad_b = FALSE the last valid value is stored and output at nOut_a. A signal change
at nIn_a does not produce any change at nOut_a.
Storing in the case of mains disconnection:
– Set bLoad_b = FALSE, when the supply voltage is switched off (either mains/line supply,
DC−bus, or voltage supply of the control terminals).
– Set bLoad_b = FALSE, when the supply voltage is switched on again (either mains/line
supply, DC−bus, or voltage supply of the control terminals).
n I n _ a
b L o a d _ b
S & H
n C u r V a l R e t a i n
L _ S H
n O u t _ a
Store the present output value after power interruption
L _ S H
S & H
n C u r V a l R e t a i n
n O u t _ a
n I n _ a
b L o a d _ b
[ V A R _ G L O B A L R E T A I N ]
Fig. 2−29Programming to store the present output value after a supply interruption
Inorder to store the latest value at nOut_a after a supply interruption, you must declare a global
variable of type RETAIN (VAR_GLOBAL RETAIN). Link this variable as shown in Fig. 2−29.
In this variable, the present value is always stored at nOut_a 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_SH from the
variable and applied as the starting value.
[ V A R _ G L O B A L R E T A I N ]
2−26
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Analog signal processing
2.2.16S−ramp generator (L_SRFG)
2.2.16S−ramp generator (L_SRFG)
This FB conditions a setpoint through an S−curve (sin2−curve).
Fig. 2−30S−ramp generator (L_SRFG)
VariableNameDataTypeSignalTypeVariableTypeNote
nIn_aIntegeranalogVAR_INPUTInput
nSet_aIntegeranalogVAR_INPUTStart value for the ramp generator. The ramp is
bLoad_bBoolbinaryVAR_INPUTTRUE = takes the value at nSet_a and outputs this at
nOut_aIntegeranalogVAR_OUTPUTThe signal is limited to ±100 %. (100 % = 16384)
nDeltaOut_aIntegeranalogVAR_OUTPUT Provides the acceleration of the ramp generator.
By using bLoad_b = TRUE loads the ramp generator with the signal at nSet_a.
This value is instantly accepted and output to nOut_a. No ramp−up or ramp−down through an
S−curve takes place.
As long as bLoad_b remains = TRUE, the ramp generator is disabled.
Acceleration and jerk
The maximum acceleration and the jerk can be adjusted separately.
n O u t _ a
n I n _ a
t
Fig. 2−31Line diagram
Acceleration
Jerk
Max. acceleration:
– By using dwTi you set the positive as well as the negative acceleration.
– The setting is calculated according to the formula:
1s @ 100%
Jerk:
– By using dwJerk you set up a jerk−free acceleration of the drive.
– The jerk is entered in [s] until the ramp generator operates with maximum acceleration (see
Fig. 2−31).
dwTi
D e l t a O u t _ a
t
Q
d w J e r k
R
d w T i
t
d w T i
t
2−28
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Digital signal processing
2.3.1Logical AND (L_AND)
2.3Digital signal processing
2.3.1Logical AND (L_AND)
This FB implements the logical AND combination of binary signals. These operations can be used
for the control of functions or the generation of status information.
The function corresponds to a series connection of normally−open contacts in a contactor control.
bIn1_b
bIn2_b
bIn3_b
&
L_AND
bOut_b
bIn1_b
bIn2_b
bIn3_b
Fig. 2−33AND function as a series connection of normally−open contacts
Note!
Use the inputs bIn1_b and bIn2_b if you only need two inputs. Fix input bIn3_b to TRUE.
L
LenzeDrive.lib EN 1.7
bOut_b
2−29
Function library LenzeDrive.lib
Digital signal processing
2.3.2Delay (L_DIGDEL)
2.3.2Delay (L_DIGDEL)
This FB delays binary signals.
Fig. 2−34Delay element (L_DIGDEL)
VariableNameDataTypeSignalTypeVariableTypeNote
bIn_bBoolbinaryVAR_INPUT
bOut_bBoolbinaryVAR_OUTPUT
byFunctionByteVAR CONSTANT RETAIN Selection of the function
wDelayTimeWordVAR CONSTANT RETAINDelay time
Parameter codes of the instances
VariableNameL_DIGDEL1L_DIGDEL2SettingRangeLenze
byFunction
wDelayTimeC0721C07260.001 ... 60.000 s1.000
C0720
L_DIGDEL
byFunction
wDelayTime
bIn_b
0t
C07250
bOut_b
0 ... 2
2
Range of functions
On−delay
Dropout delay
General delay
2.3.2.1On−delay
byFunction = 0
Fig. 2−35On−delay
The FB L_DIGDEL operates like a retriggerable monostable circuit.
bIn_b
bOut_b
wDelayTime
wDelayTime
t
t
2−30
Functional sequence
1. A FALSE−TRUE transition at nIn_b starts the timer element.
2. If the delay time has elapsed, that is set by wDelayTim has elapsed, bOut_b switches
immediately = TRUE.
3. A TRUE−FALSE edge at nIn_b resets the timer element, and switches bOut_b = FALSE,
immediately.
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Digital signal processing
2.3.2Delay (L_DIGDEL)
2.3.2.2Dropout delay
byFunction = 1
bIn_b
Fig. 2−36Dropout delay
Functional sequence
1. A FALSE−TRUE transition at nIn_b switches bOut_b = TRUE and resets the timer element.
2. A TRUE−FALSE edge at nIn_b starts the timer element.
3. If the delay time has elapsed, that is set by wDelayTime has elapsed, bOut_b = FALSE,
immediately.
2.3.2.3General delay
byFunction = 2
bOut_b
bIn_b
wDelayTime
wDelay
Time
wDelayTime
t
t
t
Fig. 2−37General delay
Functional sequence
1. Any edge/transition at nIn_b resets the timer element, and starts it.
2. After the delay time, that is set by wDelayTime has elapsed, bOut_b = nIn_b.
L
bOut_b
LenzeDrive.lib EN 1.7
t
t
2−31
Function library LenzeDrive.lib
Digital signal processing
2.3.3Up/down counter (L_FCNT)
2.3.3Up/down counter (L_FCNT)
This FB is a digital up/down counter, that is limited to the value nCmpVal_a.
Fig. 2−38Up/down counter (L_FCNT)
VariableNameDataTypeSignalTypeVariableTypeNote
bClkUp_bBoolbinaryVAR_INPUTFALSE−TRUE edge = counts up by 1.
bClkDwn_bBoolbinaryVAR_INPUTFALSE−TRUE edge = counts down by 1.
nLdVal_aIntegeranalogVAR_INPUTStart value
bLoad_bBoolbinaryVAR_INPUT TRUE = accept start value
nCmpVal_aIntegeranalogVAR_INPUTComparison value
nOut_aIntegeranalogVAR_OUTPUTThe count value is limited to ±32767.
bEqual_bBoolbinaryVAR_OUTPUTTRUE = comparison value reached.
byFunctionByteVAR CONSTANT RETAIN Selection of the function
Parameter codes of the instances
VariableNameL_FCNT1SettingRangeLenze
byFunctionC11001 ... 21
Function
bClkUp_b
bClkDown_b
nLdVal_a
bLoad_b
nCmpVal_a
byFunction
CTRL
L_FCNT
nOut_a
bEqual_b
The input has the highest priority.
Selection of the
Function
byFunction = 1 If the count value nCmpVal_a , the output bEqual_b is set to TRUE. At the next clock cyle, the
byFunction = 2 If the count value = nCmpVal_a , the counter stops( bClkUp_b / bClkDwn_b are ignored).
Description
counter is reset to the value nLdVal_a and the output bEqual_b is set to FALSE.
bLoad_b = TRUE sets the counter to the value at nLdVal_a and responds to bClkUp_b / bClkDwn_b
again.
2−32
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Digital signal processing
2.3.4Flip−flop (L_FLIP)
2.3.4Flip−flop (L_FLIP)
This FB is implemented as a D flip−flop. You can use this function to evaluate and store digital signal
transitions (edges).
Fig. 2−39Flipflop (L_FLIP)
VariableNameDataTypeSignalTypeVariableTypeNote
bD_bBoolbinaryVAR_INPUT
bClk_bBoolbinaryVAR_INPUTEvaluates FALSE−TRUE edges only
bClr_bBoolbinaryVAR_INPUTEvaluates the input level only; input has highest
bOut_bBoolbinaryVAR_OUTPUT
Functional sequence
bD_b
bClk_b
bOut_b
bD_b
bClk_b
bClr_b
D
CLR
Q
L_FLIP
bOut_b
(edge−triggered).
priority (reset input).
t
t
Fig. 2−40Sequence of a flip−flop
bClr_b always has priority.
1. If bClr_b = TRUE, then bOut_b switches = FALSE. This state is held as long as bClr_b = TRUE.
2. A FALSE−TRUE edge at bClk_b switches bD_b = bOut_b. This state is stored until
– another FALSE−TRUE edge occurs at bClk_b or
– bClr_b switches = TRUE.
t
L
LenzeDrive.lib EN 1.7
2−33
Function library LenzeDrive.lib
Digital signal processing
2.3.5Logical NOT (L_NOT)
2.3.5Logical NOT (L_NOT)
This FB enables the logical inversion of digital signals. You can use this FB for the control of functions
or the generation of status information.
The function corresponds to a change from a normally−open contact to a normally−closed contact
in a control with contactors.
bIn_b
bIn_bbOut_b
01
10
bIn_b
L_NOT
bOut_b
1
bOut_b
Fig. 2−42Function of L_NOT as a change from a normally−open to a normally−closed contact
2−34
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Digital signal processing
2.3.6Logical OR (L_OR)
2.3.6Logical OR (L_OR)
This FB enables the logical OR combination of digital signals. You can use this combination for the
control of functions or the generation of status information.
The function corresponds to a parallel connection of normally−open contacts in a contactor control.
bIn1_b
bIn2_b
bIn3_b
L_OR
bOut_b
>1
bIn1_b
Fig. 2−44Function of L_OR as a parallel connection of normally−open contacts
bIn2_b
bIn3_b
Note!
If you only need 2 inputs, use the inputs bIn1_b and bIn2_b. Fix the input bIn3_b to FALSE.
L
LenzeDrive.lib EN 1.7
bOut_b
2−35
Function library LenzeDrive.lib
Digital signal processing
2.3.7Edge evaluation (L_TRANS)
2.3.7Edge evaluation (L_TRANS)
This FB is a post−triggered edge detector. You can use this function to detect digital signal transitions
(edges) and turn them into defined pulses.
Fig. 2−45Edge evaluation (L_TRANS)
VariableNameDataTypeSignalTypeVariableTypeNote
bIn_bBoolbinaryVAR_INPUT
bOut_bBoolbinaryVAR_OUTPUT(retriggerable)
byFunctionByte−VAR CONSTANT RETAIN Selection of the function
wPulseTimeWord−VAR CONSTANT RETAIN Pulse duration of the output signal
1. If a TRUE−FALSE or a FALS−TRUE transition occurs at nIn_b, then bOut_b switches = TRUE.
2. After the time defined as wPulseTime has elapsed, then bOut_b switches = FALSE, provided
no further FALSE−TRUE transition has occurred at nIn_b.
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Digital signal processing
2.3.7Edge evaluation (L_TRANS)
2.3.7.2Evaluate falling edges
byFunction = 1
bIn−b
wPulseTimewPulseTime
bOut_b
Fig. 2−47Evaluation of TRUE−FALSE transitions
Functional sequence
1. If a TRUE−FALSE or a FALSE−TRUE transition occurs at nIn_b, then bOut_b switches = TRUE.
2. After the time defined as wPulseTime has elapsed, then bOut_b switches = FALSE, provided
no further TRUE−FALSE transition has occurred at nIn_b.
2.3.7.3Evaluate rising and falling edges
byFunction = 2
bIn_b
wPulsTimewPulsTime
bOut_b
t
t
t
Fig. 2−48Evaluation of both transitions
Functional sequence
1. If a TRUE−FALSE or a FALS−TRUE transition occurs at nIn_b, then bOut_b switches = TRUE.
2. After the time defined as wPulseTime has elapsed, then bOut_b switches = FALSE, provided
no further TRUE−FALSE or FALSE−TRUE transition has occurred at nIn_b.
t
L
LenzeDrive.lib EN 1.7
2−37
Function library LenzeDrive.lib
Processing of phase−angle signals
2.4.1Arithmetic (L_ARITPH)
2.4Processing of phase−angle signals
2.4.1Arithmetic (L_ARITPH)
This FB calculates a phase output signal from two phase input signals.
Fig. 2−49Arithmetic (L_ARITPH)
VariableNameDataTypeSignalTypeVariableTypeNote
dnIn1_pDouble IntegerpositionVAR_INPUT
dnIn2_pDouble IntegerpositionVAR_INPUT
dnOut_pDouble IntegerpositionVAR_OUTPUTThe signal is limited to ±230.
byFunctionByteVAR CONSTANT RETAIN Selection of the function
Parameter codes of the instances
VariableNameL_ARITPH1SettingRangeLenze
byFunctionC10100 ... 3, 14, 21, 221
Function
Selection of the functionArithmetic functionLimiting of the
Please note, that an overflow may occur, and then the numerical value of dnOut_p does not
match the result.
byFunction = 14:
If the denominator = 0, then dnOut_p = 230 The sign depends on the sign of dnIn1_p.
d n I n 1 _ p
d n I n 2 _ p
b y F u n c t i o n
x
y
L _ A R I T P H
3 0
± 2
+
*
-
/
d n O u t _ p
result
30
30
30
30
2
30
Note
(remainder not considered)
(remainder not considered)
2−38
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Processing of phase−angle signals
2.4.2Addition (L_PHADD)
2.4.2Addition (L_PHADD)
This FB adds or subtracts phase signals, depending on the input that is used.
3 1
L _ P H A D D
Fig. 2−50Addition (L_PHADD)
VariableNameDataTypeSignalTypeVariableTypeNote
dnIn1_pDouble−integerpositionVAR_INPUTAddition input
dnIn2_pDouble−integerpositionVAR_INPUTAddition input
dnIn3_pDouble−integerpositionVAR_INPUTSubtraction input
dnOut_pDouble−integerpositionVAR_OUTPUTThe signal is limited to ±2147483647
dnOut2_pDouble−integerpositionVAR_OUTPUTSignal without limiting / with overflow
Functional sequence
d n I n 1 _ p
d n I n 2 _ p
d n I n 3 _ p
+
-
+
± 2 - 1
d n O u t _ p
d n O u t 2 _ p
1. The signal at dnIn1_p is added to the signal at dnIn2_p
2. The signal at dnIn3_p is subtracted from the calculated result.
3. The result of the subtraction is then limited to ±2147483647 and output to dnOut_p and output
as unlimited to dnOut2_p.
Please observe, that at dnOut2_p there may be an overflow, thus producing a false value.
L
LenzeDrive.lib EN 1.7
2−39
Function library LenzeDrive.lib
Processing of phase−angle signals
2.4.3Comparison (L_PHCMP)
2.4.3Comparison (L_PHCMP)
This FB compares two phase signals (paths) with each other.
Fig. 2−51Comparison (L_PHCMP)
VariableNameDataTypeSignalTypeVariableTypeNote
dnIn1_pDouble−integerpositionVAR_INPUTSignal to be compared
dnIn2_pDouble−integerpositionVAR_INPUTComparison value
bOut_bBoolbinaryVAR_OUTPUT
byFunctionByteVAR CONSTANT RETAINSelection of the function
SelectionComparison functionIf the comparison condition is fulfilledNote
byFunction = 1
byFunction = 2
dnIn1_p < dnIn2_pbOut_b = HIGH
dnIn1_p dnIn2_pbOut_b = LOW
dnIn1_p<dnIn2_p bOut_b = HIGH
dnIn1_pdnIn2_p bOut_b = LOW
dnIn1_p
dnIn2_p
byFunction
L_PHCMP
bOut_b
Compares the absolute value
of the inputs.
2−40
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Processing of phase−angle signals
2.4.4Difference (L_PHDIFF)
2.4.4Difference (L_PHDIFF)
This FB adds a phase−angle signal to the phase setpoint. A setpoint/actual value comparison is also
possible.
L _ P H D I F F
d n O u t _ p
+
-
Fig. 2−52Difference (L_PHDIFF)
d n S e t _ p
d n A d d _ p
b E n _ b
n I n _ v
b R e s e t _ b
I n t e r v a l T i m e
T A S K
VariableName
dnSet_pDouble−integerpositionVAR_INPUTProvision of a position setpoint
dnAdd_pDouble−integerpositionVAR_INPUTAdaptive position value for an actual position
bEn_bBoolbinaryVAR_INPUTTRUE = Adaptive position value is added on.
nIn_vIntegervelocityVAR_INPUTProvision of the actual speed for conversion/calculation
bReset_bBoolbinaryVAR_INPUTTRUE = Actual phase−angle integrator is set to 0.
dnOut_pDouble−integerpositionVAR_OUTPUTSignal is not limited.
DataTypeSignalTypeVariableTypeNote
of the position value
Functional sequence
If bEn_b = TRUE :
1. The speed (rpm) signal at nIn_v is integrated by the phase−angle integrator.
2. The phase−angle signal at dnAdd_p is added to the integrated speed signal in each task cycle.
3. The result of the phase−angle integrator is subtracted from the phase−angle signal at dnSet_p
and then output at dnOut_p.
If bEn_b = FALSE
1. The speed (rpm) signal at nIn_v is integrated by the phase−angle integrator.
2. The result of the phase−angle integrator is subtracted from the phase−angle signal at dnSet_p
and then output at dnOut_p.
Note!
The phase−angle integrator derives a position from a speed.
In nIn_v the speed can be defined (16384 15000 rpm ).
(INT)65536 corresponds to one encoder turn.
L
LenzeDrive.lib EN 1.7
2−41
Function library LenzeDrive.lib
Processing of phase−angle signals
2.4.5Division (L_PHDIV)
2.4.5Division (L_PHDIV)
This FB divides or multiplies phase−angle signals in binary−exponent format.
Fig. 2−53Division (L_PHDIV)
VariableNameDataTypeSignalTypeVariableTypeNote
dnIn_pDouble integerpositionVAR_INPUT
dnOut_pDouble integerpositionVAR_OUTPUT65536 inc = 1 encoder revlution
byDivisionShort IntegerVAR CONSTANT RETAINExponent of the divisor
Parameter codes of the instances
VariableNameL_PHDIV1SettingRangeLenze
byDivisionC0995−31 ... 310
Function
d n I n _ p
2
1
b y D iv i s i o n
± 2
R e v o lu ti o n
3 1
L _ P H D I V
d n O u t _ p
You can calculate the result of the arithmetical function according to the formula:
dnOut_p +
dnIn_p
byDivision
2
Positive values in byDivision result in a division.
Negative values in byDivision result in a multiplication.
The output signal is limited to ±2
– The output signal cannot exceed this limit value.
31
−1 encoder turns.
2−42
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
t
Processing of phase−angle signals
2.4.6Integration (L_PHINT)
2.4.6Integration (L_PHINT)
This FB can integrate a speed or a velocity to a phase−angle (path/distance). The integrator can
accept max. ±32000 encoder revolutions.
L _ P H I N T
± 3 2 0 0 0
R e v o lu ti o n
d n O u t _ p
b F a i l _ b
bFail_b = FALSE .
Fig. 2−54Integration (L_PHINT)
VariableNameDataTypeSignalTypeVariableTypeNote
nIn_vIntegervelocityVAR_INPUTActual speed value: 16384 15000 rpm
bReset_bBoolbinaryVAR_INPUTTRUE sets the phase−angle integrator = 0 and
(t = integration time, 16384 15000 rpm, 1 inc. = 1)
Example:
You want to determine the count of the integrator with a certain speed at the input and a certain
integration time t.
Given values:
– nIn_v = 1000 rpm (INT)1092
– t = 10 s
– Start value of the integrator is 0.
Solution:
– Conversion of the input signal nIn_v:
1000rpm +
– Calculation of the output signal
dnOut_p +
1000rev.
60s
1000rev.
60s
@ 10s @
65536inc
rev.
+ 10922666inc
2−44
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Processing of phase−angle signals
2.4.7Integration (L_PHINTK)
2.4.7Integration (L_PHINTK)
This FB can integrate a speed or a velocity to a phase−angle (path/distance). It can also recognize
a relative distance. The integrator can accept max. ±32000 encoder revolutions.
b y M o d e
d n C m p
L _ P H I N T K
d n O u t _ p
b S t a t u s _ b
nIn_v and bStatus_b = FALSE .
Fig. 2−56Integration (L_PHINTK)
VariableNameDataTypeSignalTypeVariableTypeNote
nIn_vIntegervelocityVAR_INPUTActual speed value: 16384 15000 rpm
bLoad_bBoolbinaryVAR_INPUT= TRUE sets the phase−angle integrator to the signal at
dnSet_pDouble−integerpositionVAR_INPUT
dnOut_pDouble−integerpositionVAR_OUTPUT65536 inc = 1 encoder revolution (Overflow is possible.)
bStatus_bBoolbinaryVAR_OUTPUTTRUE = Overflow occurred or distance processed.
byModeByteVAR CONSTANT RETAINSelection of the function
dnCmpDouble−integerVAR CONSTANT RETAINComparison value
Constant input value
Input value with change of sign
Calculation of the output signal
L
LenzeDrive.lib EN 1.7
2−45
Function library LenzeDrive.lib
t
Processing of phase−angle signals
2.4.7Integration (L_PHINTK)
2.4.7.1Constant input value
3 functions are available, that you can select with byMode.
byMode = 0
The input bLoad_b is level−triggered (TRUE−level).
bLoad_b = TRUE
– The integrator is loaded with the value at dnSet_p.
– The FB switches bStatus_b = FALSE.
byMode = 1
The input bLoad_b is edge−triggered (FALSE−TRUE transition).
bLoad_b = FALSE−TRUE edge/transition
– The integrator is loaded with the value at dnSet_p and immediately integrated from then on.
– The FB switches bStatus_b= FALSE.
dnOut_p
+32767 revolutions
Fig. 2−57Function of L_PHINTK with constant input value
(+) Variable with positive value
(−) Variable with negative value
A positive value at nIn_v is incremented
(the counter value is increased at every call of the function).
A negative value at nIn_v is decremented
(the counter value is decreased at every call of the function).
dnOut_p produces the count value of the bipolar integrator.
If the count exceeds the value of +32767 encoder revolutions (corresponds to
+2147483647 inc):
– There is an overflow, and counting continues at the value −32768 encoder turns.
– Switches bStatus_b = TRUE, when a positive preset value is reached at dnCmp.
If the count falls below the value of −32768 encoder revolutions (corresponds to
−2147483648 inc):
– There is an overflow, and counting continues at the value +32767 encoder turns.
– Switches bStatus_b = TRUE, when a negative preset value is reached at dnCmp.
(+) dnCmp
t
(-) dnCmp
-32767 revolutions
bStatus_b
2−46
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Processing of phase−angle signals
2.4.7Integration (L_PHINTK)
2.4.7.2Input value with change of sign
byMode = 2
The input bLoad_b is level−triggered (TRUE−level).
bLoad_b = TRUE
– The integrator is loaded with the value at dnSet_p.
– The FB switches bStatus_b = FALSE.
dnOut_p
(+) dnCmp
t
(-) dnCmp
bStatus_b
Fig. 2−58Function of L_PHINTK with change of sign for the input value
(+) Variable with positive value
(−) Variable with negative value
Change of sign for the value at nIn_v
A positive value at nIn_v is incremented (the counter value is increased at every call of the
function).
A negative value at nIn_v is decremented (the counter value is decreased at every call of the
function).
dnOut_p produces the count value of the bipolar integrator.
If the count value exceeds a preset positive value at dnCmp:
– The count value is reduced by the value of dnCmp.
– Switches bStatus_b = TRUE for the time of one cycle.
If the count value goes below a preset negative value in dnCmp:
– The count value is increased by the value of dnCmp.
– Switches bStatus_b = TRUE for the time of one cycle.
t
L
LenzeDrive.lib EN 1.7
2−47
Function library LenzeDrive.lib
Processing of phase−angle signals
2.4.7Integration (L_PHINTK)
2.4.7.3Calculation of the output signal
The output value at dnOut_p can be derived from the formula:
You want to determine the count of the integrator with a certain speed at the input and a certain
integration time t.
Given values:
– nIn_v = 1000 rpm (INT)1092
– t = 10 s
– Start value of the integrator is 0.
Solution:
– Conversion of the input signal at nIn_v:
1000rpm +
– Calculation of the output signal
dnOut_p +
1000rev.
60s
1000rev.
60s
@ 10s @
65536inc
rev.
+ 10922666inc
2−48
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Signal conversion
2.5.1Normalization (L_CONV)
2.5Signal conversion
2.5.1Normalization (L_CONV)
This FB normalizes signals. The calculation is made quite precisely, with remainder processing and
definition of the conversion factor as a numerator and denominator.
Fig. 2−59Normalization (L_CONV)
VariableNameDataTypeSignalTypeVariableTypeNote
nIn_aIntegeranalogVAR_INPUT100 % 16384 C0011 (n
nOut_aIntegeranalogVAR_OUTPUTThe signal it limited to ±199.99 % (100 % 16384).
nNumeratorIntegerVAR CONSTANT RETAINNumerator
nDenominatorIntegerVAR CONSTANT RETAIN Denominator
The multiplication or division of signals is made according to the formula:
nOut + nIn @
nNumerator
nDenominator
n I n _ a
n N u m e r a t o r
n D e n o m i n a t o r
L _ C O N V
n O u t _ a
max
)
L
LenzeDrive.lib EN 1.7
2−49
Function library LenzeDrive.lib
Signal conversion
2.5.2Conversion of phase−angle to analog (L_CONVPA)
2.5.2Conversion of phase−angle to analog (L_CONVPA)
This FB converts a phase−angle signal into an integer signal.
This function corresponds to the function of the FB CONVPHA in the 9300 servo inverter.
L _ C O N V P A
d n I n _ p
Fig. 2−60Conversion of phase−angle to analog (L_CONVPA)
VariableNameDataTypeSignalTypeVariableTypeNote
dnIn_pDouble IntegerpositionVAR_INPUT
nOutIntegeranalogVAR_OUTPUT The signal is limited to ±32767.
byDivisionByteVAR CONSTANT RETAIN Division factor
Parameter codes of the instances
VariableNameL_CONVPA1SettingRangeLenze
byDivisionC10000 ... 311
2
1
b y D iv i s i o n
± 3 2 7 6 7
n O u t
Remainder handling
Function
The conversion is made according to the formula:
nOut_a + dnIn_p @
byDivision
2
1
Note!
This FB operates with remainder handling.
2−50
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Signal conversion
2.5.3Conversion of a phase−angle signal (L_CONVPP)
2.5.3Conversion of a phase−angle signal (L_CONVPP)
This FB converts a phase signal with a dynamic fraction.
This function corresponds to the function of the FB CONVPHPH in the 9300 servo inverter.
nNum_a
dnIn_p
bAct_b
nDen_a
Fig. 2−61Conversion of a phase−angle signal (L_CONVPP)
VariableNameDataTypeSignalTypeVariableTypeNote
nNum_aIntegeranalogVAR_INPUTNumerator
dnIn_pDouble IntegerpositionVAR_INPUT
bAct_bBoolbinaryVAR_INPUT
nDen_aIntegeranalogVAR_INPUTDenominator (with absolute value generation)
dnOut_pDouble IntegerpositionVAR_OUTPUT The signal is not limited.
Function
STOP!
The conversion result is not limited. The result must therefore not exceed the range of ±2147483647.
The conversion is made according to the formula:
With bAct_b = TRUE
L_CONVPP
x
y
1
dnOut_p
Remainder handling
dnOut_p + dnIn_p @
nNum_a
nDen_a
With bAct_b = FALSE
dnOut_p + Remainder @
nNum_a
nDen_a
Tip!
This FB operates with remainder handling.
The denominator can only be 1.
(INT)65536 corresponds to one encoder turn (one encoder turn corresponds to
65536 increments).
L
LenzeDrive.lib EN 1.7
2−51
Function library LenzeDrive.lib
Signal conversion
2.5.4Conversion (L_CONVVV)
2.5.4Conversion (L_CONVVV)
This FB converts a phase signal with a dynamic fraction.
This function corresponds to the function of the FB CONVPP in the 9300 servo inverter.
Fig. 2−62Conversion (L_CONVVV)
VariableNameDataTypeSignalTypeVariableTypeNote
dnNum_pDouble IntegerpositionVAR_INPUTNumerator
nIn_vIntegeranalog/velocityVAR_INPUT
dnDen_pDouble IntegerpositionVAR_INPUTDenominator (with absolute value generation)
nOut_vIntegeranalog/velocityVAR_OUTPUT The signal is not limited.
Function
Stop!
The conversion result is not limited. The result must therefore not exceed the range of ±32767.
The conversion is made according to the formula:
nOut_v + nIn_v @
dnNum_p
dnDen_p
d n N u m _ p
n I n _ v
d n D e n _ p
x
y
1
L _ C O N V V V
n O u t _ v
Remainder handling
Note!
This FB operates with remainder handling.
The denominator can only be 1.
16384 15000 rpm.
2−52
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Signal conversion
2.5.5Normalization with limiting (L_CONVX)
2.5.5Normalization with limiting (L_CONVX)
This FB normalizes signals. The calculation is made with high−precision and remainder handling,
using the conversion factor for numerator and denominator.
The multiplication or division of signals is made according to the formula:
nOut + nIn @
dnNum
dnDenom
|
@ sgn |bInvers
|
|
Division by zero is prevented: if nDenom = 0 the the value of nDenom is set to 1.
The input value is calculated for nDenominator.
bInvers_b = TRUE means that the sign is reversed for the output variable nOut.
The calculation is made using remainder handling.
L
LenzeDrive.lib EN 1.7
2−53
Function library LenzeDrive.lib
Communication
2.6.1Type conversion (L_ByteArrayToDint)
2.6Communication
2.6.1Type conversion (L_ByteArrayToDint)
This FB converts a 4−byte array into a variable of type DINT.
This function checks the value range 1 ... 8000 of a code index and transmits the index to, e. g. the
FB L_ParWrite via the wIndex input. If the code numbers are invalid, the function transmits the
0000 index.
2−54
VariableNameDataTypeSignalTypeVariableTypeNote
wCodenumberWordVAR_INPUT
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Communication
2.6.4Read codes (L_ParRead)
2.6.4Read codes (L_ParRead)
This FB is used to read parameters, with Lenze so−called codes. The FB can read both the PLC codes
and codes of other devices via the system bus (CAN).
bExecuteBoolVAR_INPUTFALSE/TRUE transition activates a read request.
wIndexWordVAR_INPUT0 ... 65535Code index
bySubIndexByteVAR_INPUT0 ... 255Subindex (subcode number) of the code
byFractionByteVAR_INPUT0 ... 254Number of decimal places of the code to be read
byComChannelByteVAR_INPUT0
wTargetAddressWordVAR_INPUTSelecting the parameter data channel of the target device
bDoneBoolVAR_OUTPUTTRUEOrder has been processed (observe bFail).
bBusyBoolVAR_OUTPUTTRUEOrder is being processed.
bFailBoolVAR_OUTPUTTRUEError occurred.
wFailNumberWordVAR_OUTPUT0OK − read request was executed without error.
abyDataByte [0 ... 3]VAR_OUTPUTThe four data bytes with the read code value.
1 ... 65335Time−out time in ms is the time for processing the order.
255Code without decimal places
Constant:
10
Constant:
1 ... 64Data transfer via SDO1 of the target device:
65 ... 127Data transfer via SDO2 of the target device:
1Error during data transfer via system bus (CAN).
2External device did not respond within the set time−out time.
4Subindex does not exist.
5Index does not exist.
13Parameter value to be read is not within the valid range.
117Invalid communication channel (byComChannel).
118There are not enough free CAN objects available.
119The Send Order memory is full.
bDone
bBusy
bFail
wFailNumber
abyData
Initialized with 1000 ms.
This variable can be parameterized by means of a user
code.
Conversion formula: Index = 24575 − code number
(e.g. hexadecimal code).
Reading a PLC code.
C_PLC
Reading a code from a device connected via the system bus
(CAN).
C_SYSTEMBUS_CAN
(only with byComChannel = 10)
wTargetAddress = CAN device address of the target device
wTargetAddress = CAN device address of the target device +
64
L
LenzeDrive.lib EN 1.7
2−55
Function library LenzeDrive.lib
Communication
2.6.4Read codes (L_ParRead)
Note!
The FB L_ParRead must be cyclically called to ensure that the read response is received. Due to the
cycle time of the receiver, it may happen that the PLC receives the read response only after a few
program cycles.
If the FB is not cyclically called (e.g. in an event−controlled task) the FB might "get stuck" as a result.
Selection of the transmission channel
The transmission channel is selected under code C2118:
CodeLCD
C211800 PDO channel (CAN1_IO ... CAN3_IO)Data is transferred via a free PDO
Possible settings
Lenze Selection
1 SDO2 channelData is transferred via the SDO2
Info
channel of the PLC.
For the selection you need:
A free CAN transmitter
(CAN1_OUT ... CAN3_OUT) to
transmit the read request.
A free CAN receiver (CAN1_IN ...
CAN3_IN) to receive the read
response from the other device.
channel of the PLC.
Selection of the bus participant and the parameter data channel for the bus participant
The bus participant whose codes are to be accessed is selected under wTargetAddress. The
parameter data channel (SOD1 or SDO2) to be used for the bus participant is also selected under
wTargetAddress:
For data transfer via parameter data channel SDO1 enter the corresponding CAN device
address (1 ... 64) of the bus participant under wTargetAddress.
For data transfer via parameter data channel SDO2 enter the corresponding CAN device
address (1 ... 64) of the bus participant incremented by 64, i.e. a value between 65 and 127
under wTargetAddress.
2−56
PLC
L
wTargetAddress = 2
wTargetAddress = 2 + 64=66
Node-ID1
Target device
L
SDO1
SDO2
Node-ID2
Note!
Please ensure that the bus participant is not at the same time accessed by other bus participants
via the same parameter data channel since the system bus changes to the state "bus off" if a
"collision" occurs.
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Communication
2.6.4Read codes (L_ParRead)
Tip!
General information about the CAN objects and the system bus (CAN) can be found in the Manual
"System bus (CAN) for PLC devices".
Example
Read value of code C0011 of the device with CAN device address 2:
Tip!
For converting the code number into the value required for wIndex you can use the function
L_FUNCodeIndexConv (see example).
If you want to process the read value in DINT format you can use the FB L_DintToByteArray to
convert the 4−byte array abyData into a DINT value (see example).
L
LenzeDrive.lib EN 1.7
2−57
Function library LenzeDrive.lib
Communication
2.6.4Read codes (L_ParRead)
Parameter values with decimal places
Tip!
The parameters of the Lenze controllers are stored in different formats.
Detailed information about this can be found in the "Table of attributes" in the corresponding drive
controller Manual.
If the code to be read uses a data format with decimal places the number of decimal places has to
be communicated to the function block L_ParRead via the input byFraction.
The following formats apply:
byFraction (number of decimal places)Value output by FB L_ParReadRead code value
011
1101.0
21001.00
310001.000
4100001.0000
Example:
Reading a code with the value "43" in fixed32 data format.
Fixed32 is a fixed−point format with 4 decimal places. For data transfer the value therefore has
to be multiplied by 10000:
Data
+ 43 @ 10000 + 430000 + 00 06 8F B0
1...4
hex
Select the value "4" at the input byFraction.
The FB L_ParRead outputs the value "430000".
Tip!
If the code does not use the fixed−point format the value "255" has to be selected at the input
byFraction.
Detailed information about reading and writing parameters via the system bus (CAN) can be found
in the Manual "System bus (CAN) for PLC devices".
2−58
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Communication
2.6.5Write codes (L_ParWrite)
2.6.5Write codes (L_ParWrite)
This FB is used to write parameters, with Lenze so−called codes. The FB can write both the PLC
codes and codes of other devices via the system bus (CAN).
bExecuteBoolVAR_INPUTFALSE/TRUE transition activates a write request.
wIndexWordVAR_INPUT0 ... 65535Code index
bySubIndexByteVAR_INPUT0 ... 255Subindex (subcode number) of the code
abyDataByte [0 ... 3]VAR_INPUTThe four data bytes with the code value to be written.
byFractionByteVAR_INPUT0 ... 254Number of decimal places of the code to be written.
byComChannelByteVAR_INPUT0
wTargetAddressWordVAR_INPUTSelecting the parameter data channel of the target device
bDoneBoolVAR_OUTPUTTRUEOrder has been processed (observe bFail ).
bBusyBoolVAR_OUTPUTTRUEOrder is being processed.
bFailBoolVAR_OUTPUTTRUEError occurred.
1 ... 65335Time−out time in ms is the time for processing the order.
255Code without decimal places
Constant:
10
Constant:
1 ... 64Data transfer via SDO1 of the target device:
65 ... 127Data transfer via SDO2 of the target device:
bDone
bBusy
bFail
wFailNumber
Initialized with 1000 ms.
This variable can be parameterized by means of a user
code.
Conversion formula: Index = 24575 − code number
(e.g. hexadecimal code).
Writing a PLC code.
C_PLC
Writing a code in a device connected via the system bus (CAN).
C_SYSTEMBUS_CAN
(only with byComChannel = 10)
wTargetAddress = CAN device address of the target device
wTargetAddress = CAN device address of the target device +
64
L
LenzeDrive.lib EN 1.7
2−59
Function library LenzeDrive.lib
Communication
2.6.5Write codes (L_ParWrite)
VariableNameNoteVariableTypeDataType
wFailNumberWordVAR_OUTPUT0OK − write request was executed without error.
Note!
The FB L_ParWrite must be cyclically called to ensure that the write response is received. Due to
the cycle time of the receiver, it may happen that the PLC receives the write response only after a
few program cycles.
If the FB is not cyclically called (e.g. in an event−controlled task) the FB might "get stuck" as a result.
1Error during data transfer via system bus (CAN).
2External device did not respond within the set time−out time.
4Subindex does not exist.
5Index does not exist.
7The controller inhibit required for writing the code has not been
set in the target device.
13Parameter value to be written is not within the valid range.
117Invalid communication channel (byComChannel)
118There are not enough free CAN objects available.
119The Send Order memory is full.
Selection of the transmission channel
The transmission channel is selected under code C2118:
CodeLCD
C211800 PDO channel (CAN1_IO ... CAN3_IO)Data is transferred via a free PDO
Possible settings
Lenze Selection
1 SDO2 channelData is transferred via the SDO2
Info
channel of the PLC.
For the selection you need:
A free CAN transmitter
(CAN1_OUT ... CAN3_OUT) to
transmit the write request.
A free CAN receiver (CAN1_IN ...
CAN3_IN) to receive the write
response from the other device.
channel of the PLC.
2−60
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Communication
2.6.5Write codes (L_ParWrite)
Selection of the bus participant and the parameter data channel for the bus participant
The bus participant whose codes are to be accessed is selected under wTargetAddress. The
parameter data channel (SOD1 or SDO2) to be used for the bus participant is also selected under
wTargetAddress:
For data transfer via parameter data channel SDO1 enter the corresponding CAN device
address (1 ... 64) of the bus participant under wTargetAddress.
For data transfer via parameter data channel SDP2 enter the corresponding CAN device
address (1 ... 64) of the bus participant incremented by 64, i.e. a value between 65 and 127
under wTargetAddress.
PLC
L
wTargetAddress = 2
wTargetAddress = 2 + 64=66
Node-ID1
Target device
L
SDO1
SDO2
Node-ID2
Note!
Please ensure that the bus participant is not at the same time accessed by other bus participants
via the same parameter data channel since the system bus changes to the state "bus off" if a
"collision" occurs.
Tip!
General information about the CAN objects and the system bus (CAN) can be found in the Manual
"System bus (CAN) for PLC devices".
L
Example
Transfer the value of the analog input AIN1 (terminal 1/2 for 9300 Servo PLC) to code C0472/1 of the
controller using the CAN device address 2:
LenzeDrive.lib EN 1.7
2−61
Function library LenzeDrive.lib
Communication
2.6.5Write codes (L_ParWrite)
Tip!
For converting the code number into the value required for wIndex you can use the function
L_FUNCodeIndexConv (see example).
If you want to write the value to be written in DINT format you can use the FB L_DintToByteArray
to convert the DINT value into the 4−byte array required for abyData (see example).
Parameter values with decimal places
Tip!
The parameters of the Lenze controllers are stored in different formats.
Detailed information about this can be found in the "Table of attributes" in the corresponding drive
controller Manual.
If the code to be written uses a data format with decimal places the number of decimal places has
to be communicated to the function block L_ParWrite via the input byFraction.
The following formats apply:
byFraction (number of decimal places)Value assigned to FB L_ParWriteCode value to be written
011
1101.0
21001.00
310001.000
4100001.0000
Example:
Transmitting the value "20" for a code in fixed32 data format.
Fixed32 is a fixed−point format with 4 decimal places. For data transfer the value therefore has
to be multiplied by 10000:
Data
+ 20 @ 10000 + 200000 + 00 03 0D 40
1...4
hex
Select the value "4" at the input byFraction.
Enter the value "20,0000" under the code.
Tip!
If the code does not use the fixed−point format the value "255" has to be selected at the input
byFraction.
Detailed information about reading and writing parameters via the system bus (CAN) can be found
in the Manual "System bus (CAN) for PLC devices".
2−62
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Special functions
2.7.1Transparent mode with keypad 9371BB/9371BC (L_Display9371BB)
2.7Special functions
2.7.1Transparent mode with keypad 9371BB/9371BC (L_Display9371BB)
With the keypad 9371BB and 9371BC you can enter parameters (e.g. setpoints), display operating
data, and transfer parameter sets to other target systems via a keyboard.
This FB is used to switch the keypad to a "transparent" mode which makes it possible to access all
display elements and keys of keypad 9371BB/9371BC from the program.
Note!
Due to its internal structure, the FB must be called in a time−equidistant task (30 ... 50 ms).
Data will only be sent to the keypad if changes occur at the FB inputs.
L_Display9371BB
bTrnActivate
bFailOn
bMmaxOn
bImaxOn
bIMPOn
bRDYOn
bSHPRGSymbolOn
bEnterArrowSymbolOn
bMenuSymbolOn
b1SymbolOn
b2SymbolOn
bCodeSymbolOn
bParSymbolOn
bParaSymbolOn
bStopLEDOn
byLcdCursorPositionOn
bLcdDisplayOff
bLcdCursorOn
bLcdCharacterBlinkOn
bUpdateCharCodeMap
pString1
pString2
pString3
pString4
abyCharCode
abyCharMap
A
B
b
c
d
SHPRG
p
Menu
1
2
Code
Par
Para
S
z
y
Y
Z
T
V
S
U
bUpdateBaeBusy
bUpdateKeys
bKeyArrowUp
bKeyArrowDown
bKeyArrowLeft
bKeyArrowRight
dABbc
Menu
SHPRG
p
Code
Par12
Para
z
YZ
y
bTimeOutCTRL
bKeyShift
bKeyPrg
bKeyStop
bKeyRun
T
S
V
U
Fig. 2−64FB L_Display9371BB
VariableNameDataTypeSignalTypeVariableType Note
bTrnActivateBoolbinaryVAR_INPUTTRUE: Activates transparent mode.
bFailOnBoolbinaryVAR_INPUTTRUE: The display indicates A.
bMmaxOnBoolbinaryVAR_INPUTTRUE: The display indicates B.
bImaxOnBoolbinaryVAR_INPUTTRUE: The display indicates b.
bIMPOnBoolbinaryVAR_INPUTTRUE: The display indicates c.
bRDYOnBoolbinaryVAR_INPUTTRUE: The display indicates d.
bSHPRGSymbolOnBoolbinaryVAR_INPUTTRUE: The display indicates "SHPRG".
L
LenzeDrive.lib EN 1.7
2−63
Function library LenzeDrive.lib
Special functions
2.7.1Transparent mode with keypad 9371BB/9371BC (L_Display9371BB)
VariableNameNoteVariableTypeSignalTypeDataType
bEnterArrowSymbolOnBoolbinaryVAR_INPUTTRUE: The display indicates p.
bMenuSymbolOnBoolbinaryVAR_INPUTTRUE: The display indicates "Menu".
b1SymbolOnBoolbinaryVAR_INPUTTRUE: The display indicates "1".
b2SymbolOnBoolbinaryVAR_INPUTTRUE: The display indicates "2".
bCodeSymbolOnBoolbinaryVAR_INPUTTRUE: The display indicates "Code".
bParSymbolOnBoolbinaryVAR_INPUTTRUE: The display indicates "Par".
bParaSymbolOnBoolbinaryVAR_INPUTTRUE: The display indicates "Para".
bStopLEDOnBoolbinaryVAR_INPUTTRUE: The key S lights up.
byLcdCursor
PositionOn
bLcdDisplayOffBoolbinaryVAR_INPUTTRUE: Display is switched off.
bLcdCursorOnBoolbinaryVAR_INPUTTRUE: Cursor is activated.
bLcdCharacterBlinkOnBoolbinaryVAR_INPUTTRUE: The character at the cursor position is blinking.
bUpdateCharCodeMapBoolbinaryVAR_INPUTTRUE: The inputs abyCharCode and abyCharMap with the special
pString1String−VAR_IN_OUT String 1, length: 4 characters
pString2String−VAR_IN_OUT String 2, length: 2 characters
pString3String−VAR_IN_OUT String 3, length: 12 characters
pString4String−VAR_IN_OUT String 4, length: 13 characters
abyCharCodeArray of byte−VAR_IN_OUT ASCII code assigned to special characters 0 ... 6
abyCharMapArray of byte−VAR_IN_OUT Definition of special characters 0 ... 6
bTimeOutBoolbinaryVAR_OUTPUT TRUE: The keypad has been disconnected from the PLC and the
bUpdateBaeBusyBoolbinaryVAR_OUTPUT TRUE: The keypad display is updated, the inputs should not be
bUpdateKeysBoolbinaryVAR_OUTPUT TRUE: Keypad keys are pressed.
bKeyArrowUpBoolbinaryVAR_OUTPUT TRUE: Keypad key z is pressed.
bKeyArrowDownBoolbinaryVAR_OUTPUT TRUE: Keypad key y is pressed.
bKeyArrowLeftBoolbinaryVAR_OUTPUT TRUE: Keypad key Y is pressed.
bKeyArrowRightBoolbinaryVAR_OUTPUT TRUE: Keypad key Z is pressed.
bKeyShiftBoolbinaryVAR_OUTPUT TRUE: Keypad key T is pressed.
bKeyPrgBoolbinaryVAR_OUTPUT TRUE: Keypad key V is pressed.
bKeyStopBoolbinaryVAR_OUTPUT TRUE: Keypad key S is pressed.
bKeyRunBoolbinaryVAR_OUTPUT TRUE: Keypad key U is pressed.
BoolbinaryVAR_INPUTSelection of the cursor position (0 ... 30)
String 1: Position 0 ... 3
String 2: Position 4 ... 5
String 3: Position 6 ... 17
String 4: Position 18 ... 30
character definition are read again.
time−out time has expired.
changed.
2−64
Activation of transparent mode
The transparent mode is activated on the keypad by setting bTrnActivate to TRUE. All display
elements and keys of keypad 9371BB/9371BC can then be accessed via the FB.
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Special functions
2.7.1Transparent mode with keypad 9371BB/9371BC (L_Display9371BB)
Display of ASCII characters on the keypad
The keypad has four fields to display ASCII strings:
pString1
pString3
617
pString4
1830
0345
pString2
Under pString ... pString4 you can select the ASCII strings to be displayed.
Under byLcdCursorPositionOn you can select the cursor position (0 ... 30).
By setting bLcdCursorOn to TRUE you can display the cursor.
If bLcdCharacterBlinkOn is set to TRUE the character at the cursor position blinks.
L
LenzeDrive.lib EN 1.7
2−65
Function library LenzeDrive.lib
Special functions
2.7.1Transparent mode with keypad 9371BB/9371BC (L_Display9371BB)
Table of ASCII characters
The below table shows the ASCII characters which can be displayed on the keypad:
The FB L_FWM of function library LenzeDrive0201.lib has been revised and can be used for the
following Lenze PLCs:
9300 Servo PLC EVS93XX−xI − version 7.0
9300 Servo PLC EVS93XX−xT − version 7.0
Drive PLC EPL10200 − version 7.2
ECSxAxxx − version 7.0
If the FB L_FWM is used from older LenzeDrivel.lib versions, it should be replaced or only be used
after consultation with Lenze!
The FB L_FWM is used to transmit error messages to the PLC. In this way, a TRIP, FAIL−QSP,
message or warning can be triggered in the PLC while the PLC program is running.
The fault number that is transmitted is stored in the history buffer of the PLC (C0168/x).
Fig. 2−67Fault trigger (L_FWM)
VariableNameDataTypeSignalTypeVariableTypeNote
bExecuteBoolVAR_INPUTA High transition triggers a fault signal.
byTypeOfFaultByteVAR_INPUTTriggered by fault type
The fault number that is transmitted is stored in the history
buffer of the PLC (C0168/x) together with the offset for the
fault type.
2−68
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Special functions
2.7.2Fault trigger (L_FWM)
Fig. 2−68Configuration for triggering the various fault types
Note!
Each FB instance may only be called once! If you need the FB L_FWM several times, create the
corresponding number of FB instances.
If the program includes several instances of the FB L_FWM which are of the same fault type,
then only the first fault of this fault type that is detected will be recorded.
If several faults with a different response occur at the same time, only the fault whose
response has the highest priority will be recorded in the history buffer:
– TRIP (highest priority) message FAIL−QSP warning (lowest priority).
Only edit L_FWM() in a task.
If byTypeOfFault has an invalid value, then the value 0 (TRIP) is used for byTypeOfFault.
If the value of wFaultNumber < 400, then the value 400 is used for wFaultNumber, if
wFaultNumber > 999, then the value 999 is used for wFaultNumber.
If a fault occurs, it can be read out by using the system variable DCTRL_wFaultNumber.
L
LenzeDrive.lib EN 1.7
2−69
Function library LenzeDrive.lib
Special functions
2.7.3Motor potentiometer (L_MPOT)
2.7.3Motor potentiometer (L_MPOT)
This FB replaces a hardware motor potentiometer. It is used as an alternative setpoint source that
is operated via two inputs.
Fig. 2−69Motor potentiometer (L_MPOT)
VariableNameDataTypeSignalTypeVariableTypeNote
bUp_bBoolbinaryVAR_INPUTMotor potentiometer runs up to the upper limit.
bDown_bBoolbinaryVAR_INPUTMotor potentiometer runs down to the lower limit.
bInAct_bBoolbinaryVAR_INPUTActivates a function.
nOut_aIntegeranalogVAR_OUTPUTSetpoint output
dnActRetainDouble integerVAR_IN_OUTStores the current setpoint.
nHighLimitIntegerVAR CONSTANT RETAIN Upper limit (16384 100% C0011)
nLowLimitIntegerVAR CONSTANT RETAINLower limit (16384 100% C0011)
wTirUnsigned
Integer
wTifUnsigned
Integer
byFunctionByteVAR CONSTANT RETAIN Deactivation function
byInitFunctionByteVAR CONSTANT RETAIN Initialization function
VAR CONSTANT RETAIN Acceleration time Tir (10 1 s)
VAR CONSTANT RETAIN Deceleration time Tif (10 1 s)
CTRL
nHighLimit
wTir
wTif
nLowLimit
L_MPOT
nOut_a
dnActRetain
2−70
Range of functions
Operation of the motor potentiometer
Initialization of the motor potentiometer
Store the current output value after supply interruption.
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Special functions
2.7.3Motor potentiometer (L_MPOT)
2.7.3.1Operation of the motor potentiometer
nOut_a
nUp_b
nDown_b
Fig. 2−70Control signals for the motor potentiometer
bUp_b = TRUE:
– The signal at nOut_a runs up to its upper limit (nHighLimit).
nDown_b = TRUE:
– The signal at nOut_a runs down to its lower limit (nDownLimit).
bUp_b = FALSE and nDown_b = FALSE or bUp_b = TRUE and nDown_b = TRUE:
– The signal at nOut_a does not change.
Deactivation of the motor potentiometer
nOut_a
wTir
wTif
wTir
wTif
wTif
wTir
wTir
wTir
nHighLimit
+
−
0
nLowLimit
nHighLimit
wTif
nLowLimit
bUp_b
bDown_b
bInAct_b
Fig. 2−71Deactivation of the motor potentiometer
If bInAct_ = TRUE, then the motor potentiometer is deactivated
bInAct_b has priority over bUp_b and bDown_b.
If the motor potentiometer is deactivated, the signal at nOut_a follows the function set by byFunction.
You can set the following functions:
byFunction Meaning
0No further action; nOut_a retains its value.
1The motor potentiometer runs down to 0 %, using the run−down time Tif.
2The motor potentiometer runs down to the lower limit, using the run−down time Tif nLowLimit.
3The motor potentiometer immediately changes its output to 0 % (Important for the EMERGENCY STOP function).
4The motor potentiometer immediately changes its output to the lower limit (nLowLimit).
5The motor potentiometer runs up to the upper limit, using the run−up time Tir nHighLimit).
0
L
LenzeDrive.lib EN 1.7
2−71
Function library LenzeDrive.lib
Special functions
2.7.3Motor potentiometer (L_MPOT)
Activation of the motor potentiometer
If bInAct_b = FALSE, then the motor potentiometer is activated. The function that is now
performed depends on
– the momentary output signal.
– the preset limit values.
– the control signals at bUp_b and bDown_b.
If the signal at nOut_a
– is outside the limits that have been set, then the output signal moves to the nearest limit,
using the Titimes that have been set. The sequence is independent of the control signals at
bUp_b and bDown_b.
– within the limits that have been set, then the output signal moves according to the control
signals at bUp_b and bDown_b.
2.7.3.2Initialization of the motor potentiometer
On initialization after power−on, the motor potentiometer is loaded with a specific initial value. Under
byInitFunction you can select the initialization function.
byInitFunctionFunction
0The output value that is output on power−off, is stored in the internal non−volatile memory of the drive controller. This
1On mains power−on the lower limit (defined by nLowLimit) is loaded.
2On mains power−on an initial value = 0 % is loaded.
value is loaded in again at power−on.
2.7.3.3Storing the current output value after supply interruption
byInitFunction
bUp_b
bInAct_b
bDown_b
[VAR_GLOBAL RETAIN][VAR_GLOBAL RETAIN]
Fig. 2−72Programming to store the current output value after a supply interruption
dnActRetain
byFunction
In order to store the latest value at nOut_a after a supply interruption, you must declare a global
variable of type RETAIN (VAR_GLOBAL RETAIN). Combine the variable as described in Fig. 2−72.
The current value at nOut_a is always stored in this variable. The variable will hold the value
after a supply interruption.
When the power is switched on again, the stored value is read into the FB L_MPOT from the
variable and applied as the starting value.
CTRL
nHighLimit
wTir
wTif
nLowLimit
L_MPOT
nOut_a
dnActRetain
2−72
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Special functions
2.7.4Speed preconditioning (L_NSET)
2.7.4Speed preconditioning (L_NSET)
This FB conditions the main speed setpoint as well as an additional setpoint (or other signals) for the
subsequent controller structure by using a ramp generator or fixed speeds.
nCInhVal_aIntegeranalogVAR_INPUTHere the signal is applied that the main setpoint
integrator is to accept when the controller is inhibited
(CINH).
bRfgStop_bBoolbinaryVAR_INPUTHolding (freezing) of the main setpoint integrator to its
current value.
bRfg0_bBoolbinaryVAR_INPUTLeads the main−setpoint integrator via the current
Ti−times to 0.
bNSetInv_bBoolbinaryVAR_INPUTControl of the signal inversion for the main setpoint.
nNSet_aIntegeranalogVAR_INPUTProvided for main setpoint; other signals are
Selection and control of alternative "fixed setpoints"
for the main setpoint.
bTI4_bBoolbinaryVAR_INPUT
bTI8_bBoolbinaryVAR_INPUT
nSet_aIntegeranalogVAR_INPUTHere the signal is applied that the main−setpoint
integrator is to accept when bLoad_b = TRUE.
bLoad_bBoolbinaryVAR_INPUTControl of the two ramp generators in special
situations, e.g. quick stop (QSP)
bAddInv_bBoolbinaryVAR_INPUTControl of the signal inversion for the additional
setpoint
L
LenzeDrive.lib EN 1.7
2−73
Function library LenzeDrive.lib
Special functions
2.7.4Speed preconditioning (L_NSET)
Variable nameCommentVariable typeSignal typeData type
nNAdd_aIntegeranalogVAR_INPUTProvided for additional setpoint; other signals are
bExternalCINHBoolbinaryVAR_INPUTResets the ramp function generator and the additional
nNOut_aIntegeranalogVAR_OUTPUTSpeed setpoint (16384 100 % n
bRfgIEqO_bBoolbinaryVAR_OUTPUTStatus check
dnTirDouble integerVAR CONSTANT RETAIN Acceleration time Tir for the main setpoint
dnTifDouble integerVAR CONSTANT RETAIN Deceleration time Tif for the main setpoint
adnTir[0...14]Array of double
integers
adnTif[0...14]Array of double
integers
anJogSetValue[0...14] Array of integersVAR CONSTANT RETAIN Selectable fixed speeds
bSShapeActiveBoolVAR CONSTANT RETAIN S−curve ramp generator characteristic for the main
nTiSShapedIntegerVAR CONSTANT RETAIN Ti−time for the S−curve ramp generator
byArithFunctionByteVAR CONSTANT RETAINArithmetic function, combines mains and additional
dnTirAddDouble integerVAR CONSTANT RETAIN Acceleration time Tir for the additional setpoint
dnTifAddDouble integerVAR CONSTANT RETAINDeceleration time Tif for the additional setpoint
nlEqOHysteresisIntegerVAR CONSTANT RETAIN Ramp generator threshold for the main setpoint
Parameter codes of the instances
permissible.
ramp generator.
max
VAR CONSTANT RETAIN Acceleration time Tir for the main setpoint
VAR CONSTANT RETAIN Deceleration time Tif for the main setpoint
The signals in the main setpoint channel are limited to the range of ±32767.
The signal at nNSet_a is initially led by the function JOG−select.
A selected JOG value switches the input nNSet_a inactive. Then the following signal
conditioning uses the JOG value.
2−74
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Special functions
2.7.4Speed preconditioning (L_NSET)
2.7.4.2JOG setpoints
JOG setpoints are fixed values that are stored under anJogSetValue[0] ... anJogSetValue[14] in the
memory.
The JOG values can be called up from the memory by bJog1_b ... bJog8_b.
– These inputs are binary coded, so that 15 JOG values can be called.
The decoding for the enabling of the JOG values (calling from the memory) is carried out
according to the following table:
Main setpoint ofbJog8_bbJog4_bbJog2_bbJog1_b
nNSet_a0000
anJogSetValue[0]0001
anJogSetValue[1]0010
anJogSetValue[2]0011
anJogSetValue[3]0100
anJogSetValue[4]0101
anJogSetValue[5]0110
anJogSetValue[6]0111
anJogSetValue[7]1000
anJogSetValue[8]1001
anJogSetValue[9]1010
anJogSetValue[10]1011
anJogSetValue[11]1100
anJogSetValue[12]1101
anJogSetValue[13]1110
anJogSetValue[14]1111
0 = FALSE
1 = TRUE
The number of VAR_INPUT variables to be assigned depends on the number of JOG setpoints
required. A maximum of 4 VAR_INPUT variables and thus 15 selection possibilities are
available.
Number of the required JOG setpointsNumber of VAR_INPUT (bJog1_b ... bJog8_b) to be assigned
1at least 1
1 ... 3at least 2
4 ... 7at least 3
8 ... 154
2.7.4.3Setpoint inversion
The output signal of the JOG function is led via an inverter.
The sign of the setpoint is inverted, when bNSetInv_b switches = TRUE .
L
LenzeDrive.lib EN 1.7
2−75
Function library LenzeDrive.lib
Special functions
2.7.4Speed preconditioning (L_NSET)
2.7.4.4Ramp generator for the main setpoint
The setpoint is then led via a ramp generator with a linear characteristic. The ramp generator converts
setpoint jumps at the input into a ramp.
[%]
RFG−OUT
100%
w2
w1
0
t
ir
t
if
t
T
ir
Tir+ t
Fig. 2−74Acceleration and deceleration times of the ramp generator
w1 ,w2 Change of the main setpoint, depending on tir or t
RFG−OUT Output of the ramp generator
T
−times are fixed values that are stored under
i
100%
ir
w2 * w1
– adnTir[0] ... adnTir[14] (ramp−up times) and
– adnTif[0] ... adnTif[14] (ramp−down times) in the memory.
The T
−times can be called from the memory by bTI1_b ... bTI8_b
i
– These inputs are binary coded, so that 16 Ti−times can be called.
– The Ti−times can only be activated in pairs.
The decoding for the enabling of the T
−times (calling from the memory) is made according to
When the controller inhibit (CINH) is set, the ramp generator accepts the value at nCInhVal_a
and passes it on to the following function.
This function has priority over all other functions.
bRfgStop_b = TRUE:
– The ramp generator is stopped. Changes at the input of the ramp generator have no effect
on the output signal.
bRfg0_b = TRUE:
– The ramp generator decelerates to zero along its deceleration ramp.
It is also possible to load the ramp generator online with a defined value. For this bLoad_b
must be set = TRUE. As long as this input is set, the value at nNSet_a is accepted by the ramp
generator and provided at the output.
Priorities:
CINHbLoad_bbRfg0_bbRfgStop_b Function
0000RFG follows the input value via the set ramps.
0001The value at the output of RFG is frozen.
0010RFG decelerates to zero along the set deceleration ramp.
0011
0100RFG takes the value at nSet_a and provides it at its output.
0101
0110
0111
1000RFG takes the value at nCInhVal_a and provides it at its output.
1001
1010
1011
1100
1101
1110
1111
0 = FALSE
1 = TRUE
2.7.4.5S−ramp
A PT1 element is connected to the linear ramp generator. This arrangement implements an S−ramp
for an almost jerk−free acceleration and deceleration.
The PT1 section is switched on/off with bSShapeActive.
The time constant is set with nTiSShaped.
2.7.4.6Arithmetic operation
The arithmetic module makes an arithmetical combination of the main setpoint and the additional
setpoint. The arithmetical combination is selected by byArithFunction.
byArithFunctionFunctionExample
0nNout_a = x (y is not processed)
1nNout_a = x + y
2nNout_a = x − y
3nNout_a = x * y
4nNout_a = x / |y|
5nNout_a = x / (100% − y)
nNOut_a +
nNOut_a +
nNOut_a +
x @ y
16384
x
@ 164
|y|
x
16384 * y
@ 16384
L
LenzeDrive.lib EN 1.7
2−77
Function library LenzeDrive.lib
Special functions
2.7.4Speed preconditioning (L_NSET)
2.7.4.7Additional setpoint
Via nNAdd_a you can combine an additional setpoint (e.g. a correction signal) with the main
setpoint.
Via bNAddInv_b you can invert the input signal, before it is applied to the ramp generator. The
ramp generator has a linear characteristic. Its Ti−times are set with dnTirAdd (ramp−up time)
and dnTifAdd (ramp−down time).
If bLoad_b = TRUE, the ramp generator is set to 0 and held there, without considering the
Ti−times. The same applies when controller inhibit (CINH) is set.
2−78
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Special functions
2.7.5Process controller (L_PCTRL)
2.7.5Process controller (L_PCTRL)
This FB is used, for instance, as a higher−level controller (dancer position controller, tension
controller, pressure controller, etc.).
Setpoint and actual value are sent to the process controller via the corresponding inputs and
processed according to the selected control algorithm (PID−, PI− or P−algorithm).
Fig. 2−75Process controller (L_PCTRL)
VariableNameDataTypeSignalTypeVariableTypeNote
nAdapt_aIntegeranalogVAR_INPUTGain V
nSet_aIntegeranalogVAR_INPUTInput of the process setpoint.
nAct_aIntegeranalogVAR_INPUTActual value input
bInAct_bBoolbinaryVAR_INPUTDeactivation of the process controller.
bIOff_bBoolbinaryVAR_INPUTSet I−component to 0.
nInflu_aIntegeranalogsVAR_INPUTEvaluation or suppression of the output signal.
nOut_aIntegeranalogVAR_OUTPUTOutput signal. Value range ±16384 (bipolar), or
byPCharacteristicByte−VAR CONSTANT RETAINFunction selection for the provision of the P−gain
dnTirDouble integer−VAR CONSTANT RETAIN Acceleration time Tir (1000 1.000 s)
dnTifDouble integer−VAR CONSTANT RETAIN Deceleration time Tif (1000 1.000 s)
bBiUnipolarBool−VAR CONSTANT RETAIN Value range of the output signal
n A d a p t _ a
n S e t _ a
n A c t _ a
b I n A c t _ b
b I O f f _ b
n I n f l u _ a
b y P C h a r a c t e r i s t i c
n V p
V p
n V p
n V p 2 A d a p t
s o l l 1 s o l l 2
b B i U n i p o l a r
R E S E T
d n T n
n K d
V p 2
V p
V p 2
V p 3
n V p
n V p 2 A d a p t
n V p 3 A d a p t
n S e t 2 A d a p t
± 1 6 3 8 4
2
3
n S e t 1 A d a p t
d n T i r
d n T i f
L _ P C T R L
0
1
n A c t V p
2
3
n O u t _ a
p
Value range: ±32767
You can alter the gain online.
Range of possible values: ±32767
The rate of change of step−change signals can be
slowed by using the ramp generator (with dnTir
and dnTif).
Control characteristic
Ramp generator
Value range of the output signal
Evaluation of the output signal
Deactivation of the process controller
2.7.5.1Control characteristic
In the default setting, the PID algorithm is active.
Differential component K
You can deactivate the Kd−component by setting nKd = 0.0. The controller now becomes a
PI−controller (or P−controller if the I−component is also switched off).
Integral−action component I
You can switch off the I−component with
bIOff_b = TRUE, or on with
bIOff_b = FALSE.
Switching on and off can also be done online. If the I−component is to be switched off permanently,
set bIOff_b to TRUE.
Integral−action time T
By using nTn you can set the parameter for the integral−action time.
n
d
2−80
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Special functions
2.7.5Process controller (L_PCTRL)
Gain V
p
The gain Vp can be set in different ways. By using byPCharacteristic you can select the function you
require.
With nActVp you can display the actual value of the gain Vp.
byPCharacteristic = 0:
The gain V
is provided by nVp.
p
byPCharacteristic = 1:
Fig. 2−76The gain Vp is provided by nAdapt_a
The gain V
is provided by nAdapt_a. The input value is led via a linear characteristic. The
p
slope of the characteristic is fixed by nVp(upper limit) and nVp2Adapt (lower limit). The value in
nVp is valid if the input value = +100 % or −100 % (100 % = 16384). The value in nVp2Adapt is
valid if the input value = 0.
byPCharacteristic = 2:
V
p
nV
p
nV
p2Adapt
nAdapt_a
0
100%
V
nSet1Adapt
Fig. 2−77The gain Vp derived from the process setpoint nSet_a
The gain V
is derived from the process setpoint nSet_a. The setpoint is acquired after the
p
ramp generator, and calculated from a characteristic with 3 interpolation points.
byPCharacteristic = 3:
The gain V
is derived from the control difference, and led by the same characteristic
p
generation as for byPCharacteristic = 2.
p
nV
p
nV
p2Adapt
nV
p3Adapt
nSet_a
nSet2Adapt
L
LenzeDrive.lib EN 1.7
2−81
Function library LenzeDrive.lib
Special functions
2.7.5Process controller (L_PCTRL)
2.7.5.2Ramp generator
The setpoint at nSet_a is led via a ramp generator with a linear characteristic
(100 % 16384 n
This means that setpoint jumps at the input can be converted into a ramp.
RFG−OUT
100%
(C0011)).
max
[%]
w2
w1
0
t
ir
t
ir
t
if
t
if
t
Tir+ t
Fig. 2−78Acceleration and deceleration times of the ramp generator
w1 ,w2Change of the main setpoint, depending on tir or t
RFG−OUTOutput of the ramp generator
100%
ir
w2 * w1
The ramps can be adjusted separately for acceleration and deceleration:
– Acceleration time tir with dnTir
– Deceleration time tif with dnTif
Using bInAct_b = TRUE sets the ramp generator immediately to 0.
2.7.5.3Value range of the output signal
In the factory setting, the process controller has bipolar operation (bBiUnipolar = 0).
– The output signal is limited to ±100 % (±16384).
Using bBiUnipolar = 1 the process controller has unipolar operation.
– The output signal is limited to 0 ... +100 % (0 ... 16384).
2.7.5.4Evaluation of the output signal
The limitation is followed by an evaluation of the output signal by nInflu_a.
– The calculation is done according to the following formula:
Tif+ t
if
100%
if
w2 * w1
nOut_a +
(Valuesafterthelimitation) @ nInflu_a
16384
2.7.5.5Deactivation of the process controller
bInAct_b = TRUE deactivates the process controller. This means that
– nOut_a is set = 0.
– the I−component is set = 0.
– the ramp generator is set = 0.
2−82
LenzeDrive.lib EN 1.7
L
Function library LenzeDrive.lib
Special functions
2.7.6Right/Left/Quickstop (L_RLQ)
2.7.6Right/Left/Quickstop (L_RLQ)
This FB links the input for the direction of rotation and the QSP function, and is safe against an open
circuit.
C0260 nHighLimit100.00 −199.99 {0.01 %} 199.99 Upper limit of L_MPOT1
99999 ms switched off
100 % = n
max
Integral component Trof L_PCTRL1^ 2−79
Threshold ramp generator for main
setpoint of L_NSET1
Input = output
Mandatory is: C0260 > C0261
C0261 nLowLimit−100.0−199.99 {0.01 %} 199.99 Lower limit of L_MPOT1
Mandatory is: C0261 < C0260
C0262 wTir10.00.1 {0.1 s} 6000.0 Acceleration time Tir of L_MPOT1
Related to change 0 ... 100 %.
C0263 wTif10.00.1 {0.1 s} 6000.0 Deceleration time Tif of L_MPOT1
Related to change 0 ... 100 %.
C0264 byFunction0
Deactivation function of L_MPOT1
Function which is executed when
motor pot is deactivated via the
input MPOT1−INACTIVE.
0 No function
1 Down to 0 %
2 Down to C261
3 Jump 0 %
4 Jump to C261
5 Up to C260
C0265 byInitFunction0
No change
Deceleration with Tif to 0 %
Deceleration with Tif to C0261
Inhibit with Tif = 0 to 0 %
Inhibit with Tif = 0 to C0261
Acceleration with Tir to C0260
Initialisation function of L_MPOT1
Value which is accepted during
mains switching and activated
motor pot.
0 Power off
1 C0261
2 0 %
C0325 nVp2Vdapt1.00.1 {0.1} 500.0 Gain adaptation (Vp2) of L_PCTRL1^ 2−79
C0326 nVp3Adapt1.00.1 {0.1} 500.0 Gain adaptation (Vp3) of L_PCTRL1^ 2−79
C0327 nSet2Adapt100.00 0.00 {0.01 %} 100.00 Adaptation n
Value during mains failure
Lower limit of C0261: 0 %
of L_PCTRL1
Set speed threshold of the process
controller adaptation
set2
Mandatory is: C0327 > C0328
C0328 nSet1Adapt0.000.00 {0.01 %} 100.00 Adaptation n
Set speed threshold of the process
controller adaptation