Inherits ScriptObject, and UnitConsumer.
Machine axis specification.
Axis | ( | ) |
Constructs an invalid axis.
Constructs a rotational axis.
_table | Specifies the axis is located in the table as opposed to the head. |
_axis | The axis vector. |
_offset | The axis offset. |
_coordinate | The coordinate to which the axis coordinate is bound (0:X, 1:Y, 2:Z). |
Constructs a rotational axis.
_table | Specifies the axis is located in the table as opposed to the head. |
_axis | The axis vector. |
_offset | The axis offset. |
_coordinate | The coordinate to which the axis coordinate is bound (0:X, 1:Y, 2:Z). |
_range | The valid range. |
Returns the closest valid angle/offset.
value | The coordinate (angular for rotational axis and spatial for linear axis). |
Integer getActuator | ( | ) |
Returns the actuator type.
0: linear actuator. 1: rotational actuator.
Vector getAxis | ( | ) |
Returns the axis direction.
Returns the rotation for the given axis position. Returns the identity matrix for a linear axis.
Integer getCoordinate | ( | ) |
Returns the coordinate to which the axis coordinate is bound (0:X, 1:Y, 2:Z). Returns -1 if the axis is invalid.
Number getDisplacement | ( | ) |
Returns the axis displacement.
Vector getEffectiveAxis | ( | ) |
Returns the effective axis direction. Flipped for head.
Number getHomePosition | ( | ) |
Returns the axis home position.
Number getMaximumFeed | ( | ) |
Returns the maximum feed of the axis.
String getName | ( | ) |
Returns the identifier for the axis.
Vector getOffset | ( | ) |
Returns the axis offset.
Integer getPreference | ( | ) |
Returns the angle/offset preference.
0: don't care. 1: prefer positive angles/offsets. -1: prefer negative angles/offsets.
Range getRange | ( | ) |
Returns the range of the axis coordinate.
Number getRapidFeed | ( | ) |
Returns the rapid feed of the axis.
Integer getReset | ( | ) |
Returns the axis reset behavior.
0: disabled. 1: reset to 0 at new operation. 2: reset to 0 at rewind.. 3: reset to 0 at new operation and at rewind.
Number getResolution | ( | ) |
Returns the resolution of the axis.
Returns the signed resolution error for the specified axis value.
Boolean isAggregate | ( | ) |
Returns true if the axes is a fixed aggregate. That is, the axis is fixed at the given position.
Boolean isCyclic | ( | ) |
Returns true if the axis is cyclic. Only supported for rotational axes.
Boolean isEnabled | ( | ) |
Returns true if the axis is valid.
Boolean isHead | ( | ) |
Returns true if the axis is a head axis.
Boolean isLinear | ( | ) |
Returns true if the actuator is linear.
Boolean isRotational | ( | ) |
Returns true if the actuator is rotational.
Returns true if the specified angle/offset is within the required range.
value | The coordinate (angular for rotational axis and spatial for linear axis). |
Boolean isTable | ( | ) |
Returns true if the axis is a table axis.
Boolean isTCPEnabled | ( | ) |
Returns true if TCP is enabled for the rotary axis.
Returns the reduced angle closest to 0 but restricted to the supported range. Actuator must be rotational.
value | The axis coordinate. |
Returns the preferred angle in the allowed range. An exception is raised if no valid angle exists. Actuator must be rotational.
Returns the preferred angle in the allowed range closest to the current angle. An exception is raised if no valid angle exists. Actuator must be rotational.
setActuator | ( | Integer | actuator | ) |
Sets the actuator type.
0: linear actuator. 1: rotational actuator.
setMaximumFeed | ( | Number | _maximumFeed | ) |
Sets the maximum feed of the axis.
setName | ( | String | name | ) |
Sets the identifier for the axis.
setPreference | ( | Integer | preference | ) |
Sets the angle/offset preference.
0: don't care -1: prefer negative angles/offsets. 1: prefer positive angles/offsets.
preference | The preference. |
setRapidFeed | ( | Number | _rapidFeed | ) |
Sets the rapid feed of the axis.
setReset | ( | Integer | reset | ) |
Sets the axis reset behavior.
0: disabled. 1: reset to 0 at new operation. 2: reset to 0 at rewind.. 3: reset to 0 at new operation and at rewind.
reset | The reset behavior. |
setResolution | ( | Number | resolution | ) |
Sets the resolution of the axis. Radians for rotational axis.