57 package com.boschrexroth.mlpi;
59 import java.util.Vector;
66 public class Motion extends MlpiComponent {
88 AXISTYPE_CONTROLLER (4);
91 int getCode() {
return _code; }
92 AxisType(
int code) { this._code = code; }
95 if (code == value.getCode())
return value;
113 SYNC_SHORTESTWAY (0),
118 int getCode() {
return _code; }
122 if (code == value.getCode())
return value;
141 SYNC_RAMPIN_SHORTESTWAY (0),
142 SYNC_RAMPIN_CATCHUP (1),
143 SYNC_RAMPIN_SLOWDOWN (2),
147 int getCode() {
return _code; }
148 SyncType(
int code) { this._code = code; }
151 if (code == value.getCode())
return value;
170 STARTMODE_ABSOLUTE (0),
171 STARTMODE_RELATIVE (1),
172 STARTMODE_ABSOLUTE_RAMPIN (2),
173 STARTMODE_RELATIVE_RAMPIN (3);
176 int getCode() {
return _code; }
177 StartMode(
int code) { this._code = code; }
180 if (code == value.getCode())
return value;
201 int getCode() {
return _code; }
205 if (code == value.getCode())
return value;
225 SLAVE_ORIGIN_MASTER_ORIGIN (0),
226 SLAVE_CURRENT_MASTER_CURRENT (1),
227 SLAVE_ORIGIN_MASTER_CURRENT (2),
228 SLAVE_CURRENT_MASTER_ORIGIN (3),
229 SLAVE_RELATIVE_MASTER_ORIGIN (4);
232 int getCode() {
return _code; }
236 if (code == value.getCode())
return value;
263 AXIS_MODE_ACTIVE (0),
264 AXIS_MODE_PARKING (1),
265 AXIS_MODE_DEACTIVATED (2),
266 AXIS_MODE_ACTIVE_DECOUPLED (3),
267 AXIS_MODE_PARKING_DECOUPLED (4),
268 AXIS_MODE_DEACTIVATED_DECOUPLED (5),
269 AXIS_MODE_ACTIVE_PARAMETERIZATION (8),
270 AXIS_MODE_PARKING_PARAMETERIZATION (9),
271 AXIS_MODE_DEACTIVATED_PARAMETERIZATION (10),
272 AXIS_MODE_ACTIVE_DECOUPLED_PARAMETERIZATION (12),
273 AXIS_MODE_PARKING_DECOUPLED_PARAMETERIZATION (13),
274 AXIS_MODE_DEACTIVATED_DECOUPLED_PARAMETERIZATION(14);
277 int getCode() {
return _code; }
278 AxisMode(
int code) { this._code = code; }
281 if (code == value.getCode())
return value;
394 int getCode() {
return _code; }
398 if (code == value.getCode())
return value;
420 this.axisNo = (short) axisNo;
424 this.axisNo = axisNo;
427 public AxisRef(
int controlNo,
int axisNo) {
428 this.axisNo = (short) axisNo;
429 this.controlNo = (short) controlNo;
431 public AxisRef(
short controlNo,
short axisNo) {
432 this.axisNo = axisNo;
433 this.controlNo = controlNo;
435 public short controlNo;
454 public int deviceAddress;
477 public double actualPosition;
478 public double actualVelocity;
479 public double actualAcceleration;
480 public double actualTorque;
482 public int stateExtended;
483 public int diagnosisNumber;
484 public int condition;
502 public String position;
503 public String velocity;
504 public String acceleration;
506 public String torque;
524 public int stateExtended;
525 public int diagnosisNumber;
526 public int condition;
531 Vector<Axis> _axes =
new Vector<Axis>();
536 Motion(MlpiHandle connection) {
552 return axes((
int)axisNo);
554 public synchronized Axis axes(
int axisNo) {
557 if (axisNo <= _axes.size()) {
558 axis = _axes.get(axisNo-1);
561 axis =
new Axis(getConnectionHandleObject(),
new AxisRef(axisNo));
562 if (axisNo > _axes.size()) {
563 for (
int i=_axes.size(); i<axisNo; i++){
567 _axes.set(axisNo-1, axis);
571 throw new RuntimeException(
"Logical axis number '" + axisNo +
"' out of minimum range.");
This enumeration defines the method with which synchronization takes place.
This enumeration defines how the flex profile is executed.
This class defines the axis through the definition of control and axis number.
Structure containing units of an axis as strings. You may want to use this structure to read all unit...
This enumeration defines the available cam numbers. The cams actually available depend on the hardwar...
native AxisUnits[] getAxisUnits(AxisRef[] axes)
Structure containing status information about an axis. These values do change as soon as the axis is ...
This enumeration defines the direction and type in which synchronization takes place. Only for FlexProfile!
This enumeration defines the type of axis.
This enumeration defines the state of an axis. When disabled, the device connected to the axis cannot...
Structure containing operation information about an axis. These values do change as soon as the axis ...
native AxisValues[] getAxisValues(AxisRef[] axes)
This enumeration defines the direction in which synchronization takes place.
native AxisStatus[] getAxisStatus(AxisRef[] axes)
This enumeration defines the method of how a flex profile interprets the start point.
Class definition of the MotionLib.
native AxisInformation[] getConfiguredAxes()