
public class AxisStatus extends Object implements Serializable
ShutterStatus,
Serialized Form| Constructor and Description |
|---|
AxisStatus(ByteBuffer data)
Reads and converts the PLC form of the axis status.
|
AxisStatus(double actPos,
double actVel,
double setAcc,
boolean enabled,
boolean brakeSet,
boolean lowLimit,
boolean highLimit,
boolean isHomed,
int errorID,
double motorTemp)
Constructs from scratch.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
atHighLimit() |
boolean |
atLowLimit() |
void |
encode(ByteBuffer data)
Converts the status fields to PLC form and appends them to a byte buffer.
|
double |
getActPos() |
double |
getActVel() |
int |
getErrorID() |
double |
getMotorTemp() |
double |
getSetAcc() |
boolean |
isBrakeSet() |
boolean |
isEnabled() |
boolean |
isHomed() |
String |
toString() |
public AxisStatus(double actPos,
double actVel,
double setAcc,
boolean enabled,
boolean brakeSet,
boolean lowLimit,
boolean highLimit,
boolean isHomed,
int errorID,
double motorTemp)
public AxisStatus(ByteBuffer data)
data - Holds the PLC axis status data.public void encode(ByteBuffer data)
data - Holds the PLC axis status data.public double getActPos()
public double getActVel()
public double getSetAcc()
public boolean isEnabled()
public boolean isBrakeSet()
public boolean atLowLimit()
public boolean atHighLimit()
public boolean isHomed()
public int getErrorID()
public double getMotorTemp()
Copyright © 2019 LSST. All rights reserved.