public enum PLCError extends Enum<PLCError>
| Enum Constant and Description |
|---|
AXIS_DISABLED
Can't move a disabled axis.
|
BRAKE_SET
Axis brake set, can't move.
|
DEPLOYED_LIMIT
Hit motion limit near the deployed (fully extended) position.
|
HALL_DIFF
Hall transition position and encoder position differ too much.
|
HOME_LIMIT
Hit motion limit near home position.
|
MOTION_VETO
Hardware protection logic veto is in effect, can't move.
|
NOT_HOMED
Axis must be homed first.
|
SHORT_EXPOSURE
Exposure time was too short.
|
TOO_FAST |
UNSAFE_MOVE |
| Modifier and Type | Method and Description |
|---|---|
static Set<PLCError> |
copyOf(Set<PLCError> errors)
Copy a set of
PLCError. |
static Set<PLCError> |
decodeMask(int mask)
Create a set of
PLCError containing all values whose bit is set in the error mask given. |
static int |
encodeMask(Set<PLCError> errors)
Creates an int with one bit set for each element present in the given set of errors.
|
int |
getBitnum()
Gets the bit position of this error in an int error mask.
|
String |
getDescription()
Get the description of the error.
|
static PLCError |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PLCError[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PLCError MOTION_VETO
public static final PLCError BRAKE_SET
public static final PLCError HALL_DIFF
public static final PLCError SHORT_EXPOSURE
public static final PLCError NOT_HOMED
public static final PLCError HOME_LIMIT
public static final PLCError DEPLOYED_LIMIT
public static final PLCError UNSAFE_MOVE
public static final PLCError TOO_FAST
public static final PLCError AXIS_DISABLED
public static PLCError[] values()
for (PLCError c : PLCError.values()) System.out.println(c);
public static PLCError valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getBitnum()
public String getDescription()
public static Set<PLCError> decodeMask(int mask)
PLCError containing all values whose bit is set in the error mask given.mask - Has a one bit for each error present.PLCError.public static int encodeMask(Set<PLCError> errors)
errors - The set of errors.Copyright © 2021 LSST. All rights reserved.