Movement property, holds all movement related methods.

Namespace: EAL.Interfaces.Motion
Assembly: EAL (in EAL.dll) Version: 1.1.5.0 (1.1.5.0)

Syntax

C#
IMovement Movement { get; }
Visual Basic
ReadOnly Property Movement As IMovement
	Get
Visual C++
property IMovement^ Movement {
	IMovement^ get ();
}

Property Value

Type: IMovement

Examples

Synchronous method
 Copy imageCopy
private static void Sample()
{
    using (IEALConnection ealConnection = new EALConnection())
    {
        ealConnection.Connect("192.168.0.10");            // Connect to the drive
        IAxis axis = ealConnection.Motion.Axes[0];        // Gets axis
        IMovement movement = axis.Movement;               // Gets movement object.
        movement.Power(false);                             // Powers-off 
        axis.SetCondition(AxisCondition.AXIS_CONDITION_ACTIVE_PARAMETERIZATION);   // Activates parameterisation mode 
        ealConnection.Initialize();                                 // Initializes the axis
        axis.SetCondition(AxisCondition.AXIS_CONDITION_ACTIVE);                    // Executes activate
        movement.Power(true);                              // Executes power on
        movement.Home();                                   // Executes homing
        movement.MoveAbsolute(10000, 400, 100, 100, 0);    // Moves the axis to position 10000 
        movement.Wait(100000);                             // Waits until last movement command completes 
        movement.MoveRelative(2000, 50, 100, 100, 0);      // Moves axis another 2000 degrees from 
        movement.Wait(100000);                             // Waits until last movement command completes        
    }
}
Asynchronous method
 Copy imageCopy
private static void Sample()
{
    using (IEALConnection ealConnection = new EALConnection(true))  // Asynchronous flag is true
    {
        ealConnection.Connect("192.168.0.10");           // Connect to the real axis task will be added to queue.
        IAxis axis = ealConnection.Motion.Axes[0];        // Gets axis
        IMovement movement = axis.Movement;               // Gets movement object.
        movement.Power(false);                             // Powers-off task will be added to the queue
        axis.SetCondition(AxisCondition.AXIS_CONDITION_ACTIVE_PARAMETERIZATION);   // Activate parameterisation mode task will be added to queue
        ealConnection.Initialize();                                 // Initializes the axis
        axis.SetCondition(AxisCondition.AXIS_CONDITION_ACTIVE);                    // Activate Operating mode will be added to queue
        movement.Power(true);                              // Powers-on task will be added to queue.
        movement.Home();                                   // Homing task will be added to queue.
        movement.MoveAbsolute(10000, 400, 100, 100, 0);    // Moves the axis to position 10000 
                                                            // task will be added to queue.
        movement.Wait(100000);                             // Waits until last movement command completes 
                                                            // task will be added to queue.
        movement.MoveRelative(2000, 50, 100, 100, 0);      // Moves axis another 2000 degrees from 
                                                            // the current position task will be added to queue.
        movement.Wait(100000);                             // Waits until last movement command completes
                                                            // task will be added to queue.
        ealConnection.WaitUntilQueueComplete();                     // Now it will wait untill all task in the queue are being executed.
    }
}

See Also