Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

more detailled Information for command: getJointParameter

Hello there,

 

we are using NX8.5.3.3 MP5. We got a bunch of machines using Sinumerik 840D control.

 

I tried to use the getJointParameter command to get the SoftLimitValues from the named Joint ("X", "Y", "Z"). It works, but the values, putted out from the system, are not the same, as mentioned in the Kinematic Model. To witch coordinate system does the system calculate these values? And how can I get the right one?

 

##LANGUAGE AC

  setArrayElement ("$AA_SOFTENDP", 0, getJointParameter("X", "SoftLimitMax"));
  setArrayElement ("$AA_SOFTENDP", 1, getJointParameter("Y", "SoftLimitMax"));
  setArrayElement ("$AA_SOFTENDP", 2, getJointParameter("Z", "SoftLimitMax")); 
  
  setArrayElement ("$AA_SOFTENDN", 0, getJointParameter("X", "SoftLimitMin"));
  setArrayElement ("$AA_SOFTENDN", 1, getJointParameter("Y", "SoftLimitMin"));
  setArrayElement ("$AA_SOFTENDN", 2, getJointParameter("Z", "SoftLimitMin"));

##LANGUAGE NATIVE

 

 

 

Thanks in advance.

 

Christian

6 REPLIES

Re: more detailled Information for command: getJointParameter

Hi Christian,

these parameters are related to the axes settings within the MCF. Check the axis parameters inside the Axis/Spindles Tab at the Machine Configurator.

ThomasF
Machine Tool Enablement
Manufacturing Engineering Software

Re: more detailled Information for command: getJointParameter

Ok. But I don't have no Machine Configurator. We got the MCF-File from a CAM-consult.

 

Is there a possibility to get the values from the Kinematic Model?

 

Christian

Solution
Solution
Accepted by topic author Christian
‎08-26-2015 04:32 AM

Re: more detailled Information for command: getJointParameter

Ok....  to answer your first question. The axis limits depending on the machine coordinates. It´s not possible to get the Limits from the KIM

 

There are 2 options:

1.) you buy a Machine Configurator license and to configure the MCF

 

2.) you create your own soft limit variables inside the machine.ini file e.g. DEF NCK REAL $SIM_SOFTLIMIT_X_MIN=10  or when it´s possible for you go to the real machine and check the real machine softlimit values for Sinumerik840D $MA_POS_LIMIT_MINUS and take this values for your issue

Machine Tool Enablement
Manufacturing Engineering Software
Solution
Solution
Accepted by topic author Christian
‎08-26-2015 04:32 AM

Re: more detailled Information for command: getJointParameter

Have downloaded the machine configurator?

 

I think I remeber that some simple things can be changed without a license, like the travel limits.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX11.0 EAP, NX12.0 EAP

How to Get the Most from Your Signature in the Community

Re: more detailled Information for command: getJointParameter

Thanx for all of your advises.

 

Got this solution:

 

  • machine simulation starts for every machine at certain point, just need to adept the unique maximum travel of each machine, if necessary.
DEF NCK REAL $AAA_SOFTENDP[3]
DEF NCK REAL $AAA_SOFTENDN[3]
DEF REAL _TRAVEL_X
DEF REAL _TRAVEL_Y
DEF REAL _TRAVEL_Z

;change up to unique machine
_TRAVEL_X = 5700
_TRAVEL_Y = 3400
_TRAVEL_Z = 1250

##LANGUAGE AC

 FLOAT _dx;
 FLOAT _dy;
 FLOAT _dz;

    _dx = getJointValue("X", "Machine");
    _dy = getJointValue("Y", "Machine");
    _dz = getJointValue("Z", "Machine");
  

  setArrayElement ("$AAA_SOFTENDP", 0, getJointValue("X", "Machine"));
  setArrayElement ("$AAA_SOFTENDP", 1, getJointValue("Y", "Machine"));
  setArrayElement ("$AAA_SOFTENDP", 2, getJointValue("Z", "Machine")); 
  
  _dx = _dx + getVariable("_TRAVEL_X");
  _dy = _dy - getVariable("_TRAVEL_Y");
  _dz = _dz - getVariable("_TRAVEL_Z");
  
  setArrayElement ("$AAA_SOFTENDN", 0, _dx);
  setArrayElement ("$AAA_SOFTENDN", 1, _dy);
  setArrayElement ("$AAA_SOFTENDN", 2, _dz);
  
  
##LANGUAGE NATIVE

 

Christian

Re: more detailled Information for command: getJointParameter

Hi Christian,

great solutio! Thanks a lot for your feedback!

ThomasF
Machine Tool Enablement
Manufacturing Engineering Software

Learn online





Solution Information