|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.foce.devices.elmo.base.Elmo
public abstract class Elmo
Base class for Elmo motor controllers.
| Field Summary | |
|---|---|
protected byte[] |
_doubleBuf
|
protected byte[] |
_intBuf
|
protected byte[] |
_junk32
Buffer for reading disposable input |
protected static org.apache.log4j.Logger |
_log4j
Log4j logger |
protected byte[] |
_longBuf
|
protected int |
_serialMode
Serial port mode. |
protected gnu.io.SerialPort |
_serialPort
Serial port for Elmo control I/O |
protected java.io.InputStream |
_serialRx
Serial port input stream |
protected java.io.OutputStream |
_serialTx
Serial port output stream |
protected byte[] |
_stringBuf
|
protected byte[] |
_terminator
Response terminator (as byte array) |
protected java.lang.String |
_terminatorString
Response terminator (as String) |
static int |
BUF128
Buffer size (128) |
static int |
BUF32
Buffer size (32) |
static java.lang.String |
CMD_ABSOLUTE_POSITION
Get/Set absolute position |
static java.lang.String |
CMD_ACCELERATION
Get/Set acceleration |
static java.lang.String |
CMD_ARM_HOMING_PROCESS
Arm homing process |
static java.lang.String |
CMD_BEGIN_MOTION
Begin motion |
static java.lang.String |
CMD_COMMUTATION_ARRAY
Get/Set commutation array parameters |
static java.lang.String |
CMD_CONT_CURRENT_LIMIT
Get/set continuous active current limit Max value=MC/2 Supply current = (active current) * (PWM duty cycle) |
static java.lang.String |
CMD_CURRENT_I_FILTER
Get/Set controller current PID gain (Integral) |
static java.lang.String |
CMD_CURRENT_P_FILTER
Get/Set controller current PID gain (Proportional) |
static java.lang.String |
CMD_DECELERATION
Get/Set motion deceleration |
static java.lang.String |
CMD_DIGITAL_INPUT_FILTER
Get/Set Digital input filter |
static java.lang.String |
CMD_DIGITIAL_OUTPUT
Get/Set digital output state |
static java.lang.String |
CMD_DISARM_HOMING_PROCESS
Disarm homing process |
static java.lang.String |
CMD_DUMP_CPU
Set hex mode off |
static java.lang.String |
CMD_ECHO
Get/Set echo mode |
static java.lang.String |
CMD_ENABLE_AUX_HOME_SEQUENCE_HI
Configure high speed input as active HI/aux homing trigger |
static java.lang.String |
CMD_ENABLE_AUX_HOME_SEQUENCE_LO
Configure high speed input as active LO/aux homing trigger |
static java.lang.String |
CMD_ENABLE_MAIN_HOME_SEQUENCE_HI
Configure high speed input as active HI/main homing trigger |
static java.lang.String |
CMD_ENABLE_MAIN_HOME_SEQUENCE_LO
Configure high speed input as active LO/main homing trigger |
static java.lang.String |
CMD_GENERAL_PURPOSE_HI
Configure high speed input as active HI/general purpose |
static java.lang.String |
CMD_GET_AUX_ENC_VELOCITY
Get velocity aux encoder velocity |
static java.lang.String |
CMD_GET_DESIRED_VELOCITY
Get commanded velocity |
static java.lang.String |
CMD_GET_DIGITAL_INPUTS
Set digital input state |
static java.lang.String |
CMD_GET_MAIN_ENC_VELOCITY
Get velocity main encoder velocity |
static java.lang.String |
CMD_GET_MOTION_STATUS
Get motion status register |
static java.lang.String |
CMD_GET_MOTOR_FAULT
Get motor fault register |
static java.lang.String |
CMD_GET_SERIAL_NUMBER
Get serial numbers SN[1] returns the vendor ID. |
static java.lang.String |
CMD_GET_STATUS_REGISTER
Get status register |
static java.lang.String |
CMD_GET_VELOCITY_ERROR
Get velocity error |
static java.lang.String |
CMD_GET_VERSION
Get software (firmware) version |
static java.lang.String |
CMD_HEXMODE
Get/Set hex mode |
static java.lang.String |
CMD_HOMING_ABSOLUTE_VALUE
Get/Set homing absolute value |
static java.lang.String |
CMD_HOMING_ACTIVATION_MODE
Get/Set homing activation mode |
static java.lang.String |
CMD_HOMING_BEHAVIOR
Get/Set homing behavior (what to do on homing event trigger) |
static java.lang.String |
CMD_HOMING_EVENT_DEFINITION
Get/Set homing event |
static java.lang.String |
CMD_HOMING_EVENT_PX
Get/Set homing event PX register behavior |
static java.lang.String |
CMD_HOMING_OUTPUT_VALUE
Get/Set homing digital output value |
static java.lang.String |
CMD_INPUT_LOGIC
Get/Set Input Functions IL[N] |
static java.lang.String |
CMD_JOGGING_VELOCITY
Get/Set jogging velocity |
static java.lang.String |
CMD_MAX_CURRENT
Get (read-only) Max active current limit |
static java.lang.String |
CMD_MOTOR_ENABLE
Motor enable state |
static java.lang.String |
CMD_PEAK_CURRENT_DURATION
Get/set peak active current duration (sec) |
static java.lang.String |
CMD_PEAK_CURRENT_LIMIT
Get/set peak active current limit (A) Max value=MC |
static java.lang.String |
CMD_POSITION_COUNTER
Get/set position counter |
static java.lang.String |
CMD_POSITION_ERROR
Get position error |
static java.lang.String |
CMD_POSITION_REF_HI
Get/Set upper reference position |
static java.lang.String |
CMD_POSITION_REF_LO
Get/Set lower reference position |
static java.lang.String |
CMD_PTP_SPEED
Get/Set max speed for PTP (point to point) motion Although SP is not used in velocity mode, it must be set so that SP<|VL[2]| and SP<|VH[2]|. |
static java.lang.String |
CMD_RELATIVE_POSITION
Get/Set relative position |
static java.lang.String |
CMD_SET_DIO5_IGNORE_HI
Configure high speed input as active HI/ignore |
static java.lang.String |
CMD_SET_DIO5_IGNORE_LO
Configure high speed input as active LO/ignore |
static java.lang.String |
CMD_SET_XMODULUS_HI
Get/Set X Modulus |
static java.lang.String |
CMD_SET_XMODULUS_LO
Get/Set X Modulus |
static java.lang.String |
CMD_SPEED_LIMIT_HI
Get/Set upper reference speed limit |
static java.lang.String |
CMD_SPEED_LIMIT_LO
Get/Set lower reference speed limit |
static java.lang.String |
CMD_SPEED_REF_HI
Get/Set upper reference speed command |
static java.lang.String |
CMD_SPEED_REF_LO
Get/Set lower reference speed command |
static java.lang.String |
CMD_STOP_DECELERATION
Get/Set stop deceleration |
static java.lang.String |
CMD_STOP_MOTION
Stop motor |
static java.lang.String |
CMD_STUCK_SPEED
Get/set min stuck motor speed (counts/s) |
static java.lang.String |
CMD_TORQUE_LIMIT
Get/set torque limit (% of continuous current limit) If <2, stuck motor protection is disabled |
static java.lang.String |
CMD_UNIT_MODE
Set/Get unit motion mode torque:1 velocity:2 position:3-5 |
static java.lang.String |
CMD_VELOCITY_I_FILTER
Get/Set controller velocity PID gain (Integral) |
static java.lang.String |
CMD_VELOCITY_P_FILTER
Get/Set controller velocity PID gain (Proportional) |
static int |
COUNTS_PER_REVOLUTION
Motor counts per revolution Note: this depends on the motor commutation and feedback mechanism. |
static double |
DBL_SEC_PER_MIN
seconds per minute (double) |
static int |
DIGITAL_INPUT_BIT0
|
static int |
DIGITAL_INPUT_BIT1
|
static int |
DIGITAL_INPUT_BIT2
|
static int |
DIGITAL_INPUT_BIT3
|
static int |
DIGITAL_INPUT_BIT4
|
static int |
DIGITAL_INPUT_BIT5
|
static int |
ECHO_DISABLED
Echo mode enabled |
static int |
ECHO_ENABLED
Echo mode disabled |
static int |
HEX_MODE_DISABLED
|
static int |
HEX_MODE_ENABLED
|
static java.lang.String |
HOMING_BEHAVIOR_NONE
Homing Behavior: do nothing |
static java.lang.String |
HOMING_BEHAVIOR_SET_OUTPUT
Homing Behavior: set digital output |
static java.lang.String |
HOMING_BEHAVIOR_STOP
Homing Behavior: stop motor |
static java.lang.String |
HOMING_EVENT_ABS
Homing PX register behavior: absolute |
static java.lang.String |
HOMING_EVENT_DIN5
Homing Event Definition: trigger main switch closure |
static java.lang.String |
HOMING_EVENT_IMMEDIATE
Homing Event Definition: trigger immediate (manual) |
static java.lang.String |
HOMING_EVENT_MAIN_HOME_SWITCH
Homing Event Definition: trigger main switch closure |
static java.lang.String |
HOMING_EVENT_NONE
Homing PX register behavior: no action |
static java.lang.String |
HOMING_EVENT_REL
Homing PX register behavior: relative |
static int |
IL_MAX_INDEX
|
static int |
IL_MAX_VALUE
|
static int |
IL_MIN_INDEX
|
static int |
IL_MIN_VALUE
|
static int |
INPUT_LOGIC_ABORT_HI
Input Logic Mode |
static int |
INPUT_LOGIC_ABORT_LO
Input Logic Mode |
static int |
INPUT_LOGIC_AUXHOME_HI
Input Logic Mode |
static int |
INPUT_LOGIC_AUXHOME_LO
Input Logic Mode |
static int |
INPUT_LOGIC_BG_HI
Input Logic Mode |
static int |
INPUT_LOGIC_BG_LO
Input Logic Mode |
static int |
INPUT_LOGIC_BOTHSTOP_HI
Input Logic Mode |
static int |
INPUT_LOGIC_BOTHSTOP_LO
Input Logic Mode |
static int |
INPUT_LOGIC_FLS_HI
Input Logic Mode |
static int |
INPUT_LOGIC_FLS_LO
Input Logic Mode |
static int |
INPUT_LOGIC_FREEWHEEL_HI
Input Logic Mode |
static int |
INPUT_LOGIC_FREEWHEEL_LO
Input Logic Mode |
static int |
INPUT_LOGIC_GP_HI
Input Logic Mode |
static int |
INPUT_LOGIC_GP_LO
Input Logic Mode |
static int |
INPUT_LOGIC_HARDSTOP_HI
Input Logic Mode |
static int |
INPUT_LOGIC_HARDSTOP_LO
Input Logic Mode |
static int |
INPUT_LOGIC_IGNORE_HI
Input Logic Mode |
static int |
INPUT_LOGIC_IGNORE_LO
Input Logic Mode |
static int |
INPUT_LOGIC_MAINHOME_HI
Input Logic Mode |
static int |
INPUT_LOGIC_MAINHOME_LO
Input Logic Mode |
static int |
INPUT_LOGIC_RLS_HI
Input Logic Mode |
static int |
INPUT_LOGIC_RLS_LO
Input Logic Mode |
static int |
INPUT_LOGIC_SOFTSTOP_HI
Input Logic Mode |
static int |
INPUT_LOGIC_SOFTSTOP_LO
Input Logic Mode |
static int |
INT_SEC_PER_MIN
seconds per minute (int) |
static byte[] |
LINE_END_BYTES
line end for terminating command |
static int |
MASK_DIGITAL_INPUT_ABORT
|
static int |
MASK_DIGITAL_INPUT_ACTIVE
|
static int |
MASK_DIGITAL_INPUT_AUXHOME
|
static int |
MASK_DIGITAL_INPUT_BG
|
static int |
MASK_DIGITAL_INPUT_FLS
|
static int |
MASK_DIGITAL_INPUT_HARDSTOP
|
static int |
MASK_DIGITAL_INPUT_INH
|
static int |
MASK_DIGITAL_INPUT_MAINHOME
|
static int |
MASK_DIGITAL_INPUT_PIN
|
static int |
MASK_DIGITAL_INPUT_PORT
|
static int |
MASK_DIGITAL_INPUT_RLS
|
static int |
MASK_DIGITAL_INPUT_SOFTSTOP
|
static int |
MAX_ACCELERATION
Absolute max allowed acceleration (counts per second^2) |
static int |
MAX_DECELERATION
Absolute max allowed deceleration (counts per second^2) |
static int |
MAX_STOP_DECELERATION
Absolute max allowed stopping deceleration (counts per second^2) |
static int |
MAX_VELOCITY_COUNTS
Absolute max allowed commanded speed (counts per second) |
static int |
MAX_VELOCITY_LIMIT
Absolute max allowed actual speed (counts per second) |
static long |
MAX_XMODULUS
min x-modulus value |
static int |
MF_ANALOG_FEEBACK
|
static int |
MF_CPU
|
static int |
MF_DATABASE
|
static int |
MF_ECAM
|
static int |
MF_FEEDBACK_LOSS
|
static int |
MF_HEARTBEAT
|
static int |
MF_INHIBIT
|
static int |
MF_MULT_HALL
|
static int |
MF_NO_START
|
static int |
MF_OK
|
static int |
MF_OVER_VOLTAGE
|
static int |
MF_PEAK_CURRENT
|
static int |
MF_POSITION
|
static int |
MF_POSITION_TRACKING
|
static int |
MF_SERVO
|
static int |
MF_SHORT_CIRCUIT
|
static int |
MF_SPEED
|
static int |
MF_SPEED_TRACKING
|
static int |
MF_STACK_OVERFLOW
|
static int |
MF_STUCK
|
static int |
MF_TEMPERATURE
|
static int |
MF_UNDER_VOLTAGE
|
static int |
MF_ZERO_NOT_FOUND
|
static int |
MIN_ACCELERATION
Absolute min allowed acceleration (counts per second^2) |
static int |
MIN_DECELERATION
Absolute min allowed deceleration (counts per second^2) |
static int |
MIN_STOP_DECELERATION
Absolute min allowed stopping deceleration (counts per second^2) |
static long |
MIN_XMODULUS
max x-modulus value |
static int |
MODE_DUAL_FEEDBACK_POSITION
Unit Mode: Dual Feedback Position |
static int |
MODE_SERIAL_LOCAL
Driver serial mode - use local serial port If this mode is selected command pacing is not used during cmdWriteRead (not an Elmo mode) |
static int |
MODE_SERIAL_RFC1722
Driver RFC1722 mode - use ethernet/serial converter e.g. |
static int |
MODE_SINGLE_FEEDBACK_POSITION
Unit Mode: Single Feedback Position |
static int |
MODE_SPEED
Unit Mode: Speed |
static int |
MODE_STEPPER
Unit Mode: Stepper |
static int |
MODE_TORQUE
Unit Mode: Torque |
static int |
MOTOR_DISABLED
|
static int |
MOTOR_ENABLED
|
static int |
MS_POS_STABLIZED
|
static int |
MS_REF_CONTROLLED
|
static int |
MS_REF_STATIONARY
|
static int |
MS_RESERVED
|
static long |
PX_MAX_VALUE
max position counter value |
static long |
PX_MIN_VALUE
min position counter value |
static int |
SR_CPU_STATUS
|
static int |
SR_CURRENT_LIMIT_ON
|
static int |
SR_DIGITAL_HALLS
|
static int |
SR_DRIVE_READ
|
static int |
SR_GAIN_SCHEDULING_ON
|
static int |
SR_HOMING_PROCESSING
|
static int |
SR_LIMIT_STOP
|
static int |
SR_MOTION_STATUS
|
static int |
SR_MOTOR_FAILURE_LATCHED
|
static int |
SR_MOTOR_ON
|
static int |
SR_OFFSET_CPU_STATUS
|
static int |
SR_OFFSET_CURRENT_LIMIT_ON
|
static int |
SR_OFFSET_DIGITAL_HALLS
|
static int |
SR_OFFSET_DRIVE_READ
|
static int |
SR_OFFSET_GAIN_SCHEDULING_ON
|
static int |
SR_OFFSET_HOMING_PROCESSING
|
static int |
SR_OFFSET_LIMIT_STOP
|
static int |
SR_OFFSET_MOTION_STATUS
|
static int |
SR_OFFSET_MOTOR_FAILURE_LATCHED
|
static int |
SR_OFFSET_MOTOR_ON
|
static int |
SR_OFFSET_PROGRAM_RUNNING
|
static int |
SR_OFFSET_RECORDER_STATUS
|
static int |
SR_OFFSET_REFERENCE_MODE
|
static int |
SR_OFFSET_STATUS
|
static int |
SR_OFFSET_UNIT_MODE
|
static int |
SR_OFFSET_USER_PROGRAM_ERROR
|
static int |
SR_PROGRAM_RUNNING
|
static int |
SR_RECORDER_STATUS
|
static int |
SR_REFERENCE_MODE
|
static int |
SR_STATUS
|
static int |
SR_UNIT_MODE
|
static int |
SR_USER_PROGRAM_ERROR
|
static long |
TM_CMD_MSEC
Command timeout (milliseconds) |
static long |
TM_EMPTY_INPUT_MSEC
default timeout during input stream flush |
static long |
TM_MOTION_WAIT_MSEC
default motion wait polling interval |
static long |
TM_POLL_DELAY_MSEC
polling delay during motor start/stop (milliseconds) |
static long |
TM_START_MSEC
motor startup timeout (milliseconds) |
static long |
TM_STOP_MSEC
motor stop timeout (milliseconds) |
| Constructor Summary | |
|---|---|
Elmo(gnu.io.SerialPort port)
Constructor |
|
| Method Summary | |
|---|---|
void |
beginMotion()
Begin motion. |
protected int |
cmdWriteRead(java.lang.String cmd,
byte[] buf,
byte[] terminator,
long timeoutMsec)
Perform one I/O transaction, (write then read). |
protected double |
cmdWriteReadDouble(java.lang.String cmd,
int len,
long timeoutMsec)
Write one command and parse the resulting return value as an double. |
protected int |
cmdWriteReadInt(java.lang.String cmd,
int len,
long timeoutMsec)
Write one command and parse the resulting return value as an integer. |
protected long |
cmdWriteReadLong(java.lang.String cmd,
int len,
long timeoutMsec)
Write one command and parse the resulting return value as a long. |
protected java.lang.String |
cmdWriteReadString(java.lang.String cmd,
int len,
long timeoutMsec)
Write one command and parse the resulting return value as a String. |
protected int |
cmdWriteReadX(java.lang.String cmd)
write a command and cleanup returned terminator (discards characters read) |
static double |
counts2rpm(int counts,
int countsPerRevolution)
Convert motor speed from counts/second to RPM |
protected void |
delay(long delayMsec)
Sleep for specified time |
protected void |
emptyInput(java.io.InputStream instream,
long timeoutMsec)
Flush the serial input stream. |
void |
emptyInput(long timeoutMsec)
Flush the serial input stream. |
int |
getAcceleration()
Get speed-up acceleration. |
double |
getContinuousCurrent()
Get continous current limit (A) |
int |
getDeceleration()
Get slow-down acceleration. |
int |
getDesiredVelocity()
Get commanded velocity. |
int |
getEchoMode()
|
int |
getEncoderVelocity()
Get encoder velocity VX. |
int |
getHexMode()
|
int |
getInputLogic(int inputBit)
Get Input Logic register. |
int |
getInputPort()
read digital input port |
java.io.InputStream |
getInputStream()
Return serial port input stream used by this controller. |
int |
getJoggingVelocity()
Get jogging velocity. |
double |
getMaxCurrent()
Get max current from read-only MC parameter (A) |
int |
getMotionStatus()
Get motion status register. |
int |
getMotorFault()
Get detailed motor fault codes. |
java.io.OutputStream |
getOutputStream()
Return serial port output stream used by this controller. |
double |
getPeakCurrent()
Get peak current limit (A) |
int |
getPeakCurrentDuration()
Get peak current duration (sec) |
protected long |
getPositionCounter()
Get motor position. |
protected long |
getPositionError()
Get motor position error. |
int |
getPTPSpeed()
|
int |
getReferenceLimitHi()
Get high reference speed limit (VH[2]) (counts/sec) |
int |
getReferenceLimitLo()
Get low reference speed limit (VL[2]) (counts/sec) |
int |
getReferenceSpeedHi()
Get high reference speed limit (VH[2]) (counts/sec) |
int |
getReferenceSpeedLo()
Get low reference speed limit (VL[2]) (counts/sec) |
int |
getSerialMode()
set serial mode |
gnu.io.SerialPort |
getSerialPort()
Return SerialPort used by this controller. |
int |
getStatusRegister()
Get status register value. |
int |
getStopDeceleration()
Get slow-down stop acceleration. |
int |
getStuckSpeed()
Get stuck speed (counts/sec) |
double |
getTorqueLimit()
Get torque limit (% continous active current) |
int |
getUnitMode()
Get controller operation mode. |
java.lang.String |
getVersion()
Return controller version information. |
long |
getXModulusHi()
|
long |
getXModulusLo()
|
abstract void |
initializeController(int serialMode,
int unitMode)
Initialize motor controller. |
boolean |
isEnabled()
Determine if motor is enabled. |
void |
jog(int velocity)
Command new velocity; changes velocity during motion based on current AC, DC and specified JV parameters Sets jogging velocity and initiates new motion. |
void |
jog(int velocity,
int acceleration,
int deceleration)
Command new velocity w/ new acceleration parameters. |
static java.lang.String |
mkCmd(java.lang.String cmd,
int value)
|
static java.lang.String |
mkCmd(java.lang.String cmd,
long value)
|
static java.lang.String |
mkCmd(java.lang.String cmd,
java.lang.String value)
|
static java.lang.String |
mkIndex(java.lang.String cmd,
int index)
|
static java.lang.String |
mkIndexCmd(java.lang.String cmd,
int index,
int value)
|
static java.lang.String |
mkIndexCmd(java.lang.String cmd,
int index,
long value)
|
static java.lang.String |
mkIndexCmd(java.lang.String cmd,
int index,
java.lang.String value)
|
void |
motionWait(long distance,
long pollMsec)
wait for relative/absolute motion to complete |
void |
ptpAbsolute(long position,
boolean wait)
Command new absolute position; changes velocity during motion based on current AC, DC and specified JV parameters Enables motor and initiates new motion. |
void |
ptpAbsolute(long position,
int velocity,
int acceleration,
int deceleration,
boolean wait)
Command new absolute position w/ new acceleration parameters. |
void |
ptpRelative(long position,
boolean wait)
Command new relative position; changes velocity during motion based on current AC, DC and specified JV parameters Enables motor and initiates new motion. |
void |
ptpRelative(long position,
int velocity,
int acceleration,
int deceleration,
boolean wait)
Command new relative position w/ new acceleration parameters. |
java.lang.String |
readRegister(java.lang.String register)
Return value (String) of Elmo register |
static int |
rpm2counts(double rpm,
int countsPerRevolution)
Convert motor speed from counts/second to RPM |
void |
setAcceleration(int value)
Set speed-up acceleration. |
void |
setContinuousCurrent(double contCurrent)
Set continuous current (A). |
void |
setDeceleration(int value)
Set slow-down acceleration. |
void |
setEchoMode(int mode)
Set echo mode |
void |
setEnable(boolean value,
long timeoutMsec)
Enable or disable the motor fulfills MotorControlIF interface |
void |
setHexMode(boolean mode)
Set hex mode. |
void |
setInputLogic(int inputBit,
int value)
Set Input Logic register. |
void |
setJoggingVelocity(double velocityRPM,
int countsPerRev)
Set motor velocity. |
void |
setJoggingVelocity(int velocityCounts)
Set jogging velocity (counts/second). |
void |
setPeakCurrent(double peakCurrent)
Set peak current (A). |
void |
setPeakCurrentDuration(int peakCurrentDurationSec)
Set peak current duration (sec). |
void |
setPositionAbsolute(long value)
Position Absolute. |
void |
setPositionCounter(long value)
Set Position Counter. |
void |
setPositionRelative(long value)
Position Relative. |
void |
setPTPSpeed(int ptpSpeed)
Set max speed for PTP (point to point) motion. |
void |
setReferenceLimit(int min,
int max)
Set controller reference speed limits. |
void |
setReferenceSpeed(int min,
int max)
Set controller reference speed. |
void |
setSerialMode(int mode)
set serial mode |
void |
setSerialPort(gnu.io.SerialPort port)
Set the SerialPort for this controller to use. |
void |
setStopDeceleration(int value)
Set slow-down acceleration, Motor stop deceleration (counts/sec^2) Controls rate at which motor stops when ST command is issued; deceleration during jogging velocity change is handled separately. |
void |
setStuckSpeed(int stuckSpeed)
Set stuck speed (counts/sec). |
void |
setTorqueLimit(double torquePercent)
Set torque limit (% of continuous current). |
void |
setUnitMode(int mode)
Set controller operation mode. |
void |
setXModulus(long xmLo,
long xmHi)
Set XModulus. |
protected int |
stopMotor()
Stop motor. |
protected void |
writeCommand(java.lang.String cmd)
Write a command to the serial port. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.log4j.Logger _log4j
public static final int MAX_VELOCITY_COUNTS
public static final int MAX_VELOCITY_LIMIT
public static final int MIN_ACCELERATION
public static final int MIN_DECELERATION
public static final int MAX_ACCELERATION
public static final int MAX_DECELERATION
public static final int MIN_STOP_DECELERATION
public static final int MAX_STOP_DECELERATION
public static final long PX_MIN_VALUE
public static final long PX_MAX_VALUE
public static final long MAX_XMODULUS
public static final long MIN_XMODULUS
public static final int IL_MIN_INDEX
public static final int IL_MAX_INDEX
public static final int IL_MIN_VALUE
public static final int IL_MAX_VALUE
public static final int COUNTS_PER_REVOLUTION
public static final long TM_CMD_MSEC
public static final long TM_START_MSEC
public static final long TM_STOP_MSEC
public static final long TM_POLL_DELAY_MSEC
public static final long TM_EMPTY_INPUT_MSEC
public static final long TM_MOTION_WAIT_MSEC
public static final int INT_SEC_PER_MIN
public static final double DBL_SEC_PER_MIN
public static final int BUF32
public static final int BUF128
public static final int MODE_SPEED
public static final int MODE_STEPPER
public static final int MODE_TORQUE
public static final int MODE_DUAL_FEEDBACK_POSITION
public static final int MODE_SINGLE_FEEDBACK_POSITION
public static final int MODE_SERIAL_LOCAL
public static final int MODE_SERIAL_RFC1722
public static final int MOTOR_ENABLED
public static final int MOTOR_DISABLED
public static final int MASK_DIGITAL_INPUT_PORT
public static final int MASK_DIGITAL_INPUT_ACTIVE
public static final int MASK_DIGITAL_INPUT_MAINHOME
public static final int MASK_DIGITAL_INPUT_AUXHOME
public static final int MASK_DIGITAL_INPUT_SOFTSTOP
public static final int MASK_DIGITAL_INPUT_HARDSTOP
public static final int MASK_DIGITAL_INPUT_FLS
public static final int MASK_DIGITAL_INPUT_RLS
public static final int MASK_DIGITAL_INPUT_INH
public static final int MASK_DIGITAL_INPUT_BG
public static final int MASK_DIGITAL_INPUT_ABORT
public static final int MASK_DIGITAL_INPUT_PIN
public static final int DIGITAL_INPUT_BIT0
public static final int DIGITAL_INPUT_BIT1
public static final int DIGITAL_INPUT_BIT2
public static final int DIGITAL_INPUT_BIT3
public static final int DIGITAL_INPUT_BIT4
public static final int DIGITAL_INPUT_BIT5
public static final int MS_POS_STABLIZED
public static final int MS_REF_STATIONARY
public static final int MS_REF_CONTROLLED
public static final int MS_RESERVED
public static final int HEX_MODE_DISABLED
public static final int HEX_MODE_ENABLED
public static final int INPUT_LOGIC_FREEWHEEL_LO
public static final int INPUT_LOGIC_FREEWHEEL_HI
public static final int INPUT_LOGIC_HARDSTOP_LO
public static final int INPUT_LOGIC_HARDSTOP_HI
public static final int INPUT_LOGIC_IGNORE_LO
public static final int INPUT_LOGIC_IGNORE_HI
public static final int INPUT_LOGIC_GP_LO
public static final int INPUT_LOGIC_GP_HI
public static final int INPUT_LOGIC_RLS_LO
public static final int INPUT_LOGIC_RLS_HI
public static final int INPUT_LOGIC_FLS_LO
public static final int INPUT_LOGIC_FLS_HI
public static final int INPUT_LOGIC_BG_LO
public static final int INPUT_LOGIC_BG_HI
public static final int INPUT_LOGIC_SOFTSTOP_LO
public static final int INPUT_LOGIC_SOFTSTOP_HI
public static final int INPUT_LOGIC_MAINHOME_LO
public static final int INPUT_LOGIC_MAINHOME_HI
public static final int INPUT_LOGIC_AUXHOME_LO
public static final int INPUT_LOGIC_AUXHOME_HI
public static final int INPUT_LOGIC_BOTHSTOP_LO
public static final int INPUT_LOGIC_BOTHSTOP_HI
public static final int INPUT_LOGIC_ABORT_LO
public static final int INPUT_LOGIC_ABORT_HI
public static final java.lang.String HOMING_BEHAVIOR_STOP
public static final java.lang.String HOMING_BEHAVIOR_SET_OUTPUT
public static final java.lang.String HOMING_BEHAVIOR_NONE
public static final java.lang.String HOMING_EVENT_MAIN_HOME_SWITCH
public static final java.lang.String HOMING_EVENT_DIN5
public static final java.lang.String HOMING_EVENT_IMMEDIATE
public static final java.lang.String HOMING_EVENT_ABS
public static final java.lang.String HOMING_EVENT_REL
public static final java.lang.String HOMING_EVENT_NONE
public static final int ECHO_DISABLED
public static final int ECHO_ENABLED
public static final java.lang.String CMD_UNIT_MODE
public static final java.lang.String CMD_MOTOR_ENABLE
public static final java.lang.String CMD_BEGIN_MOTION
public static final java.lang.String CMD_STOP_MOTION
public static final java.lang.String CMD_ACCELERATION
public static final java.lang.String CMD_DECELERATION
public static final java.lang.String CMD_STOP_DECELERATION
public static final java.lang.String CMD_SPEED_REF_LO
public static final java.lang.String CMD_SPEED_REF_HI
public static final java.lang.String CMD_SPEED_LIMIT_LO
public static final java.lang.String CMD_SPEED_LIMIT_HI
public static final java.lang.String CMD_POSITION_REF_LO
public static final java.lang.String CMD_POSITION_REF_HI
public static final java.lang.String CMD_SET_XMODULUS_LO
public static final java.lang.String CMD_SET_XMODULUS_HI
public static final java.lang.String CMD_JOGGING_VELOCITY
public static final java.lang.String CMD_PTP_SPEED
public static final java.lang.String CMD_GET_MAIN_ENC_VELOCITY
public static final java.lang.String CMD_GET_AUX_ENC_VELOCITY
public static final java.lang.String CMD_GET_VELOCITY_ERROR
public static final java.lang.String CMD_GET_DESIRED_VELOCITY
public static final java.lang.String CMD_RELATIVE_POSITION
public static final java.lang.String CMD_ABSOLUTE_POSITION
public static final java.lang.String CMD_POSITION_COUNTER
public static final java.lang.String CMD_POSITION_ERROR
public static final java.lang.String CMD_INPUT_LOGIC
public static final java.lang.String CMD_DIGITAL_INPUT_FILTER
public static final java.lang.String CMD_CURRENT_I_FILTER
public static final java.lang.String CMD_CURRENT_P_FILTER
public static final java.lang.String CMD_VELOCITY_I_FILTER
public static final java.lang.String CMD_VELOCITY_P_FILTER
public static final java.lang.String CMD_COMMUTATION_ARRAY
public static final java.lang.String CMD_MAX_CURRENT
public static final java.lang.String CMD_PEAK_CURRENT_LIMIT
public static final java.lang.String CMD_PEAK_CURRENT_DURATION
public static final java.lang.String CMD_CONT_CURRENT_LIMIT
public static final java.lang.String CMD_TORQUE_LIMIT
public static final java.lang.String CMD_STUCK_SPEED
public static final java.lang.String CMD_ECHO
public static final java.lang.String CMD_HEXMODE
public static final java.lang.String CMD_DUMP_CPU
public static final java.lang.String CMD_DIGITIAL_OUTPUT
public static final java.lang.String CMD_GET_DIGITAL_INPUTS
public static final java.lang.String CMD_GET_STATUS_REGISTER
public static final java.lang.String CMD_GET_MOTION_STATUS
public static final java.lang.String CMD_GET_MOTOR_FAULT
public static final java.lang.String CMD_GET_SERIAL_NUMBER
public static final java.lang.String CMD_GET_VERSION
public static final java.lang.String CMD_HOMING_ACTIVATION_MODE
public static final java.lang.String CMD_ARM_HOMING_PROCESS
public static final java.lang.String CMD_DISARM_HOMING_PROCESS
public static final java.lang.String CMD_HOMING_ABSOLUTE_VALUE
public static final java.lang.String CMD_HOMING_EVENT_DEFINITION
public static final java.lang.String CMD_HOMING_BEHAVIOR
public static final java.lang.String CMD_HOMING_EVENT_PX
public static final java.lang.String CMD_HOMING_OUTPUT_VALUE
public static final java.lang.String CMD_SET_DIO5_IGNORE_LO
public static final java.lang.String CMD_SET_DIO5_IGNORE_HI
public static final java.lang.String CMD_GENERAL_PURPOSE_HI
public static final java.lang.String CMD_ENABLE_MAIN_HOME_SEQUENCE_LO
public static final java.lang.String CMD_ENABLE_MAIN_HOME_SEQUENCE_HI
public static final java.lang.String CMD_ENABLE_AUX_HOME_SEQUENCE_LO
public static final java.lang.String CMD_ENABLE_AUX_HOME_SEQUENCE_HI
public static final int MF_OK
public static final int MF_ANALOG_FEEBACK
public static final int MF_FEEDBACK_LOSS
public static final int MF_PEAK_CURRENT
public static final int MF_INHIBIT
public static final int MF_MULT_HALL
public static final int MF_SPEED_TRACKING
public static final int MF_POSITION_TRACKING
public static final int MF_DATABASE
public static final int MF_ECAM
public static final int MF_HEARTBEAT
public static final int MF_SERVO
public static final int MF_UNDER_VOLTAGE
public static final int MF_OVER_VOLTAGE
public static final int MF_SHORT_CIRCUIT
public static final int MF_TEMPERATURE
public static final int MF_ZERO_NOT_FOUND
public static final int MF_SPEED
public static final int MF_STACK_OVERFLOW
public static final int MF_CPU
public static final int MF_STUCK
public static final int MF_POSITION
public static final int MF_NO_START
public static final int SR_DRIVE_READ
public static final int SR_STATUS
public static final int SR_MOTOR_ON
public static final int SR_REFERENCE_MODE
public static final int SR_MOTOR_FAILURE_LATCHED
public static final int SR_UNIT_MODE
public static final int SR_GAIN_SCHEDULING_ON
public static final int SR_HOMING_PROCESSING
public static final int SR_PROGRAM_RUNNING
public static final int SR_CURRENT_LIMIT_ON
public static final int SR_MOTION_STATUS
public static final int SR_RECORDER_STATUS
public static final int SR_DIGITAL_HALLS
public static final int SR_CPU_STATUS
public static final int SR_LIMIT_STOP
public static final int SR_USER_PROGRAM_ERROR
public static final int SR_OFFSET_DRIVE_READ
public static final int SR_OFFSET_STATUS
public static final int SR_OFFSET_MOTOR_ON
public static final int SR_OFFSET_REFERENCE_MODE
public static final int SR_OFFSET_MOTOR_FAILURE_LATCHED
public static final int SR_OFFSET_UNIT_MODE
public static final int SR_OFFSET_GAIN_SCHEDULING_ON
public static final int SR_OFFSET_HOMING_PROCESSING
public static final int SR_OFFSET_PROGRAM_RUNNING
public static final int SR_OFFSET_CURRENT_LIMIT_ON
public static final int SR_OFFSET_MOTION_STATUS
public static final int SR_OFFSET_RECORDER_STATUS
public static final int SR_OFFSET_DIGITAL_HALLS
public static final int SR_OFFSET_CPU_STATUS
public static final int SR_OFFSET_LIMIT_STOP
public static final int SR_OFFSET_USER_PROGRAM_ERROR
protected gnu.io.SerialPort _serialPort
protected java.io.InputStream _serialRx
protected java.io.OutputStream _serialTx
protected java.lang.String _terminatorString
public static final byte[] LINE_END_BYTES
protected byte[] _terminator
protected byte[] _junk32
protected byte[] _longBuf
protected byte[] _intBuf
protected byte[] _doubleBuf
protected byte[] _stringBuf
protected int _serialMode
| Constructor Detail |
|---|
public Elmo(gnu.io.SerialPort port)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public void setSerialPort(gnu.io.SerialPort port)
throws java.io.IOException
port - SerialPort to use
java.io.IOExceptionpublic gnu.io.SerialPort getSerialPort()
public java.io.InputStream getInputStream()
public java.io.OutputStream getOutputStream()
protected void delay(long delayMsec)
delayMsec - Time to sleep (milliseconds)
public static int rpm2counts(double rpm,
int countsPerRevolution)
rpm - motor speed (RPM)countsPerRevolution - counts per motor revolution
public static double counts2rpm(int counts,
int countsPerRevolution)
counts - motor speed (counts/second)countsPerRevolution - counts per motor revolution
public static java.lang.String mkIndex(java.lang.String cmd,
int index)
public static java.lang.String mkIndexCmd(java.lang.String cmd,
int index,
java.lang.String value)
public static java.lang.String mkIndexCmd(java.lang.String cmd,
int index,
int value)
public static java.lang.String mkIndexCmd(java.lang.String cmd,
int index,
long value)
public static java.lang.String mkCmd(java.lang.String cmd,
java.lang.String value)
public static java.lang.String mkCmd(java.lang.String cmd,
int value)
public static java.lang.String mkCmd(java.lang.String cmd,
long value)
public void emptyInput(long timeoutMsec)
throws java.io.IOException
timeoutMsec - (milliseconds)
java.io.IOException
protected void emptyInput(java.io.InputStream instream,
long timeoutMsec)
throws java.io.IOException
instream - an InputStream to flushtimeoutMsec - (milliseconds)
java.io.IOException
protected void writeCommand(java.lang.String cmd)
throws java.io.IOException
cmd - command string to write
java.io.IOException
protected int cmdWriteRead(java.lang.String cmd,
byte[] buf,
byte[] terminator,
long timeoutMsec)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
cmd - Command to sendbuf - Destination bufferterminator - End of response markertimeoutMsec - Timeout (milliseconds)
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
protected int cmdWriteReadX(java.lang.String cmd)
throws java.io.IOException
java.io.IOException
protected int cmdWriteReadInt(java.lang.String cmd,
int len,
long timeoutMsec)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
cmd - command to sendlen - maximum expected return length (bytes)timeoutMsec - timeout for return value (milliseconds)
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
protected long cmdWriteReadLong(java.lang.String cmd,
int len,
long timeoutMsec)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
cmd - command to sendlen - maximum expected return length (bytes)timeoutMsec - timeout for return value (milliseconds)
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
protected double cmdWriteReadDouble(java.lang.String cmd,
int len,
long timeoutMsec)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
cmd - command to sendlen - maximum expected return length (bytes)timeoutMsec - timeout for return value (milliseconds)
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
protected java.lang.String cmdWriteReadString(java.lang.String cmd,
int len,
long timeoutMsec)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
cmd - command to sendlen - maximum expected return length (bytes)timeoutMsec - timeout for return value (milliseconds)
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public abstract void initializeController(int serialMode,
int unitMode)
throws TimeoutException,
java.io.IOException,
java.lang.Exception
serialMode - serial comms mode (local or RFC1722)unitMode - elmo unit mode
TimeoutException
java.io.IOException
java.lang.Exception
public java.lang.String readRegister(java.lang.String register)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exceptionpublic java.lang.String getVersion()
public void setSerialMode(int mode)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic int getSerialMode()
public double getMaxCurrent()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public void setPeakCurrent(double peakCurrent)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
peakCurrent - (A)
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public double getPeakCurrent()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public void setPeakCurrentDuration(int peakCurrentDurationSec)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
peakCurrentDurationSec - (sec)
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public int getPeakCurrentDuration()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public void setContinuousCurrent(double contCurrent)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
contCurrent - max continous active current (A)
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public double getContinuousCurrent()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public void setTorqueLimit(double torquePercent)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
torquePercent - max torque, as a percentage of max continous active current (%)
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public double getTorqueLimit()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public void setStuckSpeed(int stuckSpeed)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
stuckSpeed - min speed threshold indicating the motor is stuck (counts/sec)
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public int getStuckSpeed()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public int getStatusRegister()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public int getMotorFault()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.ExceptionCommand Reference
public int getMotionStatus()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void setEchoMode(int mode)
throws java.io.IOException,
java.lang.IllegalArgumentException
mode - ECHO_ENABLED or ECHO_DISABLED
java.io.IOException
java.lang.IllegalArgumentException
public int getEchoMode()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public void setHexMode(boolean mode)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
mode - enable hex mode if true, disable if false
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public int getHexMode()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public int getReferenceSpeedLo()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public int getReferenceSpeedHi()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public void setReferenceSpeed(int min,
int max)
throws java.io.IOException,
java.lang.IllegalArgumentException
min - minimum reference speedmax - maximum reference speed
java.io.IOException
java.lang.IllegalArgumentException
public void setReferenceLimit(int min,
int max)
throws java.io.IOException,
java.lang.IllegalArgumentException
min - minimum motor speedmax - maximum motor speed
java.io.IOException
java.lang.IllegalArgumentException
public int getReferenceLimitLo()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public int getReferenceLimitHi()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public void setUnitMode(int mode)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
mode - one of: MODE_TORQUE,MODE_SPEED,MODE_SINGLE_FEEDBACK_POSITION,MODE_DUAL_FEEDBACK_POSITION,MODE_STEPPER
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public int getUnitMode()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public int getInputPort()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void setInputLogic(int inputBit,
int value)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException
inputBit - input index (0-indexed; note adjustment for IL IL is 1-indexed)value - value (bitfield, 0-23d)
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
public void setXModulus(long xmLo,
long xmHi)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public long getXModulusLo()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public long getXModulusHi()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public int getInputLogic(int inputBit)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
inputBit - input index (0-indexed; note adjustment for IL IL is 1-indexed)
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void setAcceleration(int value)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
value - - new value (counts/sec^2)
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public int getAcceleration()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void setDeceleration(int value)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
value - - new value (counts/sec^2)
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public int getDeceleration()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void setStopDeceleration(int value)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
value - - new value (counts/sec^2)
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public int getStopDeceleration()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
protected long getPositionCounter()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public void setPositionCounter(long value)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException
value - - position counter value
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
public void setPositionRelative(long value)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void setPositionAbsolute(long value)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
protected long getPositionError()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public void setPTPSpeed(int ptpSpeed)
throws java.io.IOException,
java.lang.IllegalArgumentException,
TimeoutException,
java.lang.NullPointerException,
java.lang.Exception
ptpSpeed - max PTP speed (counts/sec)
java.io.IOException
java.lang.IllegalArgumentException
TimeoutException
java.lang.NullPointerException
java.lang.Exception
public int getPTPSpeed()
throws java.io.IOException,
java.lang.IllegalArgumentException,
TimeoutException,
java.lang.NullPointerException,
java.lang.Exception
java.io.IOException
java.lang.IllegalArgumentException
TimeoutException
java.lang.NullPointerException
java.lang.Exception
public void setJoggingVelocity(double velocityRPM,
int countsPerRev)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
velocityRPM - - motor speed (RPM)
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void setJoggingVelocity(int velocityCounts)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
velocityCounts - commanded velocity (counts/sec)
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public int getJoggingVelocity()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public int getEncoderVelocity()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public int getDesiredVelocity()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public void setEnable(boolean value,
long timeoutMsec)
throws TimeoutException
TimeoutException
public boolean isEnabled()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
protected int stopMotor()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public void motionWait(long distance,
long pollMsec)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void beginMotion()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void ptpAbsolute(long position,
int velocity,
int acceleration,
int deceleration,
boolean wait)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
position - - countsvelocity - - motor speed (counts/sec)acceleration - - new accleration value counts/sec^2deceleration - - new decleration value counts/sec^2wait - - delay when setting ptp absolute speed
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void ptpAbsolute(long position,
boolean wait)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
position - - motor position (counts)wait - - enable delay when setting ptp absolute speed
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void ptpRelative(long position,
int velocity,
int acceleration,
int deceleration,
boolean wait)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
position - - countsvelocity - - motor speed (counts/sec)acceleration - - new accleration value counts/sec^2deceleration - - new decleration value counts/sec^2wait - - enable delay when setting ptp absolute speed
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void ptpRelative(long position,
boolean wait)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
position - - motor position (relative counts)wait - - enable delay when setting ptp absolute speed
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void jog(int velocity,
int acceleration,
int deceleration)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
velocity - - motor speed (counts/sec)acceleration - - new accleration value counts/sec^2deceleration - - new decleration value counts/sec^2
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void jog(int velocity)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
velocity - - motor speed (counts/sec)
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||