org.reprap
Interface AxisMotor

All Known Implementing Classes:
GCodeStepperMotor, GenericStepperMotor, NullStepperMotor, SNAPStepperMotor

public interface AxisMotor


Nested Class Summary
static class AxisMotor.Range
           
 
Method Summary
 void dda(int speed, int x1, int deltaY)
           
 void dispose()
          Dispose of this object
 int getPosition()
           
 AxisMotor.Range getRange(int speed)
           
 void homeReset(int speed)
           
 boolean isAvailable()
          Is the comms working?
 boolean queuePoint(int endX, int endY, int movementSpeed, int control)
          Add an XY point to the firmware buffer for plotting Only works for recent firmware.
 void refreshPreferences()
          Reload the preferences
 void resetPosition()
           
 void seek(int speed, int position)
           
 void seekBlocking(int speed, int position)
           
 void setIdle()
           
 void setMaxTorque(int maxTorque)
           
 void setPosition(int position)
           
 void setSpeed(int speed)
          Set the motor speed (or turn it off)
 void setSync(byte syncType)
           
 void stepBackward()
           
 void stepForward()
           
 void waitTillNotBusy()
           
 boolean wasAvailable()
           
 

Method Detail

dispose

void dispose()
Dispose of this object


waitTillNotBusy

void waitTillNotBusy()
                     throws java.io.IOException
Throws:
java.io.IOException

refreshPreferences

void refreshPreferences()
Reload the preferences


queuePoint

boolean queuePoint(int endX,
                   int endY,
                   int movementSpeed,
                   int control)
                   throws java.io.IOException
Add an XY point to the firmware buffer for plotting Only works for recent firmware.

Parameters:
endX -
endY -
movementSpeed -
Returns:
Throws:
java.io.IOException

setSpeed

void setSpeed(int speed)
              throws java.io.IOException
Set the motor speed (or turn it off)

Parameters:
speed - A value between -255 and 255.
Throws:
ReprapException
java.io.IOException

setIdle

void setIdle()
             throws java.io.IOException
Throws:
java.io.IOException

stepForward

void stepForward()
                 throws java.io.IOException
Throws:
java.io.IOException

stepBackward

void stepBackward()
                  throws java.io.IOException
Throws:
java.io.IOException

resetPosition

void resetPosition()
                   throws java.io.IOException
Throws:
java.io.IOException

setPosition

void setPosition(int position)
                 throws java.io.IOException
Parameters:
position -
Throws:
java.io.IOException

isAvailable

boolean isAvailable()
Is the comms working?

Returns:

wasAvailable

boolean wasAvailable()

getPosition

int getPosition()
                throws java.io.IOException
Returns:
current position of the motor
Throws:
java.io.IOException

seek

void seek(int speed,
          int position)
          throws java.io.IOException
Parameters:
speed -
position -
Throws:
java.io.IOException

seekBlocking

void seekBlocking(int speed,
                  int position)
                  throws java.io.IOException
Parameters:
speed -
position -
Throws:
java.io.IOException

getRange

AxisMotor.Range getRange(int speed)
                         throws java.io.IOException,
                                IncomingMessage.InvalidPayloadException
Parameters:
speed -
Returns:
range of the motor
Throws:
java.io.IOException
IncomingMessage.InvalidPayloadException

homeReset

void homeReset(int speed)
               throws java.io.IOException,
                      IncomingMessage.InvalidPayloadException
Parameters:
speed -
Throws:
java.io.IOException
IncomingMessage.InvalidPayloadException

setSync

void setSync(byte syncType)
             throws java.io.IOException
Parameters:
syncType -
Throws:
java.io.IOException

dda

void dda(int speed,
         int x1,
         int deltaY)
         throws java.io.IOException
Parameters:
speed -
x1 -
deltaY -
Throws:
java.io.IOException

setMaxTorque

void setMaxTorque(int maxTorque)
                  throws java.io.IOException
Parameters:
maxTorque - An integer value 0 to 100 representing the maximum torque percentage
Throws:
java.io.IOException