Open Core Interface - MLPI
MLPI-MotionLogicProgrammingInterface(mlpi4Java)  1.26.2
Axis.java
Go to the documentation of this file.
1 // -----------------------------------------------------------------------
2 // MLPI - <Axis.java>
3 // -----------------------------------------------------------------------
4 // Copyright (c) 2012 Bosch Rexroth. All rights reserved.
5 // Redistribution and use in source and binary forms of this MLPI software
6 // (SW) provided to you, with or without modification, are permitted
7 // without prior approval provided that the following conditions are met:
8 //
9 // 1. Redistributions of source code of SW must retain the above copyright
10 // notice, this list of conditions and the following disclaimer.
11 //
12 // 2. Redistributions in binary form of SW must reproduce the above copyright
13 // notice, this list of conditions and the following disclaimer in the
14 // documentation and/or other materials provided with the distribution.
15 //
16 // 3. User recognizes and acknowledges that it acquires no right,
17 // title or interest in or to any of the names or trademarks used in
18 // connection with the SW ("names") by virtue of this License and waives
19 // any right to or interest in the names. User recognizes and acknowledges
20 // that names of companies or names or products of companies displayed
21 // in the documentation of SW to indicate the interoperability of products
22 // with the SW are the names of their respective owners. The use of such
23 // names in the documentation of SW does not imply any sponsorship,
24 // approval, or endorsement by such companies of this product.
25 //
26 // 4. Modified code versions, i.e. any addition to or deletion from
27 // the substance or structure of the original code of the SW running
28 // the MLPI must be plainly marked as such and must not be misrepresented
29 // as being original SW.
30 //
31 // 5. The SW may only be used in connection with a Bosch Rexroth product.
32 //
33 // THIS INFORMATION IS PROVIDED BY BOSCH REXROTH CORPORATION "AS IS"
34 // AND WITHOUT WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED, INCLUDING
35 // (BUT NOTLIMITED TO) ANY IMPLIED WARRANTIES OF MERCHANTABILITY,
36 // FITNESS FOR ANY PARTICULAR PURPOSE, OR NON-INFRINGEMENT. WHILE THE
37 // INFORMATION PROVIDED IS BELIEVED TO BE ACCURATE, IT MAY INCLUDE
38 // ERRORS OR INACCURACIES.
39 // SUBJECT TO COMPULSORY STATUTORY PROVISIONS OF THE GERMAN LAW AS
40 // THE APPLICABLE LAW FOR THIS LICENSE BOSCH REXROTH CORPORATION WILL
41 // NOT BE LIABLE FOR ANY DAMAGES OF ANY KIND ARISING FROM THE USE OF
42 // THE SOFTWARE DISTRIBUTED HEREUNDER, INCLUDING BUT NOT LIMITED TO
43 // DIRECT, INDIRECT, INCIDENTAL, PUNITIVE, AND CONSEQUENTIAL DAMAGES.
44 // -----------------------------------------------------------------------
45 //
55 //
56 // -----------------------------------------------------------------------
57 package com.boschrexroth.mlpi;
58 
63 public class Axis extends MlpiComponent {
64  /*
65  * Fields
66  */
67  private final Motion.AxisRef _axisRef;
68  private final Movement _movement;
69 
70  /*
71  * Methods
72  */
73  Axis(MlpiHandle connection, Motion.AxisRef axisRef) {
74  super(connection);
75  _axisRef = axisRef;
76  _movement = new Movement(getConnectionHandleObject(), _axisRef);
77  }
78  public Motion.AxisRef getAxisRef() {
79  return _axisRef;
80  }
81  public Movement movement() {
82  return _movement;
83  }
84 
90  public native double getActualPosition();
91 
97  public native double getActualVelocity();
98 
104  public native double getActualAcceleration();
105 
111  public native double getActualTorque();
112 
122  public native double getInterpolatedPosition();
123 
134  public native double getInterpolatedVelocity();
135 
143  public native double getInterpolatedTorque();
144 
150  public native int getDiagnosisNumber();
151 
157  public native String getDiagnosisText();
158 
163  public native void loadDefaultParameters();
164 
170  public native void clearError();
171 
177  public native String getName();
178 
184  public native void setName(String name);
185 
191  public native double getModulo();
192 
198  public native void setModulo(double modulo);
199 
205  public native double getPositionLimitPos();
206 
212  public native void setPositionLimitPos(double positionLimit);
213 
219  public native double getPositionLimitNeg();
220 
226  public native void setPositionLimitNeg(double positionLimit);
227 
233  public native double getVelocityLimitPos();
234 
240  public native void setVelocityLimitPos(double velocityLimit);
241 
247  public native double getVelocityLimitNeg();
248 
254  public native void setVelocityLimitNeg(double velocityLimit);
255 
261  public native double getVelocityLimitBip();
262 
268  public native void setVelocityLimitBip(double velocityLimit);
269 
275  public native double getAccelerationLimitBip();
276 
282  public native void setAccelerationLimitBip(double accelerationLimit);
283 
289  public native double getJerkLimitBip();
290 
296  public native void setJerkLimitBip(double jerkLimit);
297 
303  public native double getTorqueLimitPos();
304 
310  public native void setTorqueLimitPos(double torqueLimit);
311 
317  public native double getTorqueLimitNeg();
318 
324  public native void setTorqueLimitNeg(double torqueLimit);
325 
331  public native double getTorqueLimitBip();
332 
338  public native void setTorqueLimitBip(double torqueLimit);
339 
345  public native double getSlaveDriveFeedTravel();
346 
352  public native void setSlaveDriveFeedTravel(double feedtravel);
353 
354  // redesign:
355  //public native Motion.AxisMode getMode();
356  //public native void setMode(Motion.AxisMode axisMode);
357  //public native getState([out, retval] VARIANT* state);
358  //public native getStateExtended([out, retval] VARIANT* stateExtended);
359  //public native getAxisType([out, retval] VARIANT* type);
360  //public native getCondition([out, retval] VARIANT* condition);
361  //public native getCondition([in] VARIANT condition);
362 }
native double getPositionLimitNeg()
This function reads the negative position limit of an axis.
native double getTorqueLimitPos()
This function reads the positive torque force limit of an axis.
native double getActualVelocity()
This function reads the actual velocity of an axis.
This class defines the axis through the definition of control and axis number.
Definition: Motion.java:417
native void setTorqueLimitBip(double torqueLimit)
This function writes to the bipolar torque force limit of an axis.
native double getJerkLimitBip()
This function reads the bipolar jerk limit of an axis.
native double getVelocityLimitNeg()
This function reads the negative velocity limit of an axis.
native void clearError()
Clears a pending error for the axis. An axis needs to be free of errors before commanding power and s...
native double getInterpolatedVelocity()
This function reads the actual interpolated velocity of an axis. The interpolated velocity is the vel...
native double getActualTorque()
This function reads the actual torque of an axis.
native double getModulo()
This function reads the modulo value of an axis.
native void setAccelerationLimitBip(double accelerationLimit)
This function writes to the bipolar acceleration limit of an axis.
native void setName(String name)
This function writes the name of the axis.
native double getTorqueLimitBip()
This function reads the bipolar torque force limit of an axis.
native void loadDefaultParameters()
Load default parameters for the axis.
native double getVelocityLimitPos()
This function reads the positive velocity limit of an axis.
native void setVelocityLimitNeg(double velocityLimit)
This function writes to the negative velocity limit of an axis.
native void setModulo(double modulo)
This function writes to the modulo value of an axis.
native void setSlaveDriveFeedTravel(double feedtravel)
This function writes the feed distance of a following axis.
native double getTorqueLimitNeg()
This function reads the negative torque force limit of an axis.
native double getActualAcceleration()
This function reads the actual acceleration of an axis.
native void setVelocityLimitPos(double velocityLimit)
This function writes to the positive velocity limit of an axis.
native double getAccelerationLimitBip()
This function reads the bipolar acceleration limit of an axis.
native void setVelocityLimitBip(double velocityLimit)
This function writes to the bipolar velocity limit of an axis.
native String getName()
This function reads the name of the axis.
native int getDiagnosisNumber()
This function reads the diagnostic number of the axis.
native double getActualPosition()
This function reads the actual position of a axis.
native void setTorqueLimitPos(double torqueLimit)
This function writes to the positive torque force limit of an axis.
Class definition of the MotionLib.
Definition: Motion.java:66
native String getDiagnosisText()
This function reads the diagnostic message of the axis.
native double getPositionLimitPos()
This function reads the positive position limit of an axis.
native void setTorqueLimitNeg(double torqueLimit)
This function writes to the negative torque force limit of an axis.
native double getSlaveDriveFeedTravel()
This function reads the feed distance of a following axis.
native double getInterpolatedTorque()
This function reads the interpolated torque of an axis. If there is no operation mode with torque int...
native void setPositionLimitPos(double positionLimit)
This function writes to the positive position limit of an axis.
native double getInterpolatedPosition()
This function reads the actual interpolated position of an axis. The interpolated position is the pos...
native void setPositionLimitNeg(double positionLimit)
This function writes to the negative position limit of an axis.
native double getVelocityLimitBip()
This function reads the bipolar velocity limit of an axis.
native void setJerkLimitBip(double jerkLimit)
This function writes to the bipolar jerk limit of an axis.