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 is used to specify the direction of movement during modulo positioning. Modulo positioning is only applicable to periodic systems. For open systems such as open tracks, only the value mcDirectionNonModulo is accepted.

mcDirectionNonModulo: The position is always interpreted as an absolute position.

mcDirectionPositive: Positive direction of movement

mcDirectionNegative: Negative direction of movement

mcDirectionShortestWay: The direction of movement depends on whether the positive direction or the negative direction has the shortest distance to the target position.

MC_DIRECTION 4:

In combination with the Tc2_MC2 or Tc3_Mc3Definitions library it is possible that the data type cannot be resolved unambiguously (ambiguous use of name 'MC_Direction'). In this case the namespace must be specified when using the data type (Tc3_Mc3PlanarMotion.MC_DIRECTION or Tc3_Mc3Definitions.MC_DIRECTION or Tc2_MC2.MC_DIRECTION).

Requirements

Development environment

Target platform

PLC libraries
to include

TwinCAT V3.1.4024.7

TF5400 Advanced Motion Pack V3.1.10.1

PC or
CX (x64)

Tc3_McCollisionAvoidance, Tc3_McCoordinatedMotion, Tc2_MC2