Moves axis in specific velocity

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

Syntax

C#
void MoveVelocity(
	double velocity,
	double acceleration,
	double deceleration,
	short jerk
)
Visual Basic
Sub MoveVelocity ( 
	velocity As Double,
	acceleration As Double,
	deceleration As Double,
	jerk As Short
)
Visual C++
void MoveVelocity(
	double velocity, 
	double acceleration, 
	double deceleration, 
	short jerk
)

Parameters

velocity
Type: System..::..Double
Velocity in which axis needs to be rotating
acceleration
Type: System..::..Double
Acceleration to be taken to reach the given velocity
deceleration
Type: System..::..Double
Deceleration to be taken to reach zero velocity
jerk
Type: System..::..Int16
Jerk to be taken to reach the given acceleration

Examples

Synchronous
 Copy imageCopy
private void Sample()
{
    using (IEALConnection ealConnection = new EALConnection())
    {
        ealConnection.Connect("192.168.0.10");;                            //  Establishes connection
        // Gets axis
        IAxis axis = ealConnection.Motion.Axes[0]; 
        axis.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);                    // Activates Operating mode
        axis.Movement.Power(true);                 // Powers-on task will be added to queue.
        axis.Movement.MoveVelocity(500, 100, 100, 0);  // Runs axis in 500 rpm
        ealConnection.WaitUntilQueueComplete();        // Wait untill all tasks in the queue completes
        Thread.Sleep(1000);                    // Thread sleeps for one second
        double actualVelocity = axis.GetActualVelocity();  // actualVelocity will be 500
    }
 }
Asynchronous method
 Copy imageCopy
private void Sample()
{
    using (IEALConnection ealConnection = new EALConnection(true))  // Asynchronous flag is true
    {
        ealConnection.Connect("192.168.0.10");;                            // Eastablishes connection
        // Gets axis
        IAxis axis = ealConnection.Motion.Axes[0]; 
        axis.Movement.Power(false);                // Powers-off task will be added to the queue
        axis.SetCondition(AxisCondition.AXIS_CONDITION_ACTIVE_PARAMETERIZATION);   // Activate parameterisation mode will be added to queue
        ealConnection.Initialize();                    // Initializes the axis
        axis.SetCondition(AxisCondition.AXIS_CONDITION_ACTIVE);                    // Activate Operating mode will be added to queue
        axis.Movement.Power(true);                 // Powers-on task will be added to queue.
        axis.Movement.MoveVelocity(500, 100, 100, 0);  // Runs axis in 500 rpm task will be added to the queue
        ealConnection.WaitUntilQueueComplete();        // Wait untill all tasks in the queue completes
        Thread.Sleep(1000);                    // Thread sleeps for one second
        double actualVelocity = axis.GetActualVelocity();  // actualVelocity will be 500
    }
 }

See Also