MC_DIRECTION

(* Defines the direction of the movement (e.g. for a modulo axis). *)
TYPE MC_DIRECTION :
(
    mcDirectionNonModulo        := 0, (* Position is interpreted as absolute position. *)
    mcDirectionPositive         := 1, (* Moves in positive direction. *)
    mcDirectionShortestWay      := 2, (* The direction of movement depends on whether the positive direction of movement or the negative direction of movement is the shortest distance from the target position. *)
    mcDirectionNegative         := 3 (* Moves in negative
                                       direction. *)
)
END_TYPE

TF5410
TwinCAT 3 Motion Collision Avoidance

TF5420
TwinCAT 3 Motion Pick-and-Place

MC Group with Pick-and-Place

MC Group Coordinated Motion

MC_DIRECTION 1:

MC_DIRECTION 2:

MC_DIRECTION 3:

MC_DIRECTION wird verwendet, um die Bewegungsrichtung bei der Modulo-Positionierung anzugeben. Die Modulo-Positionierung ist nur bei periodischen Systemen anwendbar. Bei offenen Systemen, wie z. B. offene Tracks, wird nur der Wert mcDirectionNonModulo akzeptiert.

mcDirectionNonModulo: Die Position wird immer als absolute Position interpretiert.

mcDirectionPositive: Positive Bewegungsrichtung

mcDirectionNegative: Negative Bewegungsrichtung

mcDirectionShortestWay: Die Bewegungsrichtung hängt davon ab, ob die positive Bewegungsrichtung oder die negative Bewegungsrichtung den kürzesten Abstand zur Zielposition hat.

MC_DIRECTION 4:

In Kombination mit der Tc2_MC2 oder Tc3_Mc3Definitions Bibliothek kann es sein, dass der Datentyp nicht eindeutig aufgelöst werden kann (ambiguous use of name 'MC_Direction'). Dann muss jeweils der Namespace bei Verwendung des Datentyps mit angegeben werden (Tc3_Mc3PlanarMotion.MC_DIRECTION bzw. Tc3_Mc3Definitions.MC_DIRECTION bzw. Tc2_MC2.MC_DIRECTION).

Voraussetzungen

Entwicklungsumgebung

Zielplattform

Einzubindende
SPS Bibliotheken

TwinCAT V3.1.4024.7

TF5400 Advanced Motion Pack V3.1.10.1

PC oder
CX (x86 oder x64)

Tc3_McCollisionAvoidance, Tc3_McCoordinatedMotion, Tc2_MC2