Gets negative position limit

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

Syntax

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

Return Value

Type: Double
Negetive position limit

Examples

Synchronous method
 Copy imageCopy
private static void Sample()
{
    using (IEALConnection ealConnection = new EALConnection())
    {
        ealConnection.Connect("192.168.0.10");                                        // Connect to real drive
        IAxis axis = ealConnection.Motion.Axes[0];        // Gets axis
        axis.SetPositionLimitNeg(10000);                       // Sets negetive position limit
        double positionLimitNeg = axis.GetPositionLimitNeg();  // positionLimitNeg will be 10000
    }
}
Asynchronous method
 Copy imageCopy
private static void Sample()
{
    using (IEALConnection ealConnection = new EALConnection(true))  // Asynchronous flag is true
    {
        ealConnection.Connect("192.168.0.10");                                        // Adds Connect task to queue        
        IAxis axis = ealConnection.Motion.Axes[0];        // Gets axis
        axis.SetPositionLimitNeg(10000);                       // Sets negetive position limit task will be added to the queue
        ealConnection.WaitUntilQueueComplete();                         // Waits untill queue completes
        double positionLimitNeg = axis.GetPositionLimitNeg();  // positionLimitNeg will be 10000
    }
}

See Also