Loads default parameters
Namespace: EAL.Interfaces.MotionAssembly: EAL (in EAL.dll) Version: 1.1.5.0 (1.1.5.0)
Syntax
C# |
---|
void LoadDefaultParameters() |
Visual Basic |
---|
Sub LoadDefaultParameters |
Visual C++ |
---|
void LoadDefaultParameters() |
Remarks
To load default parameters into a drive, it should be in parameterization mode
Examples
Synchronous method
Asynchronous method
Copy | |
---|---|
private void Sample() { using (IEALConnection ealConnection = new EALConnection()) { ealConnection.Connect("192.168.0.10"); // Connects to drive IAxis axis = ealConnection.Motion.Axes[0]; // Gets axis axis.Movement.Power(false); // Powers-off axis.SetCondition(AxisCondition.AXIS_CONDITION_ACTIVE_PARAMETERIZATION); // Switches to parameterisation mode axis.LoadDefaultParameters(); // Loads default parameters ealConnection.Initialize(); // Initializes axis.SetCondition(AxisCondition.AXIS_CONDITION_ACTIVE); // Switchs to operating mode axis.Movement.Power(true); // Powers-on axis.Movement.MoveVelocity(500, 100, 100, 0); } } |
Copy | |
---|---|
private void Sample() { using (IEALConnection ealConnection = new EALConnection(true)) // Asynchronous flag is true { ealConnection.Connect("192.168.0.10"); // 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); // Activate parameterisation mode task will be added to queue axis.LoadDefaultParameters(); // Load default parameters task will be added to queue ealConnection.Initialize(); // Initialize task will be added to queue axis.SetCondition(AxisCondition.AXIS_CONDITION_ACTIVE); // Activate Operating mode will be added to queue axis.Movement.Power(true); // Powers-on task will be added to queue. axis.Movement.MoveVelocity(500, 100, 100, 0); ealConnection.WaitUntilQueueComplete(); } } |