MoveToPoint()

Fährt direkt die Position eines konfigurierten PTP-Segments an, ohne die Segmente zwischen Startposition und dem Zielpunkt abzuarbeiten.
Syntax:
METHOD MoveToPoint : HRESULT
VAR_INPUT
bCommand: BOOL; // TRUE to start move, FALSE to abort running move or rewind old command
MoveIdx: INT; // Selected cluster of segments (By default: Cluster 1 - negative direction / Cluster 2 - positive direction)
TargetSegment: INT; // Destination segment of the selected cluster (0 to move to the last used segment in a cluster)
END_VAR
Eingänge
Name | Typ | Beschreibung |
---|---|---|
bCommand | BOOL |
|
MoveIdx | INT | Ausgewählter Cluster (gruppierte PTP-Segmente). In der Default-Initialisierung umfasst Cluster 1 die Bewegungen in negativer Richtung und Cluster 2 die in positiver Richtung. |
TargetSegment | INT | Zielsegment innerhalb des ausgewählten Clusters. Wird eine |
Ausgänge
Name | Typ | Beschreibung |
---|---|---|
MoveToPoint | HRESULT | Rückgabewert mit Feedback zum Erfolg der Ausführung. |
Voraussetzungen
Entwicklungsumgebung | Zielplattform | Einzubindende SPS-Bibliotheken |
---|---|---|
TwinCAT 4026 >= v3.1.4026.16 | PC oder CX (x64, x86) | Tc3_PlasticBaseApplication (>= v12.12.0.0) |