L-force 9400 Servo Drives Manual
L-force 9400 Servo Drives Manual
Function libraries
r LenzeDataConversion
r LenzeDevice9400
r LenzeLineDrive
r LenzePositioning
r LenzeServoDrive
r LenzeToolbox
L
Copyright
© 2006 Lenze Drive Systems GmbH. All rights reserved.
Imprint
Lenze Drive Systems GmbH
Postfach 10 13 52, 31763 Hameln, Germany
Phone: ++49 (0)5154 / 82-0
Fax: ++49 (0)5154 / 82-2111
E-Mail: Lenze@[Link]
Copyright information
All texts, photos and graphics contained in this documentation are subject to
copyright protection. No part of this documentation may be copied or made
available to third parties without the explicit written approval of Lenze Drive
Systems GmbH.
Liability
All information given in this documentation has been carefully selected and
tested for compliance with the hardware and software described.
Nevertheless, discrepancies cannot be ruled out. We do not accept any
responsibility or liability for any damage that may occur. Required correction
will be included in updates of this documentation.
Contents
1 About this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.1 Conventions used . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.2 Definition of notes used . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2 General information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.1 What is a function block? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.2 Parameterisable function blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.3 Conventions used for input/output identifiers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.4 Signal types & scaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3 Short overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.1 Analog signal processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.2 Digital signal processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.3 Data type conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.4 Mathematical functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.5 Conversion of physical units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.6 Speed conditioning. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.7 Special functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.8 Output of status signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.9 FBs for system via electrical shaft . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
3.10 FBs for positioning tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.11 All function blocks [A-Z] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
3.12 FB reference list - 9300 Servo PLC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
3.13 FB reference list - 9300 servo inverter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
4 Function blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
4.1 L_Dc2BytesToWord - Data type conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
4.2 L_Dc2WordsToDWord - Data type conversion. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
4.3 L_Dc4BytesToDWord - Data type conversion. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
4.4 L_DcBitShift - Shift operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
4.5 L_DcBitsToByte - Bit multiplexer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
4.6 L_DcBitsToDWord - Bit multiplexer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
4.7 L_DcBitsToWord - Bit multiplexer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
4.8 L_DcByteToBits - Bit demultiplexer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
4.9 L_DcByteToWord - Type converter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
4.10 L_DcDIntToDWord - Type converter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
L 1.4 EN - 08/2006 3
L-force | 9400 function library
Contents
4 1.4 EN - 08/2006 L
L-force | 9400 function library
Contents
L 1.4 EN - 08/2006 5
L-force | 9400 function library
Contents
6 1.4 EN - 08/2006 L
L-force | 9400 function library
Contents
L 1.4 EN - 08/2006 7
L-force | 9400 function library
Contents
8 1.4 EN - 08/2006 L
L-force | 9400 function library
Contents
5 Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310
L 1.4 EN - 08/2006 9
L-force | 9400 function library
About this Manual
Conventions used
This Manual uses the following conventions to distinguish between different types of
information:
Type of information Writing Examples/notes
Variable identifier italics Set bEnable to TRUE to...
Window The message window... / The Options dialog box...
Control element bold The OK button... / The Copy command... / The Properties tab... / The
Name input field...
Sequence of If several commands must be used in sequence to carry out a function,
menu commands then the individual commands are separated by an arrow. Select the
command FileOpen to...
Shortcut <bold> Press <F1> to open the Online Help.
If a command requires a combination of keys, a "+" is placed between
the key symbols:
Use <Shift>+<ESC> to...
Program code Courier IF var1 < var2 THEN
Keyword Courier a = a + 1
bold END IF
Hyperlink underline Hyperlinks are highlighted references which are activated by means of a
mouse click.
Step-by-step Step-by-step instructions are indicated by a pictograph.
instructions M
10 1.4 EN - 08/2006 L
L-force | 9400 function library
About this Manual
Definition of notes used
This documentation uses the following signal words and symbols to indicate dangers and
important information:
Safety instructions
Layout of the safety instructions:
Application notes
L 1.4 EN - 08/2006 11
L-force | 9400 function library
General information
What is a function block?
2 General information
A function block (FB) can be compared with an integrated circuit that contains a certain
control logic and delivers one or several values when being executed.
r Function blocks are classified in function libraries according to their functions.
r An instance (reproduction, copy) of the function block is always inserted in the circuit.
r It is also possible to insert several instances of a function block in a circuit.
r Each instance has an unequivocal identifier (the instance name) and a processing
number which defines the position the function block is calculated during runtime.
Some function blocks have parameters which serve to change particular settings during
operation, if required or which display actual values & status information.
r By clicking the symbol the parameter list of a function block can be opened.
12 1.4 EN - 08/2006 L
L-force | 9400 function library
General information
Parameterisable function blocks
r 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 connection, a free
(user-defined) index will be automatically suggested which can also be changed, if
required:
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!
L 1.4 EN - 08/2006 13
L-force | 9400 function library
General information
Conventions used for input/output identifiers
This chapter describes the conventions used for the identifiers of the inputs/outputs of the
function blocks to ensure a uniform and consistent terminology and to make reading and
comprehending the applications and function block connections easier.
O 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
r a data type entry
r an identifier (the "proper" name of the input/output)
r an (optional) signal type specification
If it is about an array or a pointer, this will be indicated before the data type entry:
14 1.4 EN - 08/2006 L
L-force | 9400 function library
General information
Conventions used for input/output identifiers
Identifier
The identifier is the proper name of the input/output and should indicate the application
or function.
r Identifiers always start with a capital letter.
r If an identifier consists of several "words", then each "word" must start with a capital
letter.
r All other letters are written in lower case.
L 1.4 EN - 08/2006 15
2.4 Signal types & scaling
16
Position inc u/w 32 bits 1 motor revolution ≡ 216 inc -231 ... 231-1 inc 3 _p
14
Speed rpm s/t 16 bits 15000 rpm ≡ 2 ≡ 16384 ± 30000.0 rpm 1 _v
x 32 bits 15000 rpm ≡ 226 ≡ 67108864 ± 480000.0 rpm 1 _s
22 9
Speed change/time rpm/s v 32 bits 15000000 rpm/s ≡ 2 ≡ 4194304 ± 7.69 * 10 rpm/s 3 _x
Scaled signal % z 32 bits 100 % ≡ 230 ≡ 1073741824 ± 200.00 % 2 _n
y 16 bits 100 % ≡ 214 ≡ 16384 ± 199.99 % 2 _a
Control/status signal { 1 Bit 0 ≡ FALSE; 1 ≡ TRUE 0/1 0
1.4 EN - 08/2006
O Tip!
Only inputs/outputs of the same signal type (with the same connection
symbol) can be connected in the »Engineer« function block editor.
Non-standardised inputs/outputs can be connected if the input and
output have the same resolution.
The online documentation for the »Engineer« contains detailed
information on how to use the function block editor.
L
L-force | 9400 function library
Short overview
Analog signal processing
3 Short overview
L 1.4 EN - 08/2006 17
L-force | 9400 function library
Short overview
Digital signal processing
18 1.4 EN - 08/2006 L
L-force | 9400 function library
Short overview
Data type conversion
L 1.4 EN - 08/2006 19
L-force | 9400 function library
Short overview
Mathematical functions
20 1.4 EN - 08/2006 L
L-force | 9400 function library
Short overview
Speed conditioning
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 1.4 EN - 08/2006 21
L-force | 9400 function library
Short overview
FBs for system via electrical shaft
"Synchronism" application"
22 1.4 EN - 08/2006 L
L-force | 9400 function library
Short overview
FBs for positioning tasks
L 1.4 EN - 08/2006 23
L-force | 9400 function library
Short overview
All function blocks [A-Z]
24 1.4 EN - 08/2006 L
L-force | 9400 function library
Short overview
All function blocks [A-Z]
L 1.4 EN - 08/2006 25
L-force | 9400 function library
Short overview
All function blocks [A-Z]
26 1.4 EN - 08/2006 L
L-force | 9400 function library
Short overview
All function blocks [A-Z]
L 1.4 EN - 08/2006 27
L-force | 9400 function library
Short overview
FB reference list - 9300 Servo PLC
The following reference list shall assist you in finding the correct function block to simulate
a function 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 Lenze8200Drive - -
frequency 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 Lenze8200Drive - -
inverters
L_ABS Absolute value generation [Link] L_TbAbs Absolute value generation
L_ADD Addition [Link] L_TbAdd Addition without limitation
L_TbAddLim Addition with limitation
L_AifParMapClose* Deactivate code mapping LenzeAifParMapDrv - -
* Function (no function block)
28 1.4 EN - 08/2006 L
L-force | 9400 function library
Short overview
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_AifParMapInit* Configure code mapping LenzeAifParMapDrv - -
L_AifParMapOpen* Activate code mapping LenzeAifParMapDrv - -
L_AIN Input gain & offset [Link] SB LS_AnalogInput Analog inputs
L_AND AND [Link] - -
L_ANEG Inversion [Link] - -
L_AOUT Output gain & offset [Link] L_TbGainLim Gain with limitation
L_TbAdd Addition without limitation
L_TbAddLim Addition with limitation
L_ARIT Arithmetic [Link] L_TbAdd Addition without limitation
L_TbAddLim Addition with limitation
L_TbDiv Division with remainder
L_TbDiv_n Division divisor selected as
scaled signal [%]
L_TbMul Multiplication without
limitation
L_TbMul_n Multiplication with the
multiplicand selected as
scaled signal [%]
L_TbMulLim Multiplication with
limitation
L_TbSub Subtraction without
limitation
L_TbSubLim Subtraction with limitation
L_ARITPH Arithmetic [Link] L_TbAdd Addition without limitation
L_TbAddLim Addition with limitation
L_TbDiv Division with remainder
L_TbDiv_n Division divisor selected as
scaled signal [%]
L_TbMul Multiplication without
limitation
L_TbMul_n Multiplication with the
multiplicand selected as
scaled signal [%]
L_TbMulLim Multiplication with
limitation
L_TbSub Subtraction without
limitation
L_TbSubLim Subtraction with limitation
L_ASW Switch-over [Link] L_Tb8Select 1-from-8-selector
L_TbSelect Selector
L_BRK Holding brake [Link] SB LS_Brake Basic function "Brake
control"
L_ByteArrayToDint Type conversion [Link] - -
L_CamAddVelocity Speed addition LenzeCamControl2 - -
L_CamAdjustDfIn Digital frequency LenzeCamControl2 - -
adjustment
L_CamClutchXAxis Virtual clutch LenzeCamControl1 L_LdClutchAxisP Virtual clutch with position
reference
L_LdClutchV Virtual clutch with speed
reference
L_CamContactor Cam group LenzeCamControl1 L_SdSwitchPoint Position switch points
(cams)
L_CamContactorVPos Dynamic adjustment of the LenzeCamControl1 - -
cams/hysteresis
L_CamControl Setpoint conditioning LenzeCamControl1 L_LdToolControl Setpoint conditioning for
the tool axis
L_CamData Profile management LenzeCamControl1 - -
* Function (no function block)
L 1.4 EN - 08/2006 29
L-force | 9400 function library
Short overview
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_CamDifferentiate Converter/differentiator LenzeCamControl2 L_SdDifferentiate Differentiation (position
speed)
L_CamEditProfileData Online change of the profile LenzeCamControl2 - -
points
L_CamExtrapolate Extrapolation LenzeCamControl2 L_LdExtrapolate Extrapolation of position
informaton
L_CamGetPosition Unit conversion LenzeCamControl1 L_SdPosToUnit Position [increments]
position [unit]
L_SdGetPosition Position [increments]
position [unit] (displayed as
parameter value)
L_CamIntegrateVarLim Phase integrator LenzeCamControl2 L_SdIntegrate Integration (speed
position)
L_CamLimitVelocity Limiting element LenzeCamControl1 L_SdLimitSpeed Leads a speed setpoint to
defined limit ranges
L_CamMachineData Machine parameters LenzeCamControl1 L_SdSetAxisData Represented machine
parameters 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 LenzeCamControl1 - -
sequence
L_CamSetPosition Unit conversion LenzeCamControl1 L_SdUnitToPos Position [unit] position
[increments]
L_SdSetPosition Position [unit] (selected as
parameter value) position
[increments]
L_CamSetXAxisVelocity Extending & compressing LenzeCamControl1 L_LdSetAxisVelocity Extension/compression of
the master value the X axis and
synchronisation via touch
probe. The master speed is
integrated to the position
within the cycle.
L_CamSetYAxisVelocity Extending & compressing LenzeCamControl1 - -
the setpoint
L_CamVelocityFilter Filter (PT1) for speed signals LenzeCamControl2 L_TbPT1Filter PT1 filter
L_CamVMasterPosition Virtual master with LenzeCamControl1 L_LdVirtualMasterP Virtual master with position
positioning 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_CanDSxCloseNodeGuardi Deactivate "Node Guarding" LenzeCanDSxDrv - -
ng*
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_CanDSxOpenNodeGuardi Initialise "Node Guarding" LenzeCanDSxDrv - -
ng*
L_CanGetRelocCobId* Query - COB-ID area LenzeCanDrv - -
L_CanGetState* Driver status LenzeCanDrv - -
* Function (no function block)
30 1.4 EN - 08/2006 L
L-force | 9400 function library
Short overview
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_CanInit* Initialisation LenzeCanDrv - -
L_CanPdoReceive Receive CAN object LenzeCanDrv - -
L_CanPdoTransmit Transmit CAN object LenzeCanDrv - -
L_CMP Comparison [Link] L_TbCompare Comparison
L_TbCompare_n Comparison (scaled)
L_CONV Normalisation [Link] L_TbGainLim Gain with limitation
L_TbNormalize Signal scaling
L_CONVPA Conversion of angle to [Link] - -
analog
L_CONVPP Conversion of phase signal [Link] - -
L_CONVVV Conversion [Link] - -
L_CONVX Scaling with limitation [Link] L_TbNormalize Signal scaling
L_CURVE Characteristic function [Link] L_TbCurve Characteristic function
L_DB Dead band [Link] L_TbDeadband Dead band
L_TbDeadband_n Dead band (scaled)
L_DFRFG Digital frequency ramp LenzeElectricalShaft - -
function generator
L_DFSET Digital frequency LenzeElectricalShaft - -
processing
L_DIGDEL Binary delay element [Link] L_TbDelay Binary delay element
L_DintToByteArray Type conversion [Link] - -
L_Display9371BB Transparent mode with [Link] - -
operating unit 9371BB
L_DT1_ Differentiation [Link] L_TbDifferentiate Differentiator with low pass
L_FCNT Up/downcounter [Link] L_TbCount Upcounter and
downcounter with
adjustable limitation.
L_FIXSET Programming of fixed [Link] L_SdSpeedSet Ramp generator (ramp
setpoints function generator) with S-
shaped ramps,
parameterisable fixed
setpoints and
comprehensive parameter
setting and control options.
L_FLIP D flipflop [Link] L_TbFlipFlopD D flipflop
L_TbFlipFlopRS RS flipflop
L_FUNCodeIndexConv Index of a code (function) [Link] - -
L_FWM Error tripping [Link] L_DevApplErr 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_IOCounterDIModuleData Counter function LenzeIOSystem - -
FromIO
L_IOCounterDIModuleData Counter function LenzeIOSystem - -
ToIO
L_IOData15 Coordinate data LenzeIOSystem - -
L_IOData610 Coordinate data LenzeIOSystem - -
L_IODInModule Bit conversion LenzeIOSystem - -
L_IODOutModule Bit conversion LenzeIOSystem - -
L_IOParAIAOModule Parameter function LenzeIOSystem - -
* Function (no function block)
L 1.4 EN - 08/2006 31
L-force | 9400 function library
Short overview
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_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 [Link] - -
L_MCAutoResetInterface Process control LenzeMotionControl - -
L_MCGetPosition Unit conversion LenzeMotionControl L_SdPosToUnit Position [increments]
position [unit]
L_SdGetPosition Position [increments]
position [unit] (displayed as
parameter value)
L_MCGetVelocity Unit conversion LenzeMotionControl L_SdGetSpeed Speed speed [unit/s]
(displayed as parameter
value)
L_MCInterpolator Signal interpolation LenzeMotionControl - -
L_MCMachineData Machine parameters LenzeMotionControl SB LS_DriveInterface The machine parameters for
the drive/motor are set via
the drive interface.
L_SdSetAxisData Represented machine
parameters 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 LenzeMotionControl L_SdIntegrate Integration (speed
function position)
L_TbIntegrate Integration with limitation
L_MCPhiTrim Phase trimming is speed- LenzeMotionControl - -
dependent
L_MCPhiTrimTime Phase trimming is time- LenzeMotionControl - -
dependent
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 LenzeMemDrv - -
segment
L_MemCopyFromRam* Copy data from RAM into LenzeMemDrv - -
variable memory
L_MemCopyToRam* Copy data from variable LenzeMemDrv - -
memory into RAM
* Function (no function block)
32 1.4 EN - 08/2006 L
L-force | 9400 function library
Short overview
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_MemGetStateDriver* Driver status LenzeMemDrv - -
L_MemGetStateOfMemory PLC memory status LenzeMemDrv - -
L_MemLoadRamFromFlash* Copy data from flash LenzeMemDrv - -
memory 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 [Link] - -
L_MPOT Motor potentiometer [Link] - -
L_NOT NOT [Link] L_TbNot Negation (inverter)
L_NSET Speed pre-processing [Link] L_SdSpeedSet Ramp generator (ramp
function generator) with S-
shaped ramps,
parameterisable fixed
setpoints and
comprehensive parameter
setting and control options.
L_OR OR [Link] L_TbOr OR (2 inputs)
L_Tb5Or OR (5 inputs)
L_ParRead Reading of codes [Link] - -
L_ParWrite Writing of codes [Link] - -
L_PCTRL Process controller [Link] - -
L_PHADD Addition [Link] L_TbAdd Addition without limitation
L_TbAddLim Addition with limitation
L_PHCMP Comparison [Link] L_TbCompare Comparison
L_TbCompare_n Comparison (scaled)
L_PHDIFF Difference [Link] L_TbDifferentiate Differentiator with low pass
L_PHDIV Division [Link] L_TbDiv Division with remainder
L_TbDiv_n Division divisor selected as
scaled signal [%]
L_PHINT Integration [Link] L_SdIntegrate Integration (speed
position)
L_PHINTK Integration [Link] L_SdIntegrate Integration (speed
position)
L_PT1_ Deceleration [Link] L_TbPT1Filter PT1 filter
L_REF Homing function LenzeElectricalShaft SB LS_Homing Basic function "Homing"
L_RFG Ramp function generator [Link] L_SdRampGenerator Ramp generator (ramp
function generator) with S-
shaped ramps.
L_SdSpeedSet Ramp generator (ramp
function generator) with S-
shaped ramps,
parameterisable fixed
setpoints and
comprehensive parameter
setting and control options.
L_RLQ Right/left quick stop [Link] - -
L_Rs232Close Deactivation (function) LenzeFpiDrv - -
L_Rs232GetReceiveState Receive status (function) LenzeFpiDrv - -
* Function (no function block)
L 1.4 EN - 08/2006 33
L-force | 9400 function library
Short overview
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_Rs232GetSendState Transmit status (function) LenzeFpiDrv - -
L_Rs232Open Initialisation (function) LenzeFpiDrv - -
L_Rs232ReceiveData Receiving data (function) LenzeFpiDrv - -
L_Rs232SendData Transmitting data LenzeFpiDrv - -
(function)
L_SH Sample & Hold [Link] L_TbSampleHold Sample & Hold
L_SRFG Ramp function generator [Link] L_SdRampGenerator Ramp generator (ramp
with S ramp function generator) with S-
shaped ramps.
L_SdSpeedSet Ramp generator (ramp
function generator) with S-
shaped ramps,
parameterisable 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 LenzePLCToolBox - -
value
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 LenzePLCToolBox L_DcResetBitOfDWord Resets a bit of a DWORD
value to "0". value to "0".
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 with parameterisable
time. pulse/dead time.
L_TpConfigDigInX Configures a touch probe LenzeTpDrv - -
input (function)
L_TpGetLastScanDigIn1...4 Provides touch-probe LenzeTpDrv L_SdTouchProbe Touch probe processing
signals
L_TRANS Edge evaluation [Link] L_TbTransition Signal edge evaluation
L_WndAccTorque Acceleration compensation LenzeWinder - -
L_WndCalcDiameter Diameter calculation LenzeWinder - -
L_WndCalcLength Length calculation LenzeWinder - -
L_WndCalcThickness Thickness calculation LenzeWinder - -
L_WndConvActPos Actual dancer value LenzeWinder - -
conditioning
L_WndConvMSet Torque setpoint converter LenzeWinder - -
L_WndConvNSet Speed setpoint converter LenzeWinder - -
L_WndFrictionCurve Friction compensation LenzeWinder - -
L_WndGearRatio Gearbox factor changeover LenzeWinder - -
* Function (no function block)
34 1.4 EN - 08/2006 L
L-force | 9400 function library
Short overview
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_WndIdentFriction Identification of the friction LenzeWinder - -
characteristic
L_WndIdentMInertia Identification of the LenzeWinder - -
moment of inertia
L_WndMInertia Mass inertia calculation LenzeWinder - -
L_WndProcessCtrl Dancer / tension control LenzeWinder - -
L_WndStopCtrl Stop controller LenzeWinder - -
L_WndTensionCurve Tensile force characteristic LenzeWinder - -
* Function (no function block)
L 1.4 EN - 08/2006 35
L-force | 9400 function library
Short overview
FB reference list - 9300 servo inverter
The following reference list shall assist you in finding the correct function block to simulate
a function 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
AIF-IN Fieldbus - -
AIF-OUT Fieldbus - -
AIN Analog inputs SB LS_AnalogInput Analog inputs
AND AND L_TbAnd AND (2 inputs)
L_Tb5And AND (5 inputs)
ANEG Analog inverter L_TbNeg Sign inversion
AOUT Analog outputs SB LS_AnalogOutput Analog outputs
ARIT Arithmetic block L_TbAdd Addition without limitation
L_TbAddLim Addition with limitation
L_TbDiv Division with remainder
L_TbDiv_n Division divisor selected as scaled
signal [%]
L_TbMul Multiplication without limitation
L_TbMul_n Multiplication with the
multiplicand 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_TbDiv Division with remainder
L_TbDiv_n Division divisor selected as scaled
signal [%]
L_TbMul Multiplication without limitation
L_TbMul_n Multiplication with the
multiplicand 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 SB LS_Brake 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 - -
CONVPP 32 bit/16 bit conversion - -
CURVE Characteristic function L_TbCurve Characteristic function
DB Dead band L_TbDeadband Dead band
L_TbDeadband_n Dead band (scaled)
36 1.4 EN - 08/2006 L
L-force | 9400 function library
Short overview
FB reference list - 9300 servo inverter
Function block for 9300 servo inverter Function block for 9400 Servo Drives
Name Description Name Description
DCTRL Device control SB LS_DriveInterface Drive interface
DFIN Digital frequency input SB LS_DigitalFrequencyInput Digital frequency input
DFOUT Digital frequency output SB LS_DigitalFrequencyOutput Digital frequency output
DFRFG Digital frequency ramp function - -
generator
DFSET Digital frequency processing - -
DIGDEL Binary delay element L_TbDelay Binary delay element
DIGIN Digital inputs SB LS_DigitalInput Digital inputs
DIGOUT Digital outputs SB LS_DigitalOutput 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
generator) with S-shaped ramps,
parameterisable 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 SB LS_MotorInterface Motor interface
MFAIL Mains failure control - -
MLP Motor phase failure detection - -
MONIT Monitoring - -
MPOT Motor potentiometer - -
NOT NOT L_TbNot Negation (inverter)
NSET Speed setpoint conditioning L_SdSpeedSet Ramp generator (ramp function
generator) with S-shaped ramps,
parameterisable 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
PHCMP Comparator L_TbCompare Comparison
L_TbCompare_n Comparison (scaled)
PHDIFF 32 bit setpoint/actual value L_TbDifferentiate Differentiator with low pass
comparison
PHDIV Conversion L_TbDiv Division with remainder
L_TbDiv_n Division divisor selected as scaled
signal [%]
PHINT Phase integrator L_SdIntegrate Integration (speed position)
PT1-1 First-order delay element L_TbPT1Filter PT1 filter
R/L/Q QSP / setpoint inversion - -
REF Homing function SB LS_Homing Basic function "Homing"
L 1.4 EN - 08/2006 37
L-force | 9400 function library
Short overview
FB reference list - 9300 servo inverter
Function block for 9300 servo inverter Function block for 9400 Servo Drives
Name Description Name Description
RFG Ramp function generator L_SdRampGenerator Ramp generator (ramp function
generator) with S-shaped ramps.
L_SdSpeedSet Ramp generator (ramp function
generator) with S-shaped ramps,
parameterisable 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
generator) with S-shaped ramps.
L_SdSpeedSet Ramp generator (ramp function
generator) with S-shaped ramps,
parameterisable 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_PosDecoderStatePositioner Status signals of the basic function
"Positioning"
L_DevLimiterStateDecoder Status signals of the basic function
"Limiter"
L_DevBrakeStateDecoder Status signals of the basic function
"Brake control"
L_PosDecoderStateSequencer Status signals of the sequence
control (FB L_PosSequencer)
L_LdStateDecoder Status signals of the FBs of the
function library "[Link]"
STATE-BUS Statebus SB LS_DigitalInput Digital inputs
SB LS_DigitalOutput Digital outputs
STORE Memory - -
SYNC Multi-axis positioning - -
TRANS Binary edge evaluation L_TbTransition Signal edge evaluation
38 1.4 EN - 08/2006 L
L-force | 9400 function library
Function blocks
4 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 which
function library contains the corresponding FB and which "9400 Servo Drives"
can be used with the FB.
L 1.4 EN - 08/2006 39
L-force | 9400 function library
Function blocks
L_Dc2BytesToWord - Data type conversion
This FB converts two input values of type "BYTE" into an output value of type "WORD".
L_Dc2BytesToWord
byInput1
byInput2
wOutput
Inputs
Outputs
40 1.4 EN - 08/2006 L
L-force | 9400 function library
Function blocks
L_Dc2WordsToDWord - Data type conversion
This FB converts two input values of type "WORD" into an output value of type "DWORD".
L_Dc2WordsToDWord
wInput1
wInput2
dwOutput
Inputs
Outputs
L 1.4 EN - 08/2006 41
L-force | 9400 function library
Function blocks
L_Dc4BytesToDWord - Data type conversion
This FB converts four input values of type "BYTE" into an output value of type "DWORD".
L_Dc4BytesToDWord
byInput1
byInput2
byInput3
byInput4
dwOutput
Inputs
Outputs
42 1.4 EN - 08/2006 L
L-force | 9400 function library
Function blocks
L_DcBitShift - Shift operation
L_DcBitShift
dnIn
0 1 0 1 0 0
Bit 31 Bit 0
dnOut
0 0 1 0 1 0
Inputs
Outputs
Parameters
Example
Bit 31
0 0 Bit 0 Bit 31 Bit 0
dnOut dnOut
L 1.4 EN - 08/2006 43
L-force | 9400 function library
Function blocks
L_DcBitsToByte - Bit multiplexer
L_DcBitsToByte
bBit0 byOutput
bBit1
0 BYTE
1
bBit2
2
bBit3
3
bBit4
4
bBit5
5
bBit6
6
bBit7
7
Inputs
Outputs
44 1.4 EN - 08/2006 L
L-force | 9400 function library
Function blocks
L_DcBitsToDWord - Bit multiplexer
L_DcBitsToDWord
bBit0 dwOutput
bBit1
0 DWORD
1
bBit2
2
bBit3
3
bBit4
4
bBit5
5
bBit6
6
bBit7
7
bBit8
8
bBit9
9
bBit10
10
bBit11
11
bBit12
12
bBit13
13
bBit14
14
bBit15
15
bBit16
16
bBit17
17
bBit18
18
bBit19
19
bBit20
20
bBit21
21
bBit22
22
bBit23
23
bBit24
24
bBit25
25
bBit26
26
bBit27
27
bBit28
28
bBit29
29
bBit30
30
bBit31
31
Inputs
L 1.4 EN - 08/2006 45
L-force | 9400 function library
Function blocks
L_DcBitsToDWord - Bit multiplexer
Outputs
46 1.4 EN - 08/2006 L
L-force | 9400 function library
Function blocks
L_DcBitsToWord - Bit multiplexer
L_DcBitsToWord
bBit0 wOutput
bBit1
0 WORD
1
bBit2
2
bBit3
3
bBit4
4
bBit5
5
bBit6
6
bBit7
7
bBit8
8
bBit9
9
bBit10
10
bBit11
11
bBit12
12
bBit13
13
bBit14
14
bBit15
15
Inputs
Outputs
L 1.4 EN - 08/2006 47
L-force | 9400 function library
Function blocks
L_DcByteToBits - Bit demultiplexer
This FB outputs the 8 corresponding bit values for an input value of type "byte".
L_DcByteToBits
byInput bBit0
BYTE 0
bBit1
1
bBit2
2
bBit3
3
bBit4
4
bBit5
5
bBit6
6
bBit7
7
Inputs
Outputs
48 1.4 EN - 08/2006 L
L-force | 9400 function library
Function blocks
L_DcByteToWord - Type converter
This FB converts a data type "BYTE" into the data type "WORD".
L_DcByteToWord
byIn wOut
BYTE W WORD
Inputs
Outputs
Function
BYTE
Bit 7 Bit 0
Bit 15
0 0 0 0 0 0 0 0 Bit 0
WORD
L 1.4 EN - 08/2006 49
L-force | 9400 function library
Function blocks
L_DcDIntToDWord - Type converter
This FB converts a data type "DINT" into the data type "DWORD".
L_DcDIntToDWord
dnIn dwOut
DINT W DWORD
Inputs
Outputs
50 1.4 EN - 08/2006 L
L-force | 9400 function library
Function blocks
L_DcDIntToInt - Type converter
This FB converts a data type "DINT" into the data type "INT".
L_DcDIntToInt
dnIn nOut
DINT W INT
Inputs
Outputs
Function
Bit 15
± Bit 0
INT
L 1.4 EN - 08/2006 51
L-force | 9400 function library
Function blocks
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".
L_DcDWordBitand
dwIn1
1 0 0 0 1 1
dwIn2 Bit 31 Bit 0
0 1 0 1 1 0 &
dwOut
0 0 0 0 1 0
Inputs
Outputs
Function
Example
dwIn1 = 00011001010011100001011000101000
dwIn2 = 01010001100001100100100001111000
--------------------------------
dwOut = 00010001010001100000000000101000
52 1.4 EN - 08/2006 L
L-force | 9400 function library
Function blocks
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".
L_DcDWordBitor
dwIn1
1 0 0 0 1 1
dwIn2 Bit 31 Bit 0
0 1 0 1 1 0 1
dwOut
1 1 0 1 1 1
Inputs
Outputs
Function
Example
dwIn1 = 00011001010011100001011000101000
dwIn2 = 01010001100001100100100001111000
--------------------------------
dwOut = 01011001110011100101111001111000
L 1.4 EN - 08/2006 53
L-force | 9400 function library
Function blocks
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".
L_DcDWordBitxor
dwIn1
1 0 0 0 1 1
dwIn2 Bit 31 Bit 0
0 1 0 1 1 0 1
dwOut
1 1 0 1 0 1
Inputs
Outputs
Function
Example
dwIn1 = 00011001010011100001011000101000
dwIn2 = 01010001100001100100100001111000
--------------------------------
dwOut = 01001000110010000101111001010000
54 1.4 EN - 08/2006 L
L-force | 9400 function library
Function blocks
L_DcDWordTo2Words - Data type conversion
This FB converts an input value of type "DWORD" into two output values of type "WORD".
L_DcDWordTo2Words
dwInput
wOutput1
wOutput2
Inputs
Outputs
L 1.4 EN - 08/2006 55
L-force | 9400 function library
Function blocks
L_DcDWordTo4Bytes - Data type conversion
This FB converts an input value of type "DWORD" into four output values of type "BYTE".
L_DcDWordTo4Bytes
dwInput
byOutput1
byOutput2
byOutput3
byOutput4
Inputs
Outputs
56 1.4 EN - 08/2006 L
L-force | 9400 function library
Function blocks
L_DcDWordToBits - Bit demultiplexer
This FB outputs the 32 corresponding bit values for an input value of "DWORD" type.
L_DcDWordToBits
dwInput bBit0
DWORD 0
bBit1
1
bBit2
2
bBit3
3
bBit4
4
bBit5
5
bBit6
6
bBit7
7
bBit8
8
bBit9
9
bBit10
10
bBit11
11
bBit12
12
bBit13
13
bBit14
14
bBit15
15
bBit16
16
bBit17
17
bBit18
18
bBit19
19
bBit20
20
bBit21
21
bBit22
22
bBit23
23
bBit24
24
bBit25
25
bBit26
26
bBit27
27
bBit28
28
bBit29
29
bBit30
30
bBit31
31
Inputs
L 1.4 EN - 08/2006 57
L-force | 9400 function library
Function blocks
L_DcDWordToBits - Bit demultiplexer
Outputs
58 1.4 EN - 08/2006 L
L-force | 9400 function library
Function blocks
L_DcDWordToDInt - Type converter
This FB converts a data type "DWORD" into the data type "DINT".
L_DcDWordToDInt
dwIn dnOut
DWORD W DINT
Inputs
Outputs
L 1.4 EN - 08/2006 59
L-force | 9400 function library
Function blocks
L_DcDWordToWord - Type converter
This FB converts a data type "DWORD" into the data type "WORD".
L_DcDWordToWord
dwIn wOut
DWORD W WORD
Inputs
Outputs
Function
DWORD
Bit 31 Bit 0
Bit 15 Bit 0
WORD
60 1.4 EN - 08/2006 L
L-force | 9400 function library
Function blocks
L_DcGetBitOfByte - Bit operation
L_DcGetBitOfByte
byInput bBit
byBitNr
Inputs
Outputs
L 1.4 EN - 08/2006 61
L-force | 9400 function library
Function blocks
L_DcGetBitOfDWord - Bit operation
L_DcGetBitOfDWord
dwInput bBit
byBitNr
Inputs
Outputs
62 1.4 EN - 08/2006 L
L-force | 9400 function library
Function blocks
L_DcGetBitOfWord - Bit operation
L_DcGetBitOfWord
wInput bBit
byBitNr
Inputs
Outputs
L 1.4 EN - 08/2006 63
L-force | 9400 function library
Function blocks
L_DcIntToDInt - Type converter
This FB converts a data type "INT" into the data type "DINT".
L_DcIntToDInt
nIn dnOut
INT W DINT
Inputs
Outputs
Function
INT
Bit 15
± Bit 0
Bit 31
± ± ± ± ± ± ± ± ± ± ± ± ± ± ± ± ± Bit 0
DINT
64 1.4 EN - 08/2006 L
L-force | 9400 function library
Function blocks
L_DcIntToWord - Type converter
This FB converts a data type "INT" into the data type "WORD" .
L_DcIntToWord
nIn wOut
INT W WORD
Inputs
Outputs
L 1.4 EN - 08/2006 65
L-force | 9400 function library
Function blocks
L_DcNorm_aToNorm_n - Signal converter
L_DcNorm_aToNorm_n
nIn_a dnOut_n
[%] 16 Bit W [%] 32 Bit
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
66 1.4 EN - 08/2006 L
L-force | 9400 function library
Function blocks
L_DcNorm_nToNorm_a - Signal converter
L_DcNorm_nToNorm_a
dnIn_n nOut_a
[%] 32 Bit W [%] 16 Bit
Inputs
Outputs
Function
dnIn_n
Bit 31
± Bit 0
Bit 15
± Bit 0
nOut_a
L 1.4 EN - 08/2006 67
L-force | 9400 function library
Function blocks
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.
L_DcNorm_nToSpeed_s
dnIn_n dnOut_s
[%] 32 Bit W [rpm] 32 Bit
AxisData
Inputs
Outputs
68 1.4 EN - 08/2006 L
L-force | 9400 function library
Function blocks
L_DcResetBitOfByte - Bit operation
L_DcResetBitOfByte
byInput byOutput
byBitNr
Inputs
Outputs
L 1.4 EN - 08/2006 69
L-force | 9400 function library
Function blocks
L_DcResetBitOfDWord - Bit operation
L_DcResetBitOfDWord
dwInput dwOutput
byBitNr
Inputs
Outputs
70 1.4 EN - 08/2006 L
L-force | 9400 function library
Function blocks
L_DcResetBitOfWord - Bit operation
L_DcResetBitOfWord
wInput wOutput
byBitNr
Inputs
Outputs
L 1.4 EN - 08/2006 71
L-force | 9400 function library
Function blocks
L_DcSetBitOfByte - Bit operation
L_DcSetBitOfByte
byInput byOutput
byBitNr
Inputs
Outputs
72 1.4 EN - 08/2006 L
L-force | 9400 function library
Function blocks
L_DcSetBitOfDWord - Bit operation
L_DcSetBitOfDWord
dwInput dwOutput
byBitNr
Inputs
Outputs
L 1.4 EN - 08/2006 73
L-force | 9400 function library
Function blocks
L_DcSetBitOfWord - Bit operation
L_DcSetBitOfWord
wInput wOutput
byBitNr
Inputs
Outputs
74 1.4 EN - 08/2006 L
L-force | 9400 function library
Function blocks
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.
L_DcSpeed_sToNorm_n
dnIn_s dnOut_n
[rpm] 32 Bit W [%] 32 Bit
AxisData
Inputs
Outputs
L 1.4 EN - 08/2006 75
L-force | 9400 function library
Function blocks
L_DcSpeed_sToSpeed_v - Signal converter
This FB uses the transmitted machine parameters and converts a 32-bit speed signal into
a 16-bit speed signal.
L_DcSpeed_sToSpeed_v
dnIn_s nOut_v
[rpm] 32 Bit W [rpm] 16 Bit
AxisData
Inputs
Outputs
76 1.4 EN - 08/2006 L
L-force | 9400 function library
Function blocks
L_DcSpeed_vToSpeed_s - Signal converter
This FB uses the transmitted machine parameters and converts a 16-bit speed signal into
a 32-bit speed signal.
L_DcSpeed_vToSpeed_s
nIn_v dnOut_s
[rpm] 16 Bit W [rpm] 32 Bit
AxisData
Inputs
Outputs
L 1.4 EN - 08/2006 77
L-force | 9400 function library
Function blocks
L_DcWordTo2Bytes - Data type conversion
This FB converts an input value of type "WORD" into two output values of type "BYTE".
L_DcWordTo2Bytes
wInput
byOutput1
byOutput2
Inputs
Outputs
78 1.4 EN - 08/2006 L
L-force | 9400 function library
Function blocks
L_DcWordToBits - Bit demultiplexer
This FB outputs the 16 corresponding bit values for an input value of type "WORD".
L_DcWordToBits
wInput bBit0
WORD 0
bBit1
1
bBit2
2
bBit3
3
bBit4
4
bBit5
5
bBit6
6
bBit7
7
bBit8
8
bBit9
9
bBit10
10
bBit11
11
bBit12
12
bBit13
13
bBit14
14
bBit15
15
Inputs
Outputs
L 1.4 EN - 08/2006 79
L-force | 9400 function library
Function blocks
L_DcWordToByte - Type converter
This FB converts a data type "WORD" into the data type "BYTE" .
L_DcWordToByte
wIn byOut
WORD W BYTE
Inputs
Outputs
Function
WORD
Bit 15 Bit 0
Bit 7 Bit 0
BYTE
80 1.4 EN - 08/2006 L
L-force | 9400 function library
Function blocks
L_DcWordToDWord - Type converter
This FB converts a data type "WORD" into the data type "DWORD" .
L_DcWordToDWord
wIn dwOut
WORD W DWORD
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
L 1.4 EN - 08/2006 81
L-force | 9400 function library
Function blocks
L_DcWordToInt - Type converter
This FB converts a data type "WORD" into the data type "INT".
L_DcWordToInt
wIn nOut
WORD W INT
Inputs
Outputs
82 1.4 EN - 08/2006 L
L-force | 9400 function library
Function blocks
L_DevApplErr - Error tripping
L_DevApplErr
bError1 dnState
bError2 Error handler dnErrorNo
bError3
bError4
bError5
bError6
bError7
bError8
Inputs
L 1.4 EN - 08/2006 83
L-force | 9400 function library
Function blocks
L_DevApplErr - Error tripping
Outputs
Parameters
84 1.4 EN - 08/2006 L
L-force | 9400 function library
Function blocks
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.
r The functionality corresponds to a converter "DINTBOOL", but the boolean outputs of
this FB have the same names according to their meaning.
L_DevBrakeStateDecoder
dnState bActive
bModulUsed
bBrakeReleased
LS_Brake state bErrorActive
bGrindIn
bTorqueTest
bDirectMode
bAutoMode
bErrExtFeedback
bErrPosDrift
bErrModul
bTimeActivate
bGrindInDone
bTorqueTestDone
Inputs
L 1.4 EN - 08/2006 85
L-force | 9400 function library
Function blocks
L_DevBrakeStateDecoder - Status signals of the basic function "Brake control"
Outputs
The boolean outputs have the following meaning when the value is TRUE:
86 1.4 EN - 08/2006 L
L-force | 9400 function library
Function blocks
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.
r The functionality corresponds to a converter "DINTBOOL", but the boolean outputs of
this FB have the same names according to their meaning.
L_DevDriveInterfaceStateDecoder
dnState bActive
bDone
bAccDec
bCcw
bHomePosOK
bBrakeReleased
bZeroPos
LS_DriveInterface state
bErrorActive
bTorqueFollower
bSpeedFollower
bPositionFollower
bFollowerActive
bPositioningActive
bHomingActive
bManualJogActive
bBrakeTestActive
bStandstillActive
bStoppingActive
bQspActive
bDriveNotReady
bInit
bFail
bNotOperational
Inputs
L 1.4 EN - 08/2006 87
L-force | 9400 function library
Function blocks
L_DevDriveInterfaceStateDecoder - Status signals of the drive interface
Outputs
The boolean outputs have the following meaning when the value is TRUE:
88 1.4 EN - 08/2006 L
L-force | 9400 function library
Function blocks
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.
r The functionality corresponds to a converter "DINTBOOL", but the boolean outputs of
this FB have the same names according to their meaning.
L_DevHomingStateDecoder
dnState bActive
bDone
bAccDec
LS_Homing state bCcw
bHomePosOK
bErrorActive
bRefMarkDetect
bTPDetect
bLimProfile
bLimDir
bLimAbort
bStoppingActive
bErrPG
Inputs
L 1.4 EN - 08/2006 89
L-force | 9400 function library
Function blocks
L_DevHomingStateDecoder - Status signals of the basic function "Homing"
Outputs
The boolean outputs have the following meaning when the value is TRUE:
90 1.4 EN - 08/2006 L
L-force | 9400 function library
Function blocks
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.
r The functionality corresponds to a converter "DINTBOOL", but the boolean outputs of
this FB have the same names according to their meaning.
L_DevLimiterStateDecoder
dnState bCinhForced
bQSPForced
bQSP2Forced
bLimSpeed1
bLimSpeed2
bLimSpeed3
LS_Limiter state
bLimSpeed4
bLimNegDir
bLimPosDir
bLimTipDistance
bLimSetPos
bHWLimitPos
bHWLimitNeg
bSWLimitPos
bSWLimitNeg
bLimSpeed
bLimAcc
bLimDec
Inputs
L 1.4 EN - 08/2006 91
L-force | 9400 function library
Function blocks
L_DevLimiterStateDecoder - Status signals of the basic function "Limiter"
Outputs
The boolean outputs have the following meaning when the value is TRUE:
92 1.4 EN - 08/2006 L
L-force | 9400 function library
Function blocks
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.
r The functionality corresponds to a converter "DINTBOOL", but the boolean outputs of
this FB have the same names according to their meaning.
L_DevManualJogStateDecoder
dnState bActive
bDone
bAccDec
LS_ManualJog state bCcw
bErrorActive
bErrJogNegRelease
bErrJogNegJogPos
bErrJogPosRelease
bJogSpeed2
bJogSpeed1
bLimDirPos
bLimDirNeg
bAbort
bStoppingActive
bErrPG
Inputs
L 1.4 EN - 08/2006 93
L-force | 9400 function library
Function blocks
L_DevManualJogStateDecoder - Status signals of the basic function "ManualJog"
Outputs
The boolean outputs have the following meaning when the value is TRUE:
94 1.4 EN - 08/2006 L
L-force | 9400 function library
Function blocks
L_LdAddOffsetCyclic - Offset addition
This FB adds an offset to a clocked position and returns the value to the clock pulse.
r The cycle and shift factor for the position resolution are read out of the machine
parameters (AxisData).
r The clock pulse is created without remainder processing.
L_LdAddOffsetCyclic
dnState
dnPosIn_p dnPosOut_p
dnOffset_p
AxisData
Inputs
Outputs
L 1.4 EN - 08/2006 95
L-force | 9400 function library
Function blocks
L_LdClutchAxisP - Virtual clutch for synchronism
This FB provides the "Virtual clutch" function with position reference for the "Synchronism"
application.
L_LdClutchAxisP
dnSetPosition_p dnState
dnActPosition_p bInTarget
dnOpenPosition_p bOpen
bEnable bAccDec
bClose dnPosOut_p
bOpenInstant
AxisData
Inputs
96 1.4 EN - 08/2006 L
L-force | 9400 function library
Function blocks
L_LdClutchAxisP - Virtual clutch for synchronism
Outputs
L 1.4 EN - 08/2006 97
L-force | 9400 function library
Function blocks
L_LdClutchAxisP - Virtual clutch for synchronism
Parameters
98 1.4 EN - 08/2006 L
L-force | 9400 function library
Function blocks
L_LdClutchV - Virtual clutch for electronic gearboxes
This FB provides the "Virtual clutch" function with speed reference for the "Electronic
gearbox" application.
L_LdClutchV
dnSpeedIn_s dnState
dnSetSpeed_s bOpen
bEnable bAccDec
bClose dnSpeedOut_s
bOpenInstant
AxisData
Inputs
L 1.4 EN - 08/2006 99
L-force | 9400 function library
Function blocks
L_LdClutchV - Virtual clutch for electronic gearboxes
Outputs
Parameters
L_LdConvAxisV
bEnable dnState
v
dnSpeedIn_s dnSpeedOut_s
XAxisData
YAxisData t
Inputs
Outputs
Parameters
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):
r In this operating mode, the FB couples both axes via the set feed constants.
r Via C05162/1 and C05162/2 the ratio of the corresponding units is set, i.e. how many
units of the X axis correspond to how many units of the Y axis.
Operating mode 1 (clock equality):
r In this operating mode the FB makes use of the set cycles. The transformation displays
one cycle of the X axis exactly in one cycle of the Y axis.
Operating mode 2 (free coupling):
r In this operating mode the set feed constants are not used for the transformation.
r Via C05162/1 and C05162/2 the revolution ratio is indicated, i.e. how many revolutions
of the master shaft correspond to how many revolutions of the tool.
This FB differentiates a position into a speed (by analogy with the FB L_SdDifferentiate) in
consideration of the cycle.
r The cycle and shift factor for the position resolution are read out of the machine
parameters (AxisData).
r The clock pulse is created with remainder processing.
r The FB is the counterpart of the FB L_LdIntegrateCyclic. (C 110)
L_LdDifferentiateCyclic
dnState
dnPosIn_p dnSpeedOut_s
AxisData
Inputs
Outputs
This FB serves to extrapolate position information in order to e.g. compensate higher bus
transmission cycles or smooth absolute value encoders with low resolution. A forced
extrapolation is also possible.
L_LdExtrapolate
bEnable bBusy
bForced bLimit
dnPosIn_p bError
dnSpeedOut_s
AxisData dnPosOut_p
Inputs
Outputs
Parameters
1 Fault
4.53.1 Function
Note!
Ensure that the number of extrapolation cycles amounts to an integer value so
that the position information increases linearly and the speed can be calculated
correctly.
• 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 case, 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.
r The forced extrapolation is activated by setting bForced to TRUE.
L_LdIntegrateCyclic
dnState
dnSpeedIn_s dnPosOut_p
bLoadStartPos dnSpeedOut_s
dnStartPos_p
dnPosOffset_p
AxisData
Inputs
Outputs
L_LdLinearCoupling
bEnable dnState
X
bXReset bXZeroPos
dnXPosIn_p dnYSetPosCycle_p
dnXOffset_p t dnYSpeedOut_s
Y
XAxisData dnXSpeedOut_s
YAxisData dnXActPos_p
t
Inputs
Outputs
Parameters
This FB is used for mark synchronisation in synchronism and cam profiler applications.
r The FB monitors an encoder signal and interpolates the corresponding position when a
touch probe occurs. The difference to the setpoint position where the touch probe was
expected is determined.
r The assigned correction speed is integrated to a correction offset that is used to correct
the detected deviation.
r For mark correction, connect the FB with a suitable controller, e.g. with the
FB L_LdPosCtrlLin. (C 121)
L_LdMarkSync
bEnable dnState
dnMakeUpLeeway_s dnPosOffset_p
bResetPos dnActDifference_p
dnActPos_p dnTpDifference_p
dnTpTimeLag dnTpTpDistance_p
bTpReceived dnTpPos_p
dnTpSetPos_p
AxisData
Inputs
Outputs
L_LdMonitFollowError
bEnable bError
dnFollowErrorIn_p dnFollowErrorOut_p
dwHysteresis_p
dwLimitError_p
AxisData
Inputs
Outputs
Parameters
TRUE Activated
L_LdMPot
bEnable bBusy
bJogPositive Dv dnSpeedOut_s
bJogNegative
AxisData
Inputs
Outputs
Parameters
L_LdPosCtrlLin
bEnable bInTarget
bExecute Dj dnPosOut_p
bSetZeroPos dnSpeedOut_s
dnSetPos_p
dnActPos_p
AxisData
Inputs
Outputs
Parameters
1 Deviation compensated
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.
L_LdSetAxisVelocity
dnSpeedIn_s dnState
dnTpMakeUpLeeway_s bZeroPos
dnStartPos_p bTpDiffRecogn
dnNumerator dnDifference_p
x
dnDenominator dnTpTpDistance_p
bNegOutput t
dnTpDistance_p
bSyncEnable dnSpeedOut_s
bEnable dnPosOut_p
byDisableMode
dnExtMaster_p
bTpEnable
dnTpPos_p
dnTpIncLastScan_p TP
bTpReceived
AxisData
Inputs
Outputs
Parameters
This FB decodes the status output signal dnState of an FB from the function library
"[Link]" into individual boolean status signals for further use in the FB
interconnection.
r The functionality corresponds to a converter "DINTBOOL", but the boolean outputs of
this FB have the same names according to their meaning.
L_LdStateDecoder
dnState bInit
0
bActive
1
bDone
2
bAccDec
3
bWarnPosDiff
4
bNegativeDir
5
bReserve06
6
bReserve07
7
bClutchClose
8
bWaitClose
9
bZeroPos
10
Line drive state signals
bReserve11
11
bInitSetCycle
12
bInitActCycle
13
bLimit
14
bError
15
bErrStartPos
16
bErrExtMaster
17
bErrCycleLength
18
bErrMaxSpeed
19
bErrTPPos
20
bErrInput
21
bErrCycleLengthY
22
bErrAxisData
23
bCycle
24
bAutomatic
25
bStopInstant
26
bManualJog
27
bInternalSpeed
28
bErrPosExtMaster
29
bHandwheel
30
bReserve31
31
Inputs
Outputs
The boolean outputs have the following meaning when the value is TRUE:
L_LdSyncOperation
bEnable dnState
j
dnXPosIn_p dnYSpeedOut_s
dnXOffset_p dnXSpeedOut_s
XAxisData t dnXActPos_p
YAxisData bXZeroPos
Inputs
Outputs
Parameters
L_LdToolControl
dnSetSpeedIn_s dnState
dnTpMakeUpLeeway_s dnSpeedOut_s
dnOffset_p dnSetPosCycle_p
bLoadSetPosCycle dnActPosCycle_p
Tool control
dnSetPosCycleValue_p dnFollowError_p
bInitActPosCycle dnTpTpDistance_p
dnActPosIn_p dnTpDifference_p
bResetActToSet dnDifference_p
bResetSetToAct
bTpEnable
bTpReceived
dnTpLastScan_p
dnTpPos_p
AxisData
Inputs
Outputs
Parameters
This FB provides the "Virtual master" function for the "Synchronism" application.
L_LdVirtualMasterP
dnExtMaster_p dnState
bEnable bInTarget
Virtual master
bContinuous bBusy
bCycle dnPosOut_p
bManualJogCw
bManualJogCcw
dnHandwheel_s
bStopInstant
bEnable2ndSpeedSet
bLoadStartPos
AxisData
Inputs
Outputs
Parameters
4.64.1 Functions
Handwheel function
r Ensures an easy control of a machine run. The clutched drives are interconnected in a
system.
r Incremental encoders via DFIN or multiple encoder input. An input must be selected.
r No ramp functions are active.
r Function is enabled via the control (PLC) by selecting the "handwheel function"
operating mode (C05010 ="2") and setting bEnable to TRUE.
Single cycle
r Operation per HMI or keys via control (PLC)
r Function starts with a FALSEÊTRUE edge at the bCycle input.
r Ramp functions are active.
r The data for production speed are used as parameters.
r The cycle starts at the current position and stops at the stop position (C05011).
Continuous operation
r Operation per HMI or keys via control (PLC)
r Function starts with a FALSEÊTRUE edge at the bContinuous input. The function
remains active as long as the TRUE level is applied.
r Ramp functions are active.
r The data for production speed are used as parameters.
r The cycle starts at the current position and stops at the stop position (C05011).
This FB provides the "Virtual master" function for the "Electronic gearbox" application.
L_LdVirtualMasterV
dnExtMaster_s dnState
Virtual master
bEnable bBusy
bContinuous dnSpeedOut_s
bManualJogCw
bManualJogCcw
dnHandwheel_s
bStopInstant
bEnable2ndSpeedSet
AxisData
Inputs
Outputs
Parameters
4.65.1 Functions
Handwheel function
r Ensures an easy control of a machine run. The clutched drives are interconnected in a
system.
r Incremental encoders via DFIN or multiple encoder input. An input must be selected.
r No ramp functions are active.
r Function is enabled via the control (PLC) by selecting the "handwheel function"
operating mode (C05100 ="2") and setting bEnable to TRUE.
Continuous operation
r Operation per HMI or keys via control (PLC)
r Function starts with a FALSEÊTRUE edge at the bContinuous input. The function
remains active as long as the TRUE level is applied.
r Ramp functions are active.
r The data for production speed are used as parameters.
L_LdZeroDetect
dnState
dnPosIn_p bZero
0 0
AxisData
Inputs
Outputs
This FB decodes the status output signal dnState of SB LS_Positioner into individual
boolean status signals for further use in the FB interconnection.
r The functionality corresponds to a converter "DINTBOOL", but the boolean outputs of
this FB have the same names according to their meaning.
L_PosDecoderStatePositioner
dnState bActive
bDone
bAccDec
bCcw
bInTarget
bZeroPos
bErrActive
bAbort
Positioner state
bRev
bMinSpeedOverride
bMinAccOverride
bLimPos
bLimProfile
bLimDir
bLimAbort
bStoppingActive
bErrNoHomePos
bErrNoCycleLength
bErrMode
bErrModeChange
bErrProfileData
bErrPG
Inputs
Outputs
The boolean outputs have the following meaning when the value is TRUE:
This FB decodes the status output signal dnState of FB LS_PosSequencer into individual
boolean status signals for further use in the FB interconnection.
r The functionality corresponds to a converter "DINTBOOL", but the boolean outputs of
this FB have the same names according to their meaning.
L_PosDecoderStateSequencer
dnState bReady
Sequencer state
bStarted
bPause
bStop
bReset
bErrActive
bErrBranch
bWatchDogActive
Inputs
Outputs
The boolean outputs have the following meaning when the value is TRUE:
L_PosGetProfile
dnState
dwProfileNumber1 PROFILE ProfileData1
dwProfileNumber2 1 ProfileData2
dwProfileNumber3 2 ProfileData3
dwProfileNumber4 3 ProfileData4
...
dwProfileNumber5 ProfileData5
FBData
Inputs
Outputs
L_PosGetProfileData
ProfileData dnState
PROFILE
dwPositioningMode
PositioningMode
dnTargetPosition_p
Position
dnSpeed_s
Speed
dnAcceleration_x
Acceleration
dnDeceleration_x
Deceleration
dnJerk
Jerk
dnEndSpeed_s
End speed
NextProfileData
Next profile
NextTPProfileData
Next TP profile
dnTPWindowStart
TP window start
dnTPWindowEnd
TP window end
dwTPConfig
TP configuration
dwProfileNumber
Profile number
Inputs
Outputs
L_PosGetTableAcc
dnState
dwAccTableNumber1 ACC dnAcceleration1_x
dwAccTableNumber2 1 dnAcceleration2_x
dwAccTableNumber3 2 dnAcceleration3_x
dwAccTableNumber4 3 dnAcceleration4_x
...
dwAccTableNumber5 dnAcceleration5_x
FBData
Inputs
Outputs
L_PosGetTableJerk
dnState
dwJerkTableNumber1 JERK dnJerk1
dwJerkTableNumber2 1 dnJerk2
dwJerkTableNumber3 2 dnJerk3
dwJerkTableNumber4 3 dnJerk4
...
dwJerkTableNumber5 dnJerk5
FBData
Inputs
Outputs
L_PosGetTablePos
dnState
dwPosTableNumber1 POS dnPosition1_p
dwPosTableNumber2 1 dnPosition2_p
dwPosTableNumber3 2 dnPosition3_p
dwPosTableNumber4 3 dnPosition4_p
...
dwPosTableNumber5 dnPosition5_p
FBData
Inputs
Outputs
L_PosGetTableSpeed
dnState
dwSpeedTableNumber1 SPEED dnSpeed1_s
dwSpeedTableNumber2 1 dnSpeed2_s
dwSpeedTableNumber3 2 dnSpeed3_s
dwSpeedTableNumber4 3 dnSpeed4_s
...
dwSpeedTableNumber5 dnSpeed5_s
FBData
Inputs
Outputs
This FB is used to store and manage (traversing) profiles and to teach positions, speeds,
accelerations/decelerations and S-ramp times.
r A profile describes a motion request which can be implemented by the
SB LS_Positioner into a rotary motion.
r 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 sequence 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.
r Another important task of this FB is the conversion of the table values according to the
scaling selected in the SB LS_DriveInterface.
L_PosPositionerTable
dnState
Profiles
dwProfileNumber bBusy
1 2 100
MODE ProfileData
POS FBData
SPEED
ACC
DEC
JERK
bPosTeach VTPOS
11
dwPosTableNumber
dnPos_p 100
100
bSpeedTeach VTSPEED
11
dwSpeedTableNumber
dnSpeed_s 100
50
bAccTeach VTACC
11
dwAccTableNumber
dnAcc_x 100
50
bJerkTeach VTJERK
11
dwJerkTableNumber
dnJerk 100
50
AxisData
Inputs
Outputs
Parameters
1 Profile no. 1
... ...
100 Profile no. 100
To simplify parameter handling, the four most important physical sizes for profile
parameters are stored in separate "variable tables".
Profile 1 VTPOS
Mode 3 1
Position 3 VTPOS 2
Speed 1 ...
Acceleration 1 VTACC 100
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
r In 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.
r If e.g. in 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.
Note!
Exceptions are the values to be "taught". These must be selected in the internal
measuring system.
In addition to the direct value entry via parameters, the values can also be stored in the
variable tables 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 master control):
Note!
For absolute positioning, the home position must be known!
If an absolute positioning process (positioning modes 1 ... 2 and 11 ... 16) is
started although the home position is not known, a fault 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.
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)
• Not possible with "modulo" traversing range.
2 Absolute TP
Like mode 1, but with profile change on touch probe detection.
Touch probe positioning. (C 169)
5 Relative
The axis is traversed by a distance.
• Reference for the distance is the target position of the profile executed 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. (C 169)
7 Speed
Continuous constant travel.
• Only possible with "unlimited" and "limited" traversing range
• This mode does not approach a defined position, but follows the profile.
• 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. (C 169)
11 Absolute CW
The axis travels in CW direction to an absolute position.
• Only possible with "modulo" traversing range
• Reference for the absolute position is zero position.
• In this direction the zero position of the axis can be overtravelled.
12 Absolute CW TP
Like mode 11, but with profile change on touch probe detection.
Touch probe positioning. (C 169)
Positioning mode
13 Absolute CCW
The axis travels in CCW direction to an absolute position.
• Only possible with "modulo" traversing range
• Reference for the absolute position is zero position.
• In this direction the zero position of the axis can be overtravelled.
14 Absolute CCW TP
Like mode 13, but with profile change on touch probe detection.
Touch probe positioning. (C 169)
15 Absolute shortest way
The axis travels in best time to an absolute position.
• Only possible with "modulo" traversing range
• 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°
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 profile specified under the profile parameter "TP sequence profile".
r Here the current actual position is stored at the time of the touch probe activation (by
a touch probe sensor).
r In the following relative positioning process, the "residual path" to this stored position
is travelled 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
[4-3] Examples for a "residual path positioning" after a touch probe is detected
r 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.
r 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 residual 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 target cannot be approached since in this case the reversing movement is
not permissible.
Further constellations are possible in connection with profile chaining in which
an approach of the target position is impossible.
r Example: For the selection of the touch probe channel "DIGIN 8" and the response to a
positive edge only, the decimal value "16384" must be set in C04721.
L_PosProfileInterface
dwPositioningMode ProfileData
dnTargetPosition_p
dnSpeed_s
dnAcceleration_x
dnDeceleration_x
dnJerk
dnEndSpeed_s
NextProfileData
NextTPProfileData
dnTPWindowStart
dnTPWindowEnd
dwTPConfig
dwProfileNumber
Inputs
Outputs
This FB is used to store and manage up to four traversing profiles and to "teach" target
positions.
r A profile describes a motion request which then can be implemented by the
SB LS_Positioner into a rotary motion.
r 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.
r Unlike the FB L_PosPositionerTable, this FB does not use any variable tables, but profile
parameter data is directly entered under the assigned codes.
r Furthermore, the position assigned to the input dnExtPos_p will be used as target
position if profile number 1 is selected.
r Another important task of this FB is the conversion of the table values according to the
scaling selected in the SB LS_DriveInterface.
L_PosProfileTable
dwProfileNumber dnState
Profiles
dnExtPos_p bBusy
1 2 3 4
bPosTeach MODE ProfileData
dwTeachProfileNumber POS FBData
SPEED
dnTeachPos_p
ACC
AxisData
Inputs
Outputs
Parameters
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
2
Deceleration unit/t 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!
Exceptions are the values to be "taught". These must be selected in the internal
measuring system.
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 master control):
Note!
For absolute positioning, the home position must be known!
If an absolute positioning process (positioning modes 1 ... 2 and 11 ... 16) is
started although the home position is not known, a fault 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.
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)
• Not possible with "modulo" traversing range.
2 Absolute TP
Like mode 1, but with profile change on touch probe detection.
Touch probe positioning. (C 181)
5 Relative
The axis is traversed by a distance.
• Reference for the distance is the target position of the profile executed 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. (C 181)
7 Speed
Continuous constant travel.
• Only possible with "unlimited" and "limited" traversing range
• This mode does not approach a defined position, but follows the profile.
• 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. (C 181)
11 Absolute CW
The axis travels in CW direction to an absolute position.
• Only possible with "modulo" traversing range
• Reference for the absolute position is zero position.
• In this direction the zero position of the axis can be overtravelled.
12 Absolute CW TP
Like mode 11, but with profile change on touch probe detection.
Touch probe positioning. (C 181)
Positioning mode
13 Absolute CCW
The axis travels in CCW direction to an absolute position.
• Only possible with "modulo" traversing range
• Reference for the absolute position is zero position.
• In this direction the zero position of the axis can be overtravelled.
14 Absolute CCW TP
Like mode 13, but with profile change on touch probe detection.
Touch probe positioning. (C 181)
15 Absolute shortest way
The axis travels in best time to an absolute position.
• Only possible with "modulo" traversing range
• 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°
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 profile specified under the profile parameter "TP sequence profile".
r Here the current actual position is stored at the time of the touch probe activation (by
a touch probe sensor).
r In the following relative positioning process, the "residual path" to this stored position
is travelled 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
[4-2] Examples for a "residual path positioning" after a touch probe is detected
r 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 residual 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 target cannot be approached since in this case the reversing movement is
not permissible.
Further constellations are possible in connection with profile chaining in which
an approach of the target position is impossible.
Note!
For a complete sequence control, the FB L_PosSequencer must be connected
with further blocks, like the FB L_PosPositionerTable (profile data record
management) and the SB LS_Positioner (basic function "positioning").
L_PosSequencer
bStart dnState
bPause bProgramBusy
bCancel dwActStep
bBreak
bReset bEnablePositioner
bStartProfile
bProfileDone bAbortProfile
bHomingDone bRestartProfile
dwProfileNumber
dwStartStep
dwBranch1 bEnableHoming
dwBranch2 bActivateHoming
dwBranch3
dwBranch4 bEnableFollower
dwBranch5
dwDigitalInputs dwDigitalOutputs
Inputs
Outputs
General parameters
Note!
The parameters of the different actions for the sequence tables are described in
the corresponding action subchapters.
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
Overview
Detailed information of the action types can be found in the following subchapters.
End
To define the program end in the sequence table, the action of type "Program end" is
available.
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").
Parameters
The available actions 1 ... 50 are indicated via the subcodes 1 ... 50.
In order to switch digital output signals 25 actions of type "Switching" are available.
r Each action can set two selectable bits of the output signal dwDigitalOutputs to "0" or
"1" independently of each other.
Parameters
The available actions 1 ... 25 are indicated via the subcodes 1 ... 25.
25 actions of type "Branching" are available for conditional and unconditional branches
(jumps).
r 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 processing ("0" or "1"). If not, the sequence step is processed in the sequence
table.
Parameters
The available actions 1 ... 25 are indicated via the subcodes 1 ... 25.
1
2
n
For variable branches (jumps) 5 actions of type "Variable branching" are available.
r The branch to one of 20 possible steps is executed depending on the input signal
dwBranch1...5 at the time of processing.
r 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.
r Example: When the input signal dwBranch2 has the value "15" at the time of
processing the action 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).
Parameters
The available actions 1 ... 5 are indicated via the subcodes 1 ... 5.
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
"Homing".
Required connections
This functionality requires the following connections between the FB and the basic
function "Homing":
r Output bEnableHoming input HM_bEnable of the SB LS_Homing.
r Output bActivateHoming input HM_bActivateHoming of the SB LS_Homing.
r Output HM_bDone of the SB LS_Homing input bHomingDone.
Sequence
1. The call of the action causes the enable of the SB LS_Positioner to be deactivated and
the SB LS_Homing to be enabled instead.
2. 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 SB LS_Positioner is enabled again and the program flow is continued.
25 actions of type "Wait" are available for the insertion into the program flow.
r 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.
Parameters
The available actions 1 ... 25 are indicated via the subcodes 1 ... 25.
000
Set
10 actions of type "Set counter" are available for setting one of the 10 available counters to
a certain starting value.
r The 10 actions of type "Set counter" are not firmly assigned to the 10 counters.
r You can use, for instance, an action of type "Set counter" to set a counter to a value and
later you can set the same counter with another action of type "Set counter" to another
value.
Parameters
The available actions 1 ... 10 are indicated via the subcodes 1 ... 10.
3
12
4
Parameters
The available actions 1 ... 25 are indicated via the subcodes 1 ... 25.
Standby
5 actions of type "Stand-by" are available for the temporary activation of a setpoint
follower.
r For this purpose the output bEnableFollower must be connected with the enable input
bEnable of the corresponding setpoint follower (SB LS_SpeedFollower,
SB LS_TorqueFollower or SB LS_PositionFollower).
r The enable signal at the output bEnableFollower is applied until the condition for
exiting the stand-by is met.
Parameters
The available actions 1 ... 5 are indicated via the subcodes 1 ... 5.
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.
r The FB considers a modulo measuring system and the cycle of the selected machine
parameters.
L_SdDelayComp
dnPosIn_p Out dnPosOut_p
In
AxisData
Dt
Inputs
Outputs
Parameters
Note!
The FB is not suitable for clocked (modulo) positions!
L_SdDifferentiate
dnPosIn_p dnSpeedOut_s
AxisData
Inputs
Outputs
This FB provides the "stretching factor" function for the application "Electronic gearbox".
r The calculation is made with remainder handling.
L_SdFactor
dnIn dnOut
dnNumerator bLimit
a
dnDenominator
b
bNegOutput
Inputs
Outputs
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.
L_SdGetPosition
dnPosIn_p dnState
AxisData bError
Inputs
Outputs
Parameters
This FB uses the transmitted machine parameters and converts a speed into a velocity. The
converted value is displayed in C04283.
L_SdGetSpeed
dnSpeedIn_s dnState
AxisData bError
Inputs
Outputs
Parameters
L_SdIntegrate
dnSpeedIn_s dnPosOut_p
bLoadStartPos bError
dnStartPos_p
AxisData
Inputs
Outputs
L_SdLimitSpeed
dnSpeedIn_s 0 dnState
1 dnSpeedOut_s
dnUpperLimit_s bLimit
dnLowerLimit_s CTRL
bEnable
AxisData
Inputs
Outputs
Parameters
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.
L_SdPosToUnit
dnPosIn_p dnPosOut_e4
[inc]W[unit]
AxisData bLimit
Inputs
Outputs
Parameters
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.
r The ramp function generator has a setting function for directly loading the value into
the internal ramp generator.
r The acceleration/deceleration times are set via C04340.
r An S-ramp time for a jerk-free acceleration can be set in C04341.
r The slope dy/dt of the output signal dnOut_n is output to the output dnDeltaOut_n.
L_SdRampGenerator
dnIn_n dnOut_n
bLoadStartValue
dnStartValue_n dnDeltaOut_n
Inputs
Outputs
Parameters
By setting bLoadStartValue to TRUE the ramp function generator is loaded with the signal
at dnStartValue_n.
r This value is accepted immediately and output to nOut_n. No s-shape ramp-up or
ramp-down takes place.
r As long as bLoadStartValue = TRUE , the ramp function generator is inhibited.
dnIn_n
dnOut_n
dnDeltaOut_n
C04340
0 t
C04340
C04349
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 C04349.
r The jerk is entered in [s] until the ramp function generator operates with the maximum
acceleration.
This FB is used for the runtime compensation of position signals that are, for instance,
transmitted by means of a bus system.
r The output signal leads the input signal by the last position difference.
r 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. (C 204)
L_SdRuntimeComp
dnPosIn_p dnPosOut_p
bEnable
Inputs
Outputs
This FB serves to indicate the machine parameters of a master drive. The FB prepares the
machine parameters which you define with the physical units of the machine via
parameters for the internal measuring system of the profile generator.
r The FB outputs a pointer to the data structure with the prepared machine parameters
at the output AxisData.
r To transmit the machine parameters to another FB, which requires these data for
internal calculations, the output AxisData must simply be connected with the input of
the same name of the corresponding FB.
L_SdSetAxisData
AxisData
Outputs
Parameters
L_SdSetPosition
dnState
L_SdSetAxisData
dnSetPos_p
C04240 AxisData AxisData bError
C04241
C04242
1. The machine data are specified with the physical units of the machine via the
corresponding parameters. n
2. The FB converts the machine parameters into the internal measuring system of the
profile generator and provides the data at the output AxisData as a data structure for
transfer to other FBs. o
– A modulo measuring system will always be output.
4.89.3 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
n Machine parameters of the master value encoder
o Machine parameters of the drive/motor
Settings
O Tip!
The machine parameters for the drive/motor are set via the drive interface
(SB LS_DriveInterface).
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
dnSetPos_p for further processing within the FB interconnection.
L_SdSetPosition
dnState
dnSetPos_p
AxisData bError
Inputs
Outputs
Parameters
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 dnSetSpeed_s
for further processing in the FB interconnection.
L_SdSetSpeed
dnState
dnSetSpeed_s
AxisData bError
Inputs
Outputs
Parameters
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.
L_SdSpeedFilter
dnSpeedIn_s 0 dnSpeedOut_s
1
bEnable bLimitActive
AxisData
Inputs
Outputs
Parameters
1 Filter is active
L_SdSpeedSet
dnSpeedSetpointIn_n dnSpeedSetpointOut_n
C04221
bInvertSetpoint C04223
C04207 C04208
bHoldOutput dnTargetSetpoint_n
bStop 0 C04222
0 bSetpointOutInTarget
1
Fixed setpoints 0
1 C04224
C04200/1
200 %
C04201 1
bJog1
20 C04200/15 15
bStoppingActive
bJog2
21 0
bJog4
22 15 Tir Tif Jerk time
bJog8
23 C04202 C04203 C04204 0
1
C04212/1 C04213/1 C04214/1
C04215
bTi1
20 C04212/15 C04213/15 C04214/15 15
bTi2
21 0
bTi4
22 15
bTi8
23
bLoadExtSpeedSetpoint
dnExtSpeedSetpoint_n
bLoadActualMotorSpeed
C04225 Gear reference speed
dnActualMotorSpeed_n
C04226 Gear speed setpoint
dwRampMode
C04227 Machine reference speed
C04220 C04228 Machine speed setpoint
AxisData
C04229 Unit for speed
Inputs
Outputs
Parameters
1 Stop requested
C04239/4...7 Jog input 1 ... 8
0 Jog input not active • Display of the input signals bJog1
... bJog8.
1 Jog input active
C04239/8...11 Ti input 1 ... 8
0 Ti input not active • Display of the input signals bTi1 ...
bTi8.
1 Ti input active
C04239/12 Load external setpoint
0 Loading not active • Display of the input signal
bLoadExtSpeedSetpoint.
1 Load external setpoint
C04239/13 Load motor speed
0 Loading not active • Display of the input signal
bLoadActualMotorSpeed.
1 Load motor speed
r The signals in the setpoint path are limited to ±200.00 % of the reference speed.
r The signal at dnSpeedSetpointIn_n is first led via the function "Selection of fixed
setpoints".
r A selected fixed setpoint switches the input dnSpeedSetpointIn_n inactive and the
subsequent signal conditioning uses the selected fixed setpoint.
r By setting the input bInvertSetpoint to TRUE the input signal of the ramp generator can
be inverted.
In addition to the direct setpoint selection via the input dnSpeedSetpointIn_n fixed
setpoints can be preset in C04200/1...15.
r These fixed setpoint can be called binary coded any time via the selection inputs
bJog1 ... bJog8, so 15 options are available.
r The number of selected inputs to be assigned depends on the number of required fixed
setpoints.
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
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
r tir and tif are the desired times for changing between w1 and w2.
r S-ramps are possible if an S-ramp time is selected.
r The tir/tif values are converted into the required Ti times according to the following
formula:
100 % 100 %
T = t ⋅ ----------------------- T = t ⋅ -----------------------
ir ir w2 – w1 if if w2 – w1
16 different Tir, Tif and S-ramp times can be selected via parameters for the ramp
generator.
r 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:
Parameters Information
C04225 Gearbox reference speed
C04226 Gearbox setpoint speed
C04227 Machine reference speed
C04228 Machine setpoint speed
Parameters Information
C04221 Input setpoint
C04222 Target setpoint
C04223 Output setpoint
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.
L_SdSpeedToUnit
dnSpeedIn_s dnSpeedOut_e4
[rpm]W[unit]
AxisData bLimit
Inputs
Outputs
Parameters
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.
r The output setting does not depend on whether the switching range is approached by
the positive or negative side.
r 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).
L_SdSwitchPoint
bEnable rotary axis bSwitchPoint1
dnPosIn_p bSwitchPoint2
AxisData bSwitchPoint3
bSwitchPoint4
linear axis
bSwitchPoint5
bSwitchPoint6
bSwitchPoint7
bSwitchPoint8
Inputs
Outputs
Parameters
1 Switch on
C04402/1...8 -2147483648 unit 2147483648 Switch-on limit - switching range
1 ... 8
C04403/1...8 -2147483648 unit 2147483648 Switch-off limit - switching range
1 ... 8
C04404/1...8 Enable - switching range 1 ... 8
0 Switching range not enabled
1 Switching range enabled
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.
r The FB considers a modulo measuring system and the cycle of the selected machine
parameters.
L_SdTouchProbe
dnActPos_p dnTpPos_p
dnTpTimeLag dnTpPosDiff_p
TP
bTpReceived
AxisData
Inputs
Outputs
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 interpolation 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
n Actual position point 1
o Actual position point 2
Residual time (dnTpTimeLag)
4.96.2 Example
Connections required for a touch probe detection via the digital input DI4:
LS_TouchProbe4 L_SdTouchProbe
TP4_dnTouchProbeTimeLag dnActPos_p dnTpPos_p
TP4_bTouchProbeReceived dnTpTimeLag TP dnTpPosDiff_p
TP4_bTouchProbeLost bTpReceived
TP4_bNegativeEdge AxisData
This FB uses the transmitted machine parameters and converts a position defined in the
real unit of the machine into an internal position.
L_SdUnitToPos
dnPosIn_e4 dnPosOut_p
[unit]W[inc]
AxisData bLimit
Inputs
Outputs
Parameters
This FB uses the transmitted machine parameters and converts a speed defined in the real
unit of the machine into an internal speed.
L_SdUnitToSpeed
dnSpeedIn_e4 dnSpeedOut_s
[unit]W[rpm]
AxisData bLimit
Inputs
Outputs
Parameters
L_Tb5And
bIn1 bOut
bIn2 &
bIn3
bIn4
bIn5
Inputs
Outputs
O Tip!
If you want to combine less than five signals, set the unused inputs to TRUE or
assign several inputs with the same signal.
L_Tb5Nand
bIn1 bOut
bIn2 &
bIn3
bIn4
bIn5
Inputs
Outputs
O Tip!
If you want to combine less than five signals, set the unused inputs to TRUE or
assign several inputs with the same signal.
L_Tb5Nor
bIn1 bOut
bIn2 ³1
bIn3
bIn4
bIn5
Inputs
Outputs
O Tip!
If you want to combine less than five signals, set the unused inputs to FALSE.
L_Tb5Or
bIn1 bOut
bIn2 ³1
bIn3
bIn4
bIn5
Inputs
Outputs
O Tip!
If you want to combine less than five signals, set the unused inputs to FALSE.
L_Tb5Xor
bIn1 bOut
bIn2 =1
bIn3
bIn4
bIn5
Inputs
Outputs
This FB connects one of eight analog input signals through to the output.
r The input is selected via the input dwSelect.
L_Tb8Select
dnIn1 1 dnOut
dnIn2
2
dnIn3
3
dnIn4
4
dnIn5
5
dnIn6
6
dnIn7
7
dnIn8
8
dwSelect
Inputs
Outputs
This function block converts a bipolar signal into a unipolar signal, i.e. the absolute value
of the input signal is generated.
L_TbAbs
dnIn dnOut
Inputs
Outputs
L_TbAdd
dnIn1 dnOut
dnIn2 a+b
Inputs
Outputs
L_TbAddLim
dnIn1 dnOut
dnIn2 a+b bLimitActive
Inputs
Outputs
L_TbAnd
bIn1 bOut
bIn2 &
Inputs
Outputs
Function
This function block compares two signals of the "DINT" data type and can be used e.g. for
implementing a trigger.
r The comparison function is selected via C04085.
r In contrast to the FB L_TbCompare_n, the window and hysteresis of this FB can be
adjusted via inputs instead of parameters.
L_TbCompare
dnIn1 bOut
dnIn2
dnTolerance
dnHysteresis
Inputs
Outputs
Parameters
FALSE
dnIn1
dnHysteresis dnHysteresis
dnIn2
O Tip!
With this function, you must use the FB in a fast task, to achieve optimum
sampling of the signals.
dnIn1
dnHysteresis
dnTolerance
dnIn2
dnTolerance
dnHysteresis
t
bOut
TRUE
FALSE
t
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
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
This function block compares two scaled signals and can be used e.g. for implementing a
trigger.
r The comparison function is selected via C04080.
r In contrast to the FB L_TbCompare, the window and hysteresis of this FB can be
adjusted via parameters instead of inputs.
L_TbCompare_n
dnIn1_n bOut
dnIn2_n
Inputs
Outputs
Parameters
FALSE
dnIn1_n
C04082 C04082
dnIn2_n
O Tip!
With this function, you must use the FB in a fast task, to achieve optimum
sampling of the signals.
dnIn1_n
C04082
C04081
dnIn2_n
C04081
C04082
t
bOut
TRUE
FALSE
t
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
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
L_TbCount
bClockUp dnActualCount
bClockDown bCountEQReference
bLoadStartValue CTRL
dnStartValue
dnReferenceValue
Inputs
Outputs
Parameters
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.
L_TbCurve
dnIn_n dnOut_n
Inputs
Outputs
Parameters
The up to nine points of the characteristic are selected via the subcodes of C04101 and
C04102.
r 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%
r Based on the last valid pair of variates, an extrapolation is executed to the end of the x
value range (±200 %) on both sides.
r In the characteristic modes 1 and 2, only the range of the characteristic entered in the
quadrants I. and IV. is used.
Special cases
r 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 -150 % -75 % 85 % 160 % 0% 0% 0% 0% 0%
X4, Y4
X3, Y3
dnIn_n
X2, Y2
X1, Y1
-200 % / -200 %
[4-1] Example: Characteristic in the characteristic mode 0 (entire range) with jump
r If only one point X1 is defined in the negative range, X2 exists with the Lenze setting
"0 %" as valid point (X2 > X1) 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 40 % 0% 0% 0% 0% 0% 0% 0% 0%
X1, Y1 X2, Y2
dnIn_n
-200 % / -200 %
[4-2] Example: Characteristic in characteristic mode 0 (entire range) with only one defined point and X1 < 0
1 2 3 4 5 6 7 8 9
x 120 % 0% 0% 0% 0% 0% 0% 0% 0%
Y 40 % 0% 0% 0% 0% 0% 0% 0% 0%
X1, Y1
dnIn_n
-200 % / -200 %
[4-3] 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 -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 %
Example
1 2 3 4 5 6 7 8 9
x -140 % -90 % 70 % 130 % 0% 0% 0% 0% 0%
Y -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 %
Example
1 2 3 4 5 6 7 8 9
x -140 % -90 % 70 % 130 % 0% 0% 0% 0% 0%
Y -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 %
L_TbDeadband
dnIn dnOut
dnDeadband bLimitActive
Inputs
Outputs
Parameters
Function
dnDeadBand
(C04065 = 1) (dnDeadBand = 0)
dnIn dnIn
L_TbDeadband_n
dnIn_n dnOut_n
bLimitActive
Inputs
Outputs
Parameters
Function
dnOut_n dnOut_n
C04061
C04060
(C04061 = 1) (C04060 = 0 %)
dnIn_n dnIn
L_TbDelay
bIn bOut
0 t
Inputs
Outputs
Parameters
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.
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.
L_TbDifferntiate
dnIn dnOut
bLimitActive
Inputs
Outputs
Parameters
Function
Considering the signalling technique, the FB consists of the series connection of a time-
discrete differentiator and a PT1 filter.
r 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
[4-1] Formula for the output signal when the filter is switched off
dnOut
1s
TCycle
t
TCycle
r 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
L_TbDiv
dnNumerator dnOut
a
dnDenominator dnResidualValue
b
Inputs
Outputs
This FB carries out a division. The divisor (denominator) must be specified as a scaled signal
[%].
r With a divisor of 100 % the dividend is output unchanged.
r The value output to output dnOut is internally limited to ±231-1.
r The output bLimitActive displays if a limitation is active.
L_TbDiv_n
dnNumerator dnOut
a
dnDenominator_n bLimitActive
b
Inputs
Outputs
This FB is created as a D flipflop and can be used to evaluate and save digital signal edges.
r With each rising edge at the clock input bClk the current status of the input bD is saved
internally and output to the output bOut.
r The flipflop can be reset by a TRUE signal at the reset input bR which has the highest
priority.
L_TbFlipFlopD
bD bQ
D Q
bClk
bR bQn
CLR Q
Inputs
Outputs
Function
bD
TRUE
FALSE
t
bClk
TRUE
FALSE
t
bR
TRUE
FALSE
t
bQ
TRUE
FALSE
t
This FB is created as an RS flipflop and can be used to evaluate and save digital signals.
r 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.
r If both inputs are applied with a FALSE signal, the output state is maintained.
L_TbFlipFlopRS
bS bQ
S Q
bR bQn
R Q
Inputs
Outputs
Function
bS bR bQ bQn
FALSE FALSE unchanged unchanged
TRUE FALSE TRUE FALSE
FALSE TRUE FALSE TRUE
TRUE TRUE FALSE TRUE
L_TbGainLim
dnIn dnOut
bLimitActive
Inputs
Outputs
Parameters
Function
dnOut
31
2 -1
C04030 > 1
dnIn
31
-2 -1
L_TbIntegrate
dnIn dnOut
bLoadStartValue bLimitActive
dnStartValue
Inputs
Outputs
L_TbLimit
dnIn dnOut
MaxLimit
dnMaxLimit
MinLimit
dnMinLimit
Inputs
Outputs
O Tip!
The lower limit must always be set smaller than the upper limit, otherwise the
value "0" is output at dnOut.
L_TbLimit_n
dnIn_n dnOut_n
C04070
C04071
bLimitActive
Inputs
Outputs
Parameters
O Tip!
The lower limit must always be set smaller than the upper limit, otherwise the
value "0" is output at dnOut_n.
L_TbMul
dnIn1 dnOut
dnIn2 a*b
Inputs
Outputs
This FB carries out a multiplication. The multiplicand (2. factor) must be specified as a
scaled signal [%].
r The value output to output dnOut is internally limited to ±231-1.
r The output bLimitActive displays if a limitation is active.
L_TbMul_n
dnIn1 dnOut
dnIn2_n a*b bLimitActive
Inputs
Outputs
L_TbMulLim
dnIn1 dnOut
dnIn2 a*b bLimitActive
Inputs
Outputs
L_TbNand
bIn1 bOut
bIn2 &
Inputs
Outputs
Function
This function block inverts the sign of the input signal, i.e. the input signal is multiplied by
-1 and is then output.
L_TbNeg
dnIn dnOut
*(-1)
Inputs
Outputs
L_TbNor
bIn1 bOut
bIn2 ³1
Inputs
Outputs
Function
L_TbNormalize
dnIn dnOut_n
bLimitActive
Inputs
Outputs
Parameters
Function
dnIn
dnOut_n = -------------------- ⋅ 100 %
C04035
L_TbNot
bIn bOut
1
Inputs
Outputs
Function
bin bOut
FALSE TRUE
TRUE FALSE
L_TbOr
bIn1 bOut
bIn2 ³1
Inputs
Outputs
Function
This FB can be used to generate a Boolean square wave signal with a variable high/low
time.
L_TbOscillator
bEnable bOut
Inputs
Outputs
Parameters
4.134.1 Function
If the FB is activated by setting bEnable to TRUE, the set square wave signal is output to
bOut, starting with the HIGH state:
bEnable
C04020
bOut
C04021
r If bEnable is reset to FALSE, the output bOut is also immediately reset to FALSE.
Enter only integer multiples of the task cycle time via C04020 and C04021 for a maximum
accuracy of the rectangular signal to be output.
r 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.
r With a minimum timing below the task cycle time the permanent level arises according
to the following rule: bOut = TRUE if C04020 > C04021.
r 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 ms 2 ms ON time, OFF time ≥ T TRUE: 3 ms, FALSE: 2 ms
ON time > OFF time
3 ms 3 ms 2 ms ON time ≥ T TRUE
OFF time < T
ON time > OFF time
3 ms 2 ms 1 msec On time, OFF time < T TRUE
ON time > OFF time
3 ms 1 msec 2 ms On time, OFF time < T FALSE
ON time < OFF time
3 ms 2 ms 2 ms On time, OFF time < T FALSE
ON time = OFF time
3 ms 2 ms 3 ms ON time < T FALSE
OFF time ≥ T
ON time < OFF time
3 ms 3 ms 5 ms ON time, OFF time ≥ T TRUE: 3 ms, FALSE: 6 ms
ON time < OFF time
OFF time ≠ (n * T)
3 ms 5 ms 3 ms ON time, OFF time ≥ T TRUE: 6 ms, FALSE: 3 ms
ON time > OFF time
ON time ≠ (n * T)
3 ms 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 ms 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 ms 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)
L_TbPIController
dnSetValue
dnActValue dnOut
bLoadIntValue bLimitActive
dnIntValue
bReset
Inputs
Outputs
Parameters
Function
The FB contains the calculation of the system deviation and the PI controller.
r 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
L_TbPT1Filter
dnIn dnOut
Inputs
Outputs
Parameters
Function
V=1
T t
L_TbRateAction
dnIn dnOut
bLimitActive
Inputs
Outputs
Parameters
Function
The input signal is differentiated by means of the parameterised rate time constant TV and
added to the input signal.
r The differentiation of the input signal can be switched off when the rate time constant
TV is set to "0.000 s". In this case the differential component is zero and the input signal
output unchanged to the output.
r When the rate time constant TV is greater than "0.000 s" the following step response is
the result:
dnOut
TV
1+
TCycle
t
TCycle
C04055: Rate time constant TV
L_TbSampleHold
dnIn dnOut
S&H
bLoad
Inputs
Outputs
This function block switches between two signals. The switch-over is controlled via a
boolean input signal.
r So it is, for example, possible to switch between an initial diameter and a calculated
diameter during winding.
L_TbSelect
dnIn1 0 dnOut
dnIn2
1
bSelectIn2
Inputs
Outputs
L_TbSub
dnIn1 dnOut
dnIn2 a-b
Inputs
Outputs
L_TbSubLim
dnIn1 dnOut
dnIn2 a-b bLimitActive
Inputs
Outputs
This FB serves to evaluate digital signal edges and converts them into time-defined and
retriggerable pulses.
r This function corresponds to the function "TRANS" of the 9300 servo inverter.
L_TbTransition
bIn bOut
0 t
Inputs
Outputs
Parameters
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.
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 FALSE/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.
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 signal 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.
L_TbXor
bIn1 bOut
bIn2 =1
Inputs
Outputs
Function
5 Index
Numbers C4204 227
1-from-8-selector 244 C4207 227
C4208 227
A C4212 227
Absolute value 245 C4213 227
Acceleration table 153 C4214 227
Addition 246, 247 C4215 227
AND with five inputs 239 C4220 227
AND with two inputs 248 C4221 227
Application notes 11 C4222 227
C4223 227
B C4224 227
Bit combination 52, 53, 54 C4225 227
Bit demultiplexer 48, 57, 79 C4226 228
Bit multiplexer 44, 45, 47 C4227 228
Bit operation 61, 62, 63, 69, 70, 71, 72, 73, 74 C4228 228
C4229 228
C C4237 228
C4000 306 C4238 228
C4001 306 C4239 228
C4005 260 C4240 217
C4010 270 C4241 217
C4011 270 C4242 217
C4020 294 C4243 217
C4021 294 C4244 217
C4030 280 C4245 218
C4035 291 C4248 218
C4040 298 C4249 218
C4050 273 C4251 218
C4055 300 C4258 218
C4060 268 C4259 218
C4061 268 C4271 207
C4065 266 C4273 207
C4070 284 C4276 221
C4071 284 C4278 221
C4080 254 C4281 208
C4081 254 C4283 208
C4082 254 C4286 222
C4085 249 C4288 222
C4090 297 C4290 223
C4091 297 C4291 223
C4095 297 C4294 224
C4096 297 C4295 224
C4100 261 C4299 224
C4101 261 C4300 211
C4102 261 C4301 211
C4190 43 C4303 211
C4200 227 C4304 211
C4201 227 C4305 211
C4202 227 C4310 237
C4203 227 C4312 212
E L_DcSetBitOfDWord 73
Edge evaluation 306 L_DcSetBitOfWord 74
E-mail to Lenze 316 L_DcSpeed_sToNorm_n 75
Error tripping 83 L_DcSpeed_sToSpeed_v 76
Extrapolation 106 L_DcSpeed_vToSpeed_s 77
L_DcWordTo2Bytes 78
F L_DcWordToBits 79
Feedback to Lenze 316 L_DcWordToByte 80
Flipflop 277 L_DcWordToDWord 81
Following error monitoring 117 L_DcWordToInt 82
Function block 12 L_DevApplErr 83
Function library 12 L_DevBrakeStateDecoder 85
L_DevDriveInterfaceStateDecoder 87
G L_DevHomingStateDecoder 89
Gain 280 L_DevLimiterStateDecoder 91
General delay 272 L_DevManualJogStateDecoder 93
L_LdAddOffsetCyclic 95
I L_LdClutchAxisP 96
Imprint 2 L_LdClutchV 99
Integration 110, 209, 282 L_LdConvAxisV 102
L_LdDifferentiateCyclic 105
L L_LdExtrapolate 106
L_Dc2BytesToWord 40 L_LdIntegrateCyclic 110
L_Dc2WordsToDWord 41 L_LdLinearCoupling 112
L_Dc4BytesToDWord 42 L_LdMarkSync 115
L_DcBitShift 43 L_LdMonitFollowError 117
L_DcBitsToByte 44 L_LdMPot 119
L_DcBitsToDWord 45 L_LdPosCtrlLin 121
L_DcBitsToWord 47 L_LdSetAxisVelocity 124
L_DcByteToBits 48 L_LdStateDecoder 128
L_DcByteToWord 49 L_LdSyncOperation 131
L_DcDIntToDWord 50 L_LdToolControl 134
L_DcDIntToInt 51 L_LdVirtualMasterP 137
L_DcDWordBitand 52 L_LdVirtualMasterV 142
L_DcDWordBitor 53 L_LdZeroDetect 146
L_DcDWordBitxor 54 L_PosDecoderStatePositioner 147
L_DcDWordTo2Words 55 L_PosDecoderStateSequencer 149
L_DcDWordTo4Bytes 56 L_PosGetProfile 150
L_DcDWordToBits 57 L_PosGetProfileData 151
L_DcDWordToDInt 59 L_PosGetTableAcc 153
L_DcDWordToWord 60 L_PosGetTableJerk 155
L_DcGetBitOfByte 61 L_PosGetTablePos 156
L_DcGetBitOfDWord 62 L_PosGetTableSpeed 157
L_DcGetBitOfWord 63 L_PosPositionerTable 158
L_DcIntToDInt 64 L_PosProfileInterface 171
L_DcIntToWord 65 L_PosProfileTable 173
L_DcNorm_aToNorm_n 66 L_PosSequencer 182
L_DcNorm_nToNorm_a 67 L_SdDelayComp 204
L_DcNorm_nToSpeed_s 68 L_SdDifferentiate 205
L_DcResetBitOfByte 69 L_SdFactor 206
L_DcResetBitOfDWord 70 L_SdGetPosition 207
L_DcResetBitOfWord 71 L_SdGetSpeed 208
L_DcSetBitOfByte 72 L_SdIntegrate 209
T
Touch probe evaluation 235
Type converter 49, 50, 51, 59, 60, 64, 65, 80, 81, 82
U
Up/downcounter 259
V
Virtual clutch (electronic gearbox) 99
Virtual clutch (synchronism) 96
Virtual master (electronic gearbox) 142
Virtual master (synchronism) 137
X
XOR with five inputs 243
XOR with two inputs 309
Z
Zero crossing detection 146
)(('%$&.
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@[Link]
316 L