Gets actual torque

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

Syntax

C#
double GetActualTorque()
Visual Basic
Function GetActualTorque As Double
Visual C++
double GetActualTorque()

Return Value

Type: Double
Actual torque

Examples

Synchronous method
 Copy imageCopy
private static void Sample()
{
    using (IEALConnection ealConnection = new EALConnection(true))  // Asynchronous flag is true
    {
        ealConnection.Connect("192.168.0.10");                            // Eatablishes connection, with default least time, busy timeout and with max delay
        IAxis axis = ealConnection.Motion.Axes[0];        // Gets axis
        axis.Movement.Power(false);                // Powers-off 
        axis.SetCondition(AxisCondition.AXIS_CONDITION_ACTIVE_PARAMETERIZATION);   // Activates to parameterisation mode
        ealConnection.Initialize();                         // Initializes the axis
        axis.SetCondition(AxisCondition.AXIS_CONDITION_ACTIVE);                    // Activates to Operating mode
        axis.Movement.Power(true);                 // Powers-on.
        axis.Movement.TorqueControl(10, 1);        // Run axis in given torque value
        ealConnection.Wait(1000);                           // Axis object waits for one seconds
        double actualTorque = axis.GetActualTorque(); // Actual torque will be 10
    }
}
Asynchronous method
 Copy imageCopy
private static void Sample()
{
   using (IEALConnection ealConnection = new EALConnection(true))  // Asynchronous flag is true
   {
       ealConnection.Connect("192.168.0.10");                            // Eatablishes connection, with default least time, busy timeout and max delay
                                                   // task will be added to queue
       IAxis axis = ealConnection.Motion.Axes[0];        // Gets axis
       axis.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 task will be added to queue
       axis.SetCondition(AxisCondition.AXIS_CONDITION_ACTIVE);                    // Activate Operating mode task will be added to queue
       axis.Movement.Power(true);                 // Powers-on task will be added to queue.
       axis.Movement.TorqueControl(10, 1);        // Run axis in given torque value task will be added to the queue
       ealConnection.Wait(1000);                           // Axis object waits for one seconds task will be added to queue
       ealConnection.WaitUntilQueueComplete();             // Waits untill all the task in the queue gets executed
       double actualTorque = axis.GetActualTorque(); // Actual torque will be 10
   }
}

See Also