Gets the modulo value
Namespace: EAL.Interfaces.MotionAssembly: EAL (in EAL.dll) Version: 1.1.5.0 (1.1.5.0)
Syntax
| C# |
|---|
double GetModulo() |
| Visual Basic |
|---|
Function GetModulo As Double |
| Visual C++ |
|---|
double GetModulo() |
Return Value
Type: DoubleModulo value
Examples
Synchronous method
Asynchronous method
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.SetModulo(3600); // Sets modulo to 3600 double moduloValue = axis.GetModulo(); // moduloValue will be 3600 } } | |
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.SetModulo(3600); // Set modulo to 3600 task will be added to queue ealConnection.WaitUntilQueueComplete(); // Wait untill queue completes double moduloValue = axis.GetModulo(); // moduloValue will be 3600 } } | |