E94A Servo Drives 9400 Function Library v6-7 en
E94A Servo Drives 9400 Function Library v6-7 en
E94A Servo Drives 9400 Function Library v6-7 en
Engineer
9400 function library _______________________ Reference manual EN
Ä.D#Lä
13350243
L
Overview of technical documentation for 9400 Servo Drives
________________________________________________________________
Parameter setting
BA keypad
SW - Lenze software »Engineer«
SW - 9400 HighLine
KHB - communication module
SW - extension module
SW - safety module
SW - Lenze technology application
SW - 9400 function library This documentation
Drive commissioning
Commissioning guide
SW - 9400 HighLine
Chapter "Commissioning"
Chapter "Oscilloscope"
Chapter "Diagnostics & fault analysis"
Remote maintenance manual
Networking structure
KHB - communication medium used
2 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
Contents
________________________________________________________________
2 Introduction _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16
2.1 How to create applications: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16
2.2 What is a function block? _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 17
2.3 Parameterisable function blocks _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 18
2.4 Further objects of an interconnection _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 20
2.4.1 System block _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21
2.4.2 Port block _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21
2.4.3 Variable _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 22
2.4.4 User code _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 23
2.5 Functional ranges of an interconnection _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 24
2.6 Conventions used for input/output identifiers _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 27
2.7 Signal types & scaling _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 29
2.7.1 Data type check/implicit type conversion _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 30
2.8 Multitasking in the Servo Drive 9400 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 32
2.8.1 Runtime measurement _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 33
2.8.2 Optimising the runtime behaviour _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 35
2.8.3 Exchanging data between tasks _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 36
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 3
Contents
________________________________________________________________
4 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
Contents
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 5
Contents
________________________________________________________________
6 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
Contents
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 7
Contents
________________________________________________________________
8 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
Contents
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 9
Contents
________________________________________________________________
10 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
Contents
________________________________________________________________
Index _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 670
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 11
1 About this documentation
________________________________________________________________
Target group
This documentation is intended for all persons who want to reconfigure the application intercon-
nection of the controller with the function block editor and extend it by individual functions.
Document history
Version Description
6.7 08/2014 TD05 Error corrections
6.6 02/2013 TD05 Amendments & error corrections
6.5 12/2012 TD05 New layout
6.4 04/2012 TD05 Amendments & error corrections
6.3 11/2011 TD05 Amendments & error corrections
6.2 09/2011 TD05 Amendments & error corrections
xtended by new function block:
• LenzeToolbox.lib: L_TbCurveAny
6.1 06/2011 TD05 Amendments & error corrections
6.0 03/2011 TD05 Extended by "LenzeWinder.lib" function library with function blocks for winding
technology: L_WndCalcDiameter, L_WndCalcLength, L_WndFrictionCompensation,
L_WndIdentMInertia, L_WndStopCtrl, L_WndTensionCurve
Amendments & error corrections
5.6 10/2010 TD05 Amendments & error corrections
5.5 03/2010 TD05 Amendments & error corrections
Extended by new function blocks:
• LenzeServoDrive.lib: L_SdIntegrateLimit, L_SdInterExtrapolateAny,
L_SdInterExtrapolatePosition, L_SdRampGeneratorAny
5.4 02/2010 TD05 Error corrections
5.3 08/2009 TD05 Error corrections
5.2 08/2009 TD05 Amendments & error corrections
Extended by new function block:
• LenzeServoDrive.lib: L_SdGetAxisData
5.1 03/2009 TD05 New subchapter "Multitasking in the Servo Drive 9400"
Extension of the main chapter "Working with the FB editor" by new functions of the
»Engineer« V2.10
5.0 11/2008 TD05 Extension of the main chapter "Working with the FB editor" by new functions of the
»Engineer« V2.9
Extended by new function blocks:
• LenzeCam.lib: L_CamSetContDataPDO, L_CamSetContDataSDO
• LenzeDataConversion.lib: L_DcBitShiftByte, L_DcBitShiftDWord, L_DcBitShiftInt,
L_DcBitShiftWord, L_DcByteBitand, L_DcByteBitor, L_DcByteBitxor,
L_DcByteToInt, L_DcWordBitand, L_DcWordBitor, L_DcWordBitxor
• LenzeElectricalShaft.lib: L_EsClutchPos
• LenzeToolbox.lib: L_Tb8SelectByte, L_Tb8SelectWord, L_TbLimitInt, L_TbNegInt,
L_TbNegSelInt, L_TbSampleHoldWord, L_TbSelectByte, L_TbSelectWord
New: Table of attributes with information required for a communication to the con-
troller via parameters.
12 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
1 About this documentation
________________________________________________________________
Version Description
4.1 04/2008 TD05 Extended by new function block:
• LenzeCam.lib: L_CamSyncIn
4.0 03/2008 TD05 New main chapter "Working with the FB editor"
Extended by new function block:
• LenzeServoDrive.lib: L_SdProcessController
3.0 09/2007 TD05 Extended by new function blocks:
• LenzeCam.lib: L_CamClutchPos, L_CamContactor, L_CamCurve,
L_CamGetAxisData, L_CamPosMarker, L_CamProfiler, L_CamStretchAbs,
L_CamStretchFeed
• LenzeElectricalShaft.lib: L_EsEncoderConv, L_EsStretchIntegrate
• LenzeServoDrive.lib: L_SdIntegrateAxis, L_SdMotorPot
• LenzeToolbox.lib: L_TbAddSubLim, L_TbMaskOut
2.1 03/2007 TD05 Extended by new function blocks:
• LenzeDevice9400.lib: L_DevApplErr, L_DevApplErrFix, L_DevParReadFix,
L_DevParWriteFix
• LenzeServoDrive.lib: L_SdAccToUnit, L_SdSpeedToUnit, L_SdUnitToAcc
• LenzeToolbox.lib: L_TbMulDivLim, L_TbNegSel
2.0 10/2006 TD05 Extended by new function blocks:
• LenzeDevice9400.lib: L_DevPositionerStateDecoder, L_DevReadParDInt,
L_DevWriteParDInt, L_DevSMControlDecoder, L_DevSMControlEncoder,
L_DevSMStateDecoder, L_DevSMStateDecoderIO
• LenzePositioning.lib: L_PosPositionerInterface, L_PosSequencerStateDecoder
• LenzeServoDrive.lib: L_SdInterpolate
1.4 08/2006 TD05 First edition
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 13
1 About this documentation
1.1 Conventions used
________________________________________________________________
This documentation uses the following conventions to distinguish between different types of infor-
mation:
14 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
1 About this documentation
1.2 Definition of the notes used
________________________________________________________________
This documentation uses the following signal words and symbols to indicate dangers and impor-
tant information:
Safety instructions
Layout of the safety instructions:
Danger!
(characterises the type and severity of danger)
Note
(describes the danger and gives information about how to prevent dangerous situati-
ons)
Application notes
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 15
2 Introduction
2.1 How to create applications:
________________________________________________________________
2 Introduction
An application is the configured function of a device. To create an application for the controller, the-
re are two solutions:
1. You use a ready-made technology application supplied by Lenze.
• For this purpose, simply select the required technology application from the catalogue in the
»Engineer« for the controller.
• The selected technology application can be changed and extended by further functions, if re-
quired.
2. You create the application completely by yourself using the function block editor.
• For this purpose, select no application for the controller. In this case, an "empty application"
is assigned to the controller.
16 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
2 Introduction
2.2 What is a function block?
________________________________________________________________
A function block (FB) can be compared with an integrated circuit that contains a specific control lo-
gic and delivers one or several values when being executed.
• Function blocks are classified in function libraries according to their functions.
• An instance (reproduction, copy) of the function block is always inserted into the interconnec-
tion.
• It is also possible to insert several instances of a function block into an interconnection.
• Each instance has an unequivocal identifier (the instance name) and an order index which defi-
nes the position at which the function block is calculated during runtime.
As of »Engineer« V2.9 icons are displayed for simple functions blocks which symbolise their basic
functions to ensure a better readability of the interconnection.
Tip!
An overview of all available function blocks is provided in the chapter "Short overview".
( 100)
A detailed description for each function block is provided in the chapter "Function blocks".
( 134)
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 17
2 Introduction
2.3 Parameterisable function blocks
________________________________________________________________
Some function blocks have parameters which serve to change particular settings during operation,
if required, or which display actual values & status information.
Code ranges
The codes for the 9400 Servo Drives are divided into the following ranges:
18 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
2 Introduction
2.3 Parameterisable function blocks
________________________________________________________________
Parameter list
• By clicking the icon the parameter list of a function block can be opened.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 19
2 Introduction
2.4 Further objects of an interconnection
________________________________________________________________
In addition to function blocks, an interconnection also contains system blocks which are required for
accessing the basic functions of the controller and the physical interfaces (e.g. digital inputs). Fur-
thermore, an interconnection can contain port blocks as well as variables and user codes.
20 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
2 Introduction
2.4 Further objects of an interconnection
________________________________________________________________
[2-3] Example: System blocks "LS_AnalogInput" and "LS_AnalogOutput" for representing the analog inputs/outputs
Tip!
The system blocks are described in detail in the software manual and in the online help for
the controller.
All input/output ports of the application can be inserted in the interconnection in the form of port
blocks, in order to receive access to the associated element variables.
Input/output ports enable, for instance, the data exchange in an interconnection or with a master
control via a corresponding transmission medium (e.g. system bus).
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 21
2 Introduction
2.4 Further objects of an interconnection
________________________________________________________________
2.4.3 Variable
Variables can be used for a cross-task value exchange and for the use of constant values. The use of
significantly named variables can make the interconnection more clear and easier to maintain.
• If you assign the "safe against mains failure" property to a variable, the value of the variable re-
mains stored even after mains switching.
• A variable can be inserted exactly once with an input (for value assignment) into the intercon-
nection and as often as required with an output (for read access).
[2-5] Example 1: Variable "SetValue1_s" on the left with input for value assignment and on the right with output for reading ac-
cess
[2-6] Example 2: Variables (with output) for the constant values 100 %, 0 %, -100 % as well as FALSE and TRUE
Note!
Variables are only assigned at the end of the task cycle! Thus, the variable value will only
be effective in the next task cycle!
22 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
2 Introduction
2.4 Further objects of an interconnection
________________________________________________________________
For the interconnection, user codes can be configured and linked with inputs/outputs of port blocks,
function blocks, and system blocks. Thus, the linked inputs/outputs can be accessed using the key-
pad.
[2-7] Example: User codes for the selection of a speed setpoint using the keypad
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 23
2 Introduction
2.5 Functional ranges of an interconnection
________________________________________________________________
,QSXWSRUWV /6B)HHGEDFN
(QFRGHUHYDOXDWLRQ
/6B$QDORJ,QSXW
$QDORJLQSXWV
0RWLRQ&RQWURO
/6B'LJLWDO,QSXW /6B6WRS
'LJLWDOLQSXWV 6WRS
/6B6SHHG)ROORZHU
6SHHGIROORZHU
/6B7RUTXH)ROORZHU
&RQWURO 0
6HWSRLQW 6HWSRLQW & 0RWRUFRQWUROVHOHFWLRQ
7RUTXHIROORZHU
VHOHFWLRQ FRQGLWLRQLQJ
/6B3RVLWLRQ)ROORZHU
3RVLWLRQIROORZHU
/6B0DQXDO-RJ
3URFHVV
0DQXDOMRJ
FRQWURO
/6B+RPLQJ 'HYLFH
+RPLQJ VWDWHFRQWURO
& 6WDWXVZRUG
/6B4XLFNVWRS )XQFWLRQ
4XLFNVWRS VWDWHFRQWURO
& $FWLYHIXQFWLRQVWDWH
/6B$QDORJ2XWSXW /6B/LPLWHU
$QDORJRXWSXWV /LPLWHU
/6B'LJLWDO2XWSXW /6B%UDNH
'LJLWDORXWSXWV %UDNHFRQWURO
'ULYH
PRQLWRULQJ
/6B&DP,QWHUIDFH & (UURUGHVFULSWLRQ
2XWSXWSRUWV & (UURUQXPEHU
&DPGDWDPDQDJHPHQW
/6B'ULYH,QWHUIDFH
'ULYHLQWHUIDFH
'HYLFHFRQWURO
/6B6DIHW\0RGXOH
,QWHUIDFHWRWKH
VDIHW\PRGXOH
24 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
2 Introduction
2.5 Functional ranges of an interconnection
________________________________________________________________
The illustration [2-8] shows the different functional ranges within a typical application in a simpli-
fied way.
Application
Setpoints and control signals are read into the application and application-specific functions as set-
point conditioning, process control, and process monitoring are implemented by a corresponding
function block interconnection.
• Here, you can access comprehensive Lenze function libraries, which contain, among other
things, process controllers, arithmetic functions, logic modules as well as ramp generators and
integrators.
• Actual values and status signals can be provided via the output terminals of the controller and
via ports when communicating via a network.
• All parameters are selected and displayed in the real machine or material units.
Motor control
Here, all control and monitoring functions of the specific motor functions are implemented.
• All parameters are selected and displayed in motor units.
• In the function block editor, the motor control is accessed via the motor interface (system block
LS_MotorInterface).
Device control
The device control contains all control and monitoring functions of the controller.
• In the function block editor, the device control is accessed via the drive interface (system block
LS_DriveInterface).
• The machine constants for the motor end are also entered via the drive interface.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 25
2 Introduction
2.5 Functional ranges of an interconnection
________________________________________________________________
The implementation of the basic drive functions into the firmware offers many advantages for the
user:
• The basic functions are always directly available.
• The interfaces to the basic functions are standardised and thus identical for all technology func-
tions.
• Uniform dialogs provide a uniform "look & feel".
• The internal function state control guarantees that
• only one basic function at a time controls the drive.
• only one basic function with the highest priority is executed if several basic functions are ac-
tivated at the same time.
• the drive is always in a defined state, both in case of an error and in standard operation.
• All basic functions are synchronised to each other. You can change between the basic functions
online while the drive is rotating.
• The processing speed is optimal.
26 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
2 Introduction
2.6 Conventions used for input/output identifiers
________________________________________________________________
This chapter describes the conventions used for the identifiers of the inputs/outputs of the function
blocks. The conventions ensure a uniform and consistent terminology and make reading and com-
prehending the interconnection and application easier.
Tip!
The conventions used by Lenze are based on the "Hungarian Notation". This ensures that
the most significant characteristics of the corresponding input/output (e.g. the data type)
can be instantly recognised from its identifier.
An identifier consists of
• a data type entry
• an identifier (the "proper" name of the input/output)
• an (optional) signal type specification
Identifier
The identifier is the proper name of the input/output and should indicate the application or func-
tion.
• Identifiers always start with a capital letter.
• If an identifier consists of several "words", then each "word" must start with a capital letter.
• All other letters are written in lower case.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 27
2 Introduction
2.6 Conventions used for input/output identifiers
________________________________________________________________
• An overview of the different signal types and their scaling is provided in the following subchap-
ter "Signal types & scaling". ( 29)
28 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
2 Introduction
2.7 Signal types & scaling
________________________________________________________________
With regard to the parameter setting & configuration of the controller it is very helpful to know the
signal types and their scaling listed in the following table, which are used to process physical values
(e.g. a speed or position) in the function block interconnection.
Signal type (data type) Port symbol Resolution Value range (external) Decimal positions/
in the FB edi- Signal type indication in the
tor identifier
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 29
2 Introduction
2.7 Signal types & scaling
________________________________________________________________
[2-9] Representation of the implicit type conversion in the function block editor
32-bit data types and Scaled Speed Position/ Accelerati- Other Other Port Port Port
(DINT) (DINT) angle on (DINT) (DWORD) (DINT) (UDINT) (DINT) (DWORD)
signal types (DINT)
Scaled (DINT)
Speed (DINT)
Position/angle (DINT)
Acceleration (DINT)
Other (DWORD)
Other (DINT)
Port (UDINT)
Port (DINT)
Port (DWORD)
30 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
2 Introduction
2.7 Signal types & scaling
________________________________________________________________
16-bit data types and Scaled Speed Other Other Port Port Port
(INT) (INT) (WORD) (INT) (UINT) (INT) (WORD)
signal types
Scaled (INT)
Speed (INT)
Other (WORD)
Other (INT)
Port (UINT)
Port (INT)
Port (WORD)
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 31
2 Introduction
2.8 Multitasking in the Servo Drive 9400
________________________________________________________________
ApplicationTask
The ApplicationTask is a time-controlled user task.
• Two different interval times (1 ms and 2 ms) can be set for the ApplicationTask.
• Compared to the other two user tasks, the ApplicationTask has the higher priority with regard
to processing.
• The system blocks can only be accessed in the ApplicationTask. Thus, new setpoints are provided
in the same interval time as defined for the ApplicationTask.
UserTask
The UserTask is, like the ApplicationTask, a time-controlled user task.
• Three different interval times (2 ms, 4 ms and 8 ms) can be set for the UserTask.
• The UserTask has a higher priority than the IdleTask.
IdleTask
The IdleTask is an idling user task.
• After the logic has been processed in the IdleTask, the IdleTask restarts. Thus, the IdleTask is not
time-equidistant.
• The IdleTask has the lowest priority.
• The processing of the IdleTask is interrupted by the ApplicationTask and the UserTask.
Tip!
The task properties (interval time and runtime monitoring) are configured in a dialog which
is called from the FB Editor.
Configuring the task properties ( 83)
32 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
2 Introduction
2.8 Multitasking in the Servo Drive 9400
________________________________________________________________
When the application has been started, the controller continuously carries out a runtime measure-
ment for the interval-controlled ApplicationTask, the interval-controlled UserTask and the idling Id-
leTask.
• The runtime is the time from the starting time of the task to the time where the processing of
the task logic has been completed, including all interruptions (e.g. by higher-priority tasks).
• The runtime measurement also includes an operating system part of the Servo Drive 9400, the
runtime of which depends among other things on the plugged-in modules.
• The current and maximum task runtimes are displayed in the following display parameters:
• The device command C00002 = "36: Reset runtime measurement" serves to reset the runtime
measurement, e.g. the memory for the maximum values is reset to "0".
Note!
The runtime measurement is also reset by the following actions:
• Start application
• Reset/delete/restart program
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 33
2 Introduction
2.8 Multitasking in the Servo Drive 9400
________________________________________________________________
0 1 ms 4 ms
0
1
2
3
T1 T1 T1 T1 T1 T1
T2 T2
T3
System task
Application task (here: Task interval = 1 ms) T1 = runtime of the application task
User task (here: Task interval = 4 ms) T2 = runtime of the user task
Idling idle task T3 = runtime of the idle task
[2-10] Example: Runtimes of the different tasks
34 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
2 Introduction
2.8 Multitasking in the Servo Drive 9400
________________________________________________________________
The following points should be considered for an optimum runtime behaviour of the controller:
• Before you start programming, check which response times are required for which functions.
This defines in which task the corresponding functions are to be programmed and which inter-
val time must be set for the corresponding task. A subsequent optimisation of programs is very
time-consuming and error-prone!
• High-priority, quick tasks must always be programmed runtime-efficiently. The less logic is exe-
cuted in the quick task, the more resources are available for the other tasks!
• The runtimes of the time-controlled user tasks must not be higher than 95 % of the interval time
of the corresponding task.
• If, for example, the ApplicationTask is loaded with 70 %, only the 25 % are available for the
UserTask and the IdleTask.
• Check the runtimes by means of the runtime measurement. Runtime measurement ( 33)
• If the runtime of the ApplicationTask is higher than 950 μs with an interval time of 1 ms, check
first if the interval time of the ApplicationTask can be increased from 1 ms to 2 ms. This is the
case if:
• the setpoints in the application are generated in an interval higher than 2 ms, as for example
with positioning drives or actuating drives with internal ramp generation or slave drives with
a setpoint selection. Slave drives with a setpoint generation in an interval lower than 2 ms are
excluded.
• no time-critical operation of digital outputs is required as for example with a cam group.
• An increase of the interval time only causes a minimum deterioration of the drive behaviour if
the motion setpoints are generated in the controller.
• The activation/deactivation of the three setpoint interpolators (C02550/1…3) has no influence
on the task runtime.
• In a second step, the logics from the ApplicationTask should be sourced out into one of the other
two tasks.
• Time-critical logics should remain in the ApplicationTask.
• Logics (modules) which require a time-equidistant execution and do not need to be executed
in the ApplicationTask should be transferred to the UserTask.
• Logics (modules) the execution of which is not time-critical and not time-equidistant should
be transferred to the IdleTask.
• When the project is based on a technology application by Lenze, the logic which has no influ-
ence on the application function, e.g. non-used ports with connected signal converters, should
be deleted from the ApplicationTask after activating the FB Editor.
• Deleting non-required system blocks from the FB interconnection does not influence the task
runtime.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 35
2 Introduction
2.8 Multitasking in the Servo Drive 9400
________________________________________________________________
Note!
When creating the FB interconnection please bear in mind that the value of a global va-
riable or user code may change while processing the lower-priority task when being in-
terrupted by a higher-priority task.
The FB Editor prevents that the same variable or user code can be written several times.
Thus, a variable or user code cannot be changed in different tasks.
36 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
3 Working with the FB editor
3.1 Short overview of new functions in the FB Editor
________________________________________________________________
Note!
The illustrations of the FB Editor user interface and the dialog boxes in this documenta-
tion are based on the »Engineer« V2.9 (or higher).
Functions which are only available as of the Engineer version V2.9 (or higher) are marked
correspondingly in this documentation.
As of »Engineer« V2.10
• Configuring the exception handling ( 84)
• Inserting a comment with extended properties ( 67)
• The interior colour and text alignment of a comment can be changed via a properties dialog.
The size of a comment can also be changed easily using the mouse pointer.
• When using different interior colours you can use comments to graphically arrange areas
that belong together in terms of function or separate them from other areas.
As of »Engineer« V2.9
• Data type check/implicit type conversion ( 30)
• Testing the interconnection in the device ( 86)
• Copying interconnection elements (across all devices) ( 88)
• Comparing interconnections ( 93)
• Copying complete interconnection ( 97)
• Inserting complete interconnection from reference project ( 98)
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 37
3 Working with the FB editor
3.2 User interface
________________________________________________________________
Note!
The first representation on the FB Editor tab depends on whether you have selected a
technology application for the controller from the catalogue or not.
• First the FB Editor is in the "Viewer" mode, in which the displayed objects/connections cannot
be changed. Using the FB-Editor as "Viewer" ( 48)
• To be able to reconfigure the defined interconnection and to add further functions, the FB Editor
must be enabled explicitly. Enabling the FB Editor ( 51)
38 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
3 Working with the FB editor
3.2 User interface
________________________________________________________________
Tip!
You can replace the empty application any time by another technology application from
the catalogue.
1. Select the controller in the Project View.
2. Select the command InsertApplication.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 39
3 Working with the FB editor
3.2 User interface
________________________________________________________________
The user interface of the FB Editor includes the following control and function elements:
Tip!
Go to the »Engineer« toolbar and click the icon to hide the Project View and the Message
Window. This increases the Workspace available for the FB Editor. A renewed click on the
symbol shows the Project View and the Message Window again.
40 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
3 Working with the FB editor
3.2 User interface
________________________________________________________________
3.2.2 Toolbar
The FB Editor is provided with an individual toolbar in the upper position which in the following text
is called FB Editor toolbar.
• Click an icon to execute the corresponding function.
Icon Function
Start online monitoring
(as of »Engineer« V2.10)
Icon Function
Insert function block or system block
Inserting a function block ( 53)
Inserting a system block ( 56)
Inserting a port block ( 58)
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 41
3 Working with the FB editor
3.2 User interface
________________________________________________________________
Use the search function to get quickly to a certain module of the interconnection.
• The list field of the search function contains all function blocks, system blocks, and port blocks
of the interconnection:
• When you select a module in the list field, this module is zoomed in and selected at the same
time (the following example shows the LS_AnalogOutput system block):
42 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
3 Working with the FB editor
3.2 User interface
________________________________________________________________
Tip!
You can also enter any search text in the input field.
• If you click the icon, the cutout is moved to the object which contains this search text.
• Another click on the icon leads to a new search. Thus, you can navigate successively
to all objects which contain the entered search text.
• The search text does not consider case sensitivity.
A task describes the runtime characteristics, such as the cycle time and the priority of one or several
programs running within the controller. Together with the program, the task makes a runtime sys-
tem.
• The task to be displayed in the drawing area or edited in the activated FB Editor can be selected
via the list field (same name):
• By clicking the ... button right beside the list field, you open a dialog field where you can see the
properties (interval, type, watchdog, sensitivity) of the selected task. The task properties can
also be changed, if required, in the activated FB Editor.
Related topics:
Multitasking in the Servo Drive 9400 ( 32)
Configuring the task properties ( 83)
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 43
3 Working with the FB editor
3.2 User interface
________________________________________________________________
Use the rightmost list field to change from the Editor to the overview and vice versa:
The overview displays all function blocks, system blocks, and port blocks of the interconnection in
the order of their processing:
• As of the controller firmware V5.0 the average runtime is displayed for each function block.
• When the FB Editor is activated, the processing order of the function blocks can be changed via
the arrow keys on the right side. Changing the processing order ( 81)
44 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
3 Working with the FB editor
3.2 User interface
________________________________________________________________
You can open a context menu via the right mouse button for each object (function block, variable,
line, etc.) and for the drawing area:
• The contents of the context menu depend on the type of object you click on.
• As of the »Engineer« V2.10 small icons are shown in front of the entries in the Context menu.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 45
3 Working with the FB editor
3.2 User interface
________________________________________________________________
The overview window shows the entire interconnection in a reduced view. The overview window
serves to e.g. move quickly through a more complex interconnection.
• The green frame in the overview window indicates the interconnection cutout that is currently
displayed in the drawing area.
• Use the mouse pointer to shift and resize the cutout to be displayed.
46 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
3 Working with the FB editor
3.2 User interface
________________________________________________________________
• The aspect ratio of the frame is automatically adapted to the aspect ratio of the drawing
area.
• According to the size of the frame that is drawn, also the presentation size of the objects
in the drawing area changes.
Tip!
Go to the FB Editor toolbar and click the icon to adapt the view size so that all objects
included in the interconnection are visible in the drawing area.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 47
3 Working with the FB editor
3.3 Using the FB-Editor as "Viewer"
________________________________________________________________
If you have selected a technology application from the catalogue for the controller, the FB Editor is
first in the "Viewer" mode. The interconnection of the technology application is displayed but can-
not be modified.
You can use this "Viewer" mode to:
• make a diagnosis of the application (when an online connection has been established),
• get a better understanding for the operating mode of the application,
• use the interconnection as an alternative parameterisation access.
Command Function
"
Help Show online help for the function block.
"
Help Show online help for the system block.
48 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
3 Working with the FB editor
3.3 Using the FB-Editor as "Viewer"
________________________________________________________________
Command Function
Parameter... Open parameter list or parameterisation dialog of the function block.
• Only if function block is parameterisable.
Parameter... Open parameter list or parameterisation dialog of the system block.
In addition to the Search function and the Overview window you can use the context menu of inputs
and outputs to follow connections and quickly reach certain signals.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 49
3 Working with the FB editor
3.3 Using the FB-Editor as "Viewer"
________________________________________________________________
50 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
How to proceed:
1. Enable FB Editor.
• Only required if a Lenze technology application is to be reconfigured.
• If no application or the "empty application" from the catalogue has been selected, the FB Edi-
tor is already enabled.
2. Insert required objects into the interconnection.
3. Hide unneeded inputs/outputs of function blocks and system blocks to obtain a clearly arran-
ged interconnection.
4. Arrange the objects in the drawing area in a reasonable manner.
5. Establish the connections required for the desired function.
6. If required, change (optimise) the processing order of the function blocks.
7. Compile the completed interconnection.
Tip!
Detailed information on the individual steps can be obtained from the following subchap-
ters!
If you have selected a technology application from the catalogue for the controller, the FB Editor is
first in the "Viewer" mode. The interconnection of the technology application is displayed but can-
not be modified.
To be able to reconfigure the defined interconnection and to add further functions, the FB Editor
must be enabled explicitly.
Note!
When the FB Editor is enabled, the parameter dialogs for the technology application are
replaced by general dialogs. The dialogs for the parameterisation of the system and
function blocks contained in the interconnection can still be used.
Furthermore, all multiplexers are removed from the interconnection and the currently
parameterised signal combinations are replaced by connections.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 51
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
Objects can be inserted in the interconnection via the FB Editor toolbar and the context menu of the
drawing area. The following subchapters provide detailed information on how to insert/delete the
different objects.
Icon Function
Inserting a function block ( 53)
Inserting a system block ( 56)
Inserting a port block ( 58)
Tip!
Use the context menu of the drawing area to insert a function block, system block, port
block or comment directly to the current position of the mouse pointer in the drawing area.
If you insert an object via the corresponding icon in the FB Editor toolbar, the object is al-
ways placed at the top left corner in the drawing area.
As of the »Engineer« V2.9, interconnection elements cannot only be copied within the
same interconnection but also across all devices within the same project, as long as the de-
vices stem from the same product family. Copying interconnection elements (across all
devices) ( 88)
52 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
3. If required, define search criterions to accordingly narrow down the function blocks avai-
lable:
• Block name:
String which must be contained in the name of the function block.
• Library:
Limitation of the selection to a specific function library.
4. After changing the search criteria, press the Find button to update the selection.
• Then, only the function blocks complying with the features set in the search criteria are
shown in the Search Results list field.
• If no search criteria are set, all function blocks available are shown.
5. Select the function block to be inserted in the Search results list field.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 53
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
7. If required, change the name preselected for the function block into a more significant na-
me.
• The instance name must not already be allocated within the interconnection.
8. If required, adapt the index for a parameterisable function block from which on the assign-
ment of user codes for the parameters is to start.
• If the user codes for the compatibility with earlier devices are not yet assigned, these are
suggested for the function block:
• If the user codes for the compatibility with earlier devices are already assigned, e.g. since
an instance of the function block is already available in the interconnection, a free (user-
defined) index will be automatically suggested which can also be changed, if required:
9. Press OK.
• The function block selected is inserted in the interconnection.
Note!
The parameters described in this documentation are always listed together with the
user code index that results from the selection of the option Compatible with earlier
devices!
54 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
Command Function
Connector visibilities... Define visible inputs and outputs for function blocks.
Changing connector visibilities ( 72)
Order... Change order index of the function block.
Changing the processing order ( 81)
Parameter... Open parameter list or parameterisation dialog of the function block.
• Only if function block is parameterisable.
L
Properties Define function block properties.
Related topics:
Deleting objects that are no longer required ( 70)
Changing connector visibilities ( 72)
Arranging objects in the drawing area ( 73)
Creating/deleting connections ( 74)
Changing the processing order ( 81)
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 55
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
Note!
In the FB editor, system blocks are only available in the ApplicationTask!
• System blocks which are not included already in the interconnection are not shown in
the list field anymore.
• System blocks which are displayed in grey cannot be inserted. Either a certain extension
module is required or the function is not supported due to the licence level given by the
memory module.
3. If required, define Search criterions to accordingly narrow down the system blocks availab-
le:
• Block name:
String which must be contained in the name of the system block.
4. After changing the search criteria, press the Find button to update the selection.
• Then, only the system blocks complying with the features set in the search criteria are
shown in the Search Results list field.
• If no search criteria are set, all system blocks available are shown.
5. Select the system block to be inserted in the Search results list field.
56 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
Command Function
Connector visibilities... Define visible inputs and outputs for system blocks.
Changing connector visibilities ( 72)
Parameter... Open parameter list or parameterisation dialog of the system block.
"
Help Show online help for the system block.
Related topics:
Deleting objects that are no longer required ( 70)
Changing connector visibilities ( 72)
Arranging objects in the drawing area ( 73)
Creating/deleting connections ( 74)
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 57
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
Tip!
You can change between the Ports and FB Editor tabs at any time to define new ports and
afterwards insert them into the interconnection.
2. Select the desired port in the Available port blocks list field.
• Ports which have already been inserted in the interconnection no longer are provided for
selection in the Available port blocks list field.
3. Press Insert button.
• The dialog box is closed and the port selected is inserted in the interconnection.
Related topics:
Deleting objects that are no longer required ( 70)
Arranging objects in the drawing area ( 73)
Creating/deleting connections ( 74)
58 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
Click the icon in the FB Editor toolbar to open the Insert variables dialog box.
• The list field contains all variables created for the application:
Button Function
New Create new variable.
Edit Edit selected variable.
Delete Delete selected variable.
• You can only delete a variable if it is not used anymore in the interconnection.
Insert (with output) Insert selected variable with output into the interconnection and close dialog box.
Insert (with input) Insert selected variable with input into the interconnection and close dialog box.
• For a value assignment (write access), a variable can be inserted exactly once into
the interconnection.
• If the selected variable is already included in the interconnection with input, this
button is deactivated.
Close Close dialog box without inserting a variable into the interconnection.
Tip!
As of the »Engineer« V2.10 a comment can be inserted for variables when being declared.
The comment is then shown as "tooltip" in the drawing area if you keep the mouse pointer
for a short time on the variable block:
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 59
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
2. If required, change the variable name preselected in the Variable name input field into a
more significant name.
• The variable name must not already be allocated within the interconnection.
3. Select the data type for the variable from the Data type list field.
• In accordance with IEC 61131-3 integer data types can be selected.
• The data types are prenamed according to their designation.
4. If required, adapt the value preselected in the Initialisation value input field the variable is
to be initialised with.
• The initialisation value must be given in the internal quantity.
Signal types & scaling ( 29)
5. Optionally enter a comment on the variable in the Comment input field.
6. Activate the Use global task variables control field if the variable is to be used in several
tasks.
7. Activate the Use variables with mains failure protection if the value is to be saved with
mains failure protection.
8. Press OK.
• The Create new variable dialog box is closed and the newly created variable is listed in
the Insert variables dialog box.
60 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
Note!
Variables are only assigned at the end of the task cycle! Thus, the variable value will only
be effective in the next task cycle!
Related topics:
Deleting objects that are no longer required ( 70)
Deleting variables and user codes from the application ( 71)
Arranging objects in the drawing area ( 73)
Creating/deleting connections ( 74)
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 61
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
Click the icon in the FB Editor toolbar to open the Assign User Code dialog box.
• The list field contains all configured user codes created for the application:
Button Function
New Configure new user codes.
Edit Edit selected user code.
Delete Delete selected user code.
• You can only delete a user code if it is not used anymore in the interconnection.
Insert (with output) Insert selected user code with output into the interconnection and close dialog box.
Insert (with input) Insert selected user code with input into the interconnection and close dialog box.
• For a value assignment (write access), a user code can be inserted exactly once
into the interconnection.
• If the selected user code is already included in the interconnection with input,
this button is deactivated.
Close Close dialog box without inserting a user code into the interconnection.
62 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 63
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
64 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
Button Function
New Create a new entry for the selection list.
Edit Edit selected entry.
Delete Delete selected entry from the selection list.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 65
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
Command Function
Changing a value Display/change value of the user code.
Related topics:
Deleting objects that are no longer required ( 70)
Deleting variables and user codes from the application ( 71)
Arranging objects in the drawing area ( 73)
Creating/deleting connections ( 74)
66 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
Note!
The term "Arrangement" does not mean a logical arrangement of the function blocks.
The comments are only graphical presentation elements of the FB Editor.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 67
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
68 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
Tip!
The Properties dialog box for a comment already available can be opened by double-clicking
the comment.
Related topics:
Deleting objects that are no longer required ( 70)
Arranging objects in the drawing area ( 73)
Creating/deleting connections ( 74)
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 69
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
Note!
Deleting an object cannot be undone.
Together with the object, all available connections to this object are deleted.
Related topics:
Deleting variables and user codes from the application ( 71)
Deleting connections that are no longer required ( 80)
70 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
2. Click the icon to open the Assign User Code dialog box.
3. Select the user code from the list field.
4. Press Delete.
5. Confirm the query whether the user code is to be deleted irrevocably with OK.
6. Press Close to close the Assign User Code dialog box again.
Related topics:
Deleting objects that are no longer required ( 70)
Deleting connections that are no longer required ( 80)
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 71
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
Inputs and outputs that are not connected can be hidden for each function and system block. This
serves to reduce the dimension of the block. The interconnection becomes clearer.
72 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
All objects can be freely arranged in the drawing area by dragging with the mouse.
We recommend to make an arrangement in which the required connections between the inputs
and outputs can be created easily. A division into functional areas may also be sensible to get a bet-
ter understanding of the application.
Objects which are already connected, can also be dragged to another (free) position in the drawing
area. The available connections will be automatically re-routed after dragging.
Note!
A red header indicates that the object overlaps with other objects in the drawing area!
Arrange the objects so that no overlap occurs.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 73
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
After adding objects and arranging them in a reasonable manner within the drawing area, you can
create the connections between the available objects which are required for the desired function.
A connection always has a direction and therefore always has a source and a target.
Permissible/impermissible connections
Several connections can lead from one output.
',*,1BE,Q E,Q
Only inputs/outputs of the same signal type (with the same port symbol) can be connected.
Tip!
From »Engineer« V2.9, conversion blocks requiring additional computing time are not nee-
ded anymore for type conversion purposes. Instead, type conversion is performed implicit-
ly. Data type check/implicit type conversion ( 30)
74 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
Connection types
Connections can either be created by means of connection lines or port identifiers ("flags")
Tip!
The commands Show as flag or Show as line in the context menu of a connection serve to
change the representation of the connection at any time.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 75
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
If both connection types are used for an output, the available connection lines are converted into
small yellow flags with an automatically assigned number:
[3-5] Example 3: Connection of an output once with port identifier, once with connection line
• Three points ("...") are shown at the output instead of the concrete input identifier.
• The context menu for the port symbol contains all inputs which are connected to the output.
76 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
Tip!
If you move the mouse pointer across the port symbol while drawing a new connection, you
can see whether the connection is permissible or not from the colour of the drawn line and
from the mouse pointer symbol.
• Permissible connection:
The command Show as flag in the context menu of a line serves to change the representa-
tion of the connection at any time.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 77
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
2. Drag the port segment to the required port while keeping the left mouse button pressed:
After releasing the mouse button, the connection via port identifiers (flags) is created. The
corresponding port identifier consists of the instance name and the name of the input/out-
put:
Tip!
The command Show as line in the context menu of a flag serves to change the representa-
tion of the connection at any time.
78 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
• In a tree structure all inputs and outputs of the application are shown to which a connec-
tion is permissible.
• You can enter an optional text into the Filter input field to reduce the selection to the
blocks or ports which contain the entered text.
• If you activate the Show hidden ports control field, the hidden ports for system and func-
tion blocks are shown as well.
3. Select the port where the connection is to end from the tree structure.
4. Activate the Add connection as flag control field if a port identifier (flag) is to be inserted
instead of a connection line.
5. Press OK to create the connection to the selected port and close the dialog box.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 79
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
Related topics:
Deleting objects that are no longer required ( 70)
80 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
If you insert a function block into the interconnection, an order index is automatically assigned to
this function block. By means of this order index it is defined in which order the individual function
blocks are calculated with regard to the runtime.
• The first function block inserted contains the order index "1", the next function block inserted
contains the order index "2", etc.
• The respective order index is displayed in the header of the function block in the rectangle after
the instance name.
Note!
When a function block is shifted, its order index is maintained.
The order of processing has an impact on the result and has to be altered in specific ca-
ses.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 81
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
2. Select the function block which is to receive a different position within the processing or-
der.
3. Move the function block to the desired position using the and buttons.
• The button serves to directly assign another order index to the selected function
block per dialog.
82 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
By clicking the ... button right beside the Task list field, you open a dialog box where you can see and,
if required, change the properties (interval, type, watchdog, sensitivity) of the selected task.
Note!
The runtime of the IdleTask is not monitored by the controller.
Related topics:
Multitasking in the Servo Drive 9400 ( 32)
Task selection ( 43)
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 83
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
For the 9400 HighLine controller, the behaviour after a task overflow can be configured for the ana-
log and digital outputs, the brake control, and the output ports and thus be adapted to the corres-
ponding application.
• The FB-TaskOverrun tab serves to configure the behaviour of the outputs of the control-
ler and the output ports defined in the application in case of a task overflow.
• In the FB System Events tab, the behaviour of the outputs of the drive controller and the
application are only displayed and cannot be configured.
2. Carry out the desired configuration.
• Each output can be configured individually. A free value can be set for the analog out-
puts (-200.00 ... 200.00 %).
• If you select an output port in the "Ports" area on the right, all application variables for
this output port are shown in the table below. In the "Value" column a value can be set
for each application variable to which it is to be set if an event occurs can be specified.
• If a value has been set for at least one application variable, the status "Exceptional beha-
viour parameterised" is shown for the corresponding output port.
• If the Restore standard settings button is clicked, the default setting for task overflow is
restored. In this case, all output terminals would be set to LOW level or 0 V in the event
of a task overflow and the output ports would retain their last value.
3. Click OK to accept the configuration and close the dialog box.
84 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
Danger!
In case a task overflow occurs, the brake can be configured to "open". This setting should
be used with care as the brake is then forcibly opened and does not close even if the drive
controller is inhibited!
Note!
• To render the changes effective within the controller, the project has to be updated,
and the changed application has to be transferred to the controller.
• During the reset or download of an application, all output signals are set to LOW level
or 0 V for a short time (the state bus, in contrast, is set to HIGH level due to harware
inversion).
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 85
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
This function serves to transfer the compiled interconnection for testing to the volatile memory
(RAM) of the controller after the FB interconnection has changed.
Since only the binary file and the connection table are transmitted to the device instead of the com-
plete application, the transfer is quicker than with the regular function "Download program".
Note!
This function will be supported as of controller firmware V5.0.
After mains switching, the original application is reloaded which is stored in the memory
module.
In order to store the application, which has been transferred to the volatile memory
(RAM) for test purposes, completely and with mains failure protection in the memory
module, the regular function "Download program" must be executed. Thus, the corres-
ponding »Engineer« project is required to save the tested application with mains failure
protection.
86 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
Sequence
1. If the current status of the FB Editor does not correspond to the device update executed last, first
the available function for updating a single device is called.
• This generates all files to be transferred to the device.
• A note may appear that first the networks should be updated.
2. If there was no online connection to the device yet, it will be established now.
3. A note appears that the controller is automatically inhibited for this function and the applicati-
on is stopped and the application will be automatically started after the transfer and the cont-
roller will be enabled.
4. The »Engineer« checks if the function is supported by the device and if the memory available in
the device is sufficient.
• If not, the function is closed with a corresponding note. In this case, use the regular function
"Download program".
5. The controller is inhibited and the function is stopped.
6. The application is transferred to the volatile memory of the device.
7. After successful download:
• The transferred application is started automatically and the controller is enabled.
• The value "99" is displayed in C00007 (active application).
• The "Application program volatile in the device" is displayed in the FB Editor status bar .
Tip!
When an online connection has been established, the parameters of the application stored
in the volatile memory can be read and changed using the »Engineer« as usual if the corre-
sponding »Engineer« project is open.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 87
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
As of the »Engineer« V2.9, interconnection elements cannot only be copied within the same inter-
connection but also across all devices within the same project, as long as the devices stem from the
same product family (e.g. Servo Drives 9400).
All types of blocks and comments can be copied to the clipboard via the Copy command or the
<Ctrl>+<c> shortcut and then be inserted into the FB interconnection of the same or another project
device of the same product family using the Insert command or the <Ctrl>+<v> shortcut.
• During the copy process into the clipboard, existing connections between copied blocks are co-
pied as well, and the layout is kept too. Moreover, the separate technical objects (port definition,
variable declaration, and user code declaration) are copied. Selected connections cannot be co-
pied on their own.
• The Insert command is available if the clipboard is not empty and if it was copied from a device
of the same product family. Within this product family, all device types (e.g. 9400 xxxxLine
Vxx.xx) are permitted.
• After the Insert command has been selected, a dialog box is displayed which serves to select
which elements are to be inserted from the clipboard and how to solve name conflicts, if any.
• After inserting the elements, they are marked in the target interconnection in order to be repo-
sitioned or deleted again to undo the insertion.
• Inserting from the clipboard can be repeated. The originally copied contents of the clipboard re-
mains unchanged when it is inserted.
88 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
6. Click Insert to insert the selected elements into the target interconnection as defined.
• Only possible if at least one element in the list has been selected for insertion.
• Insertion is also possible via the <Enter> button if at least one element is selected in the
list for insertion.
• The original layout and the relative position of the inserted blocks to each other are
maintained.
• When copying across the devices, you also insert the corresponding separate technical
objects (port definition, variable declaration and user code declaration).
• The inserted elements are deleted from the list. If the list is empty, the dialog box is
closed and the connections are inserted depending on the selected option.
7. If there are still elements to be entered in the list, repeat steps 5 and 6 until all elements are
inserted as intended.
8. Press Close to stop the insertion and close the dialog box.
• You can also use <Esc> or <Enter> to close the dialog box if "Insert" is not active.
• The elements inserted into the target interconnection so far are maintained.
• The connections for the blocks inserted so far are inserted depending on the selected op-
tion.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 89
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
The list shows the elements which can be added to the target interconnection without any further
action, and the elements with problems and those which cannot be added.
• Each element only appears once in the list even if there are several problems.
• If there is at least one name conflict, there are three options of how to solve name conflicts. If
the option is changed, the list is updated accordingly.
• The first column "Copied element" serves to define which elements are to be inserted by set-
ting/resetting checkmarks.
• In the default setting, all elements to be inserted are always selected.
• When you deselect the All option, all elements in the list are deselected.
• The Reverse selection button serves to reverse the existing selection.
• The second column "Problem" shows the currently existing problems.
• The third column "To be added" contains changes for conflicts with already available elements
in the target interconnection to be able to accept the elements. The automatic suggestions de-
pend on the selected option how to solve name conflicts.
90 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
3 Working with the FB editor
3.4 Creating/reconfiguring the interconnection
________________________________________________________________
• Connections are only inserted when the dialog box is closed, which applies to all modules inser-
ted so far. They are displayed as lines or flags, like in the original, but re-routed.
• When the option Only accept connections between the added elements is selected, only tho-
se connections are added which are between the inserted elements. If this option is deselec-
ted, also those connections are added which are between the added elements and external
elements outside the selection if an element of the same type and instance name is available
in the target interconnection.
• When the Release assigned connections ... option is selected, connections are deleted in the
target interconnection to be able to add connections from the clipboard to inputs already as-
signed.
• The buttons serve to execute the following functions:
Button Function
Insert Add elements selected in the list to the target interconnection
• Only possible if at least one element in the list has been selected for insertion.
• Insertion is also possible via the <Enter> button if at least one element is selected
in the list for insertion.
• The original layout and the relative position of the inserted blocks to each other
are maintained.
• When copying across the devices, you also insert the corresponding separate
technical objects (port definition, variable declaration and user code declaration).
• The inserted elements are deleted from the list. If the list is empty, the dialog box
is closed and the connections are inserted depending on the selected option.
Close Close dialog box.
• You can also use <Esc> or <Enter> to close the dialog box if "Insert" is not active.
• The elements inserted into the target interconnection so far are maintained.
• The connections for the blocks inserted so far are inserted depending on the se-
lected option.
Tip!
It is not compulsory to add all elements to be inserted in one step. If required, you can first
add single elements and in further worksteps other elements of the list with another opti-
on for solving name conflicts.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 91
3 Working with the FB editor
3.5 Printing the interconnection
________________________________________________________________
The interconnection can be printed for documentation purposes, optionally on one page, on four pa-
ges, or not scaled.
Tip!
By clicking the icon in the FB Editor toolbar, you can get a print view before printing.
92 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
3 Working with the FB editor
3.6 Comparing interconnections
________________________________________________________________
The comparison operation serves to compare function block interconnections for the device series
9400 within the project.
• In the project, it is distinguished between the status of the FB interconnection at the device up-
date updated last ("last compiled") and the current processing status in the FB Editor ("proces-
sing").
• An offline<>online comparison and the comparison of two online devices are possible.
• The comparison result can be output as simple text. This can be copied to the clipboard and used
for documentation purposes.
Note!
Only applications can be compared which have been enabled in the FB editor!
Parameter values, comments, module positions, line representations, and connector vi-
sibilities are not compared.
• For comparing two interconnections, the left project view displays Application A with
only one selected device.
• The right project view with Application B selected for the comparison shows all devices
available in the project.
2. Select the applications to be compared in the project view represented on the left and right.
• In order to execute a comparison with an online device, select "Online" in one of the two
upper list fields. Then all available online devices are displayed for selection.
• If you select "Online" in one of the two upper list fields, you can also compare the inter-
connections of two available online devices.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 93
3 Working with the FB editor
3.6 Comparing interconnections
________________________________________________________________
3. Click Compare.
• If the comparison was executed successfully, the comparison result is displayed as simp-
le text. Contents and representation of the comparison ( 96)
• If a comparison of the selected application is not possible, a corresponding message is
displayed.
• The dialog box remains open for a new selection.
4. In order to stop the comparison operation and close the dialog box: Press
Back.
94 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
3 Working with the FB editor
3.6 Comparing interconnections
________________________________________________________________
Example 3: Device A (processing) <--> real device A (in the memory module)
Comparison of the current processing status in the FB Editor with the FB interconnection in the real
device (in the memory module):
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 95
3 Working with the FB editor
3.6 Comparing interconnections
________________________________________________________________
The following elements of an FB interconnection are considered in a comparison. The features of the
elements to be compared are listed as well:
Element Properties
Task Name
Cycle time
Type
Function blocks to be instanced freely Processing sequence
Library version
Instance name
Type
System blocks Name
Version
Port blocks Name
Data types of the element variables
Variable declarations (local & global) Variable name
Data type
Variable assignments Number
User parameter declarations Name
Code number
Data type
Setting range (lower limit, upper limit)
Unit
Variable instance name
Variable setting range (lower limit, upper limit)
Write/read permissions
Dependencies on the controller inhibit and Plc-stop
User parameter assignments Number
Code number
Signal flows (connection lines) Signal sources and target
Every object available in an FB interconnection is checked for existence in the other interconnection.
If the object concerned is available but with another declaration or version, the deviating features
are displayed by values in the report.
Example: The freely instanced module A is available in the project and the device but has been taken
from a different library version in the device. Both version numbers are presented next to each other
in the report in order to recognise the deviation.
96 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
3 Working with the FB editor
3.7 Copying complete interconnection
________________________________________________________________
In contrast to copying/inserting selected interconnection elements via the clipboard, the function
described in this chapter serves to replace the current FB interconnection of a device completely by
the FB interconnection of another project device.
Note!
The complete FB interconnection can only be copied between devices of the same device
type and version (e.g. 9400 HighLine V3).
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 97
3 Working with the FB editor
3.8 Inserting complete interconnection from reference project
________________________________________________________________
The function described in this chapter serves to replace the current FB interconnection of the device
completely by the FB interconnection of a reference project.
Note!
Inserting from a reference project is only possible if the device in the reference project
has the same device type and version as the project device (e.g. 9400 HighLine V3).
98 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
3 Working with the FB editor
3.8 Inserting complete interconnection from reference project
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 99
4 Short overview
4.1 Analog signal processing
________________________________________________________________
4 Short overview
100 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
4 Short overview
4.1 Analog signal processing
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 101
4 Short overview
4.2 Digital signal processing
________________________________________________________________
102 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
4 Short overview
4.2 Digital signal processing
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 103
4 Short overview
4.3 Data type conversion
________________________________________________________________
104 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
4 Short overview
4.4 Mathematical functions
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 105
4 Short overview
4.6 Speed conditioning
________________________________________________________________
106 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
4 Short overview
4.7 Special functions
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 107
4 Short overview
4.8 Output of status signals
________________________________________________________________
The following FBs decode the status output signal dnState, which is made available by some system
and function blocks, into single boolean status signals for further use in the FB interconnection:
L_DevSMStateDecoderIO I/O status signals from the SM3xx safety module LenzeDevice9400
V02.00.xx.xx
General functions
108 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
4 Short overview
4.9 FBs for system via electrical shaft
________________________________________________________________
L_CamPosMarker Reading out position marks from cam data LenzeCam V01.00.xx.xx
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 109
4 Short overview
4.9 FBs for system via electrical shaft
________________________________________________________________
"Synchronism" application"
110 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
4 Short overview
4.10 FBs for positioning tasks
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 111
4 Short overview
4.11 FBs for winding technology
________________________________________________________________
112 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
4 Short overview
4.12 All function blocks [A-Z]
________________________________________________________________
L_CamGetAxisData Reading out machine parameters from cam data LenzeCam V01.00.xx.xx
L_CamPosMarker Reading out position marks from cam data LenzeCam V01.00.xx.xx
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 113
4 Short overview
4.12 All function blocks [A-Z]
________________________________________________________________
114 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
4 Short overview
4.12 All function blocks [A-Z]
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 115
4 Short overview
4.12 All function blocks [A-Z]
________________________________________________________________
L_DevSMStateDecoderIO I/O status signals from the SM3xx safety module LenzeDevice9400
V02.00.xx.xx
116 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
4 Short overview
4.12 All function blocks [A-Z]
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 117
4 Short overview
4.12 All function blocks [A-Z]
________________________________________________________________
118 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
4 Short overview
4.12 All function blocks [A-Z]
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 119
4 Short overview
4.12 All function blocks [A-Z]
________________________________________________________________
120 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
4 Short overview
4.12 All function blocks [A-Z]
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 121
4 Short overview
4.12 All function blocks [A-Z]
________________________________________________________________
122 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
4 Short overview
4.13 FB reference list - 9300 Servo PLC
________________________________________________________________
The following reference list shall assist you in finding the correct function block to simulate a func-
tion known from 9300 servo PLC.
Function block for 9300 servo PLC Function block for 9400 Servo Drives
Name Description Function library Name Description
L_32BitTransferDINT Data-consistent copying of Lenze32BitTransferDrv - -
a DINT variable
L_32BitTransferDWORD Data-consistent copying of Lenze32BitTransferDrv - -
a DWORD variable
L_8200CtrlWord Control word for the fre- Lenze8200Drive - -
quency inverter
L_8200DataControl Process data exchange with Lenze8200Drive - -
frequency inverter
L_8200Initialization Initialise frequency inverter Lenze8200Drive - -
L_8200Parameter Initialise codes Lenze8200Drive - -
L_8200StatusWord Status word of frequency in- Lenze8200Drive - -
verters
L_ABS Absolute value generation LenzeDrive.lib L_TbAbs Absolute value generation
L_ADD Addition LenzeDrive.lib L_TbAdd Addition without limitation
L_TbAddLim Addition with limitation
L_AifParMapClose* Deactivate code mapping LenzeAifParMapDrv - -
L_AifParMapInit* Configure code mapping LenzeAifParMapDrv - -
L_AifParMapOpen* Activate code mapping LenzeAifParMapDrv - -
L_AIN Input gain & offset LenzeDrive.lib LS_AnalogInput SB Analog inputs
L_AND AND LenzeDrive.lib L_TbAnd AND (2 inputs)
L_Tb5And AND (5 inputs)
L_ANEG Inversion LenzeDrive.lib L_TbNeg Negation
L_TbNegSel Negation (optional)
L_AOUT Output gain & offset LenzeDrive.lib L_TbGainLim Gain with limitation
L_TbAdd Addition without limitation
L_TbAddLim Addition with limitation
L_TbAddSubLim Addition and subtraction
with limitation
L_ARIT Arithmetic LenzeDrive.lib L_TbAdd Addition without limitation
L_TbAddLim Addition with limitation
L_TbAddSubLim Addition and subtraction
with limitation
L_TbDiv Division with remainder
L_TbDiv_n Division divisor selected as
scaled signal [%]
L_TbMul Multiplication without limi-
tation
L_TbMul_n Multiplication with the mul-
tiplicand selected as scaled
signal [%]
L_TbMulLim Multiplication with limitati-
on
L_TbSub Subtraction without limita-
tion
L_TbSubLim Subtraction with limitation
* Function (no function block)
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 123
4 Short overview
4.13 FB reference list - 9300 Servo PLC
________________________________________________________________
Function block for 9300 servo PLC Function block for 9400 Servo Drives
Name Description Function library Name Description
L_ARITPH Arithmetic LenzeDrive.lib L_TbAdd Addition without limitation
L_TbAddLim Addition with limitation
L_TbAddSubLim Addition and subtraction
with limitation
L_TbDiv Division with remainder
L_TbDiv_n Division divisor selected as
scaled signal [%]
L_TbMul Multiplication without limi-
tation
L_TbMul_n Multiplication with the mul-
tiplicand selected as scaled
signal [%]
L_TbMulLim Multiplication with limitati-
on
L_TbSub Subtraction without limita-
tion
L_TbSubLim Subtraction with limitation
L_ASW Switch-over LenzeDrive.lib L_Tb8Select 1-from-8-selector
L_TbSelect Selector
L_BRK Holding brake Lenze9300Servo.lib LS_Brake SB Basic function "Brake cont-
rol"
L_ByteArrayToDint Type conversion LenzeDrive.lib - -
L_CamAddVelocity Speed addition LenzeCamControl2 - -
L_CamAdjustDfIn Digital frequency adjust- LenzeCamControl2 - -
ment
L_CamClutchXAxis Virtual clutch LenzeCamControl1 L_CamClutchPos Virtual clutch (path-cont-
rolled)
L_LdClutchAxisP Time-controlled virtual
clutch with position refe-
rence
L_LdClutchV Time-controlled virtual
clutch with speed reference
L_CamContactor Cam group LenzeCamControl1 L_CamContactor Cam group with switch-on
and switch-off dynamisati-
on
L_SdSwitchPoint Position switch points
(cams)
L_CamContactorVPos Dynamic adjustment of the LenzeCamControl1 L_CamContactor Cam group with switch-on
cams/hysteresis and switch-off dynamisati-
on
L_CamControl Setpoint conditioning LenzeCamControl1 LS_CamInterface SB Basic drive function "Cam
data management"
L_CamData Profile management and LenzeCamControl1 LS_CamInterface SB Basic drive function "Cam
curve profile generator data management"
L_CamProfiler Curve interpolation
L_CamCurve Characteristic interpolation
L_CamDifferentiate Converter/differentiator LenzeCamControl2 L_SdDifferentiate Differentiation (position
speed)
L_CamEditProfileData Online change of the profile LenzeCamControl2 LS_CamInterface SB Basic drive function "Cam
points data management"
L_CamExtrapolate Extrapolation LenzeCamControl2 L_LdExtrapolate Extrapolation of position in-
formation
L_SdInterExtrapolateAny Interpolation/extrapolati-
on of setpoints
L_SdInterExtrapolate Interpolation/extrapolati-
Position on of position information
* Function (no function block)
124 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
4 Short overview
4.13 FB reference list - 9300 Servo PLC
________________________________________________________________
Function block for 9300 servo PLC Function block for 9400 Servo Drives
Name Description Function library Name Description
L_CamGetPosition Unit conversion LenzeCamControl1 L_SdPosToUnit Position [increments] po-
sition [unit]
L_SdGetPosition Position [increments] po-
sition [unit] (displayed as
parameter value)
L_CamIntegrateVarLim Phase integrator LenzeCamControl2 L_SdIntegrate Integration (speed positi-
on)
L_CamLimitVelocity Limiting element LenzeCamControl1 L_SdLimitSpeed Leads a speed setpoint to
defined limit ranges
L_CamMachineData Machine parameters LenzeCamControl1 L_CamGetAxisData Reading out machine para-
meters from cam data
L_SdSetAxisData Represented machine para-
meters of a master drive
L_CamMonitFollowError Following error monitoring LenzeCamControl1 L_LdMonitFollowError Following error monitoring
with adjustable switching
threshold and hysteresis
L_CamPosCtrlLin Linear profile generator LenzeCamControl1 - -
L_CamProfileData Loading of important profile LenzeCamControl1 - -
points
L_CamSectionShift Section shift LenzeCamControl2 - -
L_CamSelPosition Master value selection LenzeCamControl2 L_Tb8Select 1-from-8-selector
L_CamSelVelocity Digital frequency selection LenzeCamControl2 L_Tb8Select 1-from-8-selector
L_CamSequence Selection of a profile se- LenzeCamControl1 - -
quence
L_CamSetPosition Unit conversion LenzeCamControl1 L_SdUnitToPos Position [unit] position
[increments]
L_SdSetPosition Position [unit] (selected as
parameter value) position
[increments]
L_CamSetXAxisVelocity Stretching & compressing LenzeCamControl1 L_CamStretchAbs Stretch/compress position
the master value (absolute)
L_CamStretchFeed Stretch/compress position
(relative)
L_LdSetAxisVelocity Stretching/compression of
the X axis and synchronisa-
tion via touch probe. The
master speed is integrated
to the position within the
cycle.
L_CamSetYAxisVelocity Stretching & compressing LenzeCamControl1 L_CamStretchAbs Stretch/compress position
the setpoint (absolute)
L_CamStretchFeed Stretch/compress position
(relative)
L_CamVelocityFilter Filter (PT1) for speed signals LenzeCamControl2 L_TbPT1Filter PT1 filter
L_CamVMasterPosition Virtual master with positio- LenzeCamControl1 L_LdVirtualMasterP Virtual master with position
ning function reference
L_CamVMasterVelocity Virtual master LenzeCamControl1 L_LdVirtualMasterV Virtual master with speed
reference
L_CanClose* Deactivation LenzeCanDrv - -
L_CanDSxClose* Deactivate index mapping LenzeCanDSxDrv - -
L_CanDSxCloseHeartBeat* Deactivate "Heartbeat" LenzeCanDSxDrv - -
L_CanDSx Deactivate "Node Guarding" LenzeCanDSxDrv - -
CloseNodeGuarding*
L_CanDSxHeartBeat Execute "Heartbeat" LenzeCanDSxDrv - -
L_CanDSxInitIndexCode* Configure index mapping LenzeCanDSxDrv - -
L_CanDSxNodeGuarding Execute "Node Guarding" LenzeCanDSxDrv - -
L_CanDSxOpen* Initialise CanDSx driver LenzeCanDSxDrv - -
L_CanDSxOpenHeartBeat* Initialise "Heartbeat" LenzeCanDSxDrv - -
L_CanDSx Initialise "Node Guarding" LenzeCanDSxDrv - -
OpenNodeGuarding*
L_CanGetRelocCobId* Query - COB-ID area LenzeCanDrv - -
* Function (no function block)
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 125
4 Short overview
4.13 FB reference list - 9300 Servo PLC
________________________________________________________________
Function block for 9300 servo PLC Function block for 9400 Servo Drives
Name Description Function library Name Description
L_CanGetState* Driver status LenzeCanDrv - -
L_CanInit* Initialisation LenzeCanDrv - -
L_CanPdoReceive Receive CAN object LenzeCanDrv - -
L_CanPdoTransmit Transmit CAN object LenzeCanDrv - -
L_CMP Comparison LenzeDrive.lib L_TbCompare Comparison
L_TbCompare_n Comparison (scaled)
L_CONV Scaling LenzeDrive.lib L_TbGainLim Gain with limitation
L_TbNormalize Signal scaling
L_CONVPA Conversion of angle to ana- LenzeDrive.lib - -
log
L_CONVPP Conversion of phase signal LenzeDrive.lib - -
L_CONVVV Conversion LenzeDrive.lib - -
L_CONVX Scaling with limitation LenzeDrive.lib L_TbNormalize Signal scaling
L_CURVE Characteristic function LenzeDrive.lib L_TbCurve Characteristic function (sca-
led)
L_TbCurveAny Characteristic function
L_DB Dead band LenzeDrive.lib L_TbDeadband Dead band
L_TbDeadband_n Dead band (scaled)
L_DFRFG Digital frequency ramp LenzeElectricalShaft L_CamSyncIn Synchronous/oversynchro-
function generator nous clutch-in
L_DFSET Digital frequency proces- LenzeElectricalShaft - -
sing
L_DIGDEL Binary delay element LenzeDrive.lib L_TbDelay Binary delay element
L_DintToByteArray Type conversion LenzeDrive.lib - -
L_Display9371BB Transparent mode with LenzeDrive.lib - -
operating unit 9371BB
L_DT1_ Differentiation LenzeDrive.lib L_TbDifferentiate Differentiator with low pass
L_FCNT Up/downcounter LenzeDrive.lib L_TbCount Upcounter and downcoun-
ter with adjustable limitati-
on.
L_FIXSET Programming of fixed set- LenzeDrive.lib L_SdSpeedSet Ramp generator (ramp func-
points tion generator) with S-
shaped ramps, paramete-
risable fixed setpoints and
comprehensive parameter
setting and control options.
L_FLIP D flipflop LenzeDrive.lib L_TbFlipFlopD D flipflop
L_TbFlipFlopRS RS flipflop
L_FUNCodeIndexConv Index of a code (function) LenzeDrive.lib - -
L_FWM Error tripping LenzeDrive.lib L_DevApplErr Error tripping
L_DevApplErrFix Error tripping
L_GEARCOMP Gearbox compensation LenzeElectricalShaft - -
L_IOAInModule Signal conversion LenzeIOSystem - -
L_IOAOutModule Signal conversion LenzeIOSystem - -
L_IOCompactModule Coordinate data LenzeIOSystem - -
L_IOConvByteArrayToByte Conversion function LenzeIOSystem - -
L_IOConvByteToByteArray Conversion function LenzeIOSystem - -
L_IOCounterDataFromIO Counter function LenzeIOSystem - -
L_IOCounterDataToIO Counter function LenzeIOSystem - -
L_IOCounterDI Counter function LenzeIOSystem - -
ModuleDataFromIO
L_IOCounterDI Counter function LenzeIOSystem - -
ModuleDataToIO
L_IOData15 Coordinate data LenzeIOSystem - -
L_IOData610 Coordinate data LenzeIOSystem - -
* Function (no function block)
126 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
4 Short overview
4.13 FB reference list - 9300 Servo PLC
________________________________________________________________
Function block for 9300 servo PLC Function block for 9400 Servo Drives
Name Description Function library Name Description
L_IODInModule Bit conversion LenzeIOSystem - -
L_IODOutModule Bit conversion LenzeIOSystem - -
L_IOParAIAOModule Parameter function LenzeIOSystem - -
L_IOParAlnModule Parameter function LenzeIOSystem - -
L_IOParAOutModule Parameter function LenzeIOSystem - -
L_IOParComGuarding Monitoring function LenzeIOSystem - -
L_IOParCompactModule Parameter function LenzeIOSystem - -
L_IOParCounterDIModule Counter function LenzeIOSystem - -
L_IOParCounterModule Counter function LenzeIOSystem - -
L_IOParPDO15 Parameter function LenzeIOSystem - -
L_IOParPDO610 Parameter function LenzeIOSystem - -
L_IOParSSIModule Parameter function LenzeIOSystem - -
L_IOSSIDataFromIO Counter function LenzeIOSystem - -
L_IOSSIDataToIO Counter function LenzeIOSystem - -
L_LIM Limit LenzeDrive.lib - -
L_MCAutoResetInterface Process control LenzeMotionControl - -
L_MCGetPosition Unit conversion LenzeMotionControl L_SdPosToUnit Position [increments] po-
sition [unit]
L_SdGetPosition Position [increments] po-
sition [unit] (displayed as
parameter value)
L_MCGetVelocity Unit conversion LenzeMotionControl L_SdGetSpeed Speed velocity [unit/s]
(displayed as parameter va-
lue)
L_MCInterpolator Signal interpolation LenzeMotionControl - -
L_MCMachineData Machine parameters LenzeMotionControl LS_DriveInterface SB The machine parameters for
the drive/motor are set via
the drive interface.
L_SdSetAxisData Represented machine para-
meters of a master drive.
L_MCPhiDiff Integration and subtraction LenzeMotionControl L_TbDifferentiate Differentiator with low pass
of speed signals
L_MCPhiIntegrator Integrator with TP set func- LenzeMotionControl L_SdIntegrate Integration (speed positi-
tion on)
L_TbIntegrate Integration with limitation
L_MCPhiTrim Phase trimming is speed-de- LenzeMotionControl - -
pendent
L_MCPhiTrimTime Phase trimming is time-de- LenzeMotionControl - -
pendent
L_MCPositionCorrection Feed correction LenzeMotionControl - -
L_MCProfileGenerator Profile generator LenzeMotionControl - -
L_MCResidualDistance Residual path calculation LenzeMotionControl - -
L_MCSetAcceleration Unit conversion LenzeMotionControl - -
L_MCSetDeceleration Unit conversion LenzeMotionControl - -
L_MCSetPosition Unit conversion LenzeMotionControl - -
L_MCSetProfileConverter Unit conversion LenzeMotionControl - -
L_MCSetProfileValues Unit conversion LenzeMotionControl - -
L_MCSetVelocity Unit conversion LenzeMotionControl - -
L_MCSignalDerive Signal differentiation LenzeMotionControl - -
L_MCSwitchCam Switching points LenzeMotionControl - -
L_MCSwitchPoint Switching points LenzeMotionControl L_SdSwitchPoint Position switch points
(cams)
L_MCTouchProbeCtrl Touch probe pre-processing LenzeMotionControl L_SdTouchProbe Touch probe processing
L_MemClearFlash* Delete flash memory seg- LenzeMemDrv - -
ment
* Function (no function block)
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 127
4 Short overview
4.13 FB reference list - 9300 Servo PLC
________________________________________________________________
Function block for 9300 servo PLC Function block for 9400 Servo Drives
Name Description Function library Name Description
L_MemCopyFromRam* Copy data from RAM into LenzeMemDrv - -
variable memory
L_MemCopyToRam* Copy data from variable me- LenzeMemDrv - -
mory into RAM
L_MemGetStateDriver* Driver status LenzeMemDrv - -
L_MemGetStateOfMemory PLC memory status LenzeMemDrv - -
L_MemLoadRamFromFlash* Copy data from flash me- LenzeMemDrv - -
mory into RAM
L_MemReadDINT* Read DINT value out of RAM LenzeMemDrv - -
L_MemReadDWORD* Read DWORD value out of LenzeMemDrv - -
RAM
L_MemReadINT* Read INT value out of RAM LenzeMemDrv - -
L_MemReadWORD* Read WORD value out of LenzeMemDrv - -
RAM
L_MemSaveRamToFlash* Copy data from RAM into LenzeMemDrv - -
flash memory
L_MemWriteDINT* Write DINT value into RAM LenzeMemDrv - -
L_MemWriteDWORD* Write DWORD value into LenzeMemDrv - -
RAM
L_MemWriteINT Write INT value into RAM LenzeMemDrv - -
L_MemWriteWORD* Write WORD value into RAM LenzeMemDrv - -
L_MFAIL Mains failure control Lenze9300Servo.lib - -
L_MPOT Motor potentiometer LenzeDrive.lib L_SdMotorPot Motor potentiometer
L_NOT NOT LenzeDrive.lib L_TbNot Negation (inverter)
L_NSET Speed pre-processing LenzeDrive.lib L_SdSpeedSet Ramp generator (ramp func-
tion generator) with S-
shaped ramps, paramete-
risable fixed setpoints and
comprehensive parameter
setting and control options.
L_OR OR LenzeDrive.lib L_TbOr OR (2 inputs)
L_Tb5Or OR (5 inputs)
L_ParRead Reading of codes LenzeDrive.lib L_DevParReadFix One-time or cyclic reading
of parameters
L_DevReadParDInt One-time or cyclic reading
of parameters of data type
DINT
L_ParWrite Writing of codes LenzeDrive.lib L_DevParWriteFix One-time or cyclic writing of
parameters
L_DevWriteParDInt One-time or cyclic writing of
parameters of data type
DINT
L_PCTRL Process controller LenzeDrive.lib - -
L_PHADD Addition LenzeDrive.lib L_TbAdd Addition without limitation
L_TbAddLim Addition with limitation
L_TbAddSubLim Addition and subtraction
with limitation
L_PHCMP Comparison LenzeDrive.lib L_TbCompare Comparison
L_TbCompare_n Comparison (scaled)
L_PHDIFF Difference LenzeDrive.lib L_TbDifferentiate Differentiator with low pass
L_PHDIV Division LenzeDrive.lib L_TbDiv Division with remainder
L_TbDiv_n Division divisor selected as
scaled signal [%]
L_PHINT Integration LenzeDrive.lib L_SdIntegrate Integration (speed positi-
on)
L_SdIntegrateLimit Integration (speed positi-
on) with adjustable upper/
lower limit for return purpo-
ses
* Function (no function block)
128 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
4 Short overview
4.13 FB reference list - 9300 Servo PLC
________________________________________________________________
Function block for 9300 servo PLC Function block for 9400 Servo Drives
Name Description Function library Name Description
L_PHINTK Integration LenzeDrive.lib L_SdIntegrate Integration (speed positi-
on)
L_SdIntegrateLimit Integration (speed positi-
on) with adjustable upper/
lower limit for return purpo-
ses
L_PT1_ Delay LenzeDrive.lib L_TbPT1Filter PT1 filter
L_REF Homing function LenzeElectricalShaft LS_Homing SB Basic function "Homing"
L_RFG Ramp function generator LenzeDrive.lib L_SdRampGenerator Ramp generator (ramp func-
tion generator) with S-
shaped ramps.
L_SdRampGeneratorAny Unlike
the L_SdRampGenerator FB,
this FB is also able to process
speeds (_s). Separate accele-
ration and deceleration ti-
mes can be set.
L_SdSpeedSet Ramp generator (ramp func-
tion generator) with S-
shaped ramps, paramete-
risable fixed setpoints and
comprehensive parameter
setting and control options.
L_RLQ Right/left quick stop LenzeDrive.lib - -
L_Rs232Close Deactivation (function) LenzeFpiDrv - -
L_Rs232GetReceiveState Receive status (function) LenzeFpiDrv - -
L_Rs232GetSendState Transmit status (function) LenzeFpiDrv - -
L_Rs232Open Initialisation (function) LenzeFpiDrv - -
L_Rs232ReceiveData Receiving data (function) LenzeFpiDrv - -
L_Rs232SendData Transmitting data (func- LenzeFpiDrv - -
tion)
L_SH Sample & Hold LenzeDrive.lib L_TbSampleHold Sample & Hold
L_SRFG Ramp function generator LenzeDrive.lib L_SdRampGenerator Ramp generator (ramp func-
with S ramp tion generator) with S-
shaped ramps.
L_SdRampGeneratorAny Unlike
the L_SdRampGenerator FB,
this FB is also able to process
speeds (_s). Separate accele-
ration and deceleration ti-
mes can be set.
L_SdSpeedSet Ramp generator (ramp func-
tion generator) with S-
shaped ramps, paramete-
risable fixed setpoints and
comprehensive parameter
setting and control options.
L_TBConvBitsToByte* BOOL (8 x) BYTE LenzePLCToolBox L_DcBitsToByte BOOL (8 x) BYTE
L_TBConvBitsToDword* BOOL (32 x) DWORD LenzePLCToolBox L_DcBitsToDWord BOOL (32 x) DWORD
L_TBConvBitsToWord* BOOL (16 x) WORD LenzePLCToolBox L_DcBitsToWord BOOL (16 x) WORD
L_TBConvByteToBits BYTE BOOL (8 x) LenzePLCToolBox L_DcByteToBits BYTE BOOL (8 x)
L_TBConvCharToByte* ASCII character ASCII code LenzePLCToolBox - -
L_TBConvDwordToBits DWORD BOOL (32 x) LenzePLCToolBox L_DcDWordToBits DWORD BOOL (32 x)
L_TBConvWordToBits WORD BOOL (16 x) LenzePLCToolBox L_DcWordToBits WORD BOOL (16 x)
L_TBGetBitOfByte* Outputs a bit of a BYTE value LenzePLCToolBox L_DcGetBitOfByte Outputs a bit of a BYTE value
L_TBGetBitOfDword* Outputs a bit of a DWORD LenzePLCToolBox L_DcGetBitOfDWord Outputs a bit of a DWORD
value value
L_TBGetBitOfWord* Outputs a bit of a WORD va- LenzePLCToolBox - -
lue
L_TBResetBitOfByte* Resets a bit of a BYTE value LenzePLCToolBox L_DcResetBitOfByte Resets a bit of a BYTE value
to "0". to "0".
L_TBResetBitOfDword* Resets a bit of a DWORD va- LenzePLCToolBox L_DcResetBitOfDWord Resets a bit of a DWORD va-
lue to "0". lue to "0".
* Function (no function block)
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 129
4 Short overview
4.13 FB reference list - 9300 Servo PLC
________________________________________________________________
Function block for 9300 servo PLC Function block for 9400 Servo Drives
Name Description Function library Name Description
L_TBResetBitOfWord* Resets a bit of a WORD value LenzePLCToolBox L_DcResetBitOfWord Resets a bit of a WORD value
to "0". to "0".
L_TBSetBitOfByte* Sets a bit of a BYTE value to LenzePLCToolBox L_DcSetBitOfByte Sets a bit of a BYTE value to
"1". "1".
L_TBSetBitOfDword* Sets a bit of a DWORD value LenzePLCToolBox L_DcSetBitOfDWord Sets a bit of a DWORD value
to "1". to "1".
L_TBSetBitOfWord* Sets a bit of a WORD value LenzePLCToolBox L_DcSetBitOfWord Sets a bit of a WORD value
to "1". to "1".
L_TBSquareWave Rectangular pulse generator LenzePLCToolBox L_TbOscillator Rectangular pulse generator
with variable pulse/dead ti- with parameterisable pul-
me. se/dead time.
L_TpConfigDigInX Configures a touch probe in- LenzeTpDrv - -
put (function)
L_TpGetLastScanDigIn1...4 Provides touch-probe sig- LenzeTpDrv L_SdTouchProbe Touch probe processing
nals
L_TRANS Edge evaluation LenzeDrive.lib L_TbTransition Signal edge evaluation
L_WndAccTorque Acceleration compensation LenzeWinder - -
L_WndCalcDiameter Diameter calculation LenzeWinder L_WndCalcDiameter Diameter calculation
L_WndCalcLength Length calculation LenzeWinder L_WndCalcLength Length calculation
L_WndCalcThickness Thickness calculation LenzeWinder - -
L_WndConvActPos Actual dancer value condi- LenzeWinder - -
tioning
L_WndConvMSet Torque setpoint converter LenzeWinder - -
L_WndConvNSet Speed setpoint converter LenzeWinder - -
L_WndFrictionCurve Friction compensation LenzeWinder L_Wnd Friction compensation
FrictionCompensation
L_WndGearRatio Gearbox factor changeover LenzeWinder - -
L_WndIdentFriction Identification of the friction LenzeWinder L_Wnd Friction compensation
characteristic FrictionCompensation
L_WndIdentMInertia Identification of the mo- LenzeWinder L_WndIdentMInertia Identification of the mo-
ment of inertia ment of inertia
L_WndMInertia Mass inertia calculation LenzeWinder - -
L_WndProcessCtrl Dancer / tension control LenzeWinder - -
L_WndStopCtrl Stop controller LenzeWinder L_WndStopCtrl Stop controller
L_WndTensionCurve Tensile force characteristic LenzeWinder L_WndTensionCurve Tensile force characteristic
* Function (no function block)
130 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
4 Short overview
4.14 FB reference list - 9300 servo inverter
________________________________________________________________
The following reference list shall assist you in finding the correct function block to simulate a func-
tion known from the 9300 servo inverter.
Function block for 9300 servo inverter Function block for 9400 Servo Drives
Name Description Name Description
ABS Absolute value generator L_TbAbs Absolute value generation
ADD Addition block L_TbAdd Addition without limitation
L_TbAddLim Addition with limitation
L_TbAddSubLim Addition and subtraction with limi-
tation
AIF-IN Fieldbus - -
AIF-OUT Fieldbus - -
AIN Analog inputs LS_AnalogInput SB Analog inputs
AND AND L_TbAnd AND (2 inputs)
L_Tb5And AND (5 inputs)
ANEG Analog inverter L_TbNeg Sign inversion
AOUT Analog outputs LS_AnalogOutput SB Analog outputs
ARIT Arithmetic block L_TbAdd Addition without limitation
L_TbAddLim Addition with limitation
L_TbAddSubLim Addition and subtraction with limi-
tation
L_TbDiv Division with remainder
L_TbDiv_n Division divisor selected as scaled si-
gnal [%]
L_TbMul Multiplication without limitation
L_TbMul_n Multiplication with the multipli-
cand selected as scaled signal [%]
L_TbMulLim Multiplication with limitation
L_TbSub Subtraction without limitation
L_TbSubLim Subtraction with limitation
ARITPH 32 bit arithmetic block L_TbAdd Addition without limitation
L_TbAddLim Addition with limitation
L_TbAddSubLim Addition and subtraction with limi-
tation
L_TbDiv Division with remainder
L_TbDiv_n Division divisor selected as scaled si-
gnal [%]
L_TbMul Multiplication without limitation
L_TbMul_n Multiplication with the multipli-
cand selected as scaled signal [%]
L_TbMulLim Multiplication with limitation
L_TbSub Subtraction without limitation
L_TbSubLim Subtraction with limitation
ASW Analog change-over switch L_Tb8Select 1-from-8-selector
L_TbSelect Selector
BRK Holding brake control LS_Brake SB Basic function "Brake control"
CAN-IN System bus Network configuration in the »Engineer«, interconnection via ports in the
machine application.
CAN-OUT
CMP Comparator L_TbCompare Comparison
L_TbCompare_n Comparison (scaled)
CONV Conversion L_TbGainLim Gain with limitation
L_TbNormalize Signal scaling
CONVPHA 32 bit conversion - -
CONVPHPH 32 bit conversion - -
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 131
4 Short overview
4.14 FB reference list - 9300 servo inverter
________________________________________________________________
Function block for 9300 servo inverter Function block for 9400 Servo Drives
Name Description Name Description
CONVPP 32 bit/16 bit conversion - -
CURVE Characteristic function L_TbCurve Characteristic function (scaled)
L_TbCurveAny Characteristic function
DB Dead band L_TbDeadband Dead band
L_TbDeadband_n Dead band (scaled)
DCTRL Device control LS_DriveInterface SB Drive interface
DFIN Digital frequency input LS_DigitalFrequencyInput SB Digital frequency input
DFOUT Digital frequency output LS_DigitalFrequencyOutput SB Digital frequency output
DFRFG Digital frequency ramp function ge- L_CamSyncIn Synchronous/oversynchronous
nerator clutch-in
DFSET Digital frequency processing - -
DIGDEL Binary delay element L_TbDelay Binary delay element
DIGIN Digital inputs LS_DigitalInput SB Digital inputs
DIGOUT Digital outputs LS_DigitalOutput SB Digital outputs
DT1-1 Derivative-action element L_TbDifferentiate Differentiator with low pass
FCNT Piece number L_TbCount Upcounter and downcounter with
adjustable limitation.
FEVAN Free analog input variable - -
FDO Free digital outputs - -
FIXED Constant signals - -
FIXSET Fixed setpoints L_SdSpeedSet Ramp generator (ramp function ge-
nerator) with S-shaped ramps, para-
meterisable fixed setpoints and
comprehensive parameter setting
and control options.
FLIP D flipflop L_TbFlipFlopD D flipflop
L_TbFlipFlopRS RS flipflop
GEARCOMP Gearbox torsion - -
LIM Limiter L_TbLimit Signal limitation
L_TbLimit_n Signal limitation (scaled)
MCTRL Motor control LS_MotorInterface SB Motor interface
MFAIL Mains failure control - -
MLP Motor phase failure detection - -
MONIT Monitoring - -
MPOT Motor potentiometer L_SdMotorPot Motor potentiometer
NOT NOT L_TbNot Negation (inverter)
NSET Speed setpoint conditioning L_SdSpeedSet Ramp generator (ramp function ge-
nerator) with S-shaped ramps, para-
meterisable fixed setpoints and
comprehensive parameter setting
and control options.
OR OR L_TbOr OR (2 inputs)
L_Tb5Or OR (5 inputs)
OSZ Oscilloscope function - -
PCTRL Process controller - -
PHADD 32 bit addition block L_TbAdd Addition without limitation
L_TbAddLim Addition with limitation
L_TbAddSubLim Addition and subtraction with limi-
tation
PHCMP Comparator L_TbCompare Comparison
L_TbCompare_n Comparison (scaled)
PHDIFF 32 bit setpoint/actual value compa- L_TbDifferentiate Differentiator with low pass
rison
132 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
4 Short overview
4.14 FB reference list - 9300 servo inverter
________________________________________________________________
Function block for 9300 servo inverter Function block for 9400 Servo Drives
Name Description Name Description
PHDIV Conversion L_TbDiv Division with remainder
L_TbDiv_n Division divisor selected as scaled si-
gnal [%]
PHINT Phase integrator L_SdIntegrate Integration (speed position)
L_SdIntegrateLimit Integration (speed position) with
adjustable upper/lower limit for re-
turn purposes
PT1-1 First-order delay element L_TbPT1Filter PT1 filter
R/L/Q QSP / setpoint inversion - -
REF Homing function LS_Homing SB Basic function "Homing"
RFG Ramp function generator L_SdRampGenerator Ramp generator (ramp function ge-
nerator) with S-shaped ramps.
L_SdRampGeneratorAny Unlike the L_SdRampGenerator FB,
this FB is also able to process speeds
(_s). Separate acceleration and de-
celeration times can be set.
L_SdSpeedSet Ramp generator (ramp function ge-
nerator) with S-shaped ramps, para-
meterisable fixed setpoints and
comprehensive parameter setting
and control options.
S&H Sample & Hold L_TbSampleHold Sample & Hold
SRFG S-shaped ramp function generator L_SdRampGenerator Ramp generator (ramp function ge-
nerator) with S-shaped ramps.
L_SdRampGeneratorAny Unlike the L_SdRampGenerator FB,
this FB is also able to process speeds
(_s). Separate acceleration and de-
celeration times can be set.
L_SdSpeedSet Ramp generator (ramp function ge-
nerator) with S-shaped ramps, para-
meterisable fixed setpoints and
comprehensive parameter setting
and control options.
STAT Digital status signals L_DevDriveInterfaceStateDecoder Status signals of the drive interface
L_DevManualJogStateDecoder Status signals of the basic function
"Manual jog"
L_DevHomingStateDecoder Status signals of the basic function
"Homing"
L_DevPositionerStateDecoder Status signals of the basic function
(from V2.0) "Positioning"
L_PosDecoderStatePositioner
L_DevLimiterStateDecoder Status signals of the basic function
"Limiter"
L_DevBrakeStateDecoder Status signals of the basic function
"Brake control"
L_PosSequencerStateDecoder* Status signals of the sequence cont-
rol (FB L_PosSequencer)
L_PosDecoderStateSequencer
L_LdStateDecoder Status signals of the FBs of the func-
tion library "LenzeLineDrive.lib"
L_DevSMControlDecoder Control/status signals from the
(from V2.0) SM3xx safety module
L_DevSMStateDecoder (from V2.0)
L_DevSMStateDecoderIO
(from V2.0)
STATE-BUS Statebus LS_DigitalInput SB Digital inputs
LS_DigitalOutput SB Digital outputs
STORE Memory - -
SYNC Multi-axis positioning - -
TRANS Binary edge evaluation L_TbTransition Signal edge evaluation
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 133
5 Function blocks
________________________________________________________________
5 Function blocks
This chapter describes all function blocks (FBs) that are provided by the »Engineer« function block
editor for the "9400 Servo Drives".
Note!
The grayed out area at the beginning of each FB description informs you on the function
library which contains the corresponding FB and provides information concerning the
"9400 Servo Drives" that can be used with the FB.
Tip!
For an external access (e.g. from a master control) to the parameters of the parameterisable
function blocks: The Table of attributes contains information required for communication
to the controller via parameters. ( 656)
134 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.1 L_CamClutchPos - clutch (path-controlled)
________________________________________________________________
This FB serves to implement a path-controlled clutching and declutching of the master position for
all traversing ranges (Modulo/limited/unlimited) via a fifth-order polynomial.
• More functions:
• Positive opening operation of the clutch (for emergency situations)
• "Hard clutch-in"
• For time-controlled clutching and declutching, use the L_EsClutchPos FB. ( 290)
/B&DP&OXWFK3RV
GQ3RV,QBS &
'LVWDQFHIRUGHFOXWFK
& GQ3RV2XWBS
E2SHQ GQ6SHHG2XWBV
&
GQ2SHQ3RVLWLRQBS & &
Inputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 135
5 Function blocks
5.1 L_CamClutchPos - clutch (path-controlled)
________________________________________________________________
Outputs
136 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.1 L_CamClutchPos - clutch (path-controlled)
________________________________________________________________
Parameter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 137
5 Function blocks
5.2 L_CamContactor - cam group with switch-on and switch-off dynamisation
________________________________________________________________
From the cam data under the current product number (specified by the LS_CamInterface SB), this FB
reads the cam track selected via the input dnTrackNumber and outputs the cam status on the spe-
cified position.
• A cam track can contain up to four cams of the same type (path or time cam); however, the cam
type can be different for each product.
• As of Engineer version 2.9 up to 16 cams per cam track are supported.
• By means of a parameterisable dynamic displacement of the cams, deceleration times of swit-
ching elements connected can be compensated.
• If further cam tracks are to be evaluated, further instances of this FB just have to be added to
the application.
/B&DP&RQWDFWRU
&
GQ3RV,QBS & E2XW
&
GQ7UDFN1XPEHU & W
E5HVHW W
GQ2IIVHW3RVBS
GQ+\VWHUHVHBS GQ&\FOH/HQJWKBS
& 7UDFNPRGH & E(UURU
& &75/ & &RQWDFWRUW\SH
&RQWDFWRU'DWD
Inputs
138 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.2 L_CamContactor - cam group with switch-on and switch-off dynamisation
________________________________________________________________
Outputs
Parameter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 139
5 Function blocks
5.2 L_CamContactor - cam group with switch-on and switch-off dynamisation
________________________________________________________________
140 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.2 L_CamContactor - cam group with switch-on and switch-off dynamisation
________________________________________________________________
Via the function of the cam group binary output signals with a reference to curves can be generated
very simply.
Via digital switch cams for instance the quick control of external valves, glue nozzles, or similar pe-
ripheral elements can be carried out, which are connected to the digital outputs of the controller for
this purpose. Of course the switch cams can also be used for controlling internal functions.
Example 1
Glueing of furniture panels by means of a glue nozzle controlled via a static cam signal (no compen-
sation of the operating delay time of the glue valve):
Because the glue valve switches on/off in a delayed manner (operating delay time), the furniture
panels are not glued from the leading edge. Correspondingly late the glue nozzle is switched off
again: Due to the switch-off delay time, glue continues to emit from the nozzle although the furni-
ture panel has already left the glue area.
Example 2
Glueing of furniture panels by means of a glue nozzle controlled via a dynamised cam signal (no
compensation of the operating delay time of the glue valve):
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 141
5 Function blocks
5.2 L_CamContactor - cam group with switch-on and switch-off dynamisation
________________________________________________________________
The cams are entered in the »Cam Designer«. The transmission of the cam data to the controller(s)
– together with the corresponding parameter set – is effected via the »Engineer« by executing the
command Transfer parameter set to the device. Afterwards the parameter set and the cam data
have to be saved in the memory module with mains failure protection (e. g. with the device com-
mand C00002 = "11: Save starting parameters").
Tip!
The cams can also be entered directly via the parameters of the basic drive function "Cam
data management" (LS_CamInterface SB) if cam data have already been downloaded to the
controller.
Product number
Track number
Cam data
• The selection of the product number and therefore the selection of the product to be manuf-
actured for the application is effected globally via the input CAM_dnProductNumber of
the LS_CamInterface SB and has to be carried out synchronously for all cam drives in the inter-
connection.
/6B&DP,QWHUIDFH " L
&$0BGQ3URGXFW1XPEHU
E6WDUW
• The selection of the track number of the cam data track, however, is effected individually via
the input dnTrackNumber of the corresponding entity of the L_CamContactor FB.
/B&DP&RQWDFWRU " L
GQ7UDFN1XPEHU
E6WDUW
142 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.2 L_CamContactor - cam group with switch-on and switch-off dynamisation
________________________________________________________________
dnPosIn_p
off
on
t
V
0
t
bOut
dnPosIn_p
on
off
t
V
0
t
bOut
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 143
5 Function blocks
5.2 L_CamContactor - cam group with switch-on and switch-off dynamisation
________________________________________________________________
dnPosIn_p
on/off
on/off
t
V
0
t
bOut
Note!
When position-time cams are used, overlapping switch-on states of subsequent cams
can occur if the operating time of the position-time cams is longer than the interval to
the switch-on position of the following position-time cams (post-trigger function).
If the operating time of a position-time cam is longer than the total cycle time, the out-
put bOut remains on TRUE permanently.
144 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.2 L_CamContactor - cam group with switch-on and switch-off dynamisation
________________________________________________________________
dnPosIn_p
on
t
V
0
t
t t
bOut
dnPosIn_p
on
t
V
0
t
t t
bOut
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 145
5 Function blocks
5.2 L_CamContactor - cam group with switch-on and switch-off dynamisation
________________________________________________________________
In C05521 and C05522 a time displacement of the switch-on and switch-off positions can be set for
the cams, e. g. to implement a compensation of delay times of switching elements connected.
• A positive time period causes the cam to be switched earlier, a negative time period accordingly
causes the switching operation to occur later.
• For position-time cams only a time displacement of the switch-on position is effected via
C05521; the setting in C05522 has no effect.
• Dynamic cam sampling is limited by the half-cycle period. If the limitation is activated, the
bError output is set to TRUE and the limitation is signalled via error bit 15 in C05529.
Speed A Speed 2 * A
dnPosIn_p
t
bOut
t
Positive time displacement of the switch-on position (causes earlier switch-on)
Negative time displacement of the switch-off position (causes late switch-off)
[5-8] Displacement of the switch-on and switch-off position for different speeds
The contactor data can either be part of the cam data available in the memory module or be deter-
mined by a master control via PDOs or SDOs.
• If the FB uses the contactor data stored in the memory module, the corresponding track number
must be determined in the dnTrackNumber input.
• The FB L_CamSetContDataPDO serves to determine the contactor data via inputs/PDOs. The
contactor data are transferred to the FB L_CamContactor via the ContactorData input (see fig.
[5-9]).
• The FB L_CamSetContDataSDO serves to determine the contactor data via inputs/SDOs. The
contactor data are transferred to the FB L_CamContactor via the ContactorData input (see fig.
[5-10]).
Note!
If the inputs dnTrackNumber and ContactorData are assigned simultaneously, the con-
tactor data transferred via the ContactorData input is used. If this connection is separa-
ted, it is changed over to the contactor data stored in the memory module.
146 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.2 L_CamContactor - cam group with switch-on and switch-off dynamisation
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 147
5 Function blocks
5.2 L_CamContactor - cam group with switch-on and switch-off dynamisation
________________________________________________________________
148 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.3 L_CamCurve - curve interpolation for characteristics
________________________________________________________________
From the cam data under the current product number (specified by the LS_CamInterface SB), this FB
reads the table of values of the curve track selected via the input dnTrackNumber and outputs the
corresponding y value for the x value specified.
• Between two points of the table of values a linear interpolation takes place.
• This FB presents a reduced variant of the L_CamProfiler FB:
• The FB does not process modulo measuring systems, but reverts solely to the interpolation
point table stored.
• The FB does not have a synchronised track change algorithm.
• For a curve interpolation of a motion profile the L_CamProfiler FB is to be used instead.
Stop!
Ensure that the x measuring system of the curve track matches the input signal, as
otherwise serious malfunctions within the application may occur!
The y measuring system has to be defined as characteristic, otherwise an error is gene-
rated.
/B&DP&XUYH
GQ;,QSXW & & GQ<2XWSXW
<
GQ7UDFN1XPEHU E(UURU
;
& ;D[LVXQLW
& ;D[LVQDPH
& <D[LVXQLW
& <D[LVQDPH
;$[LV'DWD
& 6WDWH ;
<$[LV'DWD
<
&DPD[LVGDWD
Inputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 149
5 Function blocks
5.3 L_CamCurve - curve interpolation for characteristics
________________________________________________________________
Outputs
Parameter
150 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.3 L_CamCurve - curve interpolation for characteristics
________________________________________________________________
The characteristics (curves) are entered or imported in the »Cam Designer« by means of graphical
objects (point, line, polynomial). The transmission of the cam data to the controller(s) – together
with the corresponding parameter set – is effected via the »Engineer« by executing the command
Transfer parameter set to the device. Afterwards the parameter set and the cam data have to be sa-
ved in the memory module with mains failure protection (e. g. with the device command
C00002 = "11: Save starting parameters").
Tip!
The characteristics (curves) can also be entered directly via the parameters of the basic dri-
ve function "Cam data management" (LS_CamInterface SB) if cam data have already been
downloaded to the controller.
Product number
Track number
Characteristic data
• The selection of the product number is effected globally for the application via the input
CAM_dnProductNumber of the LS_CamInterface SB:
/6B&DP,QWHUIDFH " L
&$0BGQ3URGXFW1XPEHU
• The selection of the track number of the characteristic, however, is effected individually via
the input dnTrackNumber of the corresponding entity of the L_CamCurve FB.
/B&DP&XUYH " L
GQ7UDFN1XPEHU
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 151
5 Function blocks
5.3 L_CamCurve - curve interpolation for characteristics
________________________________________________________________
5.3.2 Function
The following characteristic with 4 grid points and a percentage scaling of the x and y axis are given:
Grid point 1 2 3 4
x value 0% 50 % 75 % 100 %
y value 25 % 50 % 50 % 100 %
dnYOutput
100 %
75 %
50 %
37.5 %
25 %
dnXInput
25 % 50 % 75 % 100 %
Scaling of characteristics
The scaling of characteristics cannot only be preselected in the »Cam Designer«/»Cam Editor« in
percent, but can be set independently for the x axis and the y axis (e. g. percent, increments, or every
other application unit of an existing measuring system).
Note!
Observe that the corresponding input and output signals are correctly processed accor-
ding to the respective scaling.
152 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.3 L_CamCurve - curve interpolation for characteristics
________________________________________________________________
/B&DP&XUYH " L
GQ;,QSXW GQ<2XWSXW
/B7E6DPSOH+ROG " L
E6WDUW E6WDUW
GQ,Q GQ2XW GQ7UDFN1XPEHU E(UURU
n 7UDFN1XPEHU
E6WDUW E6WDUW
E/RDG ;$[LV'DWD
o /B&DP3URILOHUE;=HUR
<$[LV'DWD
Track number
Status output signal "zero crossing" of the L_CamProfiler FB
[5-12] Interconnection example for only accepting new cam data in the zero crossing of the x axis
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 153
5 Function blocks
5.3 L_CamCurve - curve interpolation for characteristics
________________________________________________________________
/B&DP3URILOHU " L
GQ3RV,QBS GQ<3RV2XWBS
3)BGQ3RVLWLRQ6HWBS
E6WDUW UHY UHY
E6WDUW
GQ;2IIVHW3UHFWUOBS GQ<6SHHG2XWBV 0,BGQ,QHUWLD$GDSWBQ
UHY USP
GQ7UDFN1XPEHU GQ<$FF2XWB[
USPV
GQ<)HHG/HQJWKBS
UHY /B&DP&XUYH " L
E(UURU <$[LV'DWD
;$[LV'DWD
n
<$[LV'DWD
Offset with regard to the track number of the motion profile for the track number of the characteristic (here: 10)
/B&DP&XUYH " L
GQ;,QSXW GQ<2XWSXW
$,1BGQ,QBQ $287BGQ2XWBQ
E6WDUW E6WDUW
GQ7UDFN1XPEHU E(UURU
n 7UDFN1XPEHU
;$[LV'DWD
<$[LV'DWD
Track number
154 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.4 L_CamGetAxisData - reading out machine parameters from cam data
________________________________________________________________
Function library: LenzeCam FB only permissible for firmware from V3.0 onwards!
Runtime software licence: Motion Control HighLevel Motion Control TopLevel
This FB reads out the machine parameters of the axis selected via the input dnAxisNumber from the
cam data and via the output AxisData provides them to subsequent FBs requiring these data for in-
ternal calculations (e. g. master value integrators, FBs for stretching/compression and other FBs for
processing cam data).
• If it is used within curve applications, the FB at least has to be instanced twice:
• Instance 1 for the 1-measuring system (e. g. the measuring system of the x axis)
• Instance 2 for the 2-measuring system (e. g. the measuring system of the y axis)
• Further instances for other measuring systems available (e. g. characteristic) are then to be ad-
ded according to the application.
Note!
In order to enable the FB to read out machine parameters from a measuring system, the
corresponding measuring system must be used in the »Cam Manager« at least once in a
curve, cam, or position marker track!
Access to the machine parameters of the drive/motor
The machine parameters of the drive/motor via the output DI_AxisData of
the LS_DriveInterface SB are provided to other function blocks requiring these data for
internal calculations.
/B&DP*HW$[LV'DWD
GQ$[LV1XPEHU & $[LV'DWD
&DPGDWD E(UURU
GQ&\FOH/HQJWKBS
& *HDUER[IDFWRUQXPHUDWRU
& *HDUER[IDFWRUGHQRPLQDWRU &
& 5HVXOWLQJJHDUER[IDFWRU
& )HHGFRQVWDQW
& 7UDYHUVLQJUDQJH
& 5HVROXWLRQRIDSSOLFDWLRQXQLW
& 5HVROXWLRQRIHQFRGHUUHYROXWLRQ
& 5HIHUHQFHVSHHG
& 0D[LPXPPDFKLQHVSHHG
& 3RVLWLRQXQLW
& 6SHHGXQLW
& $FFHOHUDWLRQXQLW
& 7LPHXQLW
& $[LVQDPH & 6WDWH
Inputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 155
5 Function blocks
5.4 L_CamGetAxisData - reading out machine parameters from cam data
________________________________________________________________
Outputs
Parameters
Note!
Observe that the index of the codes listed in the following only applies to the first in-
stance!
1 Limited
2 Modulo
C05411 0.0000 Incr./unit 214748.3647 Resolution - application unit
• Read only
C05412 10 Bit 24 Resolution of encoder revolution
• Read only
156 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.4 L_CamGetAxisData - reading out machine parameters from cam data
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 157
5 Function blocks
5.5 L_CamPosMarker - reading out position marks from cam data
________________________________________________________________
From the cam data under the current product number (specified via the LS_CamInterface SB), this
FB reads out the track with position markers selected via the input dnTrackNumber and provides the
corresponding x and y positions for processing within the function block interconnection.
• A position data track can contain up to four position markers.
• As of Engineer version 2.9 up to eight position markers per position data track are supported.
/B&DP3RV0DUNHU
GQ7UDFN1XPEHU & \ & GQ;3RV0DUNHUBS
& GQ<3RV0DUNHUBS
Inputs
Outputs
158 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.5 L_CamPosMarker - reading out position marks from cam data
________________________________________________________________
Parameter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 159
5 Function blocks
5.5 L_CamPosMarker - reading out position marks from cam data
________________________________________________________________
160 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.5 L_CamPosMarker - reading out position marks from cam data
________________________________________________________________
The position markers are entered in the »Cam Designer«. The transmission of the cam data to the
controller(s) – together with the corresponding parameter set – is effected via the »Engineer« by
executing the command Transfer parameter set to the device. Afterwards the parameter set and
the cam data have to be saved in the memory module with mains failure protection (e. g. with the
device command C00002 = "11: Save starting parameters").
Tip!
The position markers can also be entered directly via the parameters of the basic drive func-
tion "Cam data management" (LS_CamInterface SB) if cam data have already been down-
loaded to the controller.
Product number
Track number
Position data
• The selection of the product number and therefore the selection of the product to be manuf-
actured for the application is effected globally via the input CAM_dnProductNumber of
the LS_CamInterface SB and has to be carried out synchronously for all cam drives in the inter-
connection.
/6B&DP,QWHUIDFH " L
&$0BGQ3URGXFW1XPEHU
• The selection of the track number of the profile data track, however, is effected individually
via the input dnTrackNumber of the corresponding entity of the L_CamPosMarker FB.
/B&DP3RV0DUNHU " L
GQ7UDFN1XPEHU
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 161
5 Function blocks
5.6 L_CamProfiler - curve interpolation for motion profiles
________________________________________________________________
Function library: LenzeCam FB only permissible for firmware from V3.0 onwards!
Runtime software licence: Motion Control HighLevel Motion Control TopLevel
From the cam data under the current product number (specified by the LS_CamInterface) SB, this
FB reads the table of values of the curve track selected via the input dnTrackNumber and outputs the
corresponding y position for the x position specified.
• Between two points of the table of values a linear interpolation is effected (similar to the
L_CamData FB of the "Software Package CAM" for 9300ET).
• The y position is output in the corresponding y measuring system (modulo/limited/unlimited).
• Additionally, the y speed and the acceleration curve are output which are used for the accelera-
tion feedforward control.
• Furthermore, for feed profiles (unlimited measuring system), the feed length for the use in a
subsequent FB for stretching and compression is output.
• For the curve interpolation of a characteristic, as a reduced variant of this FB, the L_CamCurve
FB is provided instead.
Stop!
Ensure that the selected curve track contains machine parameters matching the input
signals, as otherwise serious malfunctions within the application may occur!
Note!
The minimum x value must be "0" to ensure that the FB can work without errors. If the x
value range of a curve starts with x <> 0, an error will be output (bError = TRUE).
/B&DP3URILOHU
GQ;3RV,QBS & & GQ<3RV2XWBS
<
GQ;2IIVHW3UHFWUOBS & & GQ<6SHHG2XWBV
GQ7UDFN1XPEHU & GQ<$FF2XWB[
;
& GQ<)HHG/HQJWKBS
162 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.6 L_CamProfiler - curve interpolation for motion profiles
________________________________________________________________
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 163
5 Function blocks
5.6 L_CamProfiler - curve interpolation for motion profiles
________________________________________________________________
Parameters
164 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.6 L_CamProfiler - curve interpolation for motion profiles
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 165
5 Function blocks
5.6 L_CamProfiler - curve interpolation for motion profiles
________________________________________________________________
The motion profiles (curves) are entered or imported in the »Cam Designer« by means of graphical
objects (point, line, polynomial). The transmission of the cam data to the controller(s) – together
with the corresponding parameter set – is effected via the »Engineer« by executing the command
Transfer parameter set to the device. Afterwards the parameter set and the cam data have to be sa-
ved in the memory module with mains failure protection (e. g. with the device command
C00002 = "11: Save starting parameters").
Tip!
The motion profiles (curves) can also be entered directly via the parameters of the basic dri-
ve function "Cam data management" (LS_CamInterface SB) if cam data have already been
downloaded to the controller.
Product number
Track number
Profile data
• The selection of the product number and therefore the selection of the product to be manuf-
actured for the application is effected globally via the input CAM_dnProductNumber of
the LS_CamInterface SB and has to be carried out synchronously for all cam drives in the inter-
connection.
/6B&DP,QWHUIDFH " L
&$0BGQ3URGXFW1XPEHU
• The selection of the track number of the motion profile, however, is effected individually via
the input dnTrackNumber of the corresponding entity of the L_CamProfiler FB.
/B&DP3URILOHU " L
GQ7UDFN1XPEHU
166 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.6 L_CamProfiler - curve interpolation for motion profiles
________________________________________________________________
Via the output dnYAccOut_x the FB provides an acceleration feedforward value, if an acceleration
curve for the motion profile selected is stored in the cam data, and corresponding mass information
is stored in the machine parameters for the y axis.
• Optionally a dynamisation time can be set in C05506, by which the x position for the calculation
of the acceleration signal is trimmed.
• Additionally a user-definable position offset can be specified via the input dnXOffsetPrectrl_p,
which also displaces the acceleration track.
• Via the feedforward gain that can be set in C05507, additionally a systematic adjustment of the
feedforward control can be carried out.
Via the outputs XAxisData and YAxisData the machine parameters of the x and y axis are provided
for the optional further use in other FBs.
• For purposes of information, the designation of the x axis is displayed in C05500/4 and the de-
signation of the y axis is shown in C05501/4.
Tip!
In more complex interconnections, for purposes of clarity, it is recommended to read out
the machine parameters specifically via an instance of the L_CamGetAxisData FB instead
of using the outputs XAxisData and YAxisData.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 167
5 Function blocks
5.7 L_CamSetContDataPDO - contactor data selection via inputs/PDOs
________________________________________________________________
This FB serves to select contactor data independent of the cam technology (CamDesigner/LC1 file)
directly via inputs.
• The inputs can be connected, for instance, to a corresponding port block to accept contactor
data from a master control via process data objects (PDOs).
• The read contactor data are transferred to the FB L_CamContactor via the ContactorData out-
put.
• The read contactor data are saved with mains failure protection and thus will be available even
after mains switching.
• The FB L_CamSetContDataSDO serves to select the contactor data via codes/SDOs.
/B&DP6HW&RQW'DWD3'2
E/RDG &RQWDFWRU'DWD
GQ&RQW7\SH E(UURU
GZ&DP1XPEHU
GQ&DP2Q
GQ&DP2II
GQ&DP2Q
GQ&DP2II
GQ&DP2Q 3'2
GQ&DP2II
& &DPW\SH
GQ&DP2Q
GQ&DP2II 6ZLWFKRQ 6ZLWFKRII
SRVLWLRQ SRVLWLRQ WLPH
GQ&DP2Q
& & &
GQ&DP2II
& & &
GQ&DP2Q & & &
GQ&DP2II & & &
GQ&DP2Q & & &
Inputs
168 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.7 L_CamSetContDataPDO - contactor data selection via inputs/PDOs
________________________________________________________________
Outputs
Parameter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 169
5 Function blocks
5.7 L_CamSetContDataPDO - contactor data selection via inputs/PDOs
________________________________________________________________
170 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.7 L_CamSetContDataPDO - contactor data selection via inputs/PDOs
________________________________________________________________
The following table contains the behaviour of the FB in various special cases:
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 171
5 Function blocks
5.8 L_CamSetContDataSDO - contactor data selection via codes/SDOs
________________________________________________________________
This FB serves to select contactor data independent of the cam technology (CamDesigner/LC1 file)
directly via codes.
• The codes can be written, for instance, via parameter data objects (SDOs) by a master control.
• The FB supports "Teaching" of cams.
• The contactor data are transferred to the FB L_CamContactor via the ContactorData output.
• The FB L_CamSetContDataPDO serves to select the contactor data via inputs/PDOs.
Note!
After changing the contactor data during operation:
Save the parameter set and the cam data with mains failure protection in the memory
module (e.g. using the device command C00002 = "11: Save start parameter").
/B&DP6HW&RQW'DWD6'2
E7HDFK &RQWDFWRU'DWD
GZ7HDFK&DP,QGH[ E(UURU
GQ7HDFK&DP2Q
7HDFK
GQ7HDFK&DP2II
6'2
& &DPW\SH
& &DPQXPEHU
6ZLWFKRQ 6ZLWFKRII
SRVLWLRQ SRVLWLRQ WLPH
& & &
& & &
& & &
& & &
& & &
& & &
& & &
& & &
$[LV'DWD
& 3RVXQLW & 6WDWH
172 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.8 L_CamSetContDataSDO - contactor data selection via codes/SDOs
________________________________________________________________
Inputs
Outputs
Parameter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 173
5 Function blocks
5.8 L_CamSetContDataSDO - contactor data selection via codes/SDOs
________________________________________________________________
The following table contains the behaviour of the FB in various special cases:
174 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.9 L_CamStretchAbs - stretching/compressing the position (absolute)
________________________________________________________________
This FB is used for simple absolute stretching and compression of a position in the limited traversing
range.
• Via the inputs dnNumerator and dnDenominator a free stretch factor for the position transmis-
sion can be defined. A changed stretch factor is only accepted internally with a TRUE signal at
the input bZero.
• At the same time, the FB can stretch/compress the acceleration feedforward value, which
the L_CamProfiler FB provides to downstream FBs.
/B&DP6WUHWFK$EV
& (IIHFWLYHVWUHWFKLQJIDFWRU
Inputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 175
5 Function blocks
5.9 L_CamStretchAbs - stretching/compressing the position (absolute)
________________________________________________________________
Outputs
Parameter
176 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.9 L_CamStretchAbs - stretching/compressing the position (absolute)
________________________________________________________________
By means of this FB a traversing path within the limited traversing range can be simply changed via
factors. By this, the motion profile can be maintained.
M
Limited traversing range
• Thereby the factors always relate to the zero point of the motion profile on the y axis.
dnPosIn_p
dnPosOut_p
100
50
-50
-100
0° 20° 40° 60° 80° 100° 120° 140° 160° 180° 200° 220° 240° 260° 280° 300° 320° 340° 360°
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 177
5 Function blocks
5.9 L_CamStretchAbs - stretching/compressing the position (absolute)
________________________________________________________________
dnPosIn_p
dnPosOut_p
360°
180°
0°
0° 20° 40° 60° 80° 100° 120° 140° 160° 180° 200° 220° 240° 260° 280° 300° 320° 340° 360°
dnAccIn_x
dnAccOut_x
0
20° 40° 60° 80° 120° 140° 160° 200° 220° 240° 280° 300° 320° 340° 360°
dnSpeedOut_s
0
20° 40° 60° 80° 100° 120° 140° 160° 180° 200° 220° 240° 260° 280° 300° 320° 340° 360°
178 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.9 L_CamStretchAbs - stretching/compressing the position (absolute)
________________________________________________________________
n 0DVWHU3RVLWLRQ p 1XPHUDWRU
o 7UDFN1XPEHU 'HQRPLQDWRU
GQ$FW7UDFN1XPEHU $[LV'DWD
E;=HUR
E(UURU
3)BGQ3RVLWLRQ6HWBS
;$[LV'DWD
3)BGQ6SHHG$GGBV
<$[LV'DWD 3)BGQ$FF$GGB[
Master position
Track number
Stretch/compression factor
Note!
If the stretch/compression factor is to be altered online, it may only be changed over in
the zero position of the motion profile, or it has to be directed via a profile generator.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 179
5 Function blocks
5.10 L_CamStretchFeed - stretching/compressing the position (relative)
________________________________________________________________
This FB is used for relative stretching and compression of a position in the "modulo" or "unlimited"
traversing range. For this the FB differentiates the input position to a position difference and stret-
ches or compresses it. Afterwards the position difference stretched/compressed is integrated to a
continuous position for the "unlimited" traversing range, or cycle-related for the "modulo" traver-
sing range.
• The output continuous position can be directly transferred to the basic function "position follo-
wer" (LS_PositionFollower SB).
• Via the inputs dnNumerator and dnDenominator a free stretch factor for the speed transmission
can be defined. A changed stretch factor is only immediately accepted internally with a TRUE si-
gnal at the input bZero.
• Via the input bLoadStartPos the position output can be set to the starting position pending at
the input dnStartPos_p.
/B&DP6WUHWFK)HHG
& (IIHFWLYHVWUHWFKLQJIDFWRU
GZ)HHG5HVLGXDO E(UURU
E=HUR
GQ1XPHUDWRU
& 3RVXQLW
GQ'HQRPLQDWRU & 6SHHGXQLW
E/RDG6WDUW3RV
GQ6WDUW3RVBS &
$[LV'DWD
&75/ & 6WDWH
Inputs
180 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.10 L_CamStretchFeed - stretching/compressing the position (relative)
________________________________________________________________
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 181
5 Function blocks
5.10 L_CamStretchFeed - stretching/compressing the position (relative)
________________________________________________________________
Parameter
182 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.10 L_CamStretchFeed - stretching/compressing the position (relative)
________________________________________________________________
By means of this FB a feed motion with regard to the feed length at the L_CamProfiler FB can be sim-
ply altered via factors. Like this, the motion profile can be maintained.
M
Feed motion
Cutter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 183
5 Function blocks
5.10 L_CamStretchFeed - stretching/compressing the position (relative)
________________________________________________________________
dnPosIn_p
bLoadStartPos
t
dnStartPos_p
t
dnPosOut_p
t
dnSpeedOut_s
t
"Unlimited" traversing range
"Modulo" traversing range
184 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.10 L_CamStretchFeed - stretching/compressing the position (relative)
________________________________________________________________
n 0DVWHU3RVLWLRQ p 1XPHUDWRU
o 7UDFN1XPEHU 'HQRPLQDWRU
/B&DP3URILOHU " L
GQ3RV,QBS GQ<3RV2XWBS
E;=HUR GQ1XPHUDWRU
E(UURU GQ'HQRPLQDWRU
;$[LV'DWD E/RDG6WDUW3RV
<$[LV'DWD GQ6WDUW3RVBS
UHY
$[LV'DWD
q ',*,1BE,Q 3)BGQ3RVLWLRQ6HWBS
6WDUW3RVLWLRQ 3)BGQ6SHHG$GGBV
3)BGQ$FF$GGB[
Master position
Track number
Stretch/compression factor
Set initial position to starting position
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 185
5 Function blocks
5.11 L_CamSyncIn - synchronous/oversynchronous clutch-in
________________________________________________________________
This FB serves to synchronise a tool (drive) to a running material (relative master speed).
• Types of synchronisation:
• Mark-controlled (touch probe)
• Manually controlled (e.g. manually controlled top cut with flying saw)
• The synchronisation is path-based and functionally corresponds to a subset of the
L_EsClutchPos clutch module. Synchronous or oversynchronous synchronisations are possible.
• The function corresponds to the "DFRFG" function of the 9300EK servo inverter and additionally
supports a path-controlled clutch-in.
/B&DP6\QF,Q
GQ6SHHG,QBV & & GQ3RV2XWBS
& GQ6SHHG2XWBV
GQ7S3RVBS &
Inputs
186 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.11 L_CamSyncIn - synchronous/oversynchronous clutch-in
________________________________________________________________
Outputs
Parameter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 187
5 Function blocks
5.11 L_CamSyncIn - synchronous/oversynchronous clutch-in
________________________________________________________________
188 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.11 L_CamSyncIn - synchronous/oversynchronous clutch-in
________________________________________________________________
When a flying saw is used, the tool moves in synchronism with the moving material during the ma-
chining process. For this purpose, the tool must first be moved on a slide in parallel to the material.
To create the feed of the tool during the machining process, a second drive moves it with constant
speed at 90° to the material. At the end of the machining process, the drive must be repositioned to
its initial position.
A third drive from the tool drive group moves the tool, e.g., by means of the basic function "Positio-
ning" (LS_Positioner system block).
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 189
5 Function blocks
5.11 L_CamSyncIn - synchronous/oversynchronous clutch-in
________________________________________________________________
Motion sequence
The motion sequence of the flying saw drive consists of the following phases:
A. Synchronising: First the tool must be accelerated from the basic position to the material speed.
When the material speed has been reached, the tool must be in the cutting position. The exact
position of the points of intersection on the web is detected by a touch probe sensor.
B. Synchronous travel: The tool immerses into the material, then moves in synchronism with the
material speed until the machining process is terminated including the lifting of the tool.
C. Travel back to initial position: Finally the tool is repositioned to the basic position, e.g. with the
LS_Positioner system block.
0 1
2
Traversing range - axis 1
1
2
v
0
0
Synchronisation processes
In this example, always three movements are to be synchronised:
1. Running material to web (master value/master position).
2. Synchronising the slide with saw to web.
3. Releasing the cut with the saw.
Thus, three different measuring systems must be related to each other. In a path-controlled system,
synchronising and the release of the cut can be started simultaneously, since the master value/mas-
ter position ensure that both synchronisation processes are terminated at the same time. This, ho-
wever, does not apply to the traverse path with different master speeds.
190 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.11 L_CamSyncIn - synchronous/oversynchronous clutch-in
________________________________________________________________
Operating mode
The traversing range has a starting position which can be defined via the dnOpenPos_p input. This
starting position is also the target position for the LS_Positioner system block for repositioning.
As soon as the start of the synchronous range is reached, the cutting process can be started. The
starting position of the synchronous range is defined via the dnSyncPos_p input.
Afterwards the tool reports the end of the cutting process, e.g. using the boolean signals. This signal
serves to activate the LS_Positioner system block to traverse the saw back into the dnOpenPos_p
starting position.
During or after the termination of the re-positioning, the bReset input must be set from FALSE to
TRUE once to activate the function block for the synchronisation of the next purpose.
A "top cut" can be activated by setting the bManualSync input to TRUE. In this case, synchronising is
immediately started independent of the mark detection/position of the material.
Due to the set ramps and the position of the touch probe sensor, no distance needs to be caught up.
After clutch-in, the dnSpeedOut_s speed output follows the dnSpeedIn_s master speed.
VMaster
0
t
VSlave
0
t
Tip!
Prefer the synchronous clutch-in to the oversynchronous clutch-in, since it prevents the
material and tools from damage.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 191
5 Function blocks
5.11 L_CamSyncIn - synchronous/oversynchronous clutch-in
________________________________________________________________
Preconditions
The following conditions must be fulfilled for synchronous clutch-in:
1. The difference between the position of the touch probe sensor and the basic position of the tool
at standstill must be equal or greater than the difference between the basic function and the
starting function of the synchronous range:
³
dnTpPos_p dnOpenPos_p dnSyncPos_p
29000 20000
0 5000 10000 15000 20000 25000 30000 35000 40000 45000 50000 55000 60000 65000
dnSyncPos_p
dnOpenPos_p
Y axis
dnTpPos_p
~TP
X axis
2. When bTpReceived or bManualSync are enabled, the resulting clutch-in time must not fall below
the minimum clutch-in time parameterised in C05603.
• The time refers to the reference speed when being reached and is thus reduced proportiona-
tely when the master speed is lower than the reference speed.
If the preconditions mentioned before are not fulfilled, clutch-in does not take place. The bError out-
put is set to TRUE and the cause of error is displayed bit coded in C05609.
192 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.11 L_CamSyncIn - synchronous/oversynchronous clutch-in
________________________________________________________________
Sequence
Usually, the clutch-in process is started mark-controlled by setting the bTpReceived input to TRUE.
For this purpose, the inputs dnTpTimeLag and bTpReceived must be connected to the touch probe
system block for the digital input which is connected to the touch probe sensor.
A manual clutch-in can be activated anytime via the bManualSync input (e.g. for "top cut" with a
flying saw).
During the synchronising process, the bAcc output is set to TRUE. As soon as synchronicity has been
reached (dnPosOut_p >= dnSyncPos_p), the bSync output is set to TRUE instead.
By setting the bReset input from FALSE to TRUE, the function block for the next synchronising can be
activated.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 193
5 Function blocks
5.11 L_CamSyncIn - synchronous/oversynchronous clutch-in
________________________________________________________________
VMaster
VSlave t
0
t
Preconditions
The following conditions must be fulfilled for oversynchronous clutch-in:
1. The difference between the position of the touch probe sensor and the basic position of the tool
at standstill must be lower than the difference between the basic function and the starting
function of the synchronous range:
<
dnTpPos_p dnOpenPos_p dnSyncPos_p
6000 20000
0 5000 10000 15000 20000 25000 30000 35000 40000 45000 50000 55000 60000 65000
[5-30]
2. The maximum oversynchronous speed to be parameterised in C05602 must be greater than the
master speed. The lower the distance of the touch probe sensor from the starting position of the
synchronous range, the greater must be the oversynchronous speed.
If the preconditions mentioned before are not fulfilled, clutch-in does not take place. The bError out-
put is set to TRUE and the cause of error is displayed bit-coded in C05609. Remedy: Increase value
of C05602 until the error does not occur anymore.
Sequence
The sequence corresponds to the sequence for a synchronous clutch-in described in the previous
chapter. Synchronous clutch-in ( 191)
194 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.11 L_CamSyncIn - synchronous/oversynchronous clutch-in
________________________________________________________________
1
0 bTpReceived
1 bReset
0 bManualSync
State
1 bSync
0 bAcc
1
0
1
0
200
dnOpenPos_p
dnSyncPos_p
103 Inc.
dnPosOut_p
100
0
100
dnSpeedOut_s
Speed [rpm]
dnSpeedIn_s
50
0
0 500 1000 1500 2000 2500
Time [ms]
L_CamSyncIn_SpId01_Utc01
1 bTpReceived
0 bReset
1 bSync
State
0 bAcc
1
0
1
0
200
dnOpenPos_p
dnSyncPos_p
103 Inc.
dnPosOut_p
100
0
300
dnSpeedOut_s
Speed [rpm]
dnSpeedIn_s
200 dnMaxSyncSpeed_s
100
0
0 500 1000 1500 2000 2500
Time [ms]
L_CamSyncIn_SpId02_Utc01
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 195
5 Function blocks
5.11 L_CamSyncIn - synchronous/oversynchronous clutch-in
________________________________________________________________
196 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.12 L_Dc2BytesToWord - type converter
________________________________________________________________
This FB converts two input values of type "BYTE" into an output value of type "WORD".
/B'F%\WHV7R:RUG
E\,QSXW
E\,QSXW
Z2XW
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 197
5 Function blocks
5.13 L_Dc2WordsToDWord- type converter
________________________________________________________________
This FB converts two input values of type "WORD" into an output value of type "DWORD".
/B'F:RUGV7R':RUG
Z,QSXW
Z,QSXW
GZ2XWSXW
Inputs
Outputs
198 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.14 L_Dc4BytesToDWord - type converter
________________________________________________________________
This FB converts four input values of type "BYTE" into an output value of type "DWORD".
/B'F%\WHV7R':RUG
E\,QSXW
E\,QSXW
E\,QSXW
E\,QSXW
GZ2XW
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 199
5 Function blocks
5.15 L_DcBitShift - shift operation
________________________________________________________________
/B'F%LW6KLIW
GQ,Q
& %LW %LW
GQ2XW
6KLIWIDFWRU
Inputs
Outputs
Parameter
Example
Bit 31
0 0 Bit 0 Bit 31 Bit 0
dnOut dnOut
200 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.16 L_DcBitShiftByte - shift operation
________________________________________________________________
/B'F%LW6KLIW%\WH
E\,Q
& %LW %LW
E\2XW
6KLIWIDFWRU
Inputs
Outputs
Parameter
Example
Bit 7
0 0 Bit 0 Bit 7 Bit 0
byOut byOut
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 201
5 Function blocks
5.17 L_DcBitShiftDWord - shift operation
________________________________________________________________
/B'F%LW6KLIW':RUG
GZ,Q
& %LW %LW
GZ2XW
6KLIWIDFWRU
Inputs
Outputs
Parameter
Example
Bit 31
0 0 Bit 0 Bit 31
0 0 0 Bit 0
dwOut dwOut
202 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.18 L_DcBitShiftInt - shift operation
________________________________________________________________
/B'F%LW6KLIW,QW
Q,Q
& %LW %LW
Q2XW
6KLIWIDFWRU
Inputs
Outputs
Parameter
Example
Bit 15
0 0 Bit 0 Bit 15 Bit 0
nOut nOut
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 203
5 Function blocks
5.19 L_DcBitShiftWord - shift operation
________________________________________________________________
/B'F%LW6KLIW:RUG
Z,Q
& %LW %LW
Z2XW
6KLIWIDFWRU
Inputs
Outputs
Parameter
Example
Bit 15
0 0 Bit 0 Bit 15
0 0 0 Bit 0
wOut wOut
204 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.20 L_DcBitsToByte - bit multiplexer
________________________________________________________________
/B'F%LWV7R%\WH
E%LW E\2XWSXW
E%LW
%<7(
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 205
5 Function blocks
5.21 L_DcBitsToDWord - bit multiplexer
________________________________________________________________
/B'F%LWV7R':RUG
E%LW GZ2XWSXW
E%LW
':25'
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
Inputs
206 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.21 L_DcBitsToDWord - bit multiplexer
________________________________________________________________
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 207
5 Function blocks
5.22 L_DcBitsToWord - bit multiplexer
________________________________________________________________
/B'F%LWV7R:RUG
E%LW Z2XWSXW
E%LW
:25'
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
Inputs
Outputs
208 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.23 L_DcByteBitand - bit combination
________________________________________________________________
This FB carries out a bit-by-bit AND operation of two input values of "BYTE" type and also outputs
the results as "BYTE".
/B'F%\WH%LWDQG
E\,Q
E\,Q %LW %LW
E\2XW
Inputs
Outputs
Function
Example
byIn1 = 00101001
byIn2 = 01111000
--------
byOut = 00101000
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 209
5 Function blocks
5.24 L_DcByteBitor - bit combination
________________________________________________________________
This FB carries out a bit-by-bit OR operation of two input values of "BYTE" type and also outputs the
results as "BYTE".
/B'F%\WH%LWRU
E\,Q
E\,Q %LW %LW
E\2XW
Inputs
Outputs
Function
Example
byIn1 = 00101001
byIn2 = 01111000
--------
byOut = 01111001
210 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.25 L_DcByteBitxor - bit combination
________________________________________________________________
This FB carries out a bit-by-bit EXCLUSIVE/OR operation of two input values of "BYTE" type and also
outputs the results as "BYTE".
/B'F%\WH%LW[RU
E\,Q
E\,Q %LW %LW
E\2XW
Inputs
Outputs
Function
Example
byIn1 = 00101001
byIn2 = 01111000
--------
byOut = 01010001
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 211
5 Function blocks
5.26 L_DcByteToBits - bit demultiplexer
________________________________________________________________
This FB outputs the 8 corresponding bit values for an input value of type "BYTE".
/B'F%\WH7R%LWV
E\,QSXW E%LW
%<7(
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
Inputs
Outputs
212 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.27 L_DcByteToInt - type converter
________________________________________________________________
This FB converts a data type "BYTE" into the data type "INT".
/B'F%\WH7R,QW
E\,Q Q2XW
%<7( ,17
Inputs
Outputs
Function
BYTE
Bit 7 Bit 0
Bit 15
0 0 0 0 0 0 0 0 Bit 0
INT
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 213
5 Function blocks
5.28 L_DcByteToWord - type converter
________________________________________________________________
This FB converts a data type "BYTE" into the data type "WORD".
/B'F%\WH7R:RUG
E\,Q Z2XW
%<7( :25'
Inputs
Outputs
Function
BYTE
Bit 7 Bit 0
Bit 15
0 0 0 0 0 0 0 0 Bit 0
WORD
214 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.29 L_DcDIntToDWord - type converter
________________________________________________________________
This FB converts a data type "DINT" into the data type "DWORD".
/B'F',QW7R':RUG
GQ,Q GZ2XW
',17 ':25'
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 215
5 Function blocks
5.30 L_DcDIntToInt - type converter
________________________________________________________________
This FB converts a data type "DINT" into the data type "INT".
/B'F',QW7R,QW
GQ,Q Q2XW
',17 ,17
Inputs
Outputs
Function
Bit 15
± Bit 0
INT
216 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.31 L_DcDWordBitand - bit combination
________________________________________________________________
This FB carries out a bit-by-bit AND operation of two input values of "DWORD" type and also outputs
the results as "DWORD".
/B'F':RUG%LWDQG
GZ,Q
GZ,Q %LW %LW
GZ2XW
Inputs
Outputs
Function
Example
dwIn1 = 00011001010011100001011000101000
dwIn2 = 01010001100001100100100001111000
--------------------------------
dwOut = 00010001000001100000000000101000
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 217
5 Function blocks
5.32 L_DcDWordBitor - bit combination
________________________________________________________________
This FB carries out a bit-by-bit OR operation of two input values of "DWORD" type and also outputs
the results as "DWORD".
/B'F':RUG%LWRU
GZ,Q
GZ,Q %LW %LW
GZ2XW
Inputs
Outputs
Function
Example
dwIn1 = 00011001010011100001011000101000
dwIn2 = 01010001100001100100100001111000
--------------------------------
dwOut = 01011001110011100101111001111000
218 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.33 L_DcDWordBitxor - bit combination
________________________________________________________________
This FB carries out a bit-by-bit EXCLUSIVE OR operation of two input values of "DWORD" type and
also outputs the results as "DWORD".
/B'F':RUG%LW[RU
GZ,Q
GZ,Q %LW %LW
GZ2XW
Inputs
Outputs
Function
Example
dwIn1 = 00011001010011100001011000101000
dwIn2 = 01010001100001100100100001111000
--------------------------------
dwOut = 01001000110010000101111001010000
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 219
5 Function blocks
5.34 L_DcDWordTo2Words - type converter
________________________________________________________________
This FB converts an input value of type "DWORD" into two output values of type "WORD".
/B'F':RUG7R:RUGV
GZ,QSXW
Z2XWSXW
Z2XWSXW
Inputs
Outputs
220 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.35 L_DcDWordTo4Bytes - type converter
________________________________________________________________
This FB converts an input value of type "DWORD" into four output values of type "BYTE".
/B'F':RUG7R%\WHV
GZ,QSXW
E\2XWSXW
E\2XWSXW
E\2XWSXW
E\2XWSXW
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 221
5 Function blocks
5.36 L_DcDWordToBits - bit demultiplexer
________________________________________________________________
This FB outputs the 32 corresponding bit values for an input value of "DWORD" type.
/B'F':RUG7R%LWV
GZ,QSXW E%LW
':25'
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
Inputs
222 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.36 L_DcDWordToBits - bit demultiplexer
________________________________________________________________
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 223
5 Function blocks
5.37 L_DcDWordToDInt - type converter
________________________________________________________________
This FB converts a data type "DWORD" into the data type "DINT".
/B'F':RUG7R',QW
GZ,Q GQ2XW
':25' ',17
Inputs
Outputs
224 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.38 L_DcDWordToWord - type converter
________________________________________________________________
This FB converts a data type "DWORD" into the data type "WORD".
/B'F':RUG7R:RUG
GZ,Q Z2XW
':25' :25'
Inputs
Outputs
Function
DWORD
Bit 31 Bit 0
Bit 15 Bit 0
WORD
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 225
5 Function blocks
5.39 L_DcGetBitOfByte - bit operation
________________________________________________________________
/B'F*HW%LW2I%\WH
E\,QSXW E%LW
E\%LW1U
Inputs
Outputs
226 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.40 L_DcGetBitOfDWord - bit operation
________________________________________________________________
/B'F*HW%LW2I':RUG
GZ,QSXW E%LW
E\%LW1U
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 227
5 Function blocks
5.41 L_DcGetBitOfWord - bit operation
________________________________________________________________
/B'F*HW%LW2I:RUG
Z,QSXW E%LW
E\%LW1U
Inputs
Outputs
228 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.42 L_DcIntToDInt - type converter
________________________________________________________________
This FB converts a data type "INT" into the data type "DINT".
/B'F,QW7R',QW
Q,Q GQ2XW
,17 ',17
Inputs
Outputs
Function
INT
Bit 15
± Bit 0
Bit 31
± ± ± ± ± ± ± ± ± ± ± ± ± ± ± ± ± Bit 0
DINT
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 229
5 Function blocks
5.43 L_DcIntToWord - type converter
________________________________________________________________
This FB converts a data type "INT" into the data type "WORD" .
/B'F,QW7R:RUG
Q,Q Z2XW
,17 :25'
Inputs
Outputs
230 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.44 L_DcNorm_aToNorm_n - signal converter
________________________________________________________________
/B'F1RUPBD7R1RUPBQ
Q,QBD GQ2XWBQ
>@%LW >@%LW
Inputs
Outputs
Function
nIn_a
Bit 15
± Bit 0
Bit 31
± 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Bit 0
dnOut_n
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 231
5 Function blocks
5.45 L_DcNorm_nToNorm_a - signal converter
________________________________________________________________
/B'F1RUPBQ7R1RUPBD
GQ,QBQ Q2XWBD
>@%LW >@%LW
Inputs
Outputs
Function
dnIn_n
Bit 31
± Bit 0
Bit 15
± Bit 0
nOut_a
232 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.46 L_DcNorm_nToSpeed_s - signal converter
________________________________________________________________
This FB uses the transmitted machine parameters and converts a scaled 32-bit signal into a 32-bit
speed signal.
/B'F1RUPBQ7R6SHHGBV
GQ,QBQ GQ2XWBV
>@%LW >USP@%LW
$[LV'DWD
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 233
5 Function blocks
5.47 L_DcResetBitOfByte - bit operation
________________________________________________________________
/B'F5HVHW%LW2I%\WH
E\,QSXW E\2XWSXW
E\%LW1U
Inputs
Outputs
234 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.48 L_DcResetBitOfDWord - bit operation
________________________________________________________________
/B'F5HVHW%LW2I':RUG
GZ,QSXW GZ2XWSXW
E\%LW1U
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 235
5 Function blocks
5.49 L_DcResetBitOfWord - bit operation
________________________________________________________________
/B'F5HVHW%LW2I:RUG
Z,QSXW Z2XWSXW
E\%LW1U
Inputs
Outputs
236 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.50 L_DcSetBitOfByte - bit operation
________________________________________________________________
/B'F6HW%LW2I%\WH
E\,QSXW E\2XWSXW
E\%LW1U
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 237
5 Function blocks
5.51 L_DcSetBitOfDWord - bit operation
________________________________________________________________
/B'F6HW%LW2I':RUG
GZ,QSXW GZ2XWSXW
E\%LW1U
Inputs
Outputs
238 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.52 L_DcSetBitOfWord - bit operation
________________________________________________________________
/B'F6HW%LW2I:RUG
Z,QSXW Z2XWSXW
E\%LW1U
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 239
5 Function blocks
5.53 L_DcSpeed_sToNorm_n - signal converter
________________________________________________________________
This FB uses the transmitted machine parameters and converts a 32-bit speed signal into a scaled
32-bit signal.
/B'F6SHHGBV7R1RUPBQ
GQ,QBV GQ2XWBQ
>USP@%LW >@%LW
$[LV'DWD
Inputs
Outputs
240 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.54 L_DcSpeed_sToSpeed_v - signal converter
________________________________________________________________
/B'F6SHHGBV7R6SHHGBY
GQ,QBV Q2XWBY
>USP@%LW >USP@%LW
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 241
5 Function blocks
5.55 L_DcSpeed_vToSpeed_s - signal converter
________________________________________________________________
/B'F6SHHGBY7R6SHHGBV
Q,QBY GQ2XWBV
>USP@%LW >USP@%LW
Inputs
Outputs
242 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.56 L_DcWordBitand - bit combination
________________________________________________________________
This FB carries out a bit-by-bit AND operation of two input values of "WORD" type and also outputs
the results as "WORD".
/B'F:RUG%LWDQG
Z,Q
Z,Q %LW %LW
Z2XW
Inputs
Outputs
Function
Example
wIn1 = 0001011000101000
wIn2 = 0100100001111000
----------------
wOut = 0000000000101000
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 243
5 Function blocks
5.57 L_DcWordBitor - bit combination
________________________________________________________________
This FB carries out a bit-by-bit OR operation of two input values of "WORD" type and also outputs
the results as "WORD".
/B'F:RUG%LWRU
Z,Q
Z,Q %LW %LW
Z2XW
Inputs
Outputs
Function
Example
wIn1 = 0001011000101000
wIn2 = 0100100001111000
----------------
wOut = 0101111001111000
244 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.58 L_DcWordBitxor - bit combination
________________________________________________________________
This FB carries out a bit-by-bit EXCLUSIVE OR operation of two input values of "WORD" type and also
outputs the results as "WORD".
/B'F:RUG%LW[RU
Z,Q
Z,Q %LW %LW
Z2XW
Inputs
Outputs
Function
Example
wIn1 = 0001011000101000
wIn2 = 0100100001111000
----------------
wOut = 0101111001010000
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 245
5 Function blocks
5.59 L_DcWordTo2Bytes - type converter
________________________________________________________________
This FB converts an input value of type "WORD" into two output values of type "BYTE".
/B'F:RUG7R%\WHV
Z,QSXW
E\2XWSXW
E\2XWSXW
Inputs
Outputs
246 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.60 L_DcWordToBits - bit demultiplexer
________________________________________________________________
This FB outputs the 16 corresponding bit values for an input value of type "WORD".
/B'F:RUG7R%LWV
Z,QSXW E%LW
:25'
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
E%LW
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 247
5 Function blocks
5.61 L_DcWordToByte - type converter
________________________________________________________________
This FB converts a data type "WORD" into the data type "BYTE" .
/B'F:RUG7R%\WH
Z,Q E\2XW
:25' %<7(
Inputs
Outputs
Function
WORD
Bit 15 Bit 0
Bit 7 Bit 0
BYTE
248 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.62 L_DcWordToDWord - type converter
________________________________________________________________
This FB converts a data type "WORD" into the data type "DWORD" .
/B'F:RUG7R':RUG
Z,Q GZ2XW
:25' ':25'
Inputs
Outputs
Function
WORD
Bit 15 Bit 0
Bit 31
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Bit 0
DWORD
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 249
5 Function blocks
5.63 L_DcWordToInt - type converter
________________________________________________________________
This FB converts a data type "WORD" into the data type "INT".
/B'F:RUG7R,QW
Z,Q Q2XW
:25' ,17
Inputs
Outputs
250 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.64 L_DevApplErr - error tripping
________________________________________________________________
/B'HY$SSO(UU
E(UURU (UURU,' 5HDFWLRQ,' GQ6WDWH
& &
E(UURU GQ/DVW(UURU1R
(UURUKDQGOHU
& &
E(UURU
& &
E(UURU
& &
E(UURU
& &
E(UURU
& &
E(UURU
& &
E(UURU
& &
0RGXOH,' &
Inputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 251
5 Function blocks
5.64 L_DevApplErr - error tripping
________________________________________________________________
Outputs
Parameter
252 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.65 L_DevApplErrFix - error tripping
________________________________________________________________
/B'HY$SSO(UU)L[
E6HW(UURU GQ6WDWH
GZ(UURU,G GQ(UURU1R
GZ5HDFWLRQ,G
E6HW(UURU
GZ(UURU,G
GZ5HDFWLRQ,G
E6HW(UURU
GZ(UURU,G
GZ5HDFWLRQ,G
E6HW(UURU
GZ(UURU,G
(UURUKDQGOHU
GZ5HDFWLRQ,G
E6HW(UURU
GZ(UURU,G
GZ5HDFWLRQ,G
E6HW(UURU
GZ(UURU,G
GZ5HDFWLRQ,G
E6HW(UURU
GZ(UURU,G
GZ5HDFWLRQ,G
E6HW(UURU
GZ(UURU,G
GZ5HDFWLRQ,G
GZ0RGXO,G
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 253
5 Function blocks
5.65 L_DevApplErrFix - error tripping
________________________________________________________________
Inputs
Outputs
254 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.66 L_DevBrakeStateDecoder - status signals of the basic function "Brake control"
________________________________________________________________
This FB decodes the status output signal dnState of the SB LS_Brake into individual boolean status
signals for further use in the FB interconnection.
• The functionality corresponds to a converter "DINTBOOL", but the boolean outputs of this FB
have the same names according to their meaning.
/B'HY%UDNH6WDWH'HFRGHU
GQ6WDWH E$FWLYH
E0RGXO8VHG
E%UDNH5HOHDVHG
E(UURU$FWLYH
E*ULQG,Q
/6B%UDNHVWDWH
E7RUTXH7HVW
E'LUHFW0RGH
E$XWR0RGH
E(UU([W)HHGEDFN
E(UU3RV'ULIW
E(UU0RGXO
E7LPH$FWLYDWH
E*ULQG,Q'RQH
E7RUTXH7HVW'RQH
E(UURU7RUTXH&WUO
E6SHHG%HORZ0LQ6SHHG
Inputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 255
5 Function blocks
5.66 L_DevBrakeStateDecoder - status signals of the basic function "Brake control"
________________________________________________________________
Outputs
The boolean outputs have the following meaning when the value is TRUE:
256 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.67 L_DevDriveInterfaceStateDecoder - status signals of the drive interface
________________________________________________________________
This FB decodes the status output signal dnState of the SB LS_DriveInterface into individual boolean
status signals for further use in the FB interconnection.
• The functionality corresponds to a converter "DINTBOOL", but the boolean outputs of this FB
have the same names according to their meaning.
/B'HY'ULYH,QWHUIDFH6WDWH'HFRGHU
GQ6WDWH E$FWLYH
E'RQH
E$FF'HF
E&FZ
E+RPH3RV2.
E%UDNH5HOHDVHG
E=HUR3RV
/6B'ULYH,QWHUIDFHVWDWH
E(UURU$FWLYH
E7RUTXH)ROORZHU
E6SHHG)ROORZHU
E3RVLWLRQ)ROORZHU
E)ROORZHU$FWLYH
E3RVLWLRQLQJ$FWLYH
E+RPLQJ$FWLYH
E0DQXDO-RJ$FWLYH
E%UDNH7HVW$FWLYH
E6WDQGVWLOO$FWLYH
E6WRSSLQJ$FWLYH
E4VS$FWLYH
E'ULYH1RW5HDG\
E,QLW
E)DLO
E1RW2SHUDWLRQDO
Inputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 257
5 Function blocks
5.67 L_DevDriveInterfaceStateDecoder - status signals of the drive interface
________________________________________________________________
Outputs
The boolean outputs have the following meaning when the value is TRUE:
258 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.68 L_DevHomingStateDecoder - status signals of the basic function "Homing"
________________________________________________________________
This FB decodes the status output signal dnState of the SB LS_Homing into individual boolean status
signals for further use in the FB interconnection.
• The functionality corresponds to a converter "DINTBOOL", but the boolean outputs of this FB
have the same names according to their meaning.
/B'HY+RPLQJ6WDWH'HFRGHU
GQ6WDWH E$FWLYH
E'RQH
E$FF'HF
E&FZ
/6B+RPLQJVWDWH E+RPH3RV2.
E(UURU$FWLYH
E5HI0DUN'HWHFW
E73'HWHFW
E0LQ2YHUULGH
E/LP3URILOH
E/LP'LU
E/LP$ERUW
E6WRSSLQJ$FWLYH
E(UU3*
Inputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 259
5 Function blocks
5.68 L_DevHomingStateDecoder - status signals of the basic function "Homing"
________________________________________________________________
Outputs
The boolean outputs have the following meaning when the value is TRUE:
260 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.69 L_DevLimiterStateDecoder - status signals of the basic function "Limiter"
________________________________________________________________
This FB decodes the status output signal dnState of the SB LS_Limiter into individual boolean status
signals for further use in the FB interconnection.
• The functionality corresponds to a converter "DINTBOOL", but the boolean outputs of this FB
have the same names according to their meaning.
/B'HY/LPLWHU6WDWH'HFRGHU
GQ6WDWH E&LQK)RUFHG
E463)RUFHG
E463)RUFHG
E/LP6SHHG
E/LP6SHHG
E/LP6SHHG
/6B/LPLWHUVWDWH
E/LP6SHHG
E/LP1HJ'LU
E/LP3RV'LU
E/LP7LS'LVWDQFH
E/LP6HW3RV
E+:/LPLW3RV
E+:/LPLW1HJ
E6:/LPLW3RV
E6:/LPLW1HJ
E/LP6SHHG
E/LP$FF
E/LP'HF
E/LP-HUN
Inputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 261
5 Function blocks
5.69 L_DevLimiterStateDecoder - status signals of the basic function "Limiter"
________________________________________________________________
Outputs
The boolean outputs have the following meaning when the value is TRUE:
262 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.70 L_DevManualJogStateDecoder - status signals of the basic function "ManualJog"
________________________________________________________________
This FB decodes the status output signal dnState of the SB LS_ManualJog into individual boolean
status signals for further use in the FB interconnection.
• The functionality corresponds to a converter "DINTBOOL", but the boolean outputs of this FB
have the same names according to their meaning.
/B'HY0DQXDO-RJ6WDWH'HFRGHU
GQ6WDWH E$FWLYH
E'RQH
E$FF'HF
E&FZ
/6B0DQXDO-RJVWDWH E(UURU$FWLYH
E(UU-RJ1HJ5HOHDVH
E(UU-RJ1HJ-RJ3RV
E(UU-RJ3RV5HOHDVH
E0LQ2YHUULGH
E-RJ6SHHG
E-RJ6SHHG
E/LP'LU3RV
E/LP'LU1HJ
E$ERUW
E6WRSSLQJ$FWLYH
E(UU1R6WRS3RV
E(UU3*
Inputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 263
5 Function blocks
5.70 L_DevManualJogStateDecoder - status signals of the basic function "ManualJog"
________________________________________________________________
Outputs
The boolean outputs have the following meaning when the value is TRUE:
264 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.71 L_DevParReadFix - read parameter
________________________________________________________________
This FB reads a parameter and provides the read value to the application via the outputs dnData ...
bData.
• All internal parameters (codes) of the controller can be read.
• From controller software version V08 and library V02.05.xx.xx, parameters of another node con-
nected to the system bus (CAN) can also be read if a suitable SDO server channel has been para-
meterised at the remote node for this purpose.
• The parameters of the remote node can be addressed by entering either the code or the CA-
Nopen index.
• In contrast to the L_DevReadParDInt FB, the parameter of this FB to be read is addressed via FB
inputs and not via parameters.
• The FB supports both one-time and cyclic reading in an adjustable time interval.
Note!
The following applies to the 9400 ServoPLC: The FB must not be called with the same in-
stance in several tasks.
/B'HY3DU5HDG)L[
E([HFXWH GQ6WDWH
5HDG
GZ&RGH SDUDPHWHU
GZ6XEFRGH GQ'DWD
GZ&RP&KDQQHO & GZ'DWD
GZ7DUJHW$GGUHVV Q'DWD
GZ7LPH2XW Z'DWD
GZ&\FOH7LPH E\'DWD
GZ7[&RE,G E'DWD
GZ5[&RE,G
E8VH,QGH[ E%XV\
E'RQH
E(UURU
Inputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 265
5 Function blocks
5.71 L_DevParReadFix - read parameter
________________________________________________________________
266 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.71 L_DevParReadFix - read parameter
________________________________________________________________
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 267
5 Function blocks
5.71 L_DevParReadFix - read parameter
________________________________________________________________
Note!
The cycle time specified via the input dwCycleTime is only valid for the use of the FB in a
1-ms task! For a longer task cycle the cycle time is extended accordingly:
dwCycleTime [ms] ⋅ Task cycle [ms]
Cycle time = -------------------------------------------------------------------------------------------
1 [ms]
When the FB is used in the unsolicited task, the cycle time set is not effective. In this case,
use a preceding FB L_TbOscillator instead to activate the read request cyclically:
• Connect the output bOut of the FB L_TbOscillator to the input bExecute.
• Set the desired cycle time via the parameters of the FB L_TbOscillator.
5.71.1 Example
The following example is intended to serve you as an installation guide for your own plant.
Task
The client, a 9400 controller, is supposed to read out code C00011 of the server, another 9400 con-
troller, via a free SDO channel of the "CAN on board" system and provide the information to the ap-
plication. At the same time, communication from the »Engineer« towards the client and the server
is enabled via the basic SDO channel.
Initial situation
&$1
6'2IUHLXQGGHDNWLYLHUW
5[,GHQWLILHU& [QQQQQQQ
7[,GHQWLILHU& [QQQQQQQ
6'2&OLHQW1RGH,' 6'2&OLHQW1RGH,'
7[,GHQWLILHU [ 7[,GHQWLILHU [
5[,GHQWLILHU [ 5[,GHQWLILHU [
(QJLQHHU6WHXHUXQJ
• Parameter data channel 1 (the basic SDO channel) is always used for the communication to-
wards the »Engineer«.
• The basic SDO channel is permanently set to 0x600 + node number or 0x580 + node number,
respectively, and can neither be changed nor deactivated according to CiA301.
• In the Lenze setting, the 9400 server has deactivated SDO server channels 2 ... 10 (bit 31 of the
Rx/Tx identifiers has been set).
268 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.71 L_DevParReadFix - read parameter
________________________________________________________________
&$1
6'2IUHLXQGDNWLYLHUW
5[,GHQWLILHU& [
7[,GHQWLILHU& [
6'2&OLHQW1RGH,' 6'2&OLHQW1RGH,'
7[,GHQWLILHU [ 7[,GHQWLILHU [
5[,GHQWLILHU [ 5[,GHQWLILHU [
(QJLQHHU6WHXHUXQJ
Now SDO server channel 2 which has been activated at the 9400 server can be used for communi-
cation via a client.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 269
5 Function blocks
5.71 L_DevParReadFix - read parameter
________________________________________________________________
&$1
/B'HY3DU5HDG)L[
GZ&RP&KDQQHO 6'2IUHLXQGDNWLYLHUW
5HDG
GZ7[&RE,G [
GZ5[&RE,G [
SDUDPHWHU & 5[,GHQWLILHU&
7[,GHQWLILHU&
[
[
6'2&OLHQW1RGH,' 6'2&OLHQW1RGH,'
7[,GHQWLILHU [ 7[,GHQWLILHU [
5[,GHQWLILHU [ 5[,GHQWLILHU [
(QJLQHHU6WHXHUXQJ
[5-36] Read access via parameter data channel 2 via the L_DevParReadFix FB
Due to the previously described measures, a connection has been established and the code
addressed via inputs dwCode and dwSubcode can be queried in the remote server now.
Every time the block is executed via the bExecute input, the switching operation highlighted in yel-
low as shown in illustration [5-36] is carried out for a short time, the addressed code is queried, and
a disconnection is made afterwards.
Write access with the FB L_DevParWriteFix is executed in the same way.
270 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.72 L_DevParWriteFix - write parameter
________________________________________________________________
This FB writes a parameter with the value of the data input dnData ... bData which has been selected
via the dwDataTyp input.
• All internal parameters (codes) of the controller can be written to.
• From controller software version V08 and library V02.05.xx.xx, parameters of another node con-
nected to the system bus (CAN) can also be written to if a suitable SDO server channel has been
parameterised at the remote node for this purpose.
• The parameters of the remote node can be addressed by entering either the code or the CA-
Nopen index.
• In contrast to the L_DevWriteParDInt FB, the parameter of this FB to be written is addressed via
FB inputs and not via parameters.
• The FB supports both one-time and cyclic writing in an adjustable time interval.
Note!
The following applies to the 9400 ServoPLC: The FB must not be called with the same in-
stance in several tasks.
/B'HY3DU:ULWH)L[
E([HFXWH GQ6WDWH
:ULWH
SDUDPHWHU E%XV\
GQ'DWD E'RQH
GZ'DWD & E(UURU
Q'DWD
Z'DWD
E\'DWD
E'DWD
GZ'DWD7\S
GZ&RGH
GZ6XEFRGH
GZ&RP&KDQQHO
GZ7DUJHW$GGUHVV
GZ7LPH2XW
GZ&\FOH7LPH
GZ7[&RE,G
GZ5[&RE,G
E8VH,QGH[
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 271
5 Function blocks
5.72 L_DevParWriteFix - write parameter
________________________________________________________________
Inputs
272 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.72 L_DevParWriteFix - write parameter
________________________________________________________________
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 273
5 Function blocks
5.72 L_DevParWriteFix - write parameter
________________________________________________________________
Note!
The cycle time specified via the input dwCycleTime is only valid for the use of the FB in a
1-ms task! For a longer task cycle the cycle time is extended accordingly:
dwCycleTime [ms] ⋅ Task cycle [ms]-
Cycle time = ------------------------------------------------------------------------------------------
1 [ms]
When the FB is used in the unsolicited task, the cycle time set is not effective. In this case,
use a preceding FB L_TbOscillator instead to activate the write request cyclically:
• Connect the output bOut of the FB L_TbOscillator to the input bExecute.
• Set the desired cycle time via the parameters of the FB L_TbOscillator.
Tip!
The description of FB L_DevParReadFix provides an application example.
274 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.73 L_DevPositionerStateDecoder - positioning status signals
________________________________________________________________
This FB decodes the dnState status output signal of the SB LS_Positioner into individual boolean
status signals for further use in the function block interconnection.
• The functionality corresponds to a converter "DINTBOOL", but the boolean outputs of this FB
have the same names according to their meaning.
/B'HY3RVLWLRQHU6WDWH'HFRGHU
GQ6WDWH E$FWLYH
E'RQH
E$FF'HF
E&FZ
E,Q7DUJHW
E$FW3RV,Q7DUJHW
E=HUR3RV
E5HVWDUW)DLOHG
E'ULYH,Q7DUJHW
/6B3RVLWLRQHUVWDWH
E(UU$FWLYH
E$ERUW
E5HY
E0LQ6SHHG2YHUULGH
E0LQ$FF2YHUULGH
E/LP3RV
E/LP3URILOH
E/LP'LU
E/LP$ERUW
E6WRSSLQJ$FWLYH
E(UU1R+RPH3RV
E(UU1R&\FOH/HQJWK
E(UU0RGH
E(UU0RGH&KDQJH
E(UU3URILOH'DWD
E(UU3*
Inputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 275
5 Function blocks
5.73 L_DevPositionerStateDecoder - positioning status signals
________________________________________________________________
Outputs
The boolean outputs have the following meaning when the value is TRUE:
276 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.74 L_DevReadParDInt - reading parameters of the DINT type
________________________________________________________________
This FB reads parameters of data type "DINT" and outputs the read value via the output dnData for
the application.
• Only internal parameters (codes) of the controller can be read.
• In contrast to the L_DevParReadFix FB, the parameter of this FB to be read is addressed via pa-
rameters and not via FB inputs.
• The FB supports both one-time and cyclic reading in a parameterisable time interval.
• To read a parameter with another data type than "DINT", use the FB L_DevParReadFix. ( 265)
Note!
The following applies to the 9400 ServoPLC: The FB may not be called with the same in-
stance in several tasks.
/B'HY5HDG3DU',QW
E([HFXWH GQ6WDWH
& &
&RGH
&
6XEFRGH E%XV\
& ,QWHUIDFH E'RQH
& 7DUJHWDGUHVV E(UURU
& 7LPHRXWWLPH
GQ'DWD
& &\FOHWLPH
Inputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 277
5 Function blocks
5.74 L_DevReadParDInt - reading parameters of the DINT type
________________________________________________________________
Outputs
Parameters
278 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.74 L_DevReadParDInt - reading parameters of the DINT type
________________________________________________________________
Note!
The cycle time set in C05915 applies only to the use of the FB in a 1-ms task! For a longer
task cycle the cycle time is prolonged accordingly:
C5915 [s] ⋅ Task cycle [ms]
Cycle time = -------------------------------------------------------------------
1 [ms]
If the FB is used in the unsolicited task, the cycle time set is not effective. In this case use
an upstream FB L_TbOscillator instead, in order to cyclically trigger the read request:
• Connect the output bOut of FB L_TbOscillator with the input bExecute.
• Set the desired cycle time via the parameters of the FB L_TbOscillator.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 279
5 Function blocks
5.75 L_DevSMControlDecoder - control signals from the safety module
________________________________________________________________
The SM3xx safety module uses the bit-coded control signal SM_dwControl of the
SB LS_SafetyModuleInterface to transmit information about requested or active safety functions to
the application. The FB decodes the control signal into individual boolean control signals for further
use in the FB interconnection.
• The corresponding actions (e.g. braking, braking to standstill, holding of the standstill position)
must be executed by the application, e.g. via the basic function "Limiter".
• Several safety functions can be requested/be active at the same time.
• The safety functions that are supported depend on the safety module used.
• The FB functionality corresponds to a "DWORDBOOL" converter, but the boolean outputs of
the FB are called according to their meaning.
/B'HY60&RQWURO'HFRGHU
GZ&RQWURO E6DIH6WRS
E6DIH6WRS
E6DIHO\/LPLWHG6SHHG
E6DIHO\/LPLWHG6SHHG
E6DIHO\/LPLWHG6SHHG
60[[FRQWUROZRUG
E6DIHO\/LPLWHG6SHHG
E6DIH'LUHFWLRQ3RV
E6DIH'LUHFWLRQ1HJ
E(QDEOH6ZLWFK
E6DIHO\/LPLWHG,QFUHPHQWV
E2SHUDWLRQ0RGH6HOHFWRU
E6DIHO\/LPLWHG3RVLWLRQ
E6DIHO\/LPLWHG3RVLWLRQ
E6DIHO\/LPLWHG3RVLWLRQ
E6DIHO\/LPLWHG3RVLWLRQ
E6DIH2SHUDWLQJ6WRS
E6DIH6WRS(PHUJHQF\
E6SHFLDO2SHUDWLRQ$FWLYH
Inputs
Outputs
280 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.75 L_DevSMControlDecoder - control signals from the safety module
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 281
5 Function blocks
5.76 L_DevSMControlEncoder - control word for limiter
________________________________________________________________
This FB generates the bit-coded control signal dwControl from individual boolean control signals for
the SB LS_Limiter and thus allows control of the basic function "Limiter" if no SM3xx safety module
is available.
• The FB functionality corresponds to a "BOOLDWORD" converter, but the boolean inputs of the
FB are called according to their meaning.
/B'HY60&RQWURO(QFRGHU
E6DIH6WRS GZ&RQWURO
E6DIH6WRS
E6DIHO\/LPLWHG6SHHG
E6DIHO\/LPLWHG6SHHG
E6DIHO\/LPLWHG6SHHG
/LPLWHUFRQWUROZRUG
E6DIHO\/LPLWHG6SHHG
E6DIH'LUHFWLRQ3RV
E6DIH'LUHFWLRQ1HJ
E(QDEOH6ZLWFK
E6DIHO\/LPLWHG,QFUHPHQWV
E2SHUDWLRQ0RGH6HOHFWRU
E6DIHO\/LPLWHG3RVLWLRQ
E6DIHO\/LPLWHG3RVLWLRQ
E6DIHO\/LPLWHG3RVLWLRQ
E6DIHO\/LPLWHG3RVLWLRQ
E6DIH2SHUDWLQJ6WRS
E6DIH6WRS(PHUJHQF\
E6SHFLDO2SHUDWLRQ$FWLYH
Inputs
282 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.76 L_DevSMControlEncoder - control word for limiter
________________________________________________________________
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 283
5 Function blocks
5.77 L_DevSMStateDecoder - status signals from the safety module
________________________________________________________________
The SM3xx safety module uses the bit-coded status signal SM_dnState of the
SB LS_SafetyModuleInterface to transmit the status of the safety functions to the application. The
FB decodes the status signal into individual boolean status signals for further use in the FB intercon-
nection.
• The FB functionality corresponds to a converter "DINTBOOL", but the boolean outputs of this
FB have the same names according to their meaning.
/B'HY606WDWH'HFRGHU
GQ6WDWH E6DIH7RUTXH2II
E(UURU&ODVV672
E(UURU&ODVV66
60[[VWDWH
E(UURU&ODVV66
E6DIHO\/LPLWHG6SHHG2EVHUYHG
E6DIHO\/LPLWHG6SHHG2EVHUYHG
E6DIHO\/LPLWHG6SHHG2EVHUYHG
E6DIHO\/LPLWHG6SHHG2EVHUYHG
E6DIH'LUHFWLRQ3RV2EVHUYHG
E6DIH'LUHFWLRQ1HJ2EVHUYHG
E(UURU
Inputs
284 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.77 L_DevSMStateDecoder - status signals from the safety module
________________________________________________________________
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 285
5 Function blocks
5.78 L_DevSMStateDecoderIO - status signals from the safety module
________________________________________________________________
The SM3xx safety module uses the bit-coded status signal SM_dnIOState of the
SB LS_SafetyModuleInterface to transmit the status of the safe inputs and the safe output to the
application. The FB decodes the status signal into individual boolean status signals for further use
in the FB interconnection.
• The FB functionality corresponds to a converter "DINTBOOL", but the boolean outputs of this
FB have the same names according to their meaning.
/B'HY606WDWH'HFRGHU,2
GQ,26WDWH E6DIH'LJ,Q
60[[,2VWDWH E6DIH'LJ,Q
E6DIH'LJ,Q
E6DIH'LJ,Q
E$&.,QSXW6WRS
E$&.,QSXW(UURU
E352),VDIH$,6
E352),VDIH$,(
E6DIH'LJ2XW
Inputs
Outputs
286 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.79 L_DevWriteParDInt - writing to parameters of the DINT type
________________________________________________________________
This FB writes a parameter of data type "DINT" with the value assigned to the input dnData.
• Only internal parameters (codes) of the controller can be written.
• In contrast to the L_DevParWriteFix FB, the parameter of this FB to be written is addressed via
parameters and not via FB inputs.
• The FB supports both one-time and cyclic writing in a parameterisable time interval.
• To write a different data type as "DINT" to a parameter, the FB L_DevParWriteFix is to be used
instead. ( 271)
Note!
The following applies to the 9400 ServoPLC: The FB may not be called with the same in-
stance in several tasks.
/B'HY:ULWH3DU',QW
E([HFXWH GQ6WDWH
GQ'DWD & &
&RGH
&
6XEFRGH E%XV\
& ,QWHUIDFH E'RQH
& 7DUJHWDGUHVV E(UURU
& 7LPHRXWWLPH
& &\FOHWLPH
Inputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 287
5 Function blocks
5.79 L_DevWriteParDInt - writing to parameters of the DINT type
________________________________________________________________
Outputs
Parameters
288 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.79 L_DevWriteParDInt - writing to parameters of the DINT type
________________________________________________________________
Note!
The cycle time set in C05925 applies only to the use of the FB in a 1-ms task! For a longer
task cycle the cycle time is prolonged accordingly:
Cycle time = C5925
[s] ⋅ Task cycle [ms]-
------------------------------------------------------------------
1 [ms]
If the FB is used in the unsolicited task, the cycle time set is not effective. In this case use
an upstream FB L_TbOscillator instead, in order to cyclically trigger the write request:
• Connect the output bOut of the FB L_TbOscillator with the input bExecute.
• Set the desired cycle time via the parameters of the FB L_TbOscillator.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 289
5 Function blocks
5.80 L_EsClutchPos - clutch (time-controlled)
________________________________________________________________
This FB serves to implement a time-controlled clutching and declutching of the master position for
all traversing ranges (Modulo/limited/unlimited) via a fifth-order polynomial.
• The FB supports the following clutch modes:
• Declutching until standstill
• Declutching to a basic speed
• More functions:
• Positive opening operation of the clutch (for emergency situations)
• "Hard clutch-in"
• "Hard declutch"
• For path-controlled clutching and declutching, use the L_CamClutchPos FB instead. ( 135)
/B(V&OXWFK3RV
GQ3RV,QBS & & GQ3RV2XWBS
GQ3RV,QBSGQ3RV2XWBS
GQ2SHQ3RVBS & GQ6SHHG2XWBV
GQ%DVH6SHHGBV & &
E2SHQ E&ORVHG
W
E2SHQ,QVWDQW E2SHQ'RQH
E)RUFHG&ORVH & &OXWFKPRGH E,Q7DUJHW
E/RDG3RV2XW 5DPSWLPHIRU E(UURU
GQ/RDG3RV2XWBS & GHFOXWFK & 6WDWH
& FOXWFKLQ & 3RVXQLW
$[LV'DWD &
& FOXWFKLPPHGLDWHO\ & 6SHHGXQLW
& 0D[UHIHUHQFHVSHHG
290 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.80 L_EsClutchPos - clutch (time-controlled)
________________________________________________________________
Inputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 291
5 Function blocks
5.80 L_EsClutchPos - clutch (time-controlled)
________________________________________________________________
Outputs
Parameter
292 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.80 L_EsClutchPos - clutch (time-controlled)
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 293
5 Function blocks
5.80 L_EsClutchPos - clutch (time-controlled)
________________________________________________________________
Note!
A clutch-in or declutch process may last up to 10 seconds, depending on the paramete-
rised resolution of an encoder revolution in the machine parameters copied to the FB
(AxisData).
Example: If the maximum resolution of 24 bit/encoder revolution is set, the clutch-in
path may be too long after only 2 s at maximum speed (internal position gets lost).
• In this case, clutching-in is executed via an emergency time ramp. This changes the
course of speed and position during the clutch-in and declutch process.
• During the declutch process, you cannot stop at the standstill position dnOpenPos_p
anymore! The time ramp, however, is maintained and the standstill position is within
the cycle.
• An internal position overflow during the clutch-in/declutch process is displayed in
C05339 via bit 14 and bit 15.
294 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.80 L_EsClutchPos - clutch (time-controlled)
________________________________________________________________
1
0 bOpen
1 bOpenInstant
0
1 bLoadPosOut
State
0 bClosed
1 bInTarget
0
1 bOpenDone
0
1
0
100
dnPosIn_p
dnOpenPos_p
103 Inc.
dnPosOut_p
50
0
100
dnSpeedOut_s
Speed [rpm]
50
0
0 500 1000 1500 2000 2500 3000
Time [ms]
L_EsClutchPos_SpId01_Utc01
1
0 bOpen
1 bOpenInstant
0
1 bLoadPosOut
State
0 bClosed
1 bInTarget
0
1 bOpenDone
0
1
0
100
dnPosIn_p
dnOpenPos_p
103 Inc.
dnPosOut_p
50
0
100
dnSpeedOut_s
Speed [rpm]
dnBaseSpeed_s
50
0
0 500 1000 1500 2000 2500 3000 3500 4000
Time [ms]
L_EsClutchPos_SpId02_Utc01
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 295
5 Function blocks
5.80 L_EsClutchPos - clutch (time-controlled)
________________________________________________________________
1
0 bOpen
1 bOpenInstant
0
1 bLoadPosOut
State
0 bClosed
1 bInTarget
0
1 bOpenDone
0
1
0
100
dnPosIn_p
dnOpenPos_p
103 Inc.
dnPosOut_p
50
0
100
dnBaseSpeed_s
Speed [rpm]
dnSpeedOut_s
50
0
0 500 1000 1500 2000 2500 3000 3500 4000
Time [ms]
L_EsClutchPos_SpId03_Utc01
296 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.80 L_EsClutchPos - clutch (time-controlled)
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 297
5 Function blocks
5.81 L_EsEncoderConv - encoder signal conditioning
________________________________________________________________
This FB converts an actual position that is imported via a bus system, like for example system bus
(CAN), Profibus, or ETHERNET Powerlink, by an external encoder, by means of the machine parame-
ters transferred and the encoder resolution parameterised into a position in [increments] and pro-
vides it for further processing within the function block interconnection at the output dnPosOut_p .
• Via the input bLoadStartPos the position output can be set to the starting position pending at
the input dnStartPos_p.
• The position that is output can be initialised/adjusted to the input value of an absolute value
encoder via the bLoadEncoderPos input.
• In addition to the position, the resulting speed is shown at the output dnSpeedOut_s.
• The FB can process absolute value encoders and incremental encoders (single and multiturn en-
coders).
/B(V(QFRGHU&RQY
GQ(QFRGHU,Q & & GQ3RV2XWBS
GQ(QFRGHU,Q & GQ6SHHG2XWBV
& (QFRGHUSRVHYDO &
& 6LQJOHWXUQUHVROXWLRQ
E/RDG6WDUW3RV E,QLW
& 0XOWLWXUQUHVROXWLRQ
GQ6WDUW3RVBS & E(UURU
E/RDG(QFRGHU3RV
& (QFRGHUPRXQWLQJGLUHFWLRQ & 6WDWH
$[LV'DWD & 3RVLWLRQDIWHUPDLQVVZLWFKLQJ
& (QFRGHULQLWLDOLVDWLRQWLPH
Inputs
298 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.81 L_EsEncoderConv - encoder signal conditioning
________________________________________________________________
Outputs
Parameter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 299
5 Function blocks
5.81 L_EsEncoderConv - encoder signal conditioning
________________________________________________________________
300 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.81 L_EsEncoderConv - encoder signal conditioning
________________________________________________________________
Via the FB a singleturn or multiturn absolute value bus encoder (CAN, Profibus) can be adapted to
the application.
• Example: Master value encoder via system bus (CAN) for detecting the speed of the material
path.
• The encoder information conditioned can be optionally used as absolute position or as master
speed.
• Via the inputs and parameters the position output can be set to a position defined (set refe-
rence) which is reconstructed after mains switching.
Encoder resolution
By means of the settings in C05273 (singleturn resolution) and C05274 (multiturn resolution) the
FB recognises whether a singleturn or multiturn encoder is used.
• For an encoder of the "singleturn" type, for instance only the number of increments of the enco-
der has to be set in C05273, and C05274 remains on the Lenze setting "1".
• If a "multiturn" encoder is used, in addition to the number of increments the number of revolu-
tions has to be set in C05274.
Note!
The product of a singleturn and multiturn resolution set must not exceed the numerical
value of 231-1!
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 301
5 Function blocks
5.81 L_EsEncoderConv - encoder signal conditioning
________________________________________________________________
If "1: 64 bit encoder signal" has been selected in C05271, the dnEncoderIn2 input is evaluated in ad-
dition to the dnEncoderIn input for the second encoder signal:
• The position (number of increments) is transmitted within a revolution via the dnEncoderIn in-
put. The position has a fixed resolution of 32 bits.
• The current number of encoder revolutions is transmitted via the dnEncoderIn2 input.
• The (multiturn) resolution for the dnEncoderIn2 input is set in C05274.
• C05273 (singleturn resolution) is inactive in this mode (is not evaluated).
How to convert encoder information / an encoder position from encoder input X8 into a _p
position of the internal measuring system:
1. Connect the ENC_dnEncoderOut1 output of the LS_EncoderX8 system block to the
dnEncoderIn input.
2. Connect the ENC_dnEncoderOut2 output of the LS_EncoderX8 system block to the
dnEncoderIn2 input.
3. Select "1: 64 bit encoder signal" in C05271 to ensure that the second input, dnEncoderIn2,
is also evaluated.
4. Set the resolution of the multiturn encoder in C05274 (maximum number of revolutions).
302 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.81 L_EsEncoderConv - encoder signal conditioning
________________________________________________________________
dnEncoderIn
t
bLoadStartPos
t
dnStartPos_p
t
dnPosOut_p
dnStartPos_p
t
dnSpeedOut_s
t
"Unlimited" traversing range
"Modulo" traversing range
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 303
5 Function blocks
5.82 L_EsStretchIntegrate - synchronously stretching/compressing the master value
________________________________________________________________
This FB serves to stretch and compress a master value in the "Modulo" or "Unlimited" traversing ran-
ge. For this purpose, the FB integrates the input speed to a position and stretches or compresses it.
• Via the inputs dnNumerator and dnDenominator a free stretch factor can be defined for the
speed ratio.
• In C05291 only the synchronous stretching/compression is preset as a mode, i. e. a new stretch
factor is only accepted in the cycle transition of the position (modulo systems only).
• Via the input bLoadStartPos the position output can be set to the starting position pending at
the input dnStartPos_p.
• In addition to the position, the resulting speed is shown at the output dnSpeedOut_s.
/B(V6WUHWFK,QWHJUDWH
& (IIHFWLYHVWUHWFKLQJIDFWRU
GQ'HQRPLQDWRU
GQ$X[6SHHGBV & & E=HUR
0RGH
E/RDG6WDUW3RV E(UURU
GQ6WDUW3RVBS &
$[LV'DWD
&75/ & 6WDWH
Inputs
304 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.82 L_EsStretchIntegrate - synchronously stretching/compressing the master value
________________________________________________________________
Outputs
Parameter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 305
5 Function blocks
5.82 L_EsStretchIntegrate - synchronously stretching/compressing the master value
________________________________________________________________
306 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.82 L_EsStretchIntegrate - synchronously stretching/compressing the master value
________________________________________________________________
dnSpeedIn_s
t
dnNumerator
dnDenominator
2
1
t
bZero
t
dnPosOut_p
t
dnSpeedOut_s
t
Synchronised stretching/compression (C05291 = "1: synchronised")
Immediate acceptance of a new stretch factor (C05291 = "0: not synchronised")
Cycle
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 307
5 Function blocks
5.83 L_LdAddOffsetCyclic - offset addition
________________________________________________________________
This FB serves to add any offset position to a position signal with Modulo cycle.
• The clock pulse is created without remainder processing.
/B/G$GG2IIVHW&\FOLF
GQ6WDWH
GQ3RV,QBS GQ3RV2XWBS
GQ2IIVHWBS
$[LV'DWD 2IIVHW
Inputs
Outputs
308 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.84 L_LdClutchAxisP - virtual clutch for synchronism
________________________________________________________________
This FB provides the "Time-controlled virtual clutch" function with position reference for the "Syn-
chronism" application.
/B/G&OXWFK$[LV3
GQ6HW3RVLWLRQBS & & GQ6WDWH
GQ$FW3RVLWLRQBS & n o E,Q7DUJHW
p
GQ2SHQ3RVLWLRQBS & E2SHQ
5DPS
E(QDEOH E$FF'HF
& &OXWFKLQ n
E&ORVH & 'HFOXWFK o
E2SHQ,QVWDQW & &OXWFK p
& GQ3RV2XWBS
LPPHGLDWHO\
$[LV'DWD
Inputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 309
5 Function blocks
5.84 L_LdClutchAxisP - virtual clutch for synchronism
________________________________________________________________
Outputs
310 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.84 L_LdClutchAxisP - virtual clutch for synchronism
________________________________________________________________
Parameters
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 311
5 Function blocks
5.85 L_LdClutchV - virtual clutch for electronic gearboxes
________________________________________________________________
This FB provides the "Virtual clutch" function with speed reference for the "Electronic gearbox" ap-
plication.
/B/G&OXWFK9
GQ6SHHG,QBV & GQ6WDWH
GQ6HW6SHHGBV & 6UDPSWLPH & E2SHQ
E(QDEOH & n o E$FF'HF
E&ORVH p GQ6SHHG2XWBV
E2SHQ,QVWDQW 5DPS &
& &OXWFKLQ n
& 'HFOXWFK o & 6SHHGXQLW
$[LV'DWD & 'HFOXWFK p & 5HIHUHQFHVSHHG
LPPHGLDWHO\
Inputs
312 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.85 L_LdClutchV - virtual clutch for electronic gearboxes
________________________________________________________________
Outputs
Parameter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 313
5 Function blocks
5.85 L_LdClutchV - virtual clutch for electronic gearboxes
________________________________________________________________
314 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.86 L_LdConvAxisV - speed ratio
________________________________________________________________
/B/G&RQY$[LV9
E(QDEOH &RXSOHPHDVXULQJV\VWHP;DQG< GQ6WDWH
GQ6SHHG,QBV & GQ6SHHG2XWBV
< &RXSOLQJYLD
;$[LV'DWD &
IHHGFRQVWDQW
&
<$[LV'DWD ;
< &RXSOLQJYLD
F\FOHV
;
< )UHHFRXSOLQJ
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 315
5 Function blocks
5.86 L_LdConvAxisV - speed ratio
________________________________________________________________
Parameter
316 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.86 L_LdConvAxisV - speed ratio
________________________________________________________________
Function
This FB transforms a speed between two axes, calculating the function of an electronic gearbox. The
transformation works with remainder processing.
Operating mode 0 (unit coupling):
• In this operating mode, the FB couples both axes via the set feed constants.
• Via C05162/1 and C05162/2 the ratio of the corresponding units is set, i.e. the number of units
of the X axis that corresponds to the number of units of the Y axis.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 317
5 Function blocks
5.87 L_LdDifferentiateCyclic - cyclic differentiation
________________________________________________________________
/B/G'LIIHUHQWLDWH&\FOLF
GQ6WDWH
GQ3RV,QBS GQ6SHHG2XWBV
$[LV'DWD
Inputs
Outputs
318 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.88 L_LdExtrapolate - extrapolation
________________________________________________________________
This FB serves to extrapolate position information in order to e.g. compensate higher bus transmis-
sion cycles or smooth absolute value encoders with low resolution. A forced extrapolation is also
possible.
• The LenzeServoDrive library (as of V02.00.xx.xx) provides the FB L_SdInterpolate for interpola-
tion. ( 483)
/B/G([WUDSRODWH
E(QDEOH E%XV\
E)RUFHG E/LPLW
E(UURU
GQ3RV,QBS GQ6SHHG2XWBV
& &
1RRIH[WUDSRODWLRQF\OHV
$[LV'DWD & 3RVLWLRQXQLW GQ3RV2XWBS
& 6SHHGXQLW &
Inputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 319
5 Function blocks
5.88 L_LdExtrapolate - extrapolation
________________________________________________________________
Outputs
Parameter
1 Yes (error)
320 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.88 L_LdExtrapolate - extrapolation
________________________________________________________________
5.88.1 Function
Note!
Ensure that an integer value results for the number of extrapolation cycles so that the
position information increases linearly and a speed calculation can be carried out cor-
rectly. In the case of integer conditions, an alternating speed characteristic results.
• If a smaller value is set than calculated according to the formula mentioned above,
the extrapolation limit is reached and this is displayed by the output bLimit. In this ca-
se, dnPosIn_p is directly connected through to dnPosOut_p.
• If a higher value is set than calculated according to the formula mentioned above, it
has no impact.
Forced extrapolation
Forced extrapolation means that it is extrapolated up to the maximum value in C05000 irrespective
whether the input signal has changed or not.
• The forced extrapolation is activated by setting bForced to TRUE.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 321
5 Function blocks
5.89 L_LdIntegrateCyclic - cyclic integration
________________________________________________________________
This FB integrates a speed in a position (by analogy with the FB L_SdIntegrate) in consideration of
the cycle.
• It is possible to add a position offset to the output position, e.g. for trimming purposes. This
function corresponds exactly to the FB L_LdAddOffsetCyclic. ( 308)
• The cycle and shift factor for the position resolution are read out of the machine parameters
(AxisData).
• The clock pulse is created with remainder processing.
• The FB is the counterpart of the FB L_LdDifferentiateCyclic. ( 318)
/B/G,QWHJUDWH&\FOLF
GQ6WDWH
GQ6SHHG,QBV GQ3RV2XWBS
E/RDG6WDUW3RV GQ6SHHG2XWBV
GQ6WDUW3RVBS
GQ3RV2IIVHWBS
$[LV'DWD
Inputs
322 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.89 L_LdIntegrateCyclic - cyclic integration
________________________________________________________________
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 323
5 Function blocks
5.90 L_LdLinearCoupling - master value connection
________________________________________________________________
/B/G/LQHDU&RXSOLQJ
E(QDEOH GQ6WDWH
;
E;5HVHW E;=HUR3RV
GQ;3RV,QBS GQ<6HW3RV&\FOHBS
GQ;2IIVHWBS W GQ<6SHHG2XWBV
<
;$[LV'DWD GQ;6SHHG2XWBV
<$[LV'DWD GQ;$FW3RVBS
W
Inputs
324 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.90 L_LdLinearCoupling - master value connection
________________________________________________________________
Outputs
Parameter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 325
5 Function blocks
5.90 L_LdLinearCoupling - master value connection
________________________________________________________________
326 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.91 L_LdMarkSync - mark synchronisation
________________________________________________________________
When mark synchronisation is performed, this FB calculates the position at which a mark signal
(touch probe signal) occurred. Furthermore, the remaining distance to the setpoint position of the
mark is observed and output.
• High-precision detection of the actual TP position for which a mark signal occurred.
• Application only in conjunction with modulo measuring systems.
• Comparison with a TP setpoint position at which the mark ideally occurs.
• Calculation of the TP deviation (= deviation between the actual TP position and the TP setpoint
position).
• Feedback of the correcting signal and monitoring of the outstanding TP deviation.
• Distance measurement between two mark signals.
Note!
The generation of the correcting motion is not part of the L_LdMarkSync FB. For this pur-
pose, use e.g. the L_LdPosCtrlLin FB (time-controlled correction) or the L_CamSyncIn FB
(path-controlled correction).
/B/G0DUN6\QF
E(QDEOH GQ6WDWH
&75/
GQ0DNH8S/HHZD\BV GQ3RV2IIVHWBS
E5HVHW3RV GQ$FW'LIIHUHQFHBS
GQ$FW3RVBS GQ7S'LIIHUHQFHBS
GQ7S7LPH/DJ GQ7S7S'LVWDQFHBS
73
E7S5HFHLYHG GQ7S3RVBS
GQ7S6HW3RVBS
$[LV'DWD
Inputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 327
5 Function blocks
5.91 L_LdMarkSync - mark synchronisation
________________________________________________________________
328 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.91 L_LdMarkSync - mark synchronisation
________________________________________________________________
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 329
5 Function blocks
5.91 L_LdMarkSync - mark synchronisation
________________________________________________________________
Many synchronous operations require a slave drive (tool) to move in synchronism with a master si-
gnal/master drive. This motion can be corrected using additional sensor technology.
In the following example, a print register has already been defined by print marks on the web. High-
precision detection of these print marks in the controller is possible via fast digital inputs (touch pro-
be inputs).
Print-mark sensor
Web including print register 0 ... xmax (print image: "Lenze")
Master value encoder
Print marks
9400 controller (slave drive = printing roller)
Printing roller drive motor including feedback system
Gearbox (slave drive)
Printing roller including block (print image: "Arrows")
330 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.91 L_LdMarkSync - mark synchronisation
________________________________________________________________
The touch probe signal is always detected at position If the touch probe signals appear irregularly, the conti-
x = xTP in the modulo cycle 0 ... xmax. nuous modulo position x has not reached setpoint posi-
In this case, position value x need not be corrected and tion xTP yet, or is already past it. However, since the touch
shows an ideal saw-tooth profile if speed Vx is constant. probe signal is always assigned to a defined setpoint po-
sition xTP, position value x needs to be corrected accor-
dingly:
In the simplest case, position value x can be set to set-
point position xTP if touch probe signal "hard" is detec-
ted.
Thus, speed Vx shows corresponding discontinuities (del-
ta pulses) at the times when the touch probe signals are
detected.
Tip!
Controlled compensation can be used to achieve "smooth" mark synchronisation to avoid
delta pulses when correcting print marks.
Interconnection example ( 333)
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 331
5 Function blocks
5.91 L_LdMarkSync - mark synchronisation
________________________________________________________________
The following signal characteristics result during the current print-mark correction:
332 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.91 L_LdMarkSync - mark synchronisation
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 333
5 Function blocks
5.91 L_LdMarkSync - mark synchronisation
________________________________________________________________
Operating mode
The core function of the interconnection is contained in the FB L_LdMarkSync2: On the basis of the
current x position (integrator output L_SdIntegrateAxis1.dnPosOut_p) and the set position of the
print-mark signal xTP (output L_SdSetPosition6.dnPosOut_p) the FB detects the correction distance
ΔxTP when a print mark pulse is detected.
In the example, the print-mark sensor is connected to the digital input DI8, touch probe is therefore
detected via the LS_TouchProbe8 system block.
The correction distance ΔxTP is led from the signal output L_LdMarkSync2.dnActDifference_p to the
profile generator L_LdPosCtrlLin4 which generates a correction profile Vx,comp.
The correction speed Vx,comp is superimposed on the real master speed (system variable
DFIN_dnActualSpeed_s) via the FB L_TbSub1 and then integrated in the integrator block
L_SdIntegrateAxis1 modulo to a master position 0 ... xmax.
Note!
Touch probe corrections cannot be applied to absolute master positions, as for instance
if selected via MotionBus.
A touch probe correction on the master value side requires a master speed as master va-
lue selection (e.g. via digital frequency coupling).
334 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.92 L_LdMonitFollowError - following error monitoring
________________________________________________________________
/B/G0RQLW)ROORZ(UURU
E(QDEOH & & E(UURU
GQ)ROORZ(UURU,QBS
GQ+\VWHUHVLVBS &
GQ/LPLW(UURUBS
$[LV'DWD
& 3RVLWLRQXQLW
Inputs
Outputs
Parameter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 335
5 Function blocks
5.92 L_LdMonitFollowError - following error monitoring
________________________________________________________________
TRUE Activated
336 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.93 L_LdMPot - master value adjustment
________________________________________________________________
/B/G03RW
E(QDEOH E%XV\
E-RJ3RVLWLYH n o &
p 3RVLWLYHVSHHG GQ6SHHG2XWBV
p
E-RJ1HJDWLYH 1HJDWLYHVSHHG &
n o &
5DPS
& $FFHOHUDWLRQ n
$[LV'DWD & 'HFHOHUDWLRQ o & 6SHHGXQLW
& 0RWRUSRWHQWLRPHWHURII p & 5HIHUHQFHVSHHG
Inputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 337
5 Function blocks
5.93 L_LdMPot - master value adjustment
________________________________________________________________
Outputs
Parameter
338 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.93 L_LdMPot - master value adjustment
________________________________________________________________
If the machine parameters transferred to the FB via the AxisData input are changed afterwards (e.g.
the gearbox factors), this may cause a counter overflow when the speed values defined via C05122
and C05123 are converted from the real unit to the internal unit.
The FB causes a corresponding error message in case of an internal counter overflow due to a chan-
ged measuring system:
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 339
5 Function blocks
5.94 L_LdPosCtrlLin - Master value adjustment via position
________________________________________________________________
This FB permits the time-controlled profile generation with linear acceleration/deceleration ramps.
The following positioning functions, for instance, can be implemented via this FB:
• Online trimming of offset positions on the master and drive end
• Positioning of the drive to the position of the electrical shaft
• Position override function: Separate the drive from the curve position and put it in a safe posi-
tion
Note!
The FB always operates in the absolute measuring system independent of the setting in
the AxisData machine parameters. Thus, the dnPosOut_p position output is not limited
to a cycle length in case of a Modulo system.
Only the position value at the dnPosOut_p position output should be used in the appli-
cation.
The dnSpeedOut_s speed output must not be integrated because the integrated position
cannot be displayed completely using the dnPosOut_p output for internal technical re-
asons!
/B/G3RV&WUO/LQ
E(QDEOH
E([HFXWH E,Q7DUJHW
& 3RVLWLRQLQJPRGH
E6HW3RV=HUR & 3RVLWLYHVSHHG & GQ3RV2XWBS
& 1HJDWLYHVSHHG & GQ6SHHG2XWBV
GQ6HW3RVBS &
GQ$FW3RVBS
n o
p
& 0RGHDIWHUGHDFWLYDWLRQ
5DPS
& $FFHOHUDWLRQ n
& 'HFHOHUDWLRQ o $FWXDOSRVLWLRQ
$[LV'DWD
& 6WRS p
6HWSRLQW
340 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.94 L_LdPosCtrlLin - Master value adjustment via position
________________________________________________________________
Inputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 341
5 Function blocks
5.94 L_LdPosCtrlLin - Master value adjustment via position
________________________________________________________________
Outputs
342 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.94 L_LdPosCtrlLin - Master value adjustment via position
________________________________________________________________
Parameters
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 343
5 Function blocks
5.94 L_LdPosCtrlLin - Master value adjustment via position
________________________________________________________________
344 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.94 L_LdPosCtrlLin - Master value adjustment via position
________________________________________________________________
If the machine parameters transferred to the FB via the AxisData input are changed afterwards (e.g.
the gearbox factors), this may cause a counter overflow when the speed values defined via C05053/
1...2 are converted from the real unit to the internal unit.
The FB causes a corresponding error message in case of an internal counter overflow due to a chan-
ged measuring system:
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 345
5 Function blocks
5.94 L_LdPosCtrlLin - Master value adjustment via position
________________________________________________________________
• When x offset is used, the "arrows" print image is on the correct position:
346 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.94 L_LdPosCtrlLin - Master value adjustment via position
________________________________________________________________
The FB LdPosCtrlLin serves to constantly adjust the x offset position. For this purpose the FB must be
interconnected as follows in connection with the L_LdLinearCoupling synchronous function:
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 347
5 Function blocks
5.94 L_LdPosCtrlLin - Master value adjustment via position
________________________________________________________________
Tip!
The cycle-related offsetting in the master measuring system (Modulo measuring system) is
executed as in the FB L_LdAddOffsetCyclic.
348 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.94 L_LdPosCtrlLin - Master value adjustment via position
________________________________________________________________
The following signal characteristics exemplifies the x offset adjustment from zero to an offset value
xmax:
GQ;3RV,QBS
[PD[
GQ;2IIVHWBS
[PD[
[PD[
GQ;$FW3RVBS
[PD[
[PD[
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 349
5 Function blocks
5.94 L_LdPosCtrlLin - Master value adjustment via position
________________________________________________________________
Slave drive
Print-mark sensor
Web
Master value encoder
Xmax = x-cycle of the register
Since the production process is periodical, a print mark pulse appears per cycle. Ideally, the pulse al-
ways appears at a certain set position xTP in the master cycle 0 ... xmax. If the print mark pulse is de-
tected at another position than at its set position xTP, there is a deviation ΔxTP between setpoint and
actual position of the print mark pulse.
350 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.94 L_LdPosCtrlLin - Master value adjustment via position
________________________________________________________________
[5-57] Compensation of the print mark deviation ΔxTP via a higher-level compensation profile
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 351
5 Function blocks
5.94 L_LdPosCtrlLin - Master value adjustment via position
________________________________________________________________
352 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.94 L_LdPosCtrlLin - Master value adjustment via position
________________________________________________________________
Operating mode
The core function of the interconnection is contained in the FB L_LdMarkSync2: On the basis of the
current x position (integrator output L_SdIntegrateAxis1.dnPosOut_p) and the set position of the
print-mark signal xTP (output L_SdSetPosition6.dnPosOut_p) the FB detects the correction distance
ΔxTP when a print mark pulse is detected.
In the example, the print-mark sensor is connected to the digital input DI8, touch probe is therefore
detected via the LS_TouchProbe8 system block.
The correction distance ΔxTP is led from the signal output L_LdMarkSync2.dnActDifference_p to the
profile generator L_LdPosCtrlLin4 which generates a correction profile Vx,comp.
The correction speed Vx,comp is superimposed on the real master speed (system variable
DFIN_dnActualSpeed_s) via the FB L_TbSub1 and then integrated in the integrator block
L_SdIntegrateAxis1 modulo to a master position 0 ... xmax.
Note!
Touch probe corrections cannot be applied to absolute master positions, as for instance
if selected via MotionBus.
A touch probe correction on the master value side requires a master speed as master va-
lue selection (e.g. via digital frequency coupling).
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 353
5 Function blocks
5.95 L_LdSetAxisVelocity - master value processing
________________________________________________________________
This FB serves to extend/compress the X axis and execute a synchronisation via touch probe. The
master speed is integrated to the position within the cycle.
/B/G6HW$[LV9HORFLW\
GQ6SHHG,QBV & & GQ6WDWH
GQ7S0DNH8S/HHZD\BV [ & E=HUR3RV
GQ6WDUW3RVBS
GQ1XPHUDWRU
GQ'HQRPLQDWRU W
E/RDG6WDUW3RV
E1HJ2XWSXW
& 3RVLWLRQXQLW
E6\QF(QDEOH
& 6SHHGXQLW
E(QDEOH
E\'LVDEOH0RGH
GQ([W0DVWHUBS
E7S5HFHLYHG GQ7S'LVWDQFHBS
Inputs
354 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.95 L_LdSetAxisVelocity - master value processing
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 355
5 Function blocks
5.95 L_LdSetAxisVelocity - master value processing
________________________________________________________________
Outputs
356 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.95 L_LdSetAxisVelocity - master value processing
________________________________________________________________
Parameter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 357
5 Function blocks
5.96 L_LdStateDecoder - LineDrive status signals
________________________________________________________________
This FB decodes the status output signal dnState of an FB from the function library "LenzeLineDri-
ve.lib" into individual boolean status signals for further use in the FB interconnection.
• The functionality corresponds to a converter "DINTBOOL", but the boolean outputs of this FB
have the same names according to their meaning.
/B/G6WDWH'HFRGHU
GQ6WDWH E,QLW
E$FWLYH
E'RQH
E$FF'HF
E:DUQ3RV'LII
E1HJDWLYH'LU
E5HVHUYH
E5HVHUYH
E&OXWFK&ORVH
E:DLW&ORVH
E=HUR3RV
/LQHGULYHVWDWHVLJQDOV
E5HVHUYH
E,QLW6HW&\FOH
E,QLW$FW&\FOH
E/LPLW
E(UURU
E(UU6WDUW3RV
E(UU([W0DVWHU
E(UU&\FOH/HQJWK
E(UU0D[6SHHG
E(UU733RV
E(UU,QSXW
E(UU&\FOH/HQJWK<
E(UU$[LV'DWD
E&\FOH
E$XWRPDWLF
E6WRS,QVWDQW
E0DQXDO-RJ
E,QWHUQDO6SHHG
E(UU3RV([W0DVWHU
E+DQGZKHHO
E5HVHUYH
Inputs
358 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.96 L_LdStateDecoder - LineDrive status signals
________________________________________________________________
Outputs
The boolean outputs have the following meaning when the value is TRUE:
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 359
5 Function blocks
5.97 L_LdToolControl - setpoint conditioning
________________________________________________________________
/B/G7RRO&RQWURO
GQ6HW6SHHG,QBV & & GQ6WDWH
GQ7S0DNH8S/HHZD\BV & GQ6SHHG2XWBV
GQ2IIVHWBS & GQ6HW3RV&\FOHBS
E/RDG6HW3RV&\FOH
GQ6HW3RV&\FOH9DOXHBS
E,QLW$FW3RV&\FOH &
$[LV'DWD
Inputs
360 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.97 L_LdToolControl - setpoint conditioning
________________________________________________________________
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 361
5 Function blocks
5.97 L_LdToolControl - setpoint conditioning
________________________________________________________________
Parameter
362 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.98 L_LdSyncOperation - master value connection
________________________________________________________________
Tip!
There are two other FB for synchronous operations:
• The L_LdConvAxisV FB generates the speed setpoint for the following axis from the mas-
ter speed instead of the master position, as this FB does.
• Like this FB, the L_LdLinearCoupling FB accepts an x position as the master value, but ge-
nerates a setpoint position for the following axis in addition to the setpoint speed.
/B/G6\QF2SHUDWLRQ
& GQ6WDWH
E(QDEOH
GQ;3RV,QBS & & GQ<6SHHG2XWBV
;
GQ;2IIVHWBS & & GQ;6SHHG2XWBV
& &RXSOHPHDVXULQJV\VWHP;DQG<
Inputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 363
5 Function blocks
5.98 L_LdSyncOperation - master value connection
________________________________________________________________
364 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.98 L_LdSyncOperation - master value connection
________________________________________________________________
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 365
5 Function blocks
5.98 L_LdSyncOperation - master value connection
________________________________________________________________
Parameter
366 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.98 L_LdSyncOperation - master value connection
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 367
5 Function blocks
5.98 L_LdSyncOperation - master value connection
________________________________________________________________
In this operating mode, the FB couples the axes of the master drive and the slave drive via the set
feed constants. The cycles of the master measuring system and the slave measuring system do not
have any effect.
• Via C05092/1 and C05092/2 the ratio of the corresponding units is set, i.e. how many units of
the master axis (x axis) correspond to how many units of the slave axis (y axis).
• The speed ratio between the slave drive and the master drive is calculated according to follo-
wing formula:
• The conversion according to the formula above is remainder considered and hence drift-free
(consideration of remainders when performing divisions).
According to the formula above, the speed ratio between the master drive and the slave drive is cal-
culated as follows:
5
---
dnYSpeedOut_s 2 200.0000 [mm] 1
----------------------------------------- = ------------- ⋅ ---------------------------------------- ⋅ --- = 1.0268...
dnXSpeedOut_s 1120 90.0000 [mm] 1
-------------
207
368 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.98 L_LdSyncOperation - master value connection
________________________________________________________________
In this operating mode, the FB couples the axes of the master drive and the slave drive via the set
feed constants and the cycles. One of the cycles of the master drive is mapped on one of the cycles
of the slave drive.
• In this type of coupling, both master measuring system and slave measuring system must be
modulo measuring systems.
• The C05092/1 and C05092/2 coupling factors do not have any effect in this operating mode.
• The speed ratio between the slave drive and the master drive is calculated according to follo-
wing formula:
• The conversion according to the formula above is remainder considered and hence drift-free
(consideration of remainders when performing divisions).
According to the formula above, the speed ratio between the master drive and the slave drive is cal-
culated as follows:
45
------
dnYSpeedOut_s 2 160.0000 [mm] 360.0000 [ ° ]
----------------------------------------- = ------ ⋅ ---------------------------------------- ⋅ ---------------------------------------- = 0.8952...
dnXSpeedOut_s 32 360.0000 [ ° ] 628.3185 [mm]
------
5
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 369
5 Function blocks
5.98 L_LdSyncOperation - master value connection
________________________________________________________________
In this operating mode, the FB couples the axes of the master drive and the slave drive only via the
gearbox factors of the master drive/slave drive and the coupling factors parameterised in C05092/
1 and C05092/2.
• Neither the feed constants nor the cycles of the master measuring system/slave measuring sys-
tem have any effect on the synchronism ratio.
• Via C05092/1 and C05092/2 the revolution ratio is indicated, i.e. how many revolutions of the
master shaft (x axis) correspond to how many revolutions of the following axis (x axis).
• The speed ratio between the slave drive and the master drive is calculated according to follo-
wing formula:
• The conversion according to the formula above is remainder considered and hence drift-free
(consideration of remainders when performing divisions).
Application example: Wire drawing system with specification of the synchronism ratio Ky
Master drive (wire drawing station 1) Slave drive (wire drawing station 2)
Gearbox constant X 17 : 3 Gearbox constant Y 13 : 2
Feed constant X 160.0000 [mm] Feed constant Y 160.0000 [mm]
Coupling factor X 100 [%] Coupling factor Y 110 [%]
(C05092/1) (C05092/2)
The speed ratio between the master drive and the slave drive is calculated according to the formula
above, the synchronism ratio Ky being considered as the C05092/1 and C05092/1 coupling factors:
13
------
dnYSpeedOut_s 2 110 [%]
----------------------------------------- = ------ ⋅ ------------------- = 1.2618...
17
dnXSpeedOut_s ------ 100 [%]
3
370 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.98 L_LdSyncOperation - master value connection
________________________________________________________________
In many production processes, several processing steps in a row are required for a product to be ma-
nufactured. Every machining process must be brought into line with the previous one to ensure the
desired product quality. This is called angular trimming and normally achieved via a so-called x off-
set. The x offset leads to a virtual trimming of the master value and hence to a correct alignment of
the following axis to the process.
[5-62] Example 1
[5-63] Example 2
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 371
5 Function blocks
5.98 L_LdSyncOperation - master value connection
________________________________________________________________
The dnXOffset_p x offset is additively superimposed on the dnXPosIn_p master position and then
projected again on the modulo cycle of the master measuring system. The resulting master position
is output at the dnXActPos_p output.
Tip!
• The dnXOffset_p offset value does not necessarily have to be limited to the modulo value
range of the master cycle. However, it must not exceed the permissible DINT value range
minus the master cycle.
(DINT value range = ±231-1 [increments] ≡ ±32768 [rev])
• The x offset is offset in the L_LdSyncOperation FB in the same way as in the
L_LdAddOffsetCyclic FB.
372 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.99 L_LdVirtualMasterP - virtual master for synchronism
________________________________________________________________
This FB provides the "Virtual master" function for the "Synchronism" application.
/B/G9LUWXDO0DVWHU3
GQ([W0DVWHUBS & & GQ6WDWH
3RVLWLRQ
& E,Q7DUJHW
E(QDEOH E%XV\
W
E&RQWLQXRXV & 2SHUDWLQJPRGH & GQ3RV2XWBS
E&\FOH
& 7DUJHWSRVLWLRQ
& 6WDUWLQJSRVLWLRQ
& 0DVWHUVSHHG
& 0DVWHUVSHHG
E0DQXDO-RJ&Z
& 3RVLWLYHLQFKLQJ6SHHG
E0DQXDO-RJ&FZ
& 1HJDWLYHLQFKLQJ6SHHG
5DPS
GQ+DQGZKHHOBV & ,QFKLQJ
& 6LQJOHF\FOH&RQWLQRS
E6WRS,QVWDQW
& 6WRS
E(QDEOHQG6SHHG6HW
& &\FOH
E/RDG6WDUW3RV
$[LV'DWD
GQ6SHHG6HWBV
GZ2SHUDWLQJ0RGH
Inputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 373
5 Function blocks
5.99 L_LdVirtualMasterP - virtual master for synchronism
________________________________________________________________
374 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.99 L_LdVirtualMasterP - virtual master for synchronism
________________________________________________________________
Outputs
Parameter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 375
5 Function blocks
5.99 L_LdVirtualMasterP - virtual master for synchronism
________________________________________________________________
376 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.99 L_LdVirtualMasterP - virtual master for synchronism
________________________________________________________________
5.99.1 Functions
Handwheel function
• Ensures an easy control of a machine run. The clutched drives are interconnected in a system.
• Incremental encoders via DFIN or multiple encoder input. An input must be selected.
• No ramp functions are active.
• Function is enabled via the control (PLC) by selecting the "handwheel function" operating mode
(C05010 ="2") and setting bEnable to TRUE.
Single cycle
• Operation per HMI or keys via control (PLC)
• Function starts with a FALSETRUE edge at the bCycle input.
• Ramp functions are active.
• The data for production speed are used as parameters.
• The cycle starts at the current position and stops at the stop position (C05011).
Continuous operation
• Operation per HMI or keys via control (PLC)
• Function starts with a FALSETRUE edge at the bContinuous input. The function remains active
as long as the TRUE level is applied.
• Ramp functions are active.
• The data for production speed are used as parameters.
• The cycle starts at the current position and stops at the stop position (C05011).
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 377
5 Function blocks
5.99 L_LdVirtualMasterP - virtual master for synchronism
________________________________________________________________
If the machine parameters transferred to the FB via the AxisData input are changed afterwards (e.g.
the gearbox factors), this may cause a counter overflow when the speed and position values defined
via parameters are converted from the real unit to the internal unit.
The FB causes a corresponding error message in case of an internal counter overflow due to a
changed measuring system:
378 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.100 L_LdVirtualMasterV - virtual master for electronic gearboxes
________________________________________________________________
This FB provides the "Virtual master" function for the "Electronic gearbox" application.
/B/G9LUWXDO0DVWHU9
GQ([W0DVWHUBV & & GQ6WDWH
6SHHG
E%XV\
E(QDEOH & GQ6SHHG2XWBV
W
E&RQWLQXRXV & 2SHUDWLQJPRGH
& 0DVWHUVSHHG
& 0DVWHUVSHHG
E0DQXDO-RJ&Z
& 3RVLWLYHLQFKLQJ6SHHG
E0DQXDO-RJ&FZ
& 1HJDWLYHLQFKLQJ6SHHG
5DPS
GQ+DQGZKHHOBV & ,QFKLQJ
& &RQWLQXRXVRSHUDWLRQ
E6WRS,QVWDQW
& 6WRS
E(QDEOHQG6SHHG6HW
$[LV'DWD
GQ6SHHG6HWBV
GZ2SHUDWLQJ0RGH
Inputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 379
5 Function blocks
5.100 L_LdVirtualMasterV - virtual master for electronic gearboxes
________________________________________________________________
Outputs
380 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.100 L_LdVirtualMasterV - virtual master for electronic gearboxes
________________________________________________________________
Parameter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 381
5 Function blocks
5.100 L_LdVirtualMasterV - virtual master for electronic gearboxes
________________________________________________________________
5.100.1 Functions
Handwheel function
• Ensures an easy control of a machine run. The clutched drives are interconnected in a system.
• Incremental encoders via DFIN or multiple encoder input. An input must be selected.
• No ramp functions are active.
• Function is enabled via the control (PLC) by selecting the "handwheel function" operating mode
(C05100 ="2") and setting bEnable to TRUE.
Continuous operation
• Operation per HMI or keys via control (PLC)
• Function starts with a FALSETRUE edge at the bContinuous input. The function remains active
as long as the TRUE level is applied.
• Ramp functions are active.
• The data for production speed are used as parameters.
382 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.100 L_LdVirtualMasterV - virtual master for electronic gearboxes
________________________________________________________________
If the machine parameters transferred to the FB via the AxisData input are changed afterwards (e.g.
the gearbox factors), this may cause a counter overflow when the speed and position values defined
via parameters are converted from the real unit to the internal unit.
The FB causes a corresponding error message in case of an internal counter overflow due to a chan-
ged measuring system:
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 383
5 Function blocks
5.101 L_LdZeroDetect - zero crossing detection
________________________________________________________________
/B/G=HUR'HWHFW
GQ6WDWH
GQ3RV,QBS E=HUR
$[LV'DWD
Inputs
Outputs
384 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.102 L_PosDecoderStatePositioner - positioning status signals
________________________________________________________________
This FB decodes the status output signal dnState of SB LS_Positioner into individual boolean status
signals for further use in the FB interconnection.
• The functionality corresponds to a converter "DINTBOOL", but the boolean outputs of this FB
have the same names according to their meaning.
/B3RV'HFRGHU6WDWH3RVLWLRQHU
GQ6WDWH E$FWLYH
E'RQH
E$FF'HF
E&FZ
E,Q7DUJHW
E=HUR3RV
E(UU$FWLYH
E$ERUW
3RVLWLRQHUVWDWH
E5HY
E0LQ6SHHG2YHUULGH
E0LQ$FF2YHUULGH
E/LP3RV
E/LP3URILOH
E/LP'LU
E/LP$ERUW
E6WRSSLQJ$FWLYH
E(UU1R+RPH3RV
E(UU1R&\FOH/HQJWK
E(UU0RGH
E(UU0RGH&KDQJH
E(UU3URILOH'DWD
E(UU3*
Inputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 385
5 Function blocks
5.102 L_PosDecoderStatePositioner - positioning status signals
________________________________________________________________
Outputs
The boolean outputs have the following meaning when the value is TRUE:
386 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.103 L_PosDecoderStateSequencer - status signals of the sequence control
________________________________________________________________
This FB decodes the status output signal dnState of FB LS_PosSequencer into individual boolean sta-
tus signals for further use in the FB interconnection.
• The functionality corresponds to a converter "DINTBOOL", but the boolean outputs of this FB
have the same names according to their meaning.
/B3RV'HFRGHU6WDWH6HTXHQFHU
GQ6WDWH E5HDG\
6HTXHQFHUVWDWH
E6WDUWHG
E3DXVH
E6WRS
E5HVHW
E:DWFK'RJ$FWLYH
E(UU$FWLYH
E(UU%UDQFK
Inputs
Outputs
The boolean outputs have the following meaning when the value is TRUE:
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 387
5 Function blocks
5.104 L_PosGetProfile - profile data tables
________________________________________________________________
/B3RV*HW3URILOH
GQ6WDWH
GZ3URILOH1XPEHU 352),/( 3URILOH'DWD
GZ3URILOH1XPEHU 3URILOH'DWD
GZ3URILOH1XPEHU 3URILOH'DWD
GZ3URILOH1XPEHU 3URILOH'DWD
GZ3URILOH1XPEHU 3URILOH'DWD
)%'DWD
Inputs
Outputs
388 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.105 L_PosGetProfileData - profile data output
________________________________________________________________
/B3RV*HW3URILOH'DWD
3URILOH'DWD GQ6WDWH
352),/(
GZ3RVLWLRQLQJ0RGH
3RVLWLRQLQJ0RGH
GQ7DUJHW3RVLWLRQBS
3RVLWLRQ
GQ6SHHGBV
6SHHG
GQ$FFHOHUDWLRQB[
$FFHOHUDWLRQ
GQ'HFHOHUDWLRQB[
'HFHOHUDWLRQ
GQ-HUN
-HUN
GQ(QG6SHHGBV
(QGVSHHG
1H[W3URILOH'DWD
1H[WSURILOH
1H[W733URILOH'DWD
1H[W73SURILOH
GQ73:LQGRZ6WDUW
73ZLQGRZVWDUW
GQ73:LQGRZ(QG
73ZLQGRZHQG
GZ73&RQILJ
73FRQILJXUDWLRQ
GZ3URILOH1XPEHU
3URILOHQXPEHU
GZ-HUN0RGH
-HUNPRGH
QG GQQG-HUN
-HUN
Inputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 389
5 Function blocks
5.105 L_PosGetProfileData - profile data output
________________________________________________________________
Outputs
390 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.105 L_PosGetProfileData - profile data output
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 391
5 Function blocks
5.106 L_PosGetTableAcc - acceleration table
________________________________________________________________
Together with an FB instance of type L_PosPositionerTable this FB provides five acceleration values
from the VTACC variable table.
In connection with an FB instance of type L_PosProfileTable it is possible to output the acceleration
and deceleration values that are directly defined in the profiles.
/B3RV*HW7DEOH$FF
GQ6WDWH
GZ$FF7DEOH1XPEHU $&& GQ$FFHOHUDWLRQB[
GZ$FF7DEOH1XPEHU GQ$FFHOHUDWLRQB[
GZ$FF7DEOH1XPEHU GQ$FFHOHUDWLRQB[
GZ$FF7DEOH1XPEHU GQ$FFHOHUDWLRQB[
GZ$FF7DEOH1XPEHU GQ$FFHOHUDWLRQB[
)%'DWD
Inputs
392 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.106 L_PosGetTableAcc - acceleration table
________________________________________________________________
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 393
5 Function blocks
5.107 L_PosGetTableJerk - S-ramp time table
________________________________________________________________
Together with an FB instance of type L_PosPositionerTable this FB provides five S-ramp times from
the VTJERK variable table.
In connection with an FB instance of type L_PosProfileTable it is possible to output the S-ramp times
that are directly defined in the profiles.
/B3RV*HW7DEOH-HUN
GQ6WDWH
GZ-HUN7DEOH1XPEHU -(5. GQ-HUN
GZ-HUN7DEOH1XPEHU GQ-HUN
GZ-HUN7DEOH1XPEHU GQ-HUN
GZ-HUN7DEOH1XPEHU GQ-HUN
GZ-HUN7DEOH1XPEHU GQ-HUN
)%'DWD
Inputs
Outputs
394 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.108 L_PosGetTablePos - position table
________________________________________________________________
Together with an FB instance of type L_PosPositionerTable this FB provides five position values from
the VTPOS variable table.
In connection with an FB instance of type L_PosProfileTable it is possible to output the positions
that are directly defined in the profiles.
/B3RV*HW7DEOH3RV
GQ6WDWH
GZ3RV7DEOH1XPEHU 326 GQ3RVLWLRQBS
GZ3RV7DEOH1XPEHU GQ3RVLWLRQBS
GZ3RV7DEOH1XPEHU GQ3RVLWLRQBS
GZ3RV7DEOH1XPEHU GQ3RVLWLRQBS
GZ3RV7DEOH1XPEHU GQ3RVLWLRQBS
)%'DWD
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 395
5 Function blocks
5.109 L_PosGetTableSpeed - speed table
________________________________________________________________
Together with an FB instance of type L_PosPositionerTable this FB provides five speed values from
the VTSPEED variable table.
In connection with an FB instance of type L_PosProfileTable it is possible to output the speed values
that are directly defined in the profiles.
/B3RV*HW7DEOH6SHHG
GQ6WDWH
GZ6SHHG7DEOH1XPEHU 63((' GQ6SHHGBV
GZ6SHHG7DEOH1XPEHU GQ6SHHGBV
GZ6SHHG7DEOH1XPEHU GQ6SHHGBV
GZ6SHHG7DEOH1XPEHU GQ6SHHGBV
GZ6SHHG7DEOH1XPEHU GQ6SHHGBV
)%'DWD
Inputs
Outputs
396 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.110 L_PosPositionerInterface - positioning interface
________________________________________________________________
This FB provides an interface for the basic function "Positioning" for a higher-level control and al-
lows to control the SB LS_Positioner via level-controlled signals.
/B3RV3RVLWLRQHU,QWHUIDFH
E6WDUW E6WDUW3RVLWLRQHU
E5HVWDUW E$ERUW3RVLWLRQHU
67$57
E5HVHW E5HVWDUW3RVLWLRQHU
E3RVLWLRQHU(QDEOHG 5(67$57
E3RVLWLRQHU'RQH
5(6(7
GQ3RVLWLRQHU6WDWH
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 397
5 Function blocks
5.110 L_PosPositionerInterface - positioning interface
________________________________________________________________
5.110.1 Interconnection
/B3RV3RVLWLRQHU,QWHUIDFH
E6WDUW E6WDUW3RVLWLRQHU
6WDUW
E5HVWDUW E$ERUW3RVLWLRQHU
5HVWDUW 67$57
E5HVHW E5HVWDUW3RVLWLRQHU
5HVHW
E3RVLWLRQHU(QDEOHG 5(67$57
E3RVLWLRQHU'RQH
5(6(7
GQ3RVLWLRQHU6WDWH
/6B3RVLWLRQHU
326BE(QDEOH 326BGQ6WDWH
(QDEOH
326BE6WDUW 326BE(QDEOHG
Q
326BE$ERUW 326BE$FWLYH
326BE5HVWDUW 326BE'RQH
W
326B3URILOH'DWD 326BE,Q7DUJHW
3URILOHGDWD
326BE(QDEOH2YHUULGH 326BGQ6HW3RVBS
326BGQ6SHHG2YHUULGHBQ 326BGQ3URILOH7DUJHWBS
326BGQ$FF2YHUULGHBQ 326BGQ3URILOH6SHHGBV
326BE'LVDEOH73 326BGZ$FWXDO3URILOH1XPEHU
[5-65] Interconnection
Note!
If the dnPositionerState input is interconnected and positioning cannot be continued,
the next positive edge at bStart will trigger a restart of the positioning process.
• If this behaviour is not required, do not interconnect the dnPositionerState input. In
this case, a manual reset via the bReset input is necessary.
398 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.110 L_PosPositionerInterface - positioning interface
________________________________________________________________
5.110.2 Applications
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 399
5 Function blocks
5.111 L_PosPositionerTable - profile data record management
________________________________________________________________
This FB is used to store and manage (traversing) profiles and to teach positions, speeds, accelerati-
ons/decelerations and S-ramp times.
• A profile describes a motion request which can be implemented into a rotary motion by the
SB LS_Positioner.
• A profile is described via the following profile parameters: mode (type of positioning), position,
speed, acceleration, deceleration, S-ramp time, final speed, standard sequence profile, TP se-
quence profile, TP window starting and end position.
• For easier handling, the profile parameters position, speed, acceleration/deceleration and S-
ramp time are kept in separate tables.
• Thus, a positioning program for e.g. repeating speeds can always use the same table position.
If this speed is to be changed, an adjustment of a table position can have an effect on several
profiles.
• Another important task of this FB is the conversion of the table values according to the scaling/
machine parameters selected in the SB LS_DriveInterface.
/B3RV3RVLWLRQHU7DEOH
& GQ6WDWH
3URILOHV
GZ3URILOH1XPEHU E%XV\
02'( 3URILOH'DWD
326 )%'DWD
63(('
$&&
'(&
-(5.
E3RV7HDFK 97326
GZ3RV7DEOH1XPEHU
GQ3RVBS
E6SHHG7HDFK 9763(('
GZ6SHHG7DEOH1XPEHU
GQ6SHHGBV
E$FF7HDFK 97$&&
GZ$FF7DEOH1XPEHU
GQ$FFB[
E-HUN7HDFK 97-(5.
GZ-HUN7DEOH1XPEHU
GZ-HUN
$[LV'DWD
400 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.111 L_PosPositionerTable - profile data record management
________________________________________________________________
Inputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 401
5 Function blocks
5.111 L_PosPositionerTable - profile data record management
________________________________________________________________
Outputs
Parameter
402 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.111 L_PosPositionerTable - profile data record management
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 403
5 Function blocks
5.111 L_PosPositionerTable - profile data record management
________________________________________________________________
404 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.111 L_PosPositionerTable - profile data record management
________________________________________________________________
1 Profile no. 1
... ...
75 Profile no. 75
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 405
5 Function blocks
5.111 L_PosPositionerTable - profile data record management
________________________________________________________________
406 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.111 L_PosPositionerTable - profile data record management
________________________________________________________________
To simplify parameter handling, the four most important physical sizes for profile parameters are
stored in separate "variable tables".
A value is assigned to a profile parameter by a reference to a table position of the assigned variable
table. So not the value, but the table position which contains the value to be used is entered in the
profile parameter.
Profile 1 VTPOS
Mode 3 1
Position 3 VTPOS 2
Speed 1 ...
Acceleration 1 VTACC 75
Deceleration 2 VTACC
Jerk time 1 VTJERK
End speed 50 VTSPEED
TP window start position 6 VTPOS 1 200 [unit]/s
TP window end position 7 VTPOS 2 400 [unit]/s
Next TP profile 12 ...
Next profile 2 50 50 [unit]/s
Profile 2 VTACC
Mode 4 1
Position 4 VTPOS 2
Speed 2 ...
Acceleration 1 VTACC 50
Deceleration 3 VTACC
Jerk time 1 VTJERK
End speed 50 VTJERK
TP window start position 6 VTPOS 1
TP window end position 8 VTPOS 2
Next TP profile 13 ...
Next profile 5 50
• In the case of several references to the same table position, a change of the value in this table
position affects several profiles at the same time. Thus, recurring profile parameters only need
to be changed on one position.
• If e.g. in the case of a profile chaining, several profiles are to be executed with the same speed,
the corresponding profile parameters "speed" can all refer to the same table position.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 407
5 Function blocks
5.111 L_PosPositionerTable - profile data record management
________________________________________________________________
Note!
The values to be "taught" are exceptions. They must be selected in the internal measu-
ring system.
In addition to the direct value entry via parameters, the values can also be stored in the variable ta-
bles by means of the "teach" function.
The "teaching" of a value can be activated via an FB input or by describing a parameter (e.g. by mas-
ter control):
Note!
If a position, speed, or acceleration are read out of the variable tables (e.g. with the
FBs L_PosGetTablePos, L_PosGetTableSpeed or L_PosGetTableAcc) and this value is
taught again into the FB, the value displayed may deviate in application units.
The deviation in the display can be explained by the conversion of the value from appli-
cation units into internal units and back again to application units, but has no negative
effect on the drive behaviour.
408 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.111 L_PosPositionerTable - profile data record management
________________________________________________________________
Depending on the traversing range/application, you can select between different positioning mo-
des which are described in the below table.
Note!
For absolute positioning, the home position must be known!
• If an absolute positioning process (positioning modes 1 ... 2 and 11 ... 16) is started alt-
hough the home position is not known, an error message occurs.
• In this case a programming error has occurred and the program flow must be reset.
• If the error only occurs in a sequence profile, the last valid deceleration is used to
decelerate the drive to standstill.
The modulo positioning modes may involve reversing processes!
• If a modulo positioning process (positioning modes 11 ... 16) is started at an initial
speed other than zero, the target position may be overtravelled and a reversing pro-
cess may follow, depending on the selected deceleration / S-ramp time parameters.
This would also cause e.g. counter-clockwise rotation in the "Absolute CW (modulo)"
positioning mode.
1 Absolute
The axis travels to an absolute position.
• Reference for the absolute position is zero position.
• The home position must be known.
• The traversing range is limited:
• to 214748.3647 [unit]
• by the internal display area (±231 increments)
2 Absolute TP
Like mode 1, but with profile change on touch probe detection.
Touch probe positioning. ( 412)
5 Relative
The axis is traversed by a distance.
• Reference for the distance is the target position of the profile execut-
ed before.
• The feed per positioning is limited:
• to 214748.3647 [unit]
• by the internal display area (±231 increments)
6 Relative TP
Like mode 5, but with profile change on touch probe detection.
Touch probe positioning. ( 412)
7 Speed
Continuous constant travel.
• This mode does not approach a defined position, but follows the pro-
file.
• Acceleration and deceleration are based on profile values.
• The traversing direction is defined by the sign of the traversing speed.
• Stopped through break signal.
8 Speed TP
Like mode 7, but with profile change on touch probe detection.
Touch probe positioning. ( 412)
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 409
5 Function blocks
5.111 L_PosPositionerTable - profile data record management
________________________________________________________________
11 Absolute CW (modulo)
The axis travels in CW direction to an absolute position.
• Reference for the absolute position is zero position.
• In this direction the zero position of the axis can be overtravelled.
12 Absolute CW TP (modulo)
Like mode 11, but with profile change on touch probe detection.
Touch probe positioning. ( 412)
13 Absolute CCW (modulo)
The axis travels in CCW direction to an absolute position.
• Reference for the absolute position is zero position.
• In this direction the zero position of the axis can be overtravelled.
14 Absolute CCW TP (modulo)
Like mode 13, but with profile change on touch probe detection.
Touch probe positioning. ( 412)
15 Absolute ShortestWay (modulo)
The axis travels to an absolute position in best time.
• Reference for the absolute position is zero position.
• The rotary table positioning is basically an absolute positioning with
target positions between 0 and 360 angular degree [°]. In this mode
the zero point can also be overtravelled if this is the shortest way to
the target position:
360°/0°
300° 60°
240° 120°
180°
410 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.111 L_PosPositionerTable - profile data record management
________________________________________________________________
If a positioning process with a final speed other than zero is carried out, a velocity changeover / over-
change can be realised, i.e. a second positioning process is started immediately once the target po-
sition is reached, and the drive does not come to a standstill at the first target position.
vend
t [s]
• Normally, the drive has reached the final speed when the target position is reached.
• The profile is run through which is defined via "Profile data sequence profile without TP".
• The final speed must not exceed the maximum profile speed.
• The speed is internally limited to the profile speed.
• This is the maximum value for the final speed if the profile speed is reduced via override. (This
behaviour may add to the cases described in the note below.)
• The speed limitation is not affected by subsequent increases in the override value.
Note!
Positioning processes with final speeds other than zero do not permit reversing. In this
case, the positioning process is aborted and an error is issued.
In the case of positioning processes with final speeds and if S-shaped ramps are used, a
plausibility check as to whether the final speed can be reached is carried out when the
profile is started. If the final speed cannot be reached, the positioning process is aborted
and an error is issued. This is often the case if the positioning process has been paused
and is then to be continued.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 411
5 Function blocks
5.111 L_PosPositionerTable - profile data record management
________________________________________________________________
With touch probe positioning, the profile is first processed according to the set profile parameters.
If a touch probe is detected during profile processing, the profile automatically changes to the pro-
file specified under the profile parameter "TP sequence profile".
• Here the current actual position is stored at the time of the touch probe activation (by a touch
probe sensor).
• In the following relative positioning process, the "residual path" to this stored position is tra-
velled according to the increments.
v [m/s] Profile 4
Mode
Position
Speed
Profile 4 Profile 7 ...
t [s] Next TP profile 7
Touch probe Next profile
Profile 7
Mode
v [m/s] Position
Speed
...
Next TP profile
Profile 4 Profile 7 Next profile
[5-69] Examples for a "residual path positioning" after a touch probe is detected
• The profile parameters "TP window starting position" and "TP window end position" the range
in which touch probes are to be detected can be restricted.
• If both profile parameters = "0", touch probe detection will be active for the whole profile/the
whole traversing range.
• If no touch probe is detected and after the profile is executed, the positioning is continued with
the profile defined in the profile parameter "Sequence profile without TP" (profile chaining).
Note!
If a profile is travelled with high speed and touch probe positioning is started, the resi-
dual path of which is smaller than the result from current speed and set deceleration
ramp, the target position is "overtravelled".
• Normally a reversing movement occurs, i.e. the drive returns.
• If, for instance, a CCW rotation of the drive is forbidden by the safety module, the tar-
get cannot be approached since in this case the reversing movement is not permissib-
le.
Further constellations are possible in connection with profile chaining in which an ap-
proach of the target position is impossible.
412 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.111 L_PosPositionerTable - profile data record management
________________________________________________________________
• Example: For the selection of the touch probe channel "DIGIN 8" and the response to only one
positive edge, the decimal value "16384" must be set in C04721.
If the machine parameters transferred to the FB via the AxisData input are changed afterwards (e.g.
the gearbox factors), this may cause a counter overflow when the speed, acceleration, and position
values defined via parameters are converted from the real unit to the internal unit.
The FB causes a corresponding error message in case of an internal counter overflow due to a chan-
ged measuring system:
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 413
5 Function blocks
5.112 L_PosProfileInterface - profile data interface
________________________________________________________________
/B3RV3URILOH,QWHUIDFH
GZ3RVLWLRQLQJ0RGH 3URILOH'DWD
GQ7DUJHW3RVLWLRQBS
GQ6SHHGBV
GQ$FFHOHUDWLRQB[
GQ'HFHOHUDWLRQB[
GQ-HUN
GQ(QG6SHHGBV
1H[W3URILOH'DWD
1H[W733URILOH'DWD
GQ73:LQGRZ6WDUW
GQ73:LQGRZ(QG
GZ73&RQILJ
GZ3URILOH1XPEHU
GZ-HUN0RGH
GQQG-HUN
Inputs
414 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.112 L_PosProfileInterface - profile data interface
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 415
5 Function blocks
5.112 L_PosProfileInterface - profile data interface
________________________________________________________________
Outputs
Depending on the traversing range/application, you can select between different positioning mo-
des which are described in the below table.
Note!
For absolute positioning, the home position must be known!
• If an absolute positioning process (positioning modes 1 ... 2 and 11 ... 16) is started alt-
hough the home position is not known, an error message occurs.
• In this case a programming error has occurred and the program flow must be reset.
• If the error only occurs in a sequence profile, the last valid deceleration is used to
decelerate the drive to standstill.
The modulo positioning modes may involve reversing processes!
• If a modulo positioning process (positioning modes 11 ... 16) is started at an initial
speed other than zero, the target position may be overtravelled and a reversing pro-
cess may follow, depending on the selected deceleration / S-ramp time parameters.
This would also cause e.g. counter-clockwise rotation in the "Absolute CW (modulo)"
positioning mode.
416 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.112 L_PosProfileInterface - profile data interface
________________________________________________________________
1 Absolute
The axis travels to an absolute position.
• Reference for the absolute position is zero position.
• The home position must be known.
• The traversing range is limited:
• to 214748.3647 [unit]
• by the internal display area (±231 increments)
2 Absolute TP
Like mode 1, but with profile change on touch probe detection.
Touch probe positioning. ( 419)
5 Relative
The axis is traversed by a distance.
• Reference for the distance is the target position of the profile execut-
ed before.
• The feed per positioning is limited:
• to 214748.3647 [unit]
• by the internal display area (±231 increments)
6 Relative TP
Like mode 5, but with profile change on touch probe detection.
Touch probe positioning. ( 419)
7 Speed
Continuous constant travel.
• This mode does not approach a defined position, but follows the pro-
file.
• Acceleration and deceleration are based on profile values.
• The traversing direction is defined by the sign of the traversing speed.
• Stopped through break signal.
8 Speed TP
Like mode 7, but with profile change on touch probe detection.
Touch probe positioning. ( 419)
11 Absolute CW (modulo)
The axis travels in CW direction to an absolute position.
• Reference for the absolute position is zero position.
• In this direction the zero position of the axis can be overtravelled.
12 Absolute CW TP (modulo)
Like mode 11, but with profile change on touch probe detection.
Touch probe positioning. ( 419)
13 Absolute CCW (modulo)
The axis travels in CCW direction to an absolute position.
• Reference for the absolute position is zero position.
• In this direction the zero position of the axis can be overtravelled.
14 Absolute CCW TP (modulo)
Like mode 13, but with profile change on touch probe detection.
Touch probe positioning. ( 419)
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 417
5 Function blocks
5.112 L_PosProfileInterface - profile data interface
________________________________________________________________
300° 60°
240° 120°
180°
If a positioning process with a final speed other than zero is carried out, a velocity changeover / over-
change can be realised, i.e. a second positioning process is started immediately once the target po-
sition is reached, and the drive does not come to a standstill at the first target position.
vend
t [s]
• Normally, the drive has reached the final speed when the target position is reached.
• The profile is run through which is defined via "Profile data sequence profile without TP".
• The final speed must not exceed the maximum profile speed.
• The speed is internally limited to the profile speed.
• This is the maximum value for the final speed if the profile speed is reduced via override. (This
behaviour may add to the cases described in the note below.)
• The speed limitation is not affected by subsequent increases in the override value.
Note!
Positioning processes with final speeds other than zero do not permit reversing. In this
case, the positioning process is aborted and an error is issued.
In the case of positioning processes with final speeds and if S-shaped ramps are used, a
plausibility check as to whether the final speed can be reached is carried out when the
profile is started. If the final speed cannot be reached, the positioning process is aborted
and an error is issued. This is often the case if the positioning process has been paused
and is then to be continued.
418 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.112 L_PosProfileInterface - profile data interface
________________________________________________________________
With touch probe positioning, the profile is first processed according to the set profile parameters.
If a touch probe is detected during profile processing, the profile automatically changes to the "se-
quence profile with TP", which has been defined via the NextTPProfileData input.
• If no touch probe is detected, positioning is continued with the sequence profile which has been
defined via the NextProfileData input (profile linkage).
• In order to define the sequence profiles, both inputs NextTPProfileData and NextProfileData can
be connected, for instance, with the ProfileData output of another instance of the
FB L_PosProfileInterface.
Note!
If a profile is travelled with high speed and touch probe positioning is started, the resi-
dual path of which is smaller than the result from current speed and set deceleration
ramp, the target position is "overtravelled".
• Normally a reversing movement occurs, i.e. the drive returns.
• If, for instance, a CCW rotation of the drive is forbidden by the safety module, the tar-
get cannot be approached since in this case the reversing movement is not permissib-
le.
Further constellations are possible in connection with profile chaining in which an ap-
proach of the target position is impossible.
The touch probe channel to be used for positioning with touch probe detection is selected bit-coded
via the dwTPConfig input. The following table contains all possible configurations with the corres-
ponding decimal values:
• Example: For the selection of the touch probe channel "DIGIN 8" and the response to only one
positive edge, the decimal value "16384" must be set at the dwTPConfig input.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 419
5 Function blocks
5.113 L_PosProfileTable - profile data record management (simple)
________________________________________________________________
This FB is used to store and manage up to four traversing profiles and to "teach" target positions.
• A profile describes a motion request which can be implemented into a rotary motion by the
SB LS_Positioner.
• A profile is described via the following profile parameters: Mode (type of positioning), position,
speed, acceleration, deceleration, S-ramp time, TP sequence profile and TP selection.
• Unlike the FB L_PosPositionerTable, this FB does not use any variable tables, but profile parame-
ter data is directly entered under the assigned codes.
• Furthermore, the position assigned to the input dnExtPos_p will be used as target position if
profile number 1 is selected.
• Another important task of this FB is the conversion of the table values according to the scaling
selected in the SB LS_DriveInterface.
/B3RV3URILOH7DEOH
GZ3URILOH1XPEHU & GQ6WDWH
3URILOHV
GQ([W3RVBS & E%XV\
E3RV7HDFK & 02'( 3URILOH'DWD
GZ7HDFK3URILOH1XPEHU 326 )%'DWD
63(('
GQ7HDFK3RVBS
$&&
$[LV'DWD
Inputs
420 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.113 L_PosProfileTable - profile data record management (simple)
________________________________________________________________
Outputs
Parameter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 421
5 Function blocks
5.113 L_PosProfileTable - profile data record management (simple)
________________________________________________________________
422 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.113 L_PosProfileTable - profile data record management (simple)
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 423
5 Function blocks
5.113 L_PosProfileTable - profile data record management (simple)
________________________________________________________________
Profile parameters Unit Profile no. 1 Profile no. 2 Profile no. 3 Profile no. 4
Positioning mode - C04750/1 C04750/2 C04750/3 C04750/4
Position Unit dnExtPos_p C04751/2 C04751/3 C04751/4
Speed Unit/t C04752/1 C04752/2 C04752/3 C04752/4
Acceleration Unit/t2 C04753/1 C04753/2 C04753/3 C04753/4
Delay Unit/t2 C04754/1 C04754/2 C04754/3 C04754/4
S-ramp time s C04755/1 C04755/2 C04755/3 C04755/4
TP sequence profile - C04756/1 C04756/2 C04756/3 C04756/4
TP selection - C04757/1 C04757/2 C04757/3 C04757/4
Note!
The values to be "taught" are exceptions. They must be selected in the internal measu-
ring system.
424 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.113 L_PosProfileTable - profile data record management (simple)
________________________________________________________________
In addition to the direct value entry via parameters, the target position for a profile can also be
stored by means of the "teach" function.
The "teaching" of a value can be activated via an FB input or by describing a parameter (e.g. by mas-
ter control):
Note!
If a position is read out of the FB (e.g. with the FB L_PosGetTablePos) and this value is
taught again to the FB, the value displayed may deviate in application units.
The deviation in the display can be explained by the conversion of the value from appli-
cation units into internal units and back again to application units, but has no negative
effect on the drive behaviour.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 425
5 Function blocks
5.113 L_PosProfileTable - profile data record management (simple)
________________________________________________________________
Depending on the traversing range/application, you can select between different positioning mo-
des which are described in the below table.
Note!
For absolute positioning, the home position must be known!
• If an absolute positioning process (positioning modes 1 ... 2 and 11 ... 16) is started alt-
hough the home position is not known, an error message occurs.
• In this case a programming error has occurred and the program flow must be reset.
• If the error only occurs in a sequence profile, the last valid deceleration is used to
decelerate the drive to standstill.
The modulo positioning modes may involve reversing processes!
• If a modulo positioning process (positioning modes 11 ... 16) is started at an initial
speed other than zero, the target position may be overtravelled and a reversing pro-
cess may follow, depending on the selected deceleration / S-ramp time parameters.
This would also cause e.g. counter-clockwise rotation in the "Absolute CW (modulo)"
positioning mode.
1 Absolute
The axis travels to an absolute position.
• Reference for the absolute position is zero position.
• The home position must be known.
• The traversing range is limited:
• to 214748.3647 [unit]
• by the internal display area (±231 increments)
2 Absolute TP
Like mode 1, but with profile change on touch probe detection.
Touch probe positioning. ( 428)
5 Relative
The axis is traversed by a distance.
• Reference for the distance is the target position of the profile execut-
ed before.
• The feed per positioning is limited:
• to 214748.3647 [unit]
• by the internal display area (±231 increments)
6 Relative TP
Like mode 5, but with profile change on touch probe detection.
Touch probe positioning. ( 428)
7 Speed
Continuous constant travel.
• This mode does not approach a defined position, but follows the pro-
file.
• Acceleration and deceleration are based on profile values.
• The traversing direction is defined by the sign of the traversing speed.
• Stopped through break signal.
8 Speed TP
Like mode 7, but with profile change on touch probe detection.
Touch probe positioning. ( 428)
426 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.113 L_PosProfileTable - profile data record management (simple)
________________________________________________________________
11 Absolute CW (modulo)
The axis travels in CW direction to an absolute position.
• Reference for the absolute position is zero position.
• In this direction the zero position of the axis can be overtravelled.
12 Absolute CW TP (modulo)
Like mode 11, but with profile change on touch probe detection.
Touch probe positioning. ( 428)
13 Absolute CCW (modulo)
The axis travels in CCW direction to an absolute position.
• Reference for the absolute position is zero position.
• In this direction the zero position of the axis can be overtravelled.
14 Absolute CCW TP (modulo)
Like mode 13, but with profile change on touch probe detection.
Touch probe positioning. ( 428)
15 Absolute ShortestWay (modulo)
The axis travels to an absolute position in best time.
• Reference for the absolute position is zero position.
• The rotary table positioning is basically an absolute positioning with
target positions between 0 and 360 angular degree [°]. In this mode
the zero point can also be overtravelled if this is the shortest way to
the target position:
360°/0°
300° 60°
240° 120°
180°
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 427
5 Function blocks
5.113 L_PosProfileTable - profile data record management (simple)
________________________________________________________________
With touch probe positioning, the profile is first processed according to the set profile parameters.
If a touch probe is detected during profile processing, the profile automatically changes to the pro-
file specified under the profile parameter "TP sequence profile".
• Here the current actual position is stored at the time of the touch probe activation (by a touch
probe sensor).
• In the following relative positioning process, the "residual path" to this stored position is tra-
velled according to the increments.
v [m/s] Profile 2
Mode
Position
Speed
Profile 2 Profile 4 ...
t [s] Next TP profile 4
Touch probe
Profile 4
Mode
v [m/s] Position
Speed
...
Next TP profile
Profile 2 Profile 4
[5-72] Examples for a "residual path positioning" after a touch probe is detected
• If no touch probe is detected, positioning stops after profile processing without profile linkage.
Note!
If a profile is travelled with high speed and touch probe positioning is started, the resi-
dual path of which is smaller than the result from current speed and set deceleration
ramp, the target position is "overtravelled".
• Normally a reversing movement occurs, i.e. the drive returns.
• If, for instance, a CCW rotation of the drive is forbidden by the safety module, the tar-
get cannot be approached since in this case the reversing movement is not permissib-
le.
Further constellations are possible in connection with profile chaining in which an ap-
proach of the target position is impossible.
428 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.113 L_PosProfileTable - profile data record management (simple)
________________________________________________________________
If the machine parameters transferred to the FB via the AxisData input are changed afterwards (e.g.
the gearbox factors), this may cause a counter overflow when the speed, acceleration, and position
values defined via parameters are converted from the real unit to the internal unit.
The FB causes a corresponding error message in case of an internal counter overflow due to a chan-
ged measuring system:
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 429
5 Function blocks
5.114 L_PosSequencer - sequence control
________________________________________________________________
Note!
For a complete sequence control, the FB L_PosSequencer must be connected to further
blocks, like the FB L_PosPositionerTable (profile data record management) and the
SB LS_Positioner (basic function "positioning").
/B3RV6HTXHQFHU
E6WDUW & GQ6WDWH
E3DXVH E3URJUDP%XV\
E1H[W6WHS & GZ$FW6WHS
E&DQFHO
E%UHDN E(QDEOH3RVLWLRQHU
E5HVHW E6WDUW3URILOH
E$ERUW3URILOH
E3URILOH'RQH E5HVWDUW3URILOH
E+RPLQJ'RQH GZ3URILOH1XPEHU
GZ6WDUW6WHS E(QDEOH+RPLQJ
GZ%UDQFK E$FWLYDWH+RPLQJ
GZ%UDQFK
GZ%UDQFK E(QDEOH)ROORZHU
GZ%UDQFK
GZ%UDQFK
GZ'LJLWDO,QSXWV GZ'LJLWDO2XWSXWV
430 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.114 L_PosSequencer - sequence control
________________________________________________________________
Inputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 431
5 Function blocks
5.114 L_PosSequencer - sequence control
________________________________________________________________
432 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.114 L_PosSequencer - sequence control
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 433
5 Function blocks
5.114 L_PosSequencer - sequence control
________________________________________________________________
Outputs
434 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.114 L_PosSequencer - sequence control
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 435
5 Function blocks
5.114 L_PosSequencer - sequence control
________________________________________________________________
General parameters
Note!
The parameters of the different actions for the sequence tables are described in the cor-
responding action subchapters.
436 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.114 L_PosSequencer - sequence control
________________________________________________________________
The internal state machine of the sequencer distinguishes the following five states:
Break = FALSE
Program done Pause = FALSE
Start = FALSE Start = FALSEäTRUE
Reset = TRUE
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 437
5 Function blocks
5.114 L_PosSequencer - sequence control
________________________________________________________________
The program flow of the multi-purpose positioning is selected according to a sequence table which
can contain up to 100 references to "actions".
0 1
3
2 000
Set
12
4
Standby End
1 n
Overview
Detailed information of the action types can be found in the following subchapters.
438 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.114 L_PosSequencer - sequence control
________________________________________________________________
End
To define the program end in the sequence table, the action of type "Program end" is available.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 439
5 Function blocks
5.114 L_PosSequencer - sequence control
________________________________________________________________
Waiting function
The execution of the set profile with activated waiting function is only started if the bit 1 ... 32 of the
input signal dwDigitalInputs selected for the waiting function adopts the selected signal state ("0"
or "1").
440 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.114 L_PosSequencer - sequence control
________________________________________________________________
Parameter
The available actions 1 ... 50 are indicated via the subcodes 1 ... 50.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 441
5 Function blocks
5.114 L_PosSequencer - sequence control
________________________________________________________________
In order to switch digital output signals 25 actions of type "Switching" are available.
• Each action can set two selectable bits of the output signal dwDigitalOutputs to "0" or "1" inde-
pendently of each other.
Parameter
The available actions 1 ... 25 are indicated via the subcodes 1 ... 25.
442 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.114 L_PosSequencer - sequence control
________________________________________________________________
25 actions of type "Branching" are available for conditional and unconditional branches (jumps).
• A branch to the indicated step is executed when the comparison is deactivated or the selected
bit 1 ... 32 of the input signal dwDigitalInputs has the selected signal state at the time of proces-
sing ("0" or "1"). If not, the sequence step is processed in the sequence table.
Parameter
The available actions 1 ... 25 are indicated via the subcodes 1 ... 25.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 443
5 Function blocks
5.114 L_PosSequencer - sequence control
________________________________________________________________
1
2
n
For variable branches (jumps) 5 actions of type "Variable branching" are available.
• The branch to one of 20 possible steps is executed depending on the input signal dwBranch1...5
at the time of processing.
• The input signals dwBranch1...5 are firmly assigned to the five available actions
• Input signal dwBranch1 determines the branch for action 1,
• Input signal dwBranch2 determines the branch for action 2, etc.
• Example: When the input signal dwBranch2 has the value "15" at the time of processing the ac-
tion no. 2, it is branched to the step which is entered in the parameter "Sequence step at branch
15" for action no. 2 (C04554/2).
Parameter
The available actions 1 ... 5 are indicated via the subcodes 1 ... 5.
444 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.114 L_PosSequencer - sequence control
________________________________________________________________
5 0 0 0
Note!
The "Homing" action has no own parameters.
The settings for homing are carried out via the parameters of the basic function "Ho-
ming".
Required connections
This functionality requires the following connections between the FB and the basic function "Ho-
ming":
• Output bEnableHoming input HM_bEnable of the SB LS_Homing.
• Output bActivateHoming input HM_bActivateHoming of the SB LS_Homing.
• Output HM_bDone of the SB LS_Homing input bHomingDone.
Sequence
1. If the action is called, the SB LS_Homing is enabled via the bEnableHoming output.
2. One cycle later, the output bActivateHoming for activating homing is set to TRUE.
3. After the feedback via input bHomingDone that homing has been executed, the enable of the
SB LS_Homing is deactivated again.
4. The program flow is continued.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 445
5 Function blocks
5.114 L_PosSequencer - sequence control
________________________________________________________________
25 actions of type "Waiting" are available for the insertion into the program flow.
• The sequence step is only processed after the waiting time has expired or when the selected
bit 1 ... 32 of the input signal dwDigitalInputs has the selected signal state ("1" or "2") at the time
of processing.
Parameter
The available actions 1 ... 25 are indicated via the subcodes 1 ... 25.
446 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.114 L_PosSequencer - sequence control
________________________________________________________________
000
Set
10 actions of type "Counter setting" are available for setting one of the 10 available counters to a
certain starting value.
• The 10 actions of type "Counter setting" are not permanently assigned to the 10 counters.
• You can use, for instance, an action of type "Counter setting" to set a counter to a value and later
you can set the same counter with another action of type "Counter setting" to another value.
Parameter
The available actions 1 ... 10 are indicated via the subcodes 1 ... 10.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 447
5 Function blocks
5.114 L_PosSequencer - sequence control
________________________________________________________________
3
12
4
Parameter
The available actions 1 ... 25 are indicated via the subcodes 1 ... 25.
448 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.114 L_PosSequencer - sequence control
________________________________________________________________
Standby
5 actions of type "Stand-by" are available for the temporary activation of a setpoint follower.
• For this purpose the output bEnableFollower must be connected to the enable input bEnable of
the corresponding setpoint follower (SB LS_SpeedFollower, SB LS_TorqueFollower or
SB LS_PositionFollower).
• The enable signal at the output bEnableFollower is applied until the condition for exiting the
stand-by is met.
Parameter
The available actions 1 ... 5 are indicated via the subcodes 1 ... 5.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 449
5 Function blocks
5.114 L_PosSequencer - sequence control
________________________________________________________________
450 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.115 L_PosSequencerStateDecoder - status signals of the sequence control
________________________________________________________________
This FB decodes the status output signal dnState of FB LS_PosSequencer into individual boolean sta-
tus signals for further use in the FB interconnection.
• The functionality corresponds to a converter "DINTBOOL", but the boolean outputs of this FB
have the same names according to their meaning.
/B3RV6HTXHQFHU6WDWH'HFRGHU
GQ6WDWH E5HDG\
6HTXHQFHUVWDWH
E5XQ
E3DXVH
E%UHDN
E5HVHW
E'RQH
E(UU$FWLYH
E(UU%UDQFK
E:DWFK'RJ$FWLYH
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 451
5 Function blocks
5.116 L_SdAccToUnit - acceleration conversion
________________________________________________________________
This FB uses the transmitted machine parameters and converts an acceleration value defined in the
internal unit [rpm/s] into an acceleration value in the real unit of the machine.
/B6G$FF7R8QLW
GQ$FF,QB[ GQ$FF2XWBH
>USPV@>XQLW@
$[LV'DWD E/LPLW
& 8QLW
Inputs
Outputs
Parameter
452 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.117 L_SdDelayComp - dead time compensation
________________________________________________________________
This FB extrapolates a signal by a set time. In this way, the FB can compensate for the dead times of
incoming signals resulting from the bus transfer.
• The FB considers a modulo measuring system and the cycle of the selected machine parameters.
/B6G'HOD\&RPS
GQ3RV,QBS 2XW
GQ3RV2XWBS
& ,Q &
$[LV'DWD W
&
& 8QLW
Inputs
Outputs
Parameter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 453
5 Function blocks
5.118 L_SdDifferentiate - differentiation
________________________________________________________________
Note!
As of library V02.00.xx.xx the FB is also suitable for clocked (modulo) positions!
/B6G'LIIHUHQWLDWH
GQ3RV,QBS GQ6SHHG2XWBV
$[LV'DWD
Inputs
Outputs
454 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.119 L_SdFactor - stretch factor
________________________________________________________________
This FB provides the "stretch factor" function for the application "Electronic gearbox".
• The calculation is made with remainder handling.
/B6G)DFWRU
GQ,Q GQ2XW
GQ1XPHUDWRU E/LPLW
D
GQ'HQRPLQDWRU
E
E1HJ2XWSXW
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 455
5 Function blocks
5.120 L_SdGetAxisData - Reading out machine parameters from axis data
________________________________________________________________
This FB reads out selected machine parameters from the copied axis data and makes them available
to other FB which require them for internal calculations (e.g. master value integrators, FB for stret-
ching/compression, and other FB for the edition of cam data).
/B6G*HW$[LV'DWD
$[LV'DWD & GQ&\FOH/HQJWKBS
0DFKLQHSDUDPHWHUVUHDGRQO\ GZ&\FOH/HQJWK5HV
& 3DWKXQLW & GQ)HHG&RQVWDQW
& 7LPHXQLW
GQ5HIHUHQFH6SHHGBV
& 5HVXOWLQJJHDUER[IDFWRU
& 5HVROXWLRQRIDXQLW & GQ*HDU1XPHUDWRU
& GQ*HDU'HQRPLQDWRU
& GZ%LWV3HU5HYROXWLRQ
GQ,QFU3HU5HYROXWLRQ
& GZ)HHG7\SH
Inputs
Outputs
456 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.120 L_SdGetAxisData - Reading out machine parameters from axis data
________________________________________________________________
Parameter
Note!
Observe that the index of the codes listed in the following only applies to the first in-
stance!
1 Limited
2 Modulo
C04424 -2147483.647 2147483.647 Resulting gearbox factor
• Read only
C04425 -214748.3647 Incr./unit 214748.3647 Resolution of a unit
• Read only
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 457
5 Function blocks
5.121 L_SdGetPosition - position conversion
________________________________________________________________
This FB uses the transmitted machine parameters and converts a position in [inc] into a position in
the real unit of the machine. The converted position is displayed in C04273.
/B6G*HW3RVLWLRQ
GQ3RV,QBS GQ6WDWH
& &
$[LV'DWD E(UURU
& 3RVLWLRQXQLW
Inputs
Outputs
Parameter
458 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.122 L_SdGetSpeed - speed conversion
________________________________________________________________
This FB uses the transmitted machine parameters and converts a speed into a velocity. The conver-
ted value is displayed in C04283.
/B6G*HW6SHHG
GQ6SHHG,QBV GQ6WDWH
& &
$[LV'DWD E(UURU
& 6SHHGXQLW
Inputs
Outputs
Parameter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 459
5 Function blocks
5.123 L_SdIntegrate - integration of speed to position
________________________________________________________________
Note!
The FB is not suitable for modulo measuring systems!
(No clocked (Modulo) positions are provided.)
/B6G,QWHJUDWH
GQ6SHHG,QBV GQ3RV2XWBS
E/RDG6WDUW3RV E(UURU
GQ6WDUW3RVBS
$[LV'DWD
Inputs
Outputs
460 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.124 L_SdIntegrateAxis - speed to position integration (with TP correction)
________________________________________________________________
/B6G,QWHJUDWH$[LV
GQ6SHHG,QBV & & GQ3RV2XWBS
6WDWH GQ6SHHG2XWBV
E/RDG6WDUW3RV &75/ & &
GQ7S7LPH/DJ
E7S5HFHLYHG
$[LV'DWD & 3RVLWLRQXQLW
& 6SHHGXQLW
Inputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 461
5 Function blocks
5.124 L_SdIntegrateAxis - speed to position integration (with TP correction)
________________________________________________________________
Outputs
Parameter
462 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.124 L_SdIntegrateAxis - speed to position integration (with TP correction)
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 463
5 Function blocks
5.124 L_SdIntegrateAxis - speed to position integration (with TP correction)
________________________________________________________________
For the position correction via touch probe the FB requires the touch probe time stamp and the
"Touch probe detected" status signal from the LS_TouchProbe system block for the touch probe
channel used:
/B6G,QWHJUDWH$[LV
GQ6SHHG,QBV &
E/RDG6WDUW3RV
GQ6WDUW3RVBS &
/6B7RXFK3UREH[
GQ7S3RVBS &
73[BGQ7RXFK3UREH7LPH/DJ GQ7S7LPH/DJ
73[BE7RXFK3UREH5HFHLYHG E7S5HFHLYHG
73 73[BE7RXFK3UREH/RVW
73[BE1HJDWLYH(GJH
$[LV'DWD
464 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.124 L_SdIntegrateAxis - speed to position integration (with TP correction)
________________________________________________________________
dnSpeedIn_s
t
bLoadStartPos
t
dnStartPos_p
t
bTpReceived
t
dnPosOut_p
0
dnTpPos_p
t
dnSpeedOut_s
t
"Unlimited" traversing range
"Modulo" traversing range
Touch probe signal has no effect, as bLoadStartPos is set to TRUE.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 465
5 Function blocks
5.124 L_SdIntegrateAxis - speed to position integration (with TP correction)
________________________________________________________________
dnSpeedIn_s dnSpeedIn_s
t t
0 0
bTpReceived bTpReceived
t t
dnPosOut_p dnPosOut_p
dnTpPos_p dnTpPos_p
t t
466 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.125 L_SdIntegrateLimit - integration of speed to position
________________________________________________________________
Note!
During modulo operation, a cycle defined in the machine parameters that are applied
(AxisData) will not be taken into account!
/B6G,QWHJUDWH/LPLW
GQ6SHHG,QBV & & GQ3RV2XWBS
GQ8SSHU/LPLWBS 6WDWH GQ6SHHG2XWBV
GQ/RZHU/LPLWBS &75/ & &
E/RDG6WDUW3RV E8SSHU/LPLW
E6HW6WDUW3RV E/RZHU/LPLW
GQ6WDUW3RVBS & E(UURU
$[LV'DWD
& 3RVLWLRQXQLW
& 6SHHGXQLW
Inputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 467
5 Function blocks
5.125 L_SdIntegrateLimit - integration of speed to position
________________________________________________________________
Outputs
Parameters
468 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.125 L_SdIntegrateLimit - integration of speed to position
________________________________________________________________
5.125.1 Basics
Many machine structures and processes produce measuring systems which display a periodic feed
motion (so-called modulo measuring systems). These measuring systems thus represent a position
range of 0 ... smax.
The following cases can be further distinguished:
• Case 1: Modulo measuring systems with a reference to the mechanical system
• The modulo cycle results solely from the machine structure.
j(t)
360°
s(t)
1000 mm
Selection help
For both cases integrator function blocks are provided, calculating a modulo position from an input
speed:
• Case 1: L_LdIntegrateCyclic, L_SdIntegrateAxis, L_EsStretchIntegrate
• Case 2: L_SdIntegrateLimit
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 469
5 Function blocks
5.125 L_SdIntegrateLimit - integration of speed to position
________________________________________________________________
dnSpeedIn_s
dnPosOut_p
dnUpperLimit_p
dnLowerLimit_p
t
bUpperLimit
t
bLowerLimit
470 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.126 L_SdInterExtrapolateAny - signal interpolation
________________________________________________________________
This FB serves to interpolate or extrapolate setpoints which have a greater resolution than the task
cycle.
• The L_SdInterExtrapolatePosition FB serves to interpolate or extrapolate position information.
( 474)
/B6G,QWHU([WUDSRODWH$Q\
GQ,Q GQ2XW
&
1RRILQWHUH[WUDSRODWLRQF\OHV
& 2SHUDWLRQPRGH
& 5HYHUVLQJDOORZHG
Inputs
Outputs
Parameter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 471
5 Function blocks
5.126 L_SdInterExtrapolateAny - signal interpolation
________________________________________________________________
The FB fills in missing process data by extrapolation. These process data may be missing because of
stochastic errors (e.g. EMC interferences) or the bus cycle being greater than the task cycle of the ap-
plication.
• Select a linear or a quadratic extrapolation in C04441.
• Set the number of extrapolation steps in C04442:
Bus cycle [ms]
C04442 = --------------------------------------
Task cycle [ms]
The FB fills in missing process data by interpolation. These process data are missing because the bus
cycle is greater than the task cycle of the application.
• Select a linear or a quadratic interpolation in C04441.
• Set the number of interpolation steps in C04442:
Bus cycle [ms]
C04442 = --------------------------------------
Task cycle [ms]
Extrapolation
472 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.126 L_SdInterExtrapolateAny - signal interpolation
________________________________________________________________
Interpolation
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 473
5 Function blocks
5.127 L_SdInterExtrapolatePosition - signal interpolation
________________________________________________________________
This FB serves to interpolate or extrapolate position information with a greater resolution than the
task cycle. Furthermore, the FB provides measures for filling in the gaps in the case of telegram fai-
lures.
• The L_SdInterExtrapolateAny FB serves to interpolate or extrapolate other data types. ( 471)
/B6G,QWHU([WUDSRODWH3RVLWLRQ
GQ3RV,QBS GQ3RV2XWBS
& &
GQ6SHHG2XWBV
&
E3URFHVV'DWD([SHFWHG 1RRILQWHUH[WUDSRODWLRQF\OHV &
Inputs
474 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.127 L_SdInterExtrapolatePosition - signal interpolation
________________________________________________________________
Outputs
Parameter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 475
5 Function blocks
5.127 L_SdInterExtrapolatePosition - signal interpolation
________________________________________________________________
The FB fills in missing position data by extrapolation. These position data may be missing because
of stochastic errors (e.g. EMC interferences) or the bus cycle being greater than the task cycle of the
application.
• Select a linear or a quadratic extrapolation in C04431.
• Set the number of extrapolation steps in C04432:
Bus cycle [ms]
C04432 = --------------------------------------
Task cycle [ms]
Note!
A great number of interpolation/extrapolation steps may cause the extrapolated output
signal to reverse, e.g. if the input signal with a rough resolution is brought to a standstill.
• Select in C04433 if reversing is permitted or not. In the Lenze setting of C04433, rever-
sing is not permitted.
The FB fills in missing position data by interpolation. These process data are missing because the bus
cycle is greater than the task cycle of the application.
• Select a linear or a quadratic interpolation in C04431.
• Set the number of interpolation steps in C04432:
Bus cycle [ms]
C04432 = --------------------------------------
Task cycle [ms]
476 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.127 L_SdInterExtrapolatePosition - signal interpolation
________________________________________________________________
An optional telegram failure detection can be activated in C04435, either via toggle input or SyncIn-
put interface (SB LS_SyncInput).
• Telegram failure detection serves to fill in missing process data values.
• The maximum number of accepted telegram failures before interpolation/extrapolation is
stopped can be set in C04434.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 477
5 Function blocks
5.127 L_SdInterExtrapolatePosition - signal interpolation
________________________________________________________________
478 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.127 L_SdInterExtrapolatePosition - signal interpolation
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 479
5 Function blocks
5.127 L_SdInterExtrapolatePosition - signal interpolation
________________________________________________________________
480 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.127 L_SdInterExtrapolatePosition - signal interpolation
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 481
5 Function blocks
5.127 L_SdInterExtrapolatePosition - signal interpolation
________________________________________________________________
482 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.128 L_SdInterpolate - signal interpolation
________________________________________________________________
This FB is used to interpolate position information, e.g. to compensate for long bus transfer cycles
or smooth low-resolution absolute-value encoders.
• The FB L_LdExtrapolate is available for extrapolation. ( 319)
/B6G,QWHUSRODWH
GQ3RV,QBS GQ3RV2XWBS
& &
$[LV'DWD GQ6SHHG2XWBV
&
1RRILQWHUSRODWLRQF\OHV &
Inputs
Outputs
Parameter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 483
5 Function blocks
5.128 L_SdInterpolate - signal interpolation
________________________________________________________________
5.128.1 Function
The number of interpolation cycles to be set under C04400 is calculated by means of the following
formula:
Bus cycle [ms]-
C04400 = -------------------------------------
Task cycle [ms]
Example
If the 9400 HighLine controller (task cycle = 1 ms) receives a position value in a 5-ms cycle from a
higher-level control at dnPosIn_p, set "5" under C04400.
Applications
In the following examples, the number of interpolation cycles selected under C04400 is set to "5".
t
5 cycles
[5-97] Case 1: Cycle time of the input signal = number of interpolation cycles
[5-98] Case 2: Cycle time of the input signal > number of interpolation cycles
484 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.128 L_SdInterpolate - signal interpolation
________________________________________________________________
[5-99] Case 3: Cycle time of the input signal < number of interpolation cycles
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 485
5 Function blocks
5.129 L_SdLimitSpeed - speed limitation
________________________________________________________________
/B6G/LPLW6SHHG
GQ6SHHG,QBV GQ6WDWH
& & GQ6SHHG2XWBV
GQ/RZHU/LPLWBV
&
Inputs
486 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.129 L_SdLimitSpeed - speed limitation
________________________________________________________________
Outputs
Parameter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 487
5 Function blocks
5.130 L_SdMotorPot - motor potentiometer
________________________________________________________________
This FB replaces a hardware motor potentiometer and can be used as an alternative setpoint source
controlled via two inputs.
• The signal output is effected via a ramp function generator with linear ramps.
• The acceleration and deceleration time and the upper and lower limit value can be parameteri-
sed independently of each other.
• The behaviour after mains switching can be parameterised; in the Lenze setting the last output
value before the mains are switched off is re-established.
• The behaviour in the case of deactivation of the motor potentiometer function can also be pa-
rameterised.
/B6G0RWRU3RW
E8S & $FFWLPH & GQ2XWBQ
&
E'RZQ
8SSHUOLPLW
&
E'LVDEOH /RZHUOLPLW & 'HFWLPH E/LPLW$FWLYH
E/RDG6WDUW9DOXH
& ,QLWLDOL]DWLRQIXQFWLRQ
GQ6WDUW9DOXHBQ & 'HDFWLYDWLRQIXQFWLRQ
& 6WDWH
Inputs
488 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.130 L_SdMotorPot - motor potentiometer
________________________________________________________________
Outputs
Parameter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 489
5 Function blocks
5.130 L_SdMotorPot - motor potentiometer
________________________________________________________________
The acceleration and deceleration time can be parameterised independently of each other in
C04361/1 and C04361/2 and relate to a change in the output value dnOut_n by 100 %:
bUp
t
bDown
t
dnOut_n
+200 %
+100 %
0%
t
C04361/1 C04361/2 C04361/1
-200 %
490 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.130 L_SdMotorPot - motor potentiometer
________________________________________________________________
bUp
t
bDown
t
bDisable
t
bLoadStartValue
t
dnStartValue_n
+30 %
0%
t
dnOut_n
+200 % 1
C04360/1
C04361/1
C04361/2
+30 %
0%
t
0
2
C04360/2
-200 %
bLimit
t
Starting value is loaded
Output value is limited
Output value remains unchanged, as bUp and bDown are set to TRUE at the same time.
C04360/1: upper limit value
C04360/2: lower limit value
C04361/1: acceleration time
C04361/2: deceleration time
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 491
5 Function blocks
5.130 L_SdMotorPot - motor potentiometer
________________________________________________________________
If the control input bDisable is set to TRUE, the control inputs bUp and bDown are deactivated and
the output value dnOut_n is changed according to the deactivation function set in C04362:
1 ',6$%/(' dnOut_nis increased to 0 % with the deceleration time or increased with the acceleration ti-
me.
W
2 ',6$%/(' dnOut_n is decreased to the lower limit value (C04360/2) with the deceleration time
(C04361/2).
W
3 ',6$%/(' dnOut_n is increased to the upper limit value (C04360/1) with the acceleration time
(C04361/1).
W
Note!
If the motor potentiometer function is reactivated and dnOut_n is beyond the limit va-
lues parameterised, dnOut_n is lead to the nearest limit value under consideration of the
acceleration/deceleration time.
This process is independent of the control signals bUp and bDown.
492 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.130 L_SdMotorPot - motor potentiometer
________________________________________________________________
bUp
t
bDown
t
bDisable
t
dnOut_n
+200 %
C04360/1
C04361/2 C04361/1
C04360/2
0%
t
0 1
Motor potentiometer function is deactivated
Motor potentiometer function is reactivated
C04360/1: upper limit value
C04360/2: lower limit value
C04361/2: deceleration time
C04361/1: acceleration time
A. By setting the control input bDisable to TRUE, the motor potentiometer function is deactivated.
• When the deactivation function C04362 = 1 is set, dnOut_n is decreased to 0 % under consi-
deration of the deceleration time.
B. By resetting the control input bDisable to FALSE, the motor potentiometer function is reactiva-
ted.
• As the lower limit value in the example is set greater 0 % and hence dnOut_n is beyond the
limit values, dnOut_n is first lead back to the lower limit value by means of the acceleration
time.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 493
5 Function blocks
5.130 L_SdMotorPot - motor potentiometer
________________________________________________________________
If the upper limit value is parameterised smaller than the lower limit value, a bit coded error mes-
sage is output via the display code C04369. As a response to this incorrect parameterisation, the
control inputs bUp and bDown are deactivated and the output value dnOut_n is lead to 0 % with the
deceleration/acceleration time set.
bUp
t
bDown
t
dnOut_n
+200 %
0
C04360/1
C04361/2
0%
t
C04361/1
C04360/2
-200 %
[5-103] Example: signal characteristics for incorrect parameterisation of the limit values
494 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.131 L_SdPosToUnit - position conversion
________________________________________________________________
This FB uses the transmitted machine parameters and converts a position defined in the internal
unit [inc] into a position in the real unit of the machine.
/B6G3RV7R8QLW
GQ3RV,QBS GQ3RV2XWBH
>LQF@>XQLW@
$[LV'DWD E/LPLW
& 8QLW
Inputs
Outputs
Parameter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 495
5 Function blocks
5.132 L_SdProcessController - PID controller with limitation
________________________________________________________________
This function block provides a comprehensive PID controller with setpoint and actual value proces-
sing as well as characteristic function.
• The function block basically consists of an interconnection of the following function blocks:
• L_TbPT1Filter ( 615)
• L_SdRampGenerator ( 504)
• L_TbCurve ( 565)
• L_TbPIController ( 613)
• L_TbDifferentiate ( 582)
• The value output to the output dnOut_n is internally limited to the limit range parameterised
in C04381 and C04382 (default setting ±200 %).
• The bLimitActive output displays if a limitation is active.
/B6G3URFHVV&RQWUROOHU
5DPSWLPH & 5HGXFHGJDLQ & 7Q & & GQ2XWBQ
& & & 7G
GQ6HW9DOXHBQ & & GQ2XW5HGBQ
&
E/RDG$FW9DOXH & 5DQJH & & GQ$FW6HW9DOXHBQ
E/RDG,QW9DOXH &
GQ,QW9DOXHBQ &
&XUYHFKDUDFWHULVWLFIRUP
E5HVHW &
[ & \[ &
& *DLQ [ & \[ &
GQ*DLQ$GDSWBQ & [ & \[ &
GQ,QIOXHQFHBQ & [ & \[ &
[ & \[ &
Inputs
496 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.132 L_SdProcessController - PID controller with limitation
________________________________________________________________
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 497
5 Function blocks
5.132 L_SdProcessController - PID controller with limitation
________________________________________________________________
Parameter
498 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.132 L_SdProcessController - PID controller with limitation
________________________________________________________________
1 TRUE
C04389/4 Limitation active
0 FALSE • Display of the bLimitActive output
signal.
1 TRUE
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 499
5 Function blocks
5.132 L_SdProcessController - PID controller with limitation
________________________________________________________________
The PID controller dynamics is parameterised according to the Vp gain, the Tn reset time, and the Td
rate time.
• In the Lenze setting, the function block operates as a PI controller and the D component is deac-
tivated.
Gain (P component)
The controller gain is set in C04378.
• Setting "0.0000" resets the controller.
• The controller gain can be adapted via the dnGainAdapt_n input and a parameterisable charac-
teristic function.Adaptation of the controller gain via characteristic function ( 501)
500 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.132 L_SdProcessController - PID controller with limitation
________________________________________________________________
The controller gain can be adapted via the dnGainAdapt_n input and a parameterisable characteri-
stic function.
• In the characteristic default setting (y = 100 %), dnAdaptGain_n is ineffective. The controller
gain is directly effective (C04378).
P = C04378
P = dnGainAdapt_n ⋅ C04378
• By changing the characteristic, the influence of dnAdaptGain_n on the controller gain can be
evaluated in percent:
P = f(dnGainAdapt_n) ⋅ C04378
1 2 2 2 5
Y C04384/1 C04384/2 C04384/3 C04384/4 C04384/5
x C04385/1 C04385/2 C04385/3 C04385/4 C04385/5
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 501
5 Function blocks
5.132 L_SdProcessController - PID controller with limitation
________________________________________________________________
Characteristic examples
1 2 3 4 5
x 0% 100 % 0% 0% 0%
Y 100 % 100 % 0% 0% 0%
y
200 %
x1, y1
x2, y2
II. I.
x
-200 % 0% 200 %
1 2 3 4 5
x 40 % 90 % 100 % 0% 0%
Y 40 % 140 % 115 % 0% 0%
y
200 %
x2, y2
x3, y3
II. I.
x1, y1
x
-200 % 0% 200 %
[5-2] Example 2
A reduced controller dynamics with low system deviations causes a positive influence on the dam-
ping behaviour of the control loop.
• C04377 serves to set a tolerance window, in which the system deviation is transferred to the
controller with a slight gain.
• C04376 serves to set the required gain reduction in the defined tolerance window in percent.
The dnInfluence_n input serves to evaluate the dnOut_n controller output in percent. The evaluated
output signal is provided at dnOutRed_n.
502 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.132 L_SdProcessController - PID controller with limitation
________________________________________________________________
The dnSetValue_n input setpoint can be lead via a ramp function generator with linear ramps to pre-
vent setpoint step-changes at the input.
The following applies up to and including library V02.08.xx.xx:
• The acceleration/deceleration times are set via C04375.
The following applies from library V02.09.xx.xx:
• The acceleration and deceleration times are set in C04375 and C04386.
• If C04386 = "1000.001 s" (Lenze setting), the setting in C04375 is used for both the accelera-
tion and the deceleration time, which corresponds to the behaviour so far (symmetrical acce-
leration/deceleration times).
• If C04386 <> "1000.001 s", the setting in C04375 is used as the acceleration time and a sepa-
rate setting in C04386 is used as the deceleration time.
• The acceleration time describes the time necessary to reach 100 %.
• The setting is done according to the formula:
1 s ⋅ 100 %
---------------------------
C04375 [s]
• In the Lenze setting, the ramp function generator is deactivated (C04375 = 0.000 s).
• By setting the bLoadActValue input to TRUE, the ramp function generator can be initialised with
the value applied to the dnActValue_n input. This causes the system deviation to be zero.
The dnActValue_n actual value loaded by setting bLoadActValue to TRUE can be lead via a PT1 filter.
• The rate time is set in C04383.
• In the Lenze setting, the filter is deactivated (C04383 = 0.001 s).
In = Out
T t
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 503
5 Function blocks
5.133 L_SdRampGenerator - ramp function generator - S-ramp
________________________________________________________________
This FB is a ramp function generator with S-shaped ramps for limiting the increase of analog signals
over time. The S-shape of the ramps results from a trapezoidal acceleration.
• The ramp function generator has a setting function for directly loading the value into the inter-
nal ramp generator.
• The acceleration/deceleration times are set via C04340.
• An S-ramp time for a jerk-free acceleration can be set in C04341.
• At the output dnDeltaOut_n the gradient dy/dt of the output signals dnOut_n is shown. This si-
gnal can for instance be used for torque feedforward control after a gain via the L_TbGainLim
FB.
• An advanced version, the L_SdRampGeneratorAny FB, is available from library V02.09.xx.xx.
This FB can be used to also process speeds (_s) and to set separate acceleration and deceleration
times.
/B6G5DPS*HQHUDWRU
GQ,QBQ GQ2XWBQ
& &
&
E/RDG6WDUW9DOXH &
GQ6WDUW9DOXHBQ GQ'HOWD2XWBQ
Inputs
Outputs
504 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.133 L_SdRampGenerator - ramp function generator - S-ramp
________________________________________________________________
Parameter
By setting bLoadStartValue to TRUE the ramp function generator is loaded with the signal at
dnStartValue_n.
• This value is accepted immediately and output to nOut_n. No s-shape ramp-up or ramp-down
takes place.
• As long as bLoadStartValue = TRUE , the ramp function generator is inhibited.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 505
5 Function blocks
5.133 L_SdRampGenerator - ramp function generator - S-ramp
________________________________________________________________
dnIn_n
dnOut_n
dnDeltaOut_n
C04340
0 t
C04340
C04341
1 t
acceleration
S-ramp time
1 s ⋅ 100 %
---------------------------
C04340 [s]
S-ramp time
An S-ramp time for a jerk-free acceleration of the drive can be set in C04341.
• The jerk is entered in [s] until the ramp function generator operates with the maximum accele-
ration.
506 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.134 L_SdRampGeneratorAny - ramp function generator - S-ramp
________________________________________________________________
This FB is a ramp function generator with S-shaped ramps for limiting the increase of analog signals
over time. The S-shape of the ramps results from a trapezoidal acceleration.
• This FB is an advanced version of the L_SdRampGenerator FB:
• Depending on the interconnection of AxisData, setpoints can be defined as scaled signals
(_n) or speeds (_s).
• Separate acceleration and deceleration times can be set via C04332/1 and C04332/2.
• Separate S-ramp times for acceleration and deceleration to achieve jerk-free acceleration can
be set in C04333/1 and C04333/2.
• The ramp function generator has a setting function for directly loading the value into the inter-
nal ramp generator.
• At the dnDeltaOut output, gradient dy/dt of the dnOutput output signal is provided. This signal
can e.g. be used for torque feedforward control after being amplified via the L_TbGainLim FB.
/B6G5DPS*HQHUDWRU$Q\
GQ,QSXW GQ2XWSXW
& &
& $FFHOHUDWLRQWLPH
E/RDG6WDUW9DOXH & 'HFHOHUDWLRQWLPH
GQ6WDUW9DOXH & 6UDPSWLPHDFFHOHUDWLRQ GQ'HOWD2XW
& 6UDPSWLPHGHFHOHUDWLRQ
$[LV'DWD
& 6LJQDOXQLW
& 5HIHUHQFHYDOXH
Inputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 507
5 Function blocks
5.134 L_SdRampGeneratorAny - ramp function generator - S-ramp
________________________________________________________________
Outputs
Parameter
508 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.135 L_SdRuntimeComp - runtime compensation
________________________________________________________________
This FB is used for the runtime compensation of position signals that are, for instance, transmitted
by means of a bus system.
• The output signal leads the input signal by the last position difference.
• The resulting rate time equals the task runtime of the program in which the FB is used.
Note!
The FB is not suitable for clocked (modulo) positions!
The FB L_SdDelayComp can be used for dead time compensation. ( 453)
/B6G5XQWLPH&RPS
GQ3RV,QBS GQ3RV2XWBS
E(QDEOH
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 509
5 Function blocks
5.136 L_SdSetAxisData - machine parameters
________________________________________________________________
This FB serves to indicate the machine parameters of a master drive. The FB processes the machine
parameters which you define with the physical units of the machine via parameters for the internal
representation.
• The FB outputs a pointer to the data structure with the prepared machine parameters at the
output AxisData.
• To transmit the machine parameters to another FB, which requires these data for internal cal-
culations, the output AxisData must simply be connected to the input of the same name of the
corresponding FB.
/B6G6HW$[LV'DWD
$[LV'DWD
0DFKLQHSDUDPHWHUV
GQ&\FOH/HQJWKBS
& *HDUER[IDFWRUQXPHUDWRU
& *HDUER[IDFWRUGHQRPLQDWRU
& )HHGFRQVWDQW
& 3DWKXQLW
& 8VHUGHILQHGSDWKXQLW
& 7LPHXQLW
& &\FOH
& 5HVROXWLRQRIDQHQFRGHUUHYROXWLRQ
& 5HIHUHQFHVSHHG
& 7UDYHUVLQJUDQJH
& 5HVXOWLQJJHDUER[IDFWRU
& 5HVROXWLRQRIDXQLW
Outputs
510 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.136 L_SdSetAxisData - machine parameters
________________________________________________________________
Parameter
Note!
Observe that the index of the codes listed in the following only applies to the first in-
stance!
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 511
5 Function blocks
5.136 L_SdSetAxisData - machine parameters
________________________________________________________________
/B6G6HW3RVLWLRQ
3RVLWLRQYDOXH & GQ6WDWH
/B6G6HW$[LV'DWD &
GQ6HW3RVBS
$[LV'DWD
o $[LV'DWD E(UURU
0DFKLQHSDUDPHWHUV
GQ&\FOH/HQJWKBS
& *HDUER[IDFWRUQXPHUDWRU
& *HDUER[IDFWRUGHQRPLQDWRU
& )HHGFRQVWDQW
& 3DWKXQLW
n & 8VHUGHILQHGSDWKXQLW
& 7LPHXQLW
& &\FOH
& 5HVROXWLRQRIDQHQFRGHUUHYROXWLRQ
& 5HIHUHQFHVSHHG
& 7UDYHUVLQJUDQJH
& 5HVXOWLQJJHDUER[IDFWRU
& 5HVROXWLRQRIDXQLW
1. The machine data are specified with the physical units of the machine via the corresponding pa-
rameters.
2. The FB converts the machine parameters into the internal representation and provides the data
at the output AxisData as a data structure for transfer to other FBs.
• For library V01.xx the following applies: Always a modulo measuring system is output.
• As of library V02.00 the following applies: The traversing range can be selected via C04252.
512 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.136 L_SdSetAxisData - machine parameters
________________________________________________________________
The machine parameters can be easily entered via the parameterisation dialog of the FB
L_SdSetAxisData.
Tip!
The way how to detect the optimum resolution of the position values is described in the
subchapter "Detecting the optimum resolution". ( 516)
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 513
5 Function blocks
5.136 L_SdSetAxisData - machine parameters
________________________________________________________________
%LW
Sign bit
Number of revolutions: 15 bits ≡ ±32767 revolutions
Resolution of an encoder revolution: 16 bits ≡ 65536 increments/revolution
• For higher-order applications, a higher resolution of the position values may lead to considerab-
ly improved control properties and positioning accuracies.
• Finer resolution of the position targets improved positioning accuracy
• Finer quantisation of the setpoints and actual values higher control quality
• Higher loop gain can be adjusted less following errors
• However, a higher resolution results in a restricted number of encoder revolutions and only
smaller traversing paths can be displayed.
%LW
Sign bit
Number of revolutions: 9 bits ≡ ±512 revolutions
Resolution of an encoder revolution: 22 bits ≡ 4194304 increments/revolution
[5-108] Example: Higher resolution (22 bits/revolution) with restricted traversing range
Tip!
The way how to detect the optimum resolution of the position values is described in the fol-
lowing subchapter "Detecting the optimum resolution". ( 516)
514 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.136 L_SdSetAxisData - machine parameters
________________________________________________________________
Note!
The position values (e.g. setpoints, actual values, parameters, …) in the signal flow al-
ways use the set resolution, irrespective of the resolution the encoder supplies directly.
Resolution of the drive/motor
The machine parameters for the drive/motor are set via the drive interface
(SB LS_DriveInterface).
Multi-axis systems
When being connected via the electrical shaft, the drive is at least provided with two
measuring systems (master and slave).
• Each measuring system has an own resolution setting.
• The machine parameters (gearbox factors, feed constant, encoder resolution, and cy-
cle) for the master measuring system or master value must be identical for all drives
in the interconnection.
Technology applications "Electronic gearbox" and "Synchronism"
For both technology applications, the machine parameters of the master measuring sys-
tem are defined on the Application parameters tab in the "Master value scaling" dialog
level.
Electronic cam
For electronic cams, the machine parameters of the master measuring system are defi-
ned on the Measuring systems tab of the electrical shaft.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 515
5 Function blocks
5.136 L_SdSetAxisData - machine parameters
________________________________________________________________
5. Enter the greatest position to be entered into a parameter during operation into the Max.
presentable position input field.
• If required, set an overshoot in the Overshoot input field for considering possibly occur-
ring following errors (overshooting of the actual values).
After this, the maximum resolution for the entered position is displayed in the Maximum
resolution for encoder revolution field.
6. Press Accept value to accept the resolution displayed in C04249.
7. Press Close to close the dialog box again.
Tip!
In order to display the max. presentable position for a predefined resolution, activate the
second option detect maximum displayable position. Afterwards you can set the resolution
for which the max. presentable position is to be displayed in the Maximum resolution for
encoder revolution input field.
516 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.136 L_SdSetAxisData - machine parameters
________________________________________________________________
5.136.4 Example
The machine parameters of a master value encoder are to be displayed in the application for the
purpose of master value processing.
i1 = 3.333 i2
l 1 = 600 mm
d1 = 150 mm d2
Machine parameters of the master value encoder
Machine parameters of the drive/motor
Settings
Tip!
The machine parameters for the drive/motor are set via the drive interface
(SB LS_DriveInterface).
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 517
5 Function blocks
5.137 L_SdSetPosition - position conversion
________________________________________________________________
This FB uses the transmitted machine parameters and converts a position which has been selected
via C04276 in the real machine units into a position in [inc] and outputs it at dnSetPosOut_p for
further processing within the FB interconnection.
/B6G6HW3RVLWLRQ
3RVLWLRQYDOXH & GQ6WDWH
&
GQ3RV2XWBS
$[LV'DWD E(UURU
& 3RVLWLRQXQLW
Inputs
Outputs
Parameter
518 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.137 L_SdSetPosition - position conversion
________________________________________________________________
If the machine parameters transferred to the FB via the AxisData input are changed afterwards (e.g.
the gearbox factors), this may cause a counter overflow when the position value defined via C04276
is converted from the real unit to the internal unit.
The FB reports an internal counter overflow due to a changed measuring system by the value "-12"
at the dnState status output and activates a corresponding error message:
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 519
5 Function blocks
5.138 L_SdSetSpeed - speed conversion
________________________________________________________________
This FB uses the transmitted machine parameters and converts a velocity which has been selected
via C04286 in the real machine units into a speed and outputs it at dn'SpeedOut_s for further pro-
cessing in the FB interconnection.
/B6G6HW6SHHG
6SHHGYDOXH & GQ6WDWH
&
GQ6SHHG2XWBV
$[LV'DWD E(UURU
& 6SHHGXQLW
Inputs
Outputs
Parameter
520 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.138 L_SdSetSpeed - speed conversion
________________________________________________________________
If the machine parameters transferred to the FB via the AxisData input are changed afterwards (e.g.
the gearbox factors), this may cause a counter overflow when the speed value defined via C04286
is converted from the real unit to the internal unit.
The FB reports an internal counter overflow due to a changed measuring system by the value "-12"
at the dnState status output and activates a corresponding error message:
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 521
5 Function blocks
5.139 L_SdSpeedFilter - speed signal delay
________________________________________________________________
This FB is used to filter or delay a speed signal according to the PT1 principle. The resulting position
loss is compensated by an internal overflow buffer.
/B6G6SHHG)LOWHU
GQ6SHHG,QBV GQ6SHHG2XWBV
& &
Inputs
Outputs
522 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.139 L_SdSpeedFilter - speed signal delay
________________________________________________________________
Parameter
1 Filter is active
If the machine parameters transferred to the FB via the AxisData input are changed afterwards (e.g.
the gearbox factors), this may cause a counter overflow when the speed value defined via C04290
is converted from the real unit to the internal unit.
The FB causes a corresponding error message in case of an internal counter overflow due to a chan-
ged measuring system:
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 523
5 Function blocks
5.140 L_SdSpeedSet - setpoint ramp generator
________________________________________________________________
This FB contains a ramp generator with comprehensive parameterisation and control options for
conditioning a setpoint signal.
/B6G6SHHG6HW
GQ6SHHG6HWSRLQW,QBQ GQ6SHHG6HWSRLQW2XWBQ
E,QYHUW6HWSRLQW & &
&
E+ROG2XWSXW & GQ7DUJHW6HWSRLQWBQ
E6WRS &
& &
E/RDG([W6SHHG6HWSRLQW
GQ([W6SHHG6HWSRLQWBQ &
E/RDG$FWXDO0RWRU6SHHG &
*HDUUHIHUHQFHVSHHG
&
GQ$FWXDO0RWRU6SHHGBQ & & *HDUVSHHGVHWSRLQW
GZ5DPS0RGH & & 0DFKLQHUHIHUHQFHVSHHG
& 0DFKLQHVSHHGVHWSRLQW
$[LV'DWD &
8QLWIRUVSHHG
&
Inputs
524 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.140 L_SdSpeedSet - setpoint ramp generator
________________________________________________________________
Outputs
Parameter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 525
5 Function blocks
5.140 L_SdSpeedSet - setpoint ramp generator
________________________________________________________________
526 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.140 L_SdSpeedSet - setpoint ramp generator
________________________________________________________________
1 Stop requested
C04239/4...7 Jog input 1 ... 8
0 Jog input not active • Display of the bJog1 ... bJog8 input
signals.
1 Jog input active
C04239/8...11 Ti input 1 ... 8
0 Ti input not active • Display of the bTi1 ... bTi8 input si-
gnals.
1 Ti input active
C04239/12 Load external setpoint
0 Loading not active • Display of the
bLoadExtSpeedSetpoint input sig-
1 Load external setpoint nal.
C04239/13 Load motor speed
0 Loading not active • Display of the
bLoadActualMotorSpeed input si-
1 Load motor speed gnal.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 527
5 Function blocks
5.140 L_SdSpeedSet - setpoint ramp generator
________________________________________________________________
• The signals in the setpoint path are limited to ±200.00 % of the motor Motor reference speed
(C00011).
• The signal at dnSpeedSetpointIn_n is first led via the function "Selection of fixed setpoints".
• A selected fixed setpoint switches the input dnSpeedSetpointIn_n inactive and the subsequent
signal conditioning uses the selected fixed setpoint.
• By setting the input bInvertSetpoint to TRUE the input signal of the ramp generator can be in-
verted.
In addition to the direct setpoint selection via the input dnSpeedSetpointIn_n fixed setpoints can be
preset in C04200/1...15.
• These fixed setpoints can be called binary coded any time via the selection inputs bJog1 ... bJog8,
so 15 options are available.
• The number of selected inputs to be assigned depends on the number of required fixed set-
points.
Number of the fixed setpoints required Number of the selection inputs to be assigned (bJog1 ... bJog8)
1 at least 1
1 ... 3 at least 2
4 ... 7 at least 3
8 ... 15 4
528 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.140 L_SdSpeedSet - setpoint ramp generator
________________________________________________________________
Afterwards, the setpoint is led via a ramp generator with S-ramp characteristic. The ramp generator
transfers setpoint step-changes at the input to a ramp.
RFG-OUT
100 %
w2
w1 t ir t ir
0%
t
Tir Tir
• tir and tif are the desired times for changing between w1 and w2.
• S-ramps are possible if an S-ramp time is selected.
• The tir/tif values are converted into the required Ti times according to the following formula:
100 % 100 %
T ir = t ir ⋅ ----------------------- T if = t if ⋅ -----------------------
w2 – w1 w2 – w1
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 529
5 Function blocks
5.140 L_SdSpeedSet - setpoint ramp generator
________________________________________________________________
16 different Tir, Tif and S-ramp times can be selected via parameters for the ramp generator.
• The selection is carried out binary coded via the selection inputs bTI1 ... bTI8:
For a better assessment of the created setpoints/parameterised fixed values (% value) the machine-
based reference values are calculated and displayed:
Parameter Information
C04225 Load reference speed
C04226 Setpoint speed - load
C04227 Machine reference speed
C04228 Machine setpoint speed
Parameter Information
C04221 Setpoint at the input
C04222 Target setpoint
C04223 Setpoint at the output
530 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.141 L_SdSpeedToUnit - speed conversion
________________________________________________________________
This FB uses the transmitted machine parameters and converts a speed value defined in the internal
unit [rpm] into a speed value in the real unit of the machine.
/B6G6SHHG7R8QLW
GQ6SHHG,QBV GQ6SHHG2XWBH
>USP@>XQLW@
$[LV'DWD E/LPLW
& 8QLW
Inputs
Outputs
Parameter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 531
5 Function blocks
5.142 L_SdSwitchPoint - position switch points
________________________________________________________________
This FB serves to implement up to 8 simple position switch points (cams). When the current drive
position is inside a range defined via parameters, the output assigned to this "switching area" is set
to TRUE.
• The output setting does not depend on whether the switching range is approached by the posi-
tive or negative side.
• In the modulo measuring system (rotary table) the switching ranges can also be defined beyond
the 0° position (e.g. switching on at 350° and off at 10° in CW rotation).
/B6G6ZLWFK3RLQW
E(QDEOH 6ZLWFKLQJ 7ULSSLQJ (QDEOH
SRLQW SRLQW RXWSXW
GQ3RV,QBS & E6ZLWFK
& & &
$[LV'DWD & E6ZLWFK
& & &
& 3RVLWLRQXQLW & E6ZLWFK
& & &
URWDU\D[LV & E6ZLWFK
& & &
& E6ZLWFK
& & &
& E6ZLWFK
& & &
OLQHDUD[LV & E6ZLWFK
& & &
& E6ZLWFK
& & &
Inputs
532 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.142 L_SdSwitchPoint - position switch points
________________________________________________________________
Outputs
Parameter
1 Switch on
C04396 String of digits Position unit
As of library V02.02.xx.xx • Read only
C04397/1...8 -214748.3647 Unit 214748.3647 Switch-on position - switching range
1 ... 8
C04398/1...8 -214748.3647 Unit 214748.3647 Switch-off position - switching range
1 ... 8
C04399/1...8 Enable - switching range 1 ... 8
0 Switching range not enabled
1 Switching range enabled
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 533
5 Function blocks
5.142 L_SdSwitchPoint - position switch points
________________________________________________________________
If the machine parameters transferred to the FB via the AxisData input are changed afterwards (e.g.
the gearbox factors), this may cause a counter overflow when the position values defined via
C04397/1...8 and C04398/1...8 converted from the real unit to the internal unit.
The FB causes a corresponding error message in case of an internal counter overflow due to a chan-
ged measuring system:
534 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.143 L_SdTouchProbe - touch probe evaluation
________________________________________________________________
This FB takes over the interpolation of the input signal based on the time stamp handed over by a
touch probe system block and outputs the interpolated value and the difference compared with the
last input signal.
• The FB considers a modulo measuring system and the cycle of the selected machine parameters.
no
/6B7RXFK3UREH /B6G7RXFK3UREH
73BGQ7RXFK3UREH7LPH/DJ GQ$FW3RVBS GQ7S3RVBS
73BE7RXFK3UREH5HFHLYHG GQ7S7LPH/DJ 73 GQ7S3RV'LIIBS
73BE7RXFK3UREH/RVW E7S5HFHLYHG
73BE1HJDWLYH(GJH $[LV'DWD
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 535
5 Function blocks
5.143 L_SdTouchProbe - touch probe evaluation
________________________________________________________________
If a touch probe is detected, the (residual) time to the following task cycle is determined and a time
stamp is created from it. Based on this time stamp the FB L_SdTouchProbe can execute a linear in-
terpolation between both actual position points. The result is the exact actual position at the time
of the physical touch probe event.
Position
Touch probe received p2
p1
t1
0
t
Actual position point 1
Actual position point 2
Residual time (dnTpTimeLag)
5.143.2 Example
Connections required for a touch probe detection via the digital input DI4:
/6B7RXFK3UREH /B6G7RXFK3UREH
73BGQ7RXFK3UREH7LPH/DJ GQ$FW3RVBS GQ7S3RVBS
73BE7RXFK3UREH5HFHLYHG GQ7S7LPH/DJ 73 GQ7S3RV'LIIBS
73BE7RXFK3UREH/RVW E7S5HFHLYHG
73BE1HJDWLYH(GJH $[LV'DWD
536 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.144 L_SdUnitToAcc - acceleration conversion
________________________________________________________________
This FB uses the transmitted machine parameters and converts an acceleration value defined in the
real unit of the machine into an internal acceleration value.
/B6G8QLW7R$FF
GQ$FF,QBH GQ$FF2XWB[
>XQLW@>USPV@
$[LV'DWD E/LPLW
& 8QLW
Inputs
Outputs
Parameter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 537
5 Function blocks
5.145 L_SdUnitToPos - position conversion
________________________________________________________________
This FB uses the transmitted machine parameters and converts a position defined in the real unit of
the machine into an internal position.
/B6G8QLW7R3RV
GQ3RV,QBH GQ3RV2XWBS
>XQLW@>LQF@
$[LV'DWD E/LPLW
& 8QLW
Inputs
Outputs
Parameter
538 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.146 L_SdUnitToSpeed - speed conversion
________________________________________________________________
This FB uses the transmitted machine parameters and converts a speed defined in the real unit of
the machine into an internal speed.
/B6G8QLW7R6SHHG
GQ6SHHG,QBH GQ6SHHG2XWBV
>XQLW@>USP@
$[LV'DWD E/LPLW
& 8QLW
Inputs
Outputs
Parameter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 539
5 Function blocks
5.147 L_Tb5And - AND with 5 inputs
________________________________________________________________
/B7E$QG
E,Q E2XW
E,Q
E,Q
E,Q
E,Q
Inputs
Outputs
Tip!
If you want to combine less than five signals, set the unused inputs to TRUE or assign seve-
ral inputs to the same signal.
540 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.148 L_Tb5Nand - NAND with 5 inputs
________________________________________________________________
/B7E1DQG
E,Q E2XW
E,Q
E,Q
E,Q
E,Q
Inputs
Outputs
Tip!
If you want to combine less than five signals, set the unused inputs to TRUE or assign seve-
ral inputs to the same signal.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 541
5 Function blocks
5.149 L_Tb5Nor - NOR with 5 inputs
________________________________________________________________
/B7E1RU
E,Q E2XW
E,Q
E,Q
E,Q
E,Q
Inputs
Outputs
Tip!
If you want to combine less than five signals, set the unused inputs to FALSE.
542 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.150 L_Tb5Or - OR with 5 inputs
________________________________________________________________
/B7E2U
E,Q E2XW
E,Q
E,Q
E,Q
E,Q
Inputs
Outputs
Tip!
If you want to combine less than five signals, set the unused inputs to FALSE.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 543
5 Function blocks
5.151 L_Tb5Xor - XOR with 5 inputs
________________________________________________________________
/B7E;RU
E,Q E2XW
E,Q
E,Q
E,Q
E,Q
Inputs
Outputs
544 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.152 L_Tb8Select - 1-out-of-8 selector (for data type "DINT")
________________________________________________________________
This FB connects one of eight input signals of "DINT" type through to the output.
• The input is selected via the input dwSelect.
/B7E6HOHFW
GQ,Q GQ2XW
GQ,Q
GQ,Q
GQ,Q
GQ,Q
GQ,Q
GQ,Q
GQ,Q
GZ6HOHFW
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 545
5 Function blocks
5.153 L_Tb8SelectByte - 1-out-of-8 selector (for data type "BYTE")
________________________________________________________________
This FB connects one of eight input signals of "BYTE" type through to the output.
• The input is selected via the input dwSelect.
/B7E6HOHFW%\WH
E\,Q E\2XW
E\,Q
E\,Q
E\,Q
E\,Q
E\,Q
E\,Q
E\,Q
GZ6HOHFW
Inputs
Outputs
546 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.154 L_Tb8SelectWord - 1-out-of-8 selector (for data type "WORD")
________________________________________________________________
This FB connects one of eight input signals of "WORD" type through to the output.
• The input is selected via the input dwSelect.
/B7E6HOHFW:RUG
Z,Q Z2XW
Z,Q
Z,Q
Z,Q
Z,Q
Z,Q
Z,Q
Z,Q
GZ6HOHFW
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 547
5 Function blocks
5.155 L_TbAbs - absolute value
________________________________________________________________
This function block converts a bipolar signal into a unipolar signal, i.e. the absolute value of the in-
put signal is generated.
/B7E$EV
GQ,Q GQ2XW
Inputs
Outputs
548 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.156 L_TbAdd - addition
________________________________________________________________
/B7E$GG
GQ,Q GQ2XW
GQ,Q DE
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 549
5 Function blocks
5.157 L_TbAddLim - addition with limitation
________________________________________________________________
/B7E$GG/LP
GQ,Q GQ2XW
GQ,Q DE E/LPLW$FWLYH
Inputs
Outputs
550 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.158 L_TbAddSubLim - addition and subtraction with limitation
________________________________________________________________
/B7E$GG6XE/LP
GQ,Q GQ2XW
GQ$GG E/LPLW$FWLYH
DEF
GQ6XE
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 551
5 Function blocks
5.159 L_TbAnd - AND with 2 inputs
________________________________________________________________
/B7E$QG
E,Q E2XW
E,Q
Inputs
Outputs
Function
552 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.160 L_TbCompare - comparison
________________________________________________________________
This function block compares two signals of the "DINT" data type and can be used e.g. for implemen-
ting a trigger.
• The comparison function is selected via C04085.
• In contrast to the FB L_TbCompare_n, the window and hysteresis of this FB can be adjusted via
inputs instead of parameters.
/B7E&RPSDUH
GQ,Q E2XW
&
GQ,Q
!
GQ7ROHUDQFH
GQ+\VWHUHVLV !
Inputs
Outputs
Parameter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 553
5 Function blocks
5.160 L_TbCompare - comparison
________________________________________________________________
FALSE
dnIn1
dnHysteresis dnHysteresis
dnIn2
Tip!
With this function, the FB must be used in a fast task to achieve optimum sampling of the
signals.
dnIn1
dnHysteresis
dnTolerance
dnIn2
dnTolerance
dnHysteresis
t
bOut
TRUE
FALSE
t
554 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.160 L_TbCompare - comparison
________________________________________________________________
dnHysteresis
bOut
TRUE
FALSE
dnIn1
dnIn2
Functional sequence
1. If the value at dnIn1 exceeds the value at dnIn2, bOut changes from FALSE to TRUE.
2. Only if the signal at dnIn1 falls below the value at dnIn2 - dnHysteresis again, bOut changes from
TRUE to FALSE.
dnIn1
dnIn2
dnHysteresis
t
bOut
TRUE
FALSE
t
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 555
5 Function blocks
5.160 L_TbCompare - comparison
________________________________________________________________
dnHysteresis
bOut
TRUE
FALSE
dnIn1
dnIn2
Functional sequence
1. If the value at dnIn1 falls below the value at dnIn2, bOut_b changes from FALSE to TRUE.
2. Only if the signal at dnIn1 exceeds the value at dnIn2 - dnHysteresis again, bOut_b changes from
TRUE to FALSE.
dnIn1
dnHysteresis
dnIn2
t
bOut
TRUE
FALSE
t
556 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.160 L_TbCompare - comparison
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 557
5 Function blocks
5.161 L_TbCompare_n - scaled comparison
________________________________________________________________
This function block compares two scaled signals and can be used e.g. for implementing a trigger.
• The comparison function is selected via C04080.
• In contrast to the FB L_TbCompare, the window and hysteresis of this FB can be adjusted via pa-
rameters instead of inputs.
/B7E&RPSDUHBQ
GQ,QBQ E2XW
&
GQ,QBQ
!
&
7ROHUDQFH !
&
+\VWHUHVLV
Inputs
Outputs
Parameter
558 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.161 L_TbCompare_n - scaled comparison
________________________________________________________________
FALSE
dnIn1_n
C04082 C04082
dnIn2_n
Tip!
With this function, the FB must be used in a fast task to achieve optimum sampling of the
signals.
dnIn1_n
C04082
C04081
dnIn2_n
C04081
C04082
t
bOut
TRUE
FALSE
t
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 559
5 Function blocks
5.161 L_TbCompare_n - scaled comparison
________________________________________________________________
C04082
bOut
TRUE
FALSE
dnIn1_n
dnIn2_n
Functional sequence
1. If the value at dnIn1_n exceeds the value at dnIn2_n, bOut changes from FALSE to TRUE.
2. Only if the signal at dnIn1_n falls below the value at dnIn2_n - C04082 again, bOut changes
from TRUE to FALSE.
dnIn1_n
dnIn2_n
C04082
t
bOut
TRUE
FALSE
t
560 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.161 L_TbCompare_n - scaled comparison
________________________________________________________________
C04082
bOut
TRUE
FALSE
dnIn1_n
dnIn2_n
Functional sequence
1. If the value at dnIn1_n falls below the value at dnIn2_n, bOut_b changes from FALSE to TRUE.
2. Only if the signal at dnIn1_n exceeds the value at dnIn2_n - C04082 again, bOut_b changes from
TRUE to FALSE.
dnIn1_n
C04082
dnIn2_n
t
bOut
TRUE
FALSE
t
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 561
5 Function blocks
5.161 L_TbCompare_n - scaled comparison
________________________________________________________________
562 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.162 L_TbCount - up/downcounter
________________________________________________________________
/B7E&RXQW
E&ORFN8S GQ$FWXDO&RXQW
E&ORFN'RZQ
E&RXQW(45HIHUHQFH
E/RDG6WDUW9DOXH )XQFWLRQ
GQ6WDUW9DOXH &
GQ5HIHUHQFH9DOXH
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 563
5 Function blocks
5.162 L_TbCount - up/downcounter
________________________________________________________________
Parameter
Functional sequence
1. If the amount of the current counter content ≥ the amount of the comparison value, the output
bCountEQReference is set to TRUE (|dnActualCount| ≥ |dnReferenceValue|).
2. In the next cycle the counter is reset to the starting value dnStartValue and the output
bCountEQReference is reset to FALSE.
Functional sequence
1. If the amount of the current counter content ≥ the amount of the comparison value, the output
bCountEQReference is set to TRUE (|dnActualCount| ≥ |dnReferenceValue|).
2. The counter inputs bClockUp and bClockDown are deactivated at the same time, i.e. counting
upwards or downwards is not possible anymore.
3. By setting bLoadStartValue to TRUE the counter is reset to the starting value dnStartValue and
the counter inputs bClockUp and bClockDown are evaluated again.
564 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.163 L_TbCurve - characteristic function
________________________________________________________________
This FB represents a characteristic/curve function y = f(x). Here, the input signal corresponds to the
x axis and the output signal corresponds to the y axis.
• The characteristic can consist of up to nine points which are defined by parameters.
• Between the points a linear interpolation takes place.
• The characteristic can be entered over the entire value range and can also be created symmet-
rically to the y axis or zero point by selecting the corresponding characteristic mode in C04100.
/B7E&XUYH
&KDUDFWHULVWLFIRUP
GQ,QBQ [ & \[ & GQ2XWBQ
&
[ & \[ &
[ & \[ &
[ & \[ &
[ & \[ &
[ & \[ &
[ & \[ &
[ & \[ &
[ & \[ &
Inputs
Outputs
Parameter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 565
5 Function blocks
5.163 L_TbCurve - characteristic function
________________________________________________________________
The up to nine points of the characteristic are selected via the subcodes of C04101 and C04102.
• The same subcodes of C04101 and C04102 correspond to a pair of variates/point (xn, yn).
1 2 ... 9
x C04101/1 C04101/2 C04101/... C04101/9
Y C04102/1 C04102/2 C04102/... C04102/9
1 2 3 4 5 6 7 8 9
x -140 % -90 % 70 % 145 % 0% 0% 0% 0% 0%
Y -140 % -40 % 115 % 160 % 0% 0% 0% 0% 0%
• Based on the last valid pair of variates, an extrapolation is executed to the end of the x value
range (±200 %) on both sides.
• In the characteristic modes 1 and 2, only the range of the characteristic entered in the quadrants
I. and IV. is used.
566 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.163 L_TbCurve - characteristic function
________________________________________________________________
Special cases
• Jumps/discontinuities can be displayed by parameterising two successive x values the same
way. A jump is only valid if a valid pair of variates exists after that, otherwise the extrapolation
is executed starting from the last valid pair of variates.
1 2 3 4 5 6 7 8 9
x -130 % -70 % -70 % 80 % 0% 0% 0% 0% 0%
y(x) -150 % -75 % 85 % 160 % 0% 0% 0% 0% 0%
x4, y4
x3, y3
dnIn_n
x2, y2
x1, y1
-200 % / -200 %
[5-125] Example: Characteristic in the characteristic mode 0 (entire range) with jump
• If only one point X1 is defined in the negative range, X2 exists with the Lenze setting "0 %" as
valid point (X2 > X1) and both points form a line:
1 2 3 4 5 6 7 8 9
x -130 % 0% 0% 0% 0% 0% 0% 0% 0%
y(x) 40 % 0% 0% 0% 0% 0% 0% 0% 0%
x1, y1 x2, y2
dnIn_n
-200 % / -200 %
[5-126] Example: Characteristic in characteristic mode 0 (entire range) with only one defined point and X1 < 0
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 567
5 Function blocks
5.163 L_TbCurve - characteristic function
________________________________________________________________
1 2 3 4 5 6 7 8 9
x 120 % 0% 0% 0% 0% 0% 0% 0% 0%
y(x) 40 % 0% 0% 0% 0% 0% 0% 0% 0%
x1, y1
dnIn_n
-200 % / -200 %
[5-127] Example: Characteristic in characteristic mode 0 (entire range) with only one defined point and X1 < 0
If "Entire range" is selected in C04100, the entire characteristic range (quadrants I ... IV) is valid.
Example
1 2 3 4 5 6 7 8 9
x -140 % -90 % 70 % 130 % 0% 0% 0% 0% 0%
y(x) -140 % -40 % 120 % 160 % 0% 0% 0% 0% 0%
x4, y4
x3, y3
II. I.
dnIn_n
x2, y2
III. IV.
x1, y1
-200 % / -200 %
568 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.163 L_TbCurve - characteristic function
________________________________________________________________
If "Symmetrically to y axis" is selected in C04100, the resulting characteristic is mirrored along the y
axis in the I. and IV. quadrant.
Example
1 2 3 4 5 6 7 8 9
x -140 % -90 % 70 % 130 % 0% 0% 0% 0% 0%
y(x) -140 % -40 % 120 % 160 % 0% 0% 0% 0% 0%
x4, y4
x3, y3
II. I.
dnIn_n
x2, y2
III. IV.
x1, y1
-200 % / -200 %
If "Symmetrically to zero point" is selected in C04100, the resulting characteristic is mirrored along
the zero point in the I. and IV. quadrant.
Example
1 2 3 4 5 6 7 8 9
x -140 % -90 % 70 % 130 % 0% 0% 0% 0% 0%
y(x) -140 % -40 % 120 % 160 % 0% 0% 0% 0% 0%
x4, y4
x3, y3
II. I.
dnIn_n
x2, y2
III. IV.
x1, y1
-200 % / -200 %
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 569
5 Function blocks
5.164 L_TbCurveAny - Characteristic function
________________________________________________________________
This FB represents a characteristic/curve function y = f(x). Here, the input signal corresponds to the
x axis and the output signal corresponds to the y axis.
• The characteristic can consist of up to 127 points which are defined by parameters.
• Between the points a linear interpolation takes place.
• The characteristic can be entered over the entire value range and can also be created symmet-
rically to the y axis or zero point by selecting the corresponding characteristic mode in C04045.
/B7E&XUYH$Q\
&KDUDFWHULVWLFIRUP
GQ,Q [ & \[ & GQ2XW
&
[ & \[ &
[ & \[ &
[ \[
[ \[
[ & \[ &
[ & \[ &
[ & \[ &
Inputs
Outputs
Parameters
570 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.164 L_TbCurveAny - Characteristic function
________________________________________________________________
Tip!
For a better understanding, in the following examples, the converted percentages referring
to the limit values 231-1 and -(231) are entered instead of the real DINT values.
The up to 127 points of the characteristic are selected via the subcodes of C04046 and C04047.
• The same subcodes of C04046 and C04047 correspond to a pair of variates/point (xn, yn).
1 2 ... 127
x C04046/1 C04046/2 C04046/... C04046/127
Y C04047/1 C04047/2 C04047/... C04047/127
• Based on the last valid pair of variates, an extrapolation is executed to the end of the x value
range (231)-1 on both sides.
• In the characteristic modes 1 and 2, only the range of the characteristic entered in the quadrants
I. and IV. is used.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 571
5 Function blocks
5.164 L_TbCurveAny - Characteristic function
________________________________________________________________
Special cases
• Jumps/discontinuities can be displayed by parameterising two successive x values the same
way. A jump is only valid if a valid pair of variates exists after that, otherwise the extrapolation
is executed starting from the last valid pair of variates.
x4, y4
x3, y3
dnIn_n
x2, y2
x1, y1
31 31
-2 / -2
[5-131] Example: Characteristic in the characteristic mode 0 (entire range) with jump
• If only one point X1 is defined in the negative range, X2 exists with the Lenze setting "0" as valid
point (X2 > X1) and both points form a line:
x1, y1 x2, y2
dnIn_n
-231 / -231
[5-132] Example: Characteristic in characteristic mode 0 (entire range) with only one defined point and X1 < 0
572 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.164 L_TbCurveAny - Characteristic function
________________________________________________________________
x1, y1
dnIn_n
-231 / -231
[5-133] Example: Characteristic in characteristic mode 0 (entire range) with only one defined point and X1 < 0
If "Entire range" is selected in C04045, the entire characteristic range (quadrants I ... IV) is valid.
Note: For a better understanding, the corresponding percentages are entered instead of the real
DINT values.
Example
x4, y4
x3, y3
II. I.
dnIn_n
x2, y2
III. IV.
x1, y1
-231 / -231
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 573
5 Function blocks
5.164 L_TbCurveAny - Characteristic function
________________________________________________________________
If "Symmetrically to y axis" is selected in C04045, the resulting characteristic is mirrored along the y
axis in the I. and IV. quadrant.
Example
31 31
dnOut_n 2 -1 / 2 -1
x4, y4
x3, y3
II. I.
dnIn_n
x2, y2
III. IV.
x1, y1
31 31
-2 / -2
If "Symmetrically to zero point" is selected in C04045, the resulting characteristic is mirrored along
the zero point in the I. and IV. quadrant.
Example
31 31
dnOut_n 2 -1 / 2 -1
x4, y4
x3, y3
II. I.
dnIn_n
x2, y2
III. IV.
x1, y1
31 31
-2 / -2
574 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.165 L_TbDeadband - dead band with gain
________________________________________________________________
/B7E'HDGEDQG
GQ,Q GQ2XW
GQ'HDGEDQG E/LPLW$FWLYH
&
*DLQ
Inputs
Outputs
Parameter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 575
5 Function blocks
5.165 L_TbDeadband - dead band with gain
________________________________________________________________
Function
dnDeadBand
(C04065 = 1) (dnDeadBand = 0)
dnIn dnIn
576 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.166 L_TbDeadband_n - scaled dead band with gain
________________________________________________________________
/B7E'HDGEDQGBQ
GQ,QBQ GQ2XWBQ
E/LPLW$FWLYH
& &
'HDGEDQG *DLQ
Inputs
Outputs
Parameter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 577
5 Function blocks
5.166 L_TbDeadband_n - scaled dead band with gain
________________________________________________________________
Function
dnOut_n dnOut_n
C04061
C04060
(C04061 = 1) (C04060 = 0 %)
dnIn_n dnIn
578 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.167 L_TbDelay - delay
________________________________________________________________
/B7E'HOD\
E,Q W E2XW
& W &
Inputs
Outputs
Parameter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 579
5 Function blocks
5.167 L_TbDelay - delay
________________________________________________________________
FALSE
t
bOut
TRUE
FALSE
t
C04011 C04011
C04011
0
t
Functional sequence
1. A FALSE-TRUE edge at bIn starts the internal timing element ().
2. After the delay time set via C04011 has elapsed, bOut is set to TRUE.
3. A TRUE-FALSE edge at bIn sets bOut to FALSE again. Simultaneously, the internal timing element
is reset.
FALSE
t
bOut
TRUE
FALSE
t
C04011 C04011 C04011
C04011
0
t
Functional sequence
1. A FALSE-TRUE edge at bIn sets bOut to TRUE. Simultaneously, the internal timing element () is
reset.
2. A TRUE-FALSE edge at bIn starts the internal timing element.
3. After the delay time set via C04011 has elapsed, bOut is reset to FALSE.
580 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.167 L_TbDelay - delay
________________________________________________________________
FALSE
t
bOut
TRUE
FALSE
t
C04011 C04011
C04011
0
t
Functional sequence
1. Any edge at bIn resets and starts the internal timing element ().
2. After the delay time set via C04011 has elapsed, the input signal bIn is output to bOut.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 581
5 Function blocks
5.168 L_TbDifferentiate - differentiator with low-pass filter
________________________________________________________________
/B7E'LIIHUHQWLDWH
GQ,Q GQ2XW
E/LPLW$FWLYH
&
)LOWHUWLPHFRQVWDQW
Inputs
Outputs
Parameter
582 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.168 L_TbDifferentiate - differentiator with low-pass filter
________________________________________________________________
5.168.1 Function
Considering the signalling technique, the FB consists of the series connection of a time-discrete dif-
ferentiator and a PT1 filter.
• The filtering of the output signal can be switched off with the setting of the filter time constant
TFilter to "0.001 s". In this case, the output signal results directly from:
1s
dnOut = ΔdnIn ⋅ ---------------------------------------
Task cycle time
[5-139] Formula for the output signal when the filter is switched off
dnOut
1s
TCycle
t
TCycle
• When the filter is switched on, each change of the input signal is evaluated with 1 s/TFilter. Then
the output signal tends to zero with the filter time constant TFilter:
dnOut
1s
TFilter
t
TFilter
C04050: Filter time constant TFilter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 583
5 Function blocks
5.168 L_TbDifferentiate - differentiator with low-pass filter
________________________________________________________________
The dnOut output signal has the unit [1/s] as time reference.
The dnOut output signal can be adapted to the required unit by dividing the output signal by a cor-
responding scaling factor:
Example: Required unit of the signal Output = [1/ms] scaling factor = 1000
584 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.169 L_TbDiv - division
________________________________________________________________
/B7E'LY
GQ1XPHUDWRU GQ2XW
D
GQ'HQRPLQDWRU GQ5HVLGXDO9DOXH
E
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 585
5 Function blocks
5.170 L_TbDiv_n - scaled division
________________________________________________________________
This FB carries out a division. The divisor (denominator) must be specified as a scaled signal [%].
• With a divisor of 100 % the dividend is output unchanged.
• The value output to output dnOut is internally limited to ±231-1.
• The bLimitActive output displays if a limitation is active.
/B7E'LYBQ
GQ1XPHUDWRU GQ2XW
D
GQ'HQRPLQDWRUBQ E/LPLW$FWLYH
E
Inputs
Outputs
586 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.171 L_TbFlipFlopD - D flipflop
________________________________________________________________
This FB is created as a D flipflop and can be used to evaluate and save digital signal edges.
• With each rising edge at the clock input bClk the current status of the input bD is saved internal-
ly and output to the output bOut.
• The flipflop can be reset by a TRUE signal at the reset input bR which has the highest priority.
/B7E)OLS)ORS'
E' E4
' 4
E&ON
E5 E4Q
&/5 4
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 587
5 Function blocks
5.171 L_TbFlipFlopD - D flipflop
________________________________________________________________
Function
bD
TRUE
FALSE
t
bClk
TRUE
FALSE
t
bR
TRUE
FALSE
t
bQ
TRUE
FALSE
t
588 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.172 L_TbFlipFlopRS - status-controlled RS flipflop
________________________________________________________________
This FB is created as an RS flipflop and can be used to evaluate and save digital signals.
• The RS flipflop is set with a TRUE signal at the set input bS and reset with a TRUE signal at the
reset input bR.
• If both inputs are applied with a FALSE signal, the output state is maintained.
/B7E)OLS)ORS56
E6 E4
6 4
E5 E4Q
5 4
Inputs
Outputs
Function
bS bR bQ bQn
FALSE FALSE unchanged unchanged
TRUE FALSE TRUE FALSE
FALSE TRUE FALSE TRUE
TRUE TRUE FALSE TRUE
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 589
5 Function blocks
5.173 L_TbGainLim - gain with limitation
________________________________________________________________
/B7E*DLQ/LP
GQ,Q GQ2XW
E/LPLW$FWLYH
&
*DLQ
Inputs
Outputs
Parameter
Function
dnOut
31
2 -1
C04030 > 1
dnIn
31
-2 -1
590 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.174 L_TbIntegrate - integration with limitation
________________________________________________________________
/B7E,QWHJUDWH
GQ,Q GQ2XW
E/RDG6WDUW9DOXH E/LPLW$FWLYH
GQ6WDUW9DOXH
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 591
5 Function blocks
5.174 L_TbIntegrate - integration with limitation
________________________________________________________________
The dnIn input signal has the unit [1/s] as time reference.
An input signal can easily be adapted to the expected unit [1/s] by multiplying it by a corresponding
scaling factor:
Example: Time reference of the Input input signal = [1/ms] scaling factor = 1000
592 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.175 L_TbLimit - limitation (for "DINT" data type)
________________________________________________________________
/B7E/LPLW
GQ,Q GQ2XW
0D[/LPLW
GQ0D[/LPLW
GQ0LQ/LPLW 0LQ/LPLW E/LPLW$FWLYH
Inputs
Outputs
Tip!
The lower limit must always be set smaller than the upper limit, otherwise the value "0" is
output at dnOut.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 593
5 Function blocks
5.176 L_TbLimit_n - scaled limitation
________________________________________________________________
/B7E/LPLWBQ
GQ,QBQ GQ2XWBQ
&
& E/LPLW$FWLYH
Inputs
Outputs
Parameter
Tip!
The lower limit must always be set smaller than the upper limit, otherwise the value "0" is
output at dnOut_n.
594 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.177 L_TbLimitInt - limitation (for "INT" data type)
________________________________________________________________
/B7E/LPLW,QW
Q,Q Q2XW
0D[/LPLW
Q0D[/LPLW
Q0LQ/LPLW 0LQ/LPLW E/LPLW$FWLYH
Inputs
Outputs
Tip!
The lower limit must always be set smaller than the upper limit, otherwise the value "0" is
output at nOut.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 595
5 Function blocks
5.178 L_TbMaskOut - zone masking
________________________________________________________________
This FB masks up to four parameterisable blocking zones within a continuous signal characteristic.
• The definition of the upper and lower limits of the blocking zones is effected by specifying the
mean value and the half width of the respective zone.
• The FB can be generally used (no measuring system reference).
/B7E0DVN2XW
E(QDEOH GQ2XWSXWBQ
&
GQ,QSXWBQ E/LPLW$FWLYH
&
Inputs
Outputs
Parameter
596 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.178 L_TbMaskOut - zone masking
________________________________________________________________
Function
The parameterised blocking zones act in the same way on negative input signals:
C04110/1
1
C04111/1
28 %
dnInput_n
-200 76 158 200 [%]
1
-200
Blocking zone 1
Blocking zone 2
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 597
5 Function blocks
5.179 L_TbMul - multiplication
________________________________________________________________
/B7E0XO
GQ,Q GQ2XW
GQ,Q D
E
Inputs
Outputs
598 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.180 L_TbMul_n - scaled multiplication with limitation
________________________________________________________________
This FB carries out a multiplication. The multiplicand (2. factor) must be specified as a scaled signal
[%].
• The value output to output dnOut is internally limited to ±231-1.
• The bLimitActive output displays if a limitation is active.
/B7E0XOBQ
GQ,Q GQ2XW
GQ,QBQ D
E E/LPLW$FWLYH
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 599
5 Function blocks
5.181 L_TbMulDivLim - multiplication and division with limitation
________________________________________________________________
/B7E0XO'LY/LP
GQ,Q GQ2XW
DEF
GQ1XPHUDWRU E/LPLW$FWLYH
GQ'HQRPLQDWRU
Inputs
Outputs
600 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.182 L_TbMulLim - multiplication with limitation
________________________________________________________________
/B7E0XO/LP
GQ,Q GQ2XW
GQ,Q D
E E/LPLW$FWLYH
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 601
5 Function blocks
5.183 L_TbNand - NAND with 2 inputs
________________________________________________________________
/B7E1DQG
E,Q E2XW
E,Q
Inputs
Outputs
Function
602 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.184 L_TbNeg - negation (for "DINT" data type)
________________________________________________________________
This function block inverts the sign of the input signal, i.e. the input signal is multiplied by -1 and is
then output.
• The value output to output dnOut is internally limited to ±231-1.
• The L_TbNegSel FB is available for optional inversion.
/B7E1HJ
GQ,Q GQ2XW
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 603
5 Function blocks
5.185 L_TbNegInt - negation (for "INT" data type)
________________________________________________________________
This function block inverts the sign of the input signal, i.e. the input signal is multiplied by -1 and is
then output.
• The value output to output nOut is internally limited to ±215-1.
• The FB L_TbNegSelInt is available for optional inversion.
/B7E1HJ,QW
Q,Q Q2XW
Inputs
Outputs
604 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.186 L_TbNegSel - optional negation (for "DINT" data type)
________________________________________________________________
This function block inverts (optionally) the sign of the input signal, i.e. the input signal is multiplied
by -1 and is then output.
• In contrast to the L_TbNeg FB, this FB is only inverted if the bNeg control input is set to TRUE.
• The value output to output dnOut is internally limited to ±231-1.
/B7E1HJ6HO
GQ,Q GQ2XW
E1HJ
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 605
5 Function blocks
5.187 L_TbNegSelInt - optional negation (for "INT" data type)
________________________________________________________________
This function block inverts (optionally) the sign of the input signal, i.e. the input signal is multiplied
by -1 and is then output.
• In contrast to the L_TbNegInt FB, this FB is only inverted if the bNeg control input is set to TRUE.
• The value output to output nOut is internally limited to ±215-1.
/B7E1HJ6HO,QW
Q,Q Q2XW
E1HJ
Inputs
Outputs
606 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.188 L_TbNor - NOR with 2 inputs
________________________________________________________________
/B7E1RU
E,Q E2XW
E,Q
Inputs
Outputs
Function
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 607
5 Function blocks
5.189 L_TbNormalize - signal scaling with limitation
________________________________________________________________
/B7E1RUPDOL]H
GQ,Q GQ2XWBQ
& E/LPLW$FWLYH
Inputs
Outputs
Parameter
Function
dnIn
dnOut_n = -------------------- ⋅ 100 %
C04035
608 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.190 L_TbNot - negation
________________________________________________________________
/B7E1RW
E,Q E2XW
Inputs
Outputs
Function
bin bOut
FALSE TRUE
TRUE FALSE
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 609
5 Function blocks
5.191 L_TbOr - OR with 2 inputs
________________________________________________________________
/B7E2U
E,Q E2XW
E,Q
Inputs
Outputs
Function
610 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.192 L_TbOscillator - rectangular signal generator
________________________________________________________________
This FB can be used to generate a Boolean square wave signal with a variable high/low time.
/B7E2VFLOODWRU
E(QDEOH & E2XW
&
Inputs
Outputs
Parameter
5.192.1 Function
If the FB is activated by setting bEnable to TRUE, the set square wave signal is output to bOut, star-
ting with the HIGH state:
bEnable
C04020
bOut
C04021
• If bEnable is reset to FALSE, the output bOut is also immediately reset to FALSE.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 611
5 Function blocks
5.192 L_TbOscillator - rectangular signal generator
________________________________________________________________
Enter only integer multiples of the task cycle time via C04020 and C04021 for a maximum accuracy
of the rectangular signal to be output.
• In case of an asymmetrical entry of the pulse/pause time and non-compliance with the times
selected as integer multiples of the task cycle time, the times selected are internally rounded up
to integer multiples of the task cycle times.
• With a minimum timing below the task cycle time the permanent level arises according to the
following rule: bOut = TRUE if C04020 > C04021.
• The following table lists the possible input signal states and the resulting output signal:
Task running On time Off time State of ON and OFF time Output signal
time C04020 C04021 bOut
t
1 ms 3 msec 2 ms ON time, OFF time ≥ T TRUE: 3 ms, FALSE: 2 ms
ON time > OFF time
3 msec 3 msec 2 ms ON time ≥ T TRUE
OFF time < T
ON time > OFF time
3 msec 2 ms 1 ms On time, OFF time < T TRUE
ON time > OFF time
3 msec 1 ms 2 ms On time, OFF time < T FALSE
ON time < OFF time
3 msec 2 ms 2 ms On time, OFF time < T FALSE
ON time = OFF time
3 msec 2 ms 3 msec ON time < T FALSE
OFF time ≥ T
ON time < OFF time
3 msec 3 msec 5 ms ON time, OFF time ≥ T TRUE: 3 ms, FALSE: 6 ms
ON time < OFF time
OFF time ≠ (n * T)
3 msec 5 ms 3 msec ON time, OFF time ≥ T TRUE: 6 ms, FALSE: 3 ms
ON time > OFF time
ON time ≠ (n * T)
3 msec 5 ms 4 ms ON time, OFF time ≥ T TRUE: 6 ms, FALSE: 3 ms
ON time > OFF time
ON time, OFF time ≠ (n * T)
3 msec 4 ms 5 ms ON time, OFF time ≥ T TRUE: 3 ms, FALSE: 6 ms
ON time < OFF time
ON time, OFF time ≠ (n * T)
3 msec 5 ms 5 ms ON time, OFF time ≥ T TRUE: 6 ms, FALSE: 6 ms
ON time = OFF time
ON time, OFF time ≠ (n * T)
612 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.193 L_TbPIController - PI controller with limitation
________________________________________________________________
/B7E3,&RQWUROOHU
GQ6HW9DOXH &
GQ$FW9DOXH GQ2XW
E/RDG,QW9DOXH E/LPLW$FWLYH
*DLQ
GQ,QW9DOXH & &
E5HVHW 5HVHWWLPH
&
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 613
5 Function blocks
5.193 L_TbPIController - PI controller with limitation
________________________________________________________________
Parameter
Function
The FB contains the calculation of the system deviation and the PI controller.
• The dynamics of the controller is parameterised according to the gain Vp (C04090) and the reset
time Tn (C04091):
dnOut
2 VP
VP
t
Tn
614 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.194 L_TbPT1Filter - delay
________________________________________________________________
/B7E37)LOWHU
GQ,Q GQ2XW
&
)LOWHUWLPHFRQVWDQW
Inputs
Outputs
Parameter
Function
V=1
T t
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 615
5 Function blocks
5.195 L_TbRateAction - rate action with limitation
________________________________________________________________
/B7E5DWH$FWLRQ
GQ,Q GQ2XW
E/LPLW$FWLYH
&
7LPHFRQVWDQW
Inputs
Outputs
Parameter
616 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.195 L_TbRateAction - rate action with limitation
________________________________________________________________
Function
The input signal is differentiated by means of the parameterised rate time constant TV and added
to the input signal.
• The differentiation of the input signal can be switched off by setting the rate time constant TV
lower than the task cycle time. In this case the differential component is zero and the input sig-
nal is output unchanged to the output.
• When the rate time constant TV is higher than the task cycle time, the following step response
is the result:
dnOut
TV
1+
TCycle
t
TCycle
C04055: Rate time constant TV
[5-149] Step response when the rate time constant > task cycle time
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 617
5 Function blocks
5.196 L_TbSampleHold - sample & hold (for "DINT" data type)
________________________________________________________________
/B7E6DPSOH+ROG
GQ,Q GQ2XW
6 +
E/RDG
Inputs
Outputs
618 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.197 L_TbSampleHoldWord - sample & hold (for "WORD"data type)
________________________________________________________________
/B7E6DPSOH+ROG:RUG
Z,Q Z2XW
6 +
E/RDG
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 619
5 Function blocks
5.198 L_TbSelect - selector (for "DINT" data type)
________________________________________________________________
This function block switches between two signals of "DINT" type. The switch-over is controlled via a
boolean input signal.
• So it is, for example, possible to switch between an initial diameter and a calculated diameter
during winding.
/B7E6HOHFW
GQ,Q GQ2XW
GQ,Q
E6HOHFW,Q
Inputs
Outputs
620 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.199 L_TbSelectByte - selector (for "BYTE" data type)
________________________________________________________________
This function block switches between two signals of "BYTE" type. The switch-over is controlled via a
boolean input signal.
/B7E6HOHFW%\WH
E\,Q E\2XW
E\,Q
E6HOHFW,Q
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 621
5 Function blocks
5.200 L_TbSelectWord - selector (for "WORD" data type)
________________________________________________________________
This function block switches between two signals of "WORD" type. The switch-over is controlled via
a boolean input signal.
/B7E6HOHFW:RUG
Z,Q Z2XW
Z,Q
E6HOHFW,Q
Inputs
Outputs
622 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.201 L_TbSub - subtraction
________________________________________________________________
/B7E6XE
GQ,Q GQ2XW
GQ,Q DE
Inputs
Outputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 623
5 Function blocks
5.202 L_TbSubLim - subtraction with limitation
________________________________________________________________
/B7E6XE/LP
GQ,Q GQ2XW
GQ,Q DE E/LPLW$FWLYH
Inputs
Outputs
624 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.203 L_TbTransition - edge evaluation
________________________________________________________________
This FB serves to evaluate digital signal edges and converts them into time-defined and retriggerab-
le pulses.
• This function corresponds to the "TRANS" function of the 9300 servo inverter.
/B7E7UDQVLWLRQ
E,Q W E2XW
& &
Inputs
Outputs
Parameter
Note!
When the task interval time is set to >1 ms and the pulse duration set in C04001 is not
an integer multiple of the interval time, the pulse duration is automatically extended to
the next integer multiple of the interval time.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 625
5 Function blocks
5.203 L_TbTransition - edge evaluation
________________________________________________________________
C04000 = "0"
bIn
TRUE
FALSE
t
bOut
TRUE
FALSE
t
C04001 C04001 C04001
Functional sequence
1. A FALSE-TRUE edge at the input bIn sets the output bOut to TRUE.
2. After the time specified via C04001 the output bOut is reset to FALSE provided that no other FAL-
SE/TRUE edge has taken place at the output bIn in the meantime.
• If another FALSE/TRUE edge takes place at the bIn input, the time C04001 restarts to elapse,
i.e. the output bOut is retriggerable.
C04000 = "1"
bIn
TRUE
FALSE
t
bOut
TRUE
FALSE
t
C04001 C04001 C04001
Functional sequence
1. A TRUE-FALSE edge at the input bIn sets the output bOut to TRUE.
2. After the time specified via C04001 the output bOut is reset to FALSE provided that no other
TRUE/FALSE edge has taken place at the bIn input in the meantime.
• If another TRUE/FALSE edge takes place at the bIn input, the time C04001 restarts to elapse,
i.e. the output bOut is retriggerable.
626 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.203 L_TbTransition - edge evaluation
________________________________________________________________
C04000 = "2"
bIn
TRUE
FALSE
t
bOut
TRUE
FALSE
t
C04001 C04001 C04001
Functional sequence
1. A signal change (FALSE-TRUE or TRUE-FALSE edge) at the input bIn sets the output bOut to TRUE.
2. After the time specified via C04001 the output bOut is reset to FALSE provided that no other si-
gnal change has taken place at the bIn input in the meantime.
• If another signal change takes place at the bIn input, the time C04001 restarts to elapse, i.e.
the output bOut is retriggerable.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 627
5 Function blocks
5.204 L_TbXor - XOR with 2 inputs
________________________________________________________________
/B7E;RU
E,Q E2XW
E,Q
Inputs
Outputs
Function
628 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.205 L_WndCalcDiameter - diameter calculation
________________________________________________________________
This FB serves to calculate the reel diameter from the line speed and the reel speed.
• The output signal dwDiameter has a resolution of 1 μm and can display a maximum of 10 m.
/B:QG&DOF'LDPHWHU
GZ0D['LDPHWHU
GZ0LQ'LDPHWHU
GZ5HIHUHQFH/LQH6SHHG & GQ6WDWH
GQ/LQH6SHHGBQ
& GZ'LDPHWHU
&
GQ$FWXDO0RWRU6SHHGBV GQ'LDPHWHUBQ
L &
GQ*HDU1XPHUDWRU & GQ5H]LS'LDPHWHUBQ
GQ*HDU'HQRPLQDWRU
GQ$FWXDO5HHO6SHHGBV
GZ&DOFXODWLRQ'LVWDQFH E'LDPHWHU0D[/LPLW
E)RUFH&DOFXODWLRQ E'LDPHWHU0LQ/LPLW
E+ROG'LDPHWHU E:HE%UHDN
E8QLGLUHFW GQ'LDPHWHU0LQBQ
GQ'0LQBQ
E8QZLQG$FWLYH
E/RDG6HW'LDPHWHU
GQ6HW'LDPHWHUBQ
GQ'LDPHWHU5HWDLQBQ
Inputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 629
5 Function blocks
5.205 L_WndCalcDiameter - diameter calculation
________________________________________________________________
Outputs
630 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.205 L_WndCalcDiameter - diameter calculation
________________________________________________________________
Parameter
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 631
5 Function blocks
5.205 L_WndCalcDiameter - diameter calculation
________________________________________________________________
At the input dnSetDiameter_n you can specify an initial value or an external diameter signal.
• This value is accepted if bLoadSetDiameter is set to TRUE.
• During the acceptance, the diameter calculation is reset and the filter for the diameter calcula-
tion is loaded with the initial value specified.
For calculating the reel diameter, the material speed and the current reel speed are cyclically inte-
grated.
• The material speed is specified via dnLineSpeed_n.
• The reel speed results from the motor speed (dnActualMotorSpeed_s) and the current gearbox
factor (dnGearNumerator/dnGearDenominator).
• The calculation cycle is defined via the input dwCalculationDistance.
• At the end of each integration interval a new diameter value results from the division of the in-
tegrator values.
• An absolute value generation and smoothing via a first order low pass is effected. The time con-
stant of this filter can be set in C04831. The output dwDiameter is not filtered.
By setting bHoldDiameter to TRUE, the last diameter value dnDiameter_n that is output is held in-
ternally.
• The diameter calculation is reset and the filter for the diameter calculation is loaded with the
diameter value that is held internally.
632 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.205 L_WndCalcDiameter - diameter calculation
________________________________________________________________
By setting bUnidirect to TRUE, only one direction of change is enabled for the diameter calculation,
and at the same time the web break monitoring is activated.
• The permissible direction of change is defined via bUnwindActive.
• A newly calculated value is only accepted if it exceeds the value in the permissible direction
which is saved last.
After a web break the successively calculated diameter values in the majority of cases go to the op-
posite direction very quickly.
• In C04832 you can define the maximally permissible deviation in the opposite direction by the
exceedance of which the output bWebBreak is set to TRUE.
• If bUnidirect is set to FALSE, both directions of change are enabled, and the internal memory is
always overwritten with the recalculated value. By this, the web break monitoring is switched
off.
Via dwMaxDiameter and dwMinDiameter you define limit values for the diameter values specified
by the achievement/exceedance of which the corresponding output (bDiameterMaxLimit/
bDiameterMinLimit) is set to TRUE.
• The unfiltered diameter value dwDiameter and the filtered diameter value dnDiameter_n are li-
mited.
• The limit values are entered in [μm].
• The hysteresis for resetting bDiameterMaxLimit/bDiameterMinLimit is set fixedly to 1 % of
dwMaxDiameter.
• For the parameterisation of further FBs, the value in dwMinDiameter relating to
dwMaxDiameter on a percentage basis is provided via output dnDiameterMin_n.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 633
5 Function blocks
5.206 L_WndCalcLength - length calculation
________________________________________________________________
On the basis of the speed and the diameter of a roll moving along with the material, this FB serves
to carry out a continuous length calculation.
• If a gearbox is switched between the roll and the speed sensor, the sensor speed is converted to
the speed of the roll according to the gearbox factor.
• The output signal dnLength has a resolution of 1 mm and can display a maximum of 2000 km.
/B:QG&DOF/HQJWK
GQ16HQVRUBV ' GQ/HQJWK
L
Inputs
634 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.206 L_WndCalcLength - length calculation
________________________________________________________________
Outputs
Parameters
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 635
5 Function blocks
5.206 L_WndCalcLength - length calculation
________________________________________________________________
Via the output dnLength the length reached is displayed as a physical value [mm]. Negative values
can also be shown.
Via the output dwLengthToRef the residual length until reaching the reference value (dwRefLength)
is provided.
• Assuming that the maximum material speed dwReferenceLineSpeed is run, a corresponding re-
sidual runtime dwTimeToRef results from the residual length.
For the activation of the braking process, the current length is compared to the remaining length
after the stop (dwResidualLength), including the change in length during the braking phase
(dwStopLength).
• The change in length during the braking phase is output at dwStopLength. It depends on the cur-
rent material speed which is calculated from dwReferenceLineSpeed and dnLineSpeed_n, and on
the reference deceleration time dwNominalTif.
• The signal for activating the braking process is output at bStartDec.
For triggering a limit stop, the current length is compared to the reference length.
• The signal for triggering the limit stop is output at bRefReached.
By setting bReset to TRUE, you can reset the length calculation and the two digital outputs for the
activation of the braking process/limit stop.
636 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.207 L_WndFrictionCompensation - friction compensation
________________________________________________________________
This FB contains the two functions "friction identification" and "friction compensation".
• With the "friction identification" function the friction characteristic can be identified automati-
cally.
• For this, the FB accepts the drive control on request and carries out the identification.
• For saving the automatically identified friction characteristic, four memory locations are pro-
vided. The selection of memory locations 1 ... 4 is effected via the input dwSelectCurve.
• The friction characteristic includes 65 values which are equally distributed across the speed
range of 0 ... nmax (C00011).
• With the "friction compensation" function, a speed-dependent compensation of the friction
torque can be carried out on the basis of a linear or a previously automatically determined fric-
tion characteristic.
• If the "friction compensation" function is activated, the input dwSelectCurve on the other
hand serves to select the friction characteristic to be used.
• If the input dwSelectCurve is = 0 or unassigned, a parameterisable linear characteristic is used
for the friction compensation.
/B:QG)ULFWLRQ&RPSHQVDWLRQ
E6WDUW,GHQW & GQ6WDWH
E)ROORZHU(QDEOHG
& & &
GQ$FWXDO0RWRU6SHHGBQ E(QDEOH)ROORZHU
&
GQ$FWXDO0RWRU7RUTXHBQ GQ6SHHG6HWBQ
& &XUYH
GZ6HOHFW&XUYH & & &XUYH E%XV\
& &XUYH
E(QDEOH)ULFWLRQ&XUYH E'RQH
& &XUYH
GQ6SHHG6HWSRLQWBQ
GQ)ULFWLRQ$GDSWBQ & GQ)ULFWLRQ7RUTXHBQ
&
E1HJ2XWSXW
&
Inputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 637
5 Function blocks
5.207 L_WndFrictionCompensation - friction compensation
________________________________________________________________
Outputs
638 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.207 L_WndFrictionCompensation - friction compensation
________________________________________________________________
Status display
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 639
5 Function blocks
5.207 L_WndFrictionCompensation - friction compensation
________________________________________________________________
Starting with the breakaway torque, the friction generally increases with the speed. However, apart
from the speed, also the temperature and torque (e.g. if a gearbox is used) can influence the friction
response.
MFriction
n
Speed-dependent friction component
Static friction component (breakaway torque)
Influence of temperature (friction decreases during heating process)
/B:QG)ULFWLRQ&RPSHQVDWLRQ
E6WDUW,GHQW GQ6WDWH
E)ROORZHU(QDEOHG
/6B0RWRU,QWHUIDFH & & &
GQ$FWXDO0RWRU6SHHGBQ E(QDEOH)ROORZHU
0,BGQ$FWXDO0RWRU6SHHGBQ &
GQ$FWXDO0RWRU7RUTXHBQ GQ6SHHG6HWBQ
0,BGQ$FWXDO0RWRU7RUTXHBQ & &XUYH
GZ6HOHFW&XUYH & & &XUYH E%XV\
& &XUYH
E(QDEOH)ULFWLRQ&XUYH E'RQH
& &XUYH
GQ6SHHG6HWSRLQWBQ
GQ)ULFWLRQ$GDSWBQ & GQ)ULFWLRQ7RUTXHBQ
&
E1HJ2XWSXW
&
/6B6SHHG)ROORZHU
6)BE(QDEOH 6)BE(QDEOHG
6)BGQ6SHHG6HWBQ
6SHHG
6)BGQ6SHHG$GGBV VHWSRLQW
6)BGQ$FF$GGB[ 0
6)BGQ7RUTXH$GGBQ
640 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.207 L_WndFrictionCompensation - friction compensation
________________________________________________________________
Danger!
For the identification of the friction characteristic, the drive is accelerated to the maxi-
mum speed set in C04845 and braked to standstill again with the acceleration/decelera-
tion time set in C04846.
Identification procedure
1. The basic function "Speed follower" is activated.
• Output bBusy changes to TRUE.
2. If the drive is still coasting it is waited until the motor stops coasting first.
3. With the acceleration/deceleration time set in C04846 , the drive is accelerated to the maxi-
mum speed set in C04845.
4. When the drive has reached the maximum speed, it is braked to standstill again with the acce-
leration/deceleration time set in C04846.
5. The friction characteristic is saved in the memory area selected via the input dwSelectCurve.
6. After the identification has been completed successfully, the output bBusy is reset to FALSE, and
the output bDone is set to TRUE.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 641
5 Function blocks
5.207 L_WndFrictionCompensation - friction compensation
________________________________________________________________
:DLWLQJIRU
VWDUWLQJVLJQDO
:DLWLQJ
IRUDFWLYDWLRQ $ERUWHUURU
RIVSHHGIROORZHU
$FFHOHUDWLQJ
GULYH
,GHQWLILFDWLRQ
%UDNH
GULYH
6DYH
PHDVXUHGYDOXHV
E'RQH 758(
,GHQWLILFDWLRQ
FRPSOHWHG
VXFFHVVIXOO\
642 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.207 L_WndFrictionCompensation - friction compensation
________________________________________________________________
The friction compensation is active if the input bStartIdent is set to FALSE, and the input
bEnableFrictionCurve is set to TRUE.
• The current speed is preselected via the input dnSpeedSetpoint_n.
• If the actual speed value exceeds 100 %, the characteristic is extrapolated linearly.
Temperature compensation
Via the input dnFrictionAdapt_n a gain for the characteristic on a percentage basis is specified, for
instance in order to compensate changes in the friction torque due to temperature changes.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 643
5 Function blocks
5.208 L_WndIdentMInertia - identification of the moment of inertia
________________________________________________________________
By means of this FB, the current moment of inertia can be identified automatically. The FB takes over
the drive control on request and carries out the identification.
• Via dnState the current status of the identification run is displayed, or the cause that may have
lead to an early abort is shown.
• After the identification run has been completed successfully, the moment of inertia is output
via dwMInertia.
/B:QG,GHQW0,QHUWLD
E6WDUW,GHQW & GQ6WDWH
Inputs
644 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.208 L_WndIdentMInertia - identification of the moment of inertia
________________________________________________________________
Outputs
Parameters
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 645
5 Function blocks
5.208 L_WndIdentMInertia - identification of the moment of inertia
________________________________________________________________
/B:QG,GHQW0,QHUWLD
E6WDUW,GHQW GQ6WDWH
n
E)ROORZHU(QDEOHG & E(QDEOH)ROORZHU
&
GQ7RUTXH6HWBQ
/6B0RWRU,QWHUIDFH
GZ5HIHUHQFH6SHHG
0,BGZ5HIHUHQFH6SHHG
GQ$FWXDO0RWRU6SHHGBQ & E%XV\
0,BGQ$FWXDO0RWRU6SHHGBQ
GZ5HIHUHQFH7RUTXH E'RQH
0,BGZ5HIHUHQFH7RUTXH
GQ$FWXDO0RWRU7RUTXHBQ & GZ0,QHUWLD
0,BGQ$FWXDO0RWRU7RUTXHBQ o
/6B7RUTXH)ROORZHU
7)BE(QDEOH 7)BE(QDEOHG
7)BGQ7RUTXH6HWBQ 7RUTXH
VHWSRLQW
7)BGQ6SHHG+LJK/LPLWBQ
7)BGQ6SHHG/RZ/LPLWBQ
0
Danger!
For the identification of the current moment of inertia, the drive is accelerated to the
maximum speed set in C04870 and is braked to standstill again.
Note!
The rate of change of the speed results from the torque setpoint set in C04871 and the
present moment of inertia.
646 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.208 L_WndIdentMInertia - identification of the moment of inertia
________________________________________________________________
Identification procedure
1. The basic function "Torque follower" is activated.
• Output bBusy changes to TRUE.
2. If the drive is still coasting it is waited until the motor stops coasting first.
3. The drive is accelerated to the specified maximum speed (C04870) with the specified torque set-
point (C04871).
4. When the drive has reached the maximum speed, it is braked to standstill again with the inverse
torque setpoint.
5. The present moment of inertia is calculated.
• At the output dwMInertia the calculated value is displayed as a physical value in the unit
[0.01 kg cm2].
6. After the identification has been completed successfully, the output bBusy is reset to FALSE, and
the output bDone is set to TRUE.
:DLWLQJIRU
VWDUWLQJVLJQDO
:DLWLQJ
IRUDFWLYDWLRQ $ERUWHUURU
RIWRUTXHIROORZHU
$FFHOHUDWLQJ
GULYH
,GHQWLILFDWLRQ
%UDNH
GULYH
6DYH
PHDVXUHGYDOXHV
E'RQH 758(
,GHQWLILFDWLRQ
FRPSOHWHG
VXFFHVVIXOO\
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 647
5 Function blocks
5.208 L_WndIdentMInertia - identification of the moment of inertia
________________________________________________________________
648 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.209 L_WndStopCtrl - stop controller
________________________________________________________________
This FB serves to monitor the residual length to the reference diameter, on the basis of the current
diameter and the material thickness. Output signals for an accurately timed braking and a limit stop
are provided.
/B:QG6WRS&WUO
GZ'LDPHWHU GZ/HQJWK7R5HI
&75/
GZ7KLFNQHVV GZ7LPH7R5HI
GZ1RPLQDO7LI GZ6WRS/HQJWK
&
GZ5HVLGXDO/HQJWK
E5HVHW E6WDUW'HF
E5HZLQG E5HI5HDFKHG
GZ5HIHUHQFH/LQH6SHHG
GQ/LQH6SHHGBQ
GZ5HI'LDPHWHU
Inputs
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 649
5 Function blocks
5.209 L_WndStopCtrl - stop controller
________________________________________________________________
Outputs
Parameters
650 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.209 L_WndStopCtrl - stop controller
________________________________________________________________
Via the output dwLengthToRef the residual length until reaching the reference diameter
(dwRefDiameter) is provided.
• Via bRewind you define whether the reference diameter is to be smaller (unwinder) or greater
(rewinder) than the current diameter.
• If the reference diameter is reached or exceeded, the residual length is zero.
• Assuming that the maximum material speed dwReferenceLineSpeed is run, a corresponding re-
sidual runtime dwTimeToRef results from the residual length.
For the activation of the braking process, the residual length until reaching the reference diameter
is compared to the remaining length after the stop (dwResidualLength), including the change in
length during the braking phase (dwStopLength).
• The change in length during the braking phase is output at dwStopLength. It depends on the cur-
rent material speed which is calculated from dwReferenceLineSpeed and dnLineSpeed_n, and on
the reference deceleration time dwNominalTif.
• The signal for activating the braking process is output at bStartDec.
For the activation of a limit stop, the residual length until reaching the reference diameter is com-
pared to zero (current diameter equals reference diameter).
• The signal for triggering the limit stop is output at bRefReached.
By setting bReset to TRUE, you can reset the stop controller and the two digital outputs for the acti-
vation of the braking process/limit stop.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 651
5 Function blocks
5.210 L_WndTensionCurve - tensile force characteristic
________________________________________________________________
In the case of centre winders, the drive torque is transmitted from the centre across the individual
layers to the winding surface. For smooth materials and large diameter areas in the majority of ca-
ses it is required to reduce the tensile force in a manner depending on the diameter.
This FB serves to generate a tensile force characteristic depending on the diameter.
• This characteristic is distinguished by an initial area with a constant evaluation (100 %) and a
second area within which the tensile force is adapted to the diameter.
/B:QG7HQVLRQ&XUYH
GQ7HQVLRQ,QBQ GQ7HQVLRQ2XWBQ
GZ6HOHFW&XUYH
GQ&XUYH&WUOBQ
GQ'BQ GQ&XUYH9DOXHBQ
GQ'LDPHWHUBQ
'
&
E(QDEOH
Inputs
652 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.210 L_WndTensionCurve - tensile force characteristic
________________________________________________________________
Outputs
Parameters
The part of the characteristic that depends on the diameter can be generated for a linear course of
the tensile force, a linear course of the torque, or on the basis of a specified characteristic. The cor-
responding selection is carried out via the input dwSelectCurve.
Characteristic
Tensile force
Diameter
HW
100 % 100 %
dnCurveCtrl_n = 50 %
0%
DMin D0 100 %
(DMax)
• Via dnD0_n you define the diameter at which the reduction of the tensile force is to start.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 653
5 Function blocks
5.210 L_WndTensionCurve - tensile force characteristic
________________________________________________________________
Characteristic
Tensile force
Diameter
HW
100 % 100 %
dnCurveCtrl_n = 0 %
0%
DMin D0 100 %
(DMax)
• Via dnD0_n you define the diameter at which the reduction of the tensile force is to start.
• Since this characteristic selection focuses on the linear course of the torque, in this case you de-
fine the steepness of the torque curve via dnCurveCtrl_n:
• At dnCurveCtrl_n = 100 % the tensile force remains unchanged.
• At dnCurveCtrl_n = 0 % the tensile force is reduced to D0/DMax.
Characteristic
Torque
Diameter
dnCurveCtrl_n
100 % 100 %
50 %
0%
0%
DMin D0 100 %
(DMax)
654 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
5 Function blocks
5.210 L_WndTensionCurve - tensile force characteristic
________________________________________________________________
0
dnCurveCtrl_n = 0 %
TAB[65]
0%
DMin D0 100 %
(DMax)
• Via dnD0_n you define the start of the table area (D0).
• Via dnCurveCtrl_n the gradient of the characteristic can be altered.
• At dnCurveCtrl_n = 0 % the gradient of the characteristic remains unchanged.
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 655
6 Table of attributes
________________________________________________________________
6 Table of attributes
The table of attributes contains information required for a communication to the controller via pa-
rameters.
Table of attributes
656 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
6 Table of attributes
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 657
6 Table of attributes
________________________________________________________________
658 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
6 Table of attributes
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 659
6 Table of attributes
________________________________________________________________
660 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
6 Table of attributes
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 661
6 Table of attributes
________________________________________________________________
662 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
6 Table of attributes
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 663
6 Table of attributes
________________________________________________________________
664 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
6 Table of attributes
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 665
6 Table of attributes
________________________________________________________________
666 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
6 Table of attributes
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 667
6 Table of attributes
________________________________________________________________
668 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
6 Table of attributes
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 669
Index
________________________________________________________________
670 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
Index
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 671
Index
________________________________________________________________
672 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
Index
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 673
Index
________________________________________________________________
674 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
Index
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 675
Index
________________________________________________________________
Copying objects 88 G
Counter 563 Gain 590
CURVE General delay 581
See L_TbCurve 565
See L_TbCurveAny 570 I
Curve interpolation 162 Identification of the moment of inertia 644
Implicit type conversion 30
D Incremental encoder 298
Data type check 30
Insert options for copied elements 90
Data type entry 27
Inserting complete interconnection from reference project 98
DB
Inserting copied elements 90
See L_TbDeadband 575
Inserting FB interconnection from reference project 98
See L_TbDeadband_n 577
Integration 322, 460, 461, 467, 591
Dead band with gain 575
Dead band with gain (scaled) 577
L
Dead time compensation 453
L_CamClutchPos 135
Delay 579, 615
L_CamContactor 138
Diameter calculation 629
L_CamCurve 149
Differentiation 454
L_CamGetAxisData 155
Differentiation (cyclic) 318
L_CamPosMarker 158
Differentiator with low-pass filter 582
L_CamProfiler 162
DIGDEL
L_CamSetContDataPDO 168
See L_TbDelay 579
L_CamSetContDataSDO 172
Division 585, 586, 600
L_CamStretchAbs 175
Download to RAM 86
L_CamStretchFeed 180
DT1-1
L_CamSyncIn 186
See L_TbDifferentiate 582
L_Dc2BytesToWord 197
E L_Dc2WordsToDWord 198
Edge evaluation 625 L_Dc4BytesToDWord 199
E-mail to Lenze 681 L_DcBitShift 200
Encoder signal conversion 298 L_DcBitShiftByte 201
Error tripping 251, 253 L_DcBitShiftDWord 202
Exception handling 84 L_DcBitShiftInt 203
Extrapolation 319 L_DcBitShiftWord 204
L_DcBitsToByte 205
F L_DcBitsToDWord 206
FB Editor 37 L_DcBitsToWord 208
FBE_insert_user_code 62 L_DcByteBitand 209
FCNT L_DcByteBitor 210
See L_TbCount 563 L_DcByteBitxor 211
Feedback to Lenze 681 L_DcByteToBits 212
FIXSET L_DcByteToInt 213
See L_SdSpeedSet 524 L_DcByteToWord 214
FLIP L_DcDIntToDWord 215
See L_TbFlipFlopD 587 L_DcDIntToInt 216
See L_TbFlipFlopRS 589 L_DcDWordBitand 217
Flipflop 587 L_DcDWordBitor 218
Flying saw 189 L_DcDWordBitxor 219
Following error monitoring 335 L_DcDWordTo2Words 220
Friction compensation 637 L_DcDWordTo4Bytes 221
Function block 17 L_DcDWordToBits 222
Function block editor 37 L_DcDWordToDInt 224
Function library 17 L_DcDWordToWord 225
676 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
Index
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 677
Index
________________________________________________________________
678 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
Index
________________________________________________________________
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05 679
Index
________________________________________________________________
T
Table of attributes 656
Task selection 43
Task types 32
TaskOverrun 84
Tensile force characteristic 652
Test in the device 86
Testing the interconnection in the device 86
Touch probe 461
Touch probe evaluation 535
TRANS
See L_TbTransition 625
Type conversion (implicit) 30
Type converter 197, 198, 199, 213, 214, 215, 216, 220,
221, 224, 225, 229, 230, 246, 248, 249, 250
U
Unit (wildcard) 19
Up/downcounter 563
V
Velocity changeover 411, 418
Virtual clutch (electronic gearbox) 312
Virtual clutch (synchronism) 309
Virtual master (electronic gearbox) 379
Virtual master (synchronism) 373
W
Watchdog 83
Write code 271
Write parameter 271
Writing to a code 287
Writing to parameters 287
X
XOR with five inputs 544
XOR with two inputs 628
Z
Zero crossing detection 384
Zone masking 596
680 Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
Your opinion is important to us
)(('%$&.
These instructions were created to the best of our knowledge and
belief to give you the best possible support for handling our product.
If you have suggestions for improvement, please e-mail us to:
feedback-docu@Lenze.de
681
9400 function library · Reference manual · EDS94FBLIB · 13350243 · DMS 6.7 EN · 08/2014 · TD05
Lenze Automation GmbH
Hans-Lenze-Str. 1
D-31855 Aerzen
Germany
+49 (0)51 54 / 82-0
+49 (0)51 54 / 82-28 00
Lenze@Lenze.de
www.Lenze.com
Service
Lenze Service GmbH
Breslauer Straße 3
D-32699 Extertal
Germany
00 80 00 / 24 4 68 77 (24 h helpline)
+49 (0)51 54 / 82-11 12
Service@Lenze.de