Lenze DDS Function library TpDrv Bedienungsanleitung Seite 13

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 17
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 12
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.
Seitenansicht 12
1 2 ... 8 9 10 11 12 13 14 15 16 17

Kommentare zu diesen Handbüchern

Keine Kommentare