Touch-Probe-Positionierung
Voraussetzung
-
Die Achse ist freigeben ( xReadyForMotion = TRUE).
-
Ein gültiges Fahrprofil ist in den Profildaten definiert
Profildaten-Management
-
Ein gültiges Fahrprofil (1 ... 15) ist in wProfileNumber ausgewählt.
Ausführung
Es wird zunächst das Fahrprofil gemäß der Profildaten ausgeführt.
Wird nun während der Positionierung ein Touch-Probe erkannt, so wird automatisch zu dem Profil gewechselt, das im Profilparameter eTpProfile vorgegeben ist.
Zu der Zeit, an welcher der Touch-Probe durch einen Sensor erkannt wird, wird die aktuelle Position der Achse gespeichert. Direkt an dieser Position wird nun das Fahrprofil aus dem Profilparameter eTpProfile ausgeführt.

Beispiel: Diagramme zum Profilwechsel nach einem Touch-Probe
|
|
Die Profilparameter lrTpWindowNeg und lrTpWindowPos begrenzen den Bereich (Touch-Probe-Fenster), in dem ein Touch-Probe erkannt werden kann. Haben beide Parameter den Wert '0', so ist die Touch-Probe-Erkennung für das gesamte Fahrprofil oder den gesamten Fahrbereich aktiviert.
Wird kein Touch-Probe erkannt und wurde das Fahrprofil vollständig ausgeführt,so wird anschließend das im Profilparameter eSequenceProfile eingestellte Profil ausgeführt.
Mit einer FALSE ä TRUE-Flanke am Eingang xExecutePositioning wird folgende Profilverkettung ausgeführt:
|
wProfileNumber |
1 |
2 |
|---|---|---|
|
ePositioningMode |
velocity |
absolute |
|
IrPosition |
500 |
500 |
|
IrVelocity |
300 |
150 |
|
IrAcceleration |
300 |
500 |
|
IrDeceleration |
300 |
500 |
|
IrJerk |
7200 |
7200 |
|
IrFinalVelocity |
0 |
0 |
|
IrTpWindowNeg |
0 |
0 |
|
IrTpWindowPos |
0 |
0 |
|
wTpProfile |
2 |
0 |
|
wSequenceProfile |
0 |
0 |
|
Nr |
xExecute
|
xValue
|
xConstant
|
xProfile
|
xDriveIn
|
eTMState |
INFO |
|---|---|---|---|---|---|---|---|
|
1 |
FALSE ä TRUE |
FALSE |
FALSE ä TRUE |
FALSE ä TRUE |
TRUE æ FALSE |
STANDBY
|
Die Achse beschleunigt mit 300 units/s² auf die Geschwindigkeit von Fahrprofil 1 von 300 units/s. |
|
2 |
TRUE |
FALSE ä TRUE æ FALSE |
TRUE æ FALSE |
TRUE æ FALSE |
FALSE ä TRUE |
MOVEREL
|
Sobald ein Touchprobeereignis scRecData.xValueStored auslöst, wird das Profil 2 aktiviert und die Achse positioniert auf die absolute Zielposition 500 units. |
Start-Fahrprofil gemäß der Profildaten
Fahrprofil aus dem Profilparameter eTpProfile
