Defines all necessary properties and methods of a real Axis
Namespace: EAL.Interfaces.MotionAssembly: EAL (in EAL.dll) Version: 1.1.5.0 (1.1.5.0)
Syntax
C# |
---|
public interface IAxis |
Visual Basic |
---|
Public Interface IAxis |
Visual C++ |
---|
public interface class IAxis |
Examples
Synchronous method
Asynchronous method
Copy | |
---|---|
private void Sample() { using (IEALConnection ealConnection = new EALConnection()) { ealConnection.Connect("192.168.0.254"); // Connects IAxis axis = ealConnection.Motion.Axes[0]; // Gets axis axis.Movement.Power(false); // Powers-off axis.SetCondition(AxisCondition.AXIS_CONDITION_ACTIVE_PARAMETERIZATION); // Switch to parameterisation mode ealConnection.Initialize(); // Initializes the drive axis.SetCondition(AxisCondition.AXIS_CONDITION_ACTIVE); // Switch to operating mode /// axis.Movement.Power(true); // Powers-on. axis.Movement.MoveVelocity(500, 100, 100, 0); // Runs drive at 500 rpm } } |
Copy | |
---|---|
private void Sample() { using (IEALConnection ealConnection = new EALConnection()) // Asynchronous method { ealConnection.Connect("192.168.0.254"); // Connect 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); // Switch to parameterisation mode task will be added to queue ealConnection.Initialize(); // Initializes task will be added to queue axis.SetCondition(AxisCondition.AXIS_CONDITION_ACTIVE); // Switch to operating mode task 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 drive at 500 rpm task will be added to queue ealConnection.WaitUntilQueueComplete(); // Waits untill all the task in the queue completes } } |