Phcc Interface Library for .NET and COM v0.2.1.0 reference library |
Device..::.DoaSendStepperMotor Method |
Device Class See Also Send Feedback |
Sends data to a stepper motor daughtercard.
Namespace:
Phcc
Assembly:
Phcc (in Phcc.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Sub DoaSendStepperMotor ( _ deviceAddr As Byte, _ motorNum As Byte, _ direction As MotorDirections, _ numSteps As Byte, _ stepType As MotorStepTypes _ ) |
C# |
---|
public void DoaSendStepperMotor( byte deviceAddr, byte motorNum, MotorDirections direction, byte numSteps, MotorStepTypes stepType ) |
Parameters
- deviceAddr
- Type: System..::.Byte
The device address of the specific stepper motor daughtercard to send data to.
- motorNum
- Type: System..::.Byte
The motor number (1-4) of the motor to control.
- direction
- Type: Phcc..::.MotorDirections
A value from the MotorDirections enumeration, indicating the direction (clockwise or counterclockwise) to move the motor (this ultimately depends on how the motor is wired to the card).
- numSteps
- Type: System..::.Byte
A byte, whose value (0-127) represents the number of discrete steps to command the stepper motor to move, in the indicated direction.
- stepType
- Type: Phcc..::.MotorStepTypes
A value from the MotorStepTypes enumeration, indicating whether to move the motor in full-steps or in half-steps.