public class ShutterStatusPLC extends MsgToCCS
| Modifier and Type | Class and Description |
|---|---|
static class |
ShutterStatusPLC.AxisStatusPLC
Holds the status report for a single axis in a
ShutterStatusPLC message. |
MESSAGE_SET_VERSION| Constructor and Description |
|---|
ShutterStatusPLC(ByteBuffer data)
Reads and converts the PLC form of the message.
|
ShutterStatusPLC(int sequence,
int motionProfile,
boolean isCalibrated,
int smState,
Map<ShutterSide,ShutterStatusPLC.AxisStatusPLC> axstatus,
boolean isSafetyOn,
List<Integer> temperature)
Constructs from a sequence number and field values.
|
| Modifier and Type | Method and Description |
|---|---|
void |
encode(ByteBuffer data)
Puts the sequence number into a data buffer.
|
ShutterStatusPLC.AxisStatusPLC |
getAxisStatus(ShutterSide side)
Gets the
AxisStatusPLC value for the given side. |
int |
getMotionProfile()
Gets the motion profile number.
|
int |
getSmState()
Returns the state of the PLC state machine.
|
List<Integer> |
getTemperature()
Gets the RTD readouts.
|
boolean |
isCalibrated()
Is the shutter calibrated?
|
boolean |
isSafetyOn()
Are the safety checks on?
|
String |
toString()
Converts the message to a readable string.
|
getVersion, messageVersionIsBadpublic ShutterStatusPLC(int sequence,
int motionProfile,
boolean isCalibrated,
int smState,
Map<ShutterSide,ShutterStatusPLC.AxisStatusPLC> axstatus,
boolean isSafetyOn,
List<Integer> temperature)
sequence - A message sequence number.motionProfile - the motion profile number.isCalibrated - Is the shutter calibrated?smState - the state of the PLC state machine.axstatus - the two axis status objects, one per side.isSafetyOn - Are the safety checks in effect?temperature - the RTD readout values.public ShutterStatusPLC(ByteBuffer data)
data - Holds the PLC message data.public void encode(ByteBuffer data)
MsgToCCSpublic int getMotionProfile()
public boolean isCalibrated()
public int getSmState()
public ShutterStatusPLC.AxisStatusPLC getAxisStatus(ShutterSide side)
AxisStatusPLC value for the given side.public boolean isSafetyOn()
public List<Integer> getTemperature()
public String toString()
PLCMsgtoString in class MsgToCCSCopyright © 2022 LSST. All rights reserved.