Clears the error

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

Syntax

C#
void ClearError()
Visual Basic
Sub ClearError
Visual C++
void ClearError()

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
        axis.ClearError();             // Clears errors                
    }
}
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
        axis.ClearError();             // Clear error task will be added to queue
        ealConnection.WaitUntilQueueComplete(); // Wait until all tasks in the queue are being executed
    }
}

See Also