3 functions/function blocks, L_tpconfigdiginx − touch probe input configuration, Function library lenzetpdrv.lib – Lenze DDS Function library TpDrv User Manual
Page 13: 3functions/function blocks, Functions/function blocks

Function library LenzeTpDrv.lib
Functions/function blocks
3.1
L_TpConfigDigInX − Touch probe input configuration
3−1
L
LenzeTpDrv.lib EN 1.2
3
Functions/function blocks
3.1
L_TpConfigDigInX − Touch probe input configuration
Function
With this function you can configure the signal sensitivity and dead time compensation of the touch
probe inputs from a POU.
·
This makes, for instance, length measurements easy.
Declaration
INT
L_TpConfigDigInX (byDigInSel, byEdgeDetection, dnTpDelay_p);
Transfer parameters
Data type
Info/possible settings
byDigInSel
Byte
Touch probe input
9300 Servo PLC
Drive PLC
ECSxA
1 DIGIN1
ü
−
−
2 DIGIN2
ь
ь
−
3 DIGIN3
ь
ь
ь
4 DIGIN4
−
ь
ь
byEdgeDetection
Byte
Signal sensitivity
0 Rising signal
1 Falling signal
2 Rising & falling signal
3 TP detection off
dnTpDelay_p
Double integer Dead time compensation of the touch probe sensor
·
Value in [inc] referred to the touch probe source.
·
Positive values lead to dead time compensation, negative values to a delay of the touch probe
signal.
Note: dnTpDelay serves to compensate a dead time of the touch probe source used. The indication
in increments required here (normally a date would be indicated) can be calculated by multiplying
the dead time given by the manufacturer of the TP sensor by the current speed. This value (in
increments) must be written cyclically via the L_TPConfigDiginX function. The longer the time
distance between the calls of this function, the higher is the inaccuracy in the TP position detection
since changes in speed between the calls are not considered.
Return value
Data type
Value/meaning
Double integer Status
0 OK, no error.
−20 The input selected under byDigInSel has not been configured as a touch probe
input in the DDS control configuration.
−30 The input selected under byDigInSel does not support this functionality or
byDigInSel is impermissible, e. g. in case of 0 or 5.6 .
−40 byEdgeDetection is not within the valid range.