Class MotionControllerDataRecord

java.lang.Object
  extended by MotionControllerDataRecord

 class MotionControllerDataRecord
extends java.lang.Object

Title: MotionControllerDataRecord

Description: Used for accessing and refreshing the motion controller's data record

Copyright: Copyright (c) 2004

Company: ING


Field Summary
private  MotionController theMotionController
           
 
Constructor Summary
MotionControllerDataRecord()
           
 
Method Summary
(package private)  double getADCReading(int theADCPort)
          Get the value of an a/d port
(package private)  long getAuxiliaryEncoderPosition(MotionControllerAxis theAxis)
          Get the auxiliary encoder position of an axis from the data record
(package private)  long getPosition(MotionControllerAxis theAxis)
          Get the main encoder position of an axis from the data record
(package private)  boolean isDigitalInputPortHigh(int theInputPort)
          Get the condition of a digital input port
(package private)  boolean isDigitalOutputPortHigh(int theOutputPort)
          Get the condition of a digital output port
(package private)  void refresh()
          Refresh the motion comtroller data record
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theMotionController

private MotionController theMotionController
Constructor Detail

MotionControllerDataRecord

MotionControllerDataRecord()
Method Detail

refresh

void refresh()
Refresh the motion comtroller data record


getADCReading

double getADCReading(int theADCPort)
Get the value of an a/d port

Parameters:
theADCPort - The number of the a/d port
Returns:
The voltage on the a/d port (-10.0 to +10.0)

getPosition

long getPosition(MotionControllerAxis theAxis)
Get the main encoder position of an axis from the data record

Parameters:
theAxis - The axis
Returns:
The main encoder position

getAuxiliaryEncoderPosition

long getAuxiliaryEncoderPosition(MotionControllerAxis theAxis)
Get the auxiliary encoder position of an axis from the data record

Parameters:
theAxis - The axis
Returns:
The auxiliary encoder position

isDigitalInputPortHigh

boolean isDigitalInputPortHigh(int theInputPort)
Get the condition of a digital input port

Parameters:
theInputPort - The number of the input port
Returns:
Boolean to indicate whether the input port is high

isDigitalOutputPortHigh

boolean isDigitalOutputPortHigh(int theOutputPort)
Get the condition of a digital output port

Parameters:
theOutputPort - The number of the output port
Returns:
Boolean to indicate whether the output port is high