Connects to the drive
Namespace: EAL.EALConnectionAssembly: EAL (in EAL.dll) Version: 1.1.5.0 (1.1.5.0)
Syntax
C# |
---|
public void Connect( string ipAddress, Nullable<bool> mulipleIp ) |
Visual Basic |
---|
Public Sub Connect ( ipAddress As String, mulipleIp As Nullable(Of Boolean) ) |
Visual C++ |
---|
public: virtual void Connect( String^ ipAddress, Nullable<bool> mulipleIp ) sealed |
Parameters
- ipAddress
- Type: System..::..String
Ip address of the drive.
- mulipleIp
- Type: System..::..Nullable<(Of <(<'Boolean>)>)>
Multiple ip flag.
Implements
IEALConnection..::..Connect(String, Nullable<(Of <<'(Boolean>)>>))Examples
Synchronous method
Asynchronous method
Copy | |
---|---|
private static void Sample() { using (IEALConnection ealConnection = new EALConnection()) { ealConnection.Connect("192.168.0.10", true); // Connects with default least time, default busy timeout,default max delay and validates the multiple ips. On deviation logs the error. 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 basic settings axis.SetCondition(AxisCondition.AXIS_CONDITION_ACTIVE); // Activates to Operating mode axis.Movement.Power(true); // Powers-on axis.Movement.Home(); // Executes homing axis.Movement.MoveAbsolute(10000, 400, 100, 100, 0); // Moves the axis to position 10000 axis.Movement.Wait(100000); // Waits until last movement command completes } } |
Copy | |
---|---|
private static void Sample() { using (IEALConnection ealConnection = new EALConnection(true)) // Asynchronous flag is true { ealConnection.Connect("192.168.0.10", true); // Connect task, with default least time, default busy timeout, // default max delay task will be added to queue (On deviation logs the error) 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 basic settings 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.Home(); // Homing task will be added to queue. axis.Movement.MoveAbsolute(10000, 400, 100, 100, 0); // Moves the axis to position 10000 // task will be added to queue. axis.Movement.Wait(100000); // Waits until last movement command completes // task will be added to queue. ealConnection.WaitUntilQueueComplete(); // Now it will wait untill all are executed. } } |