Showing results for 
Search instead for 
Do you mean 
Reply

Postprocessor to output return point in milling

Hi,

 

I have a requirement where I need to outut a couple of blocks just before the return point and identify the return point block. Kindly find the example below.

 

(...Block 1 before Return Point)

(...Block 2 before Return Point)

G0 X5. Y 6. Z10. (RETURN POINT) --- Need to output this comment for return point

M30

 

I have got the mom_return_point and mom_return_status. 

I am not able to separate the return point from Linear move or Rapid move

 

Many Thanks,

Jithesh

18 REPLIES

Re: Postprocessor to output return point in milling

I think it is more a mom_motion_... variable.

Have you checked with the review tool?

Sorry, never needed to know this.

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: Postprocessor to output return point in milling

You must check the variable mom_motion_type with value RETURN.

 

You can place a custom command before the rapid move event and check the motion type:

 

global mom_motion_type

if {$mom_motion_type == "RETURN"} {

   MOM_output_literal "(Block 1 before return)"

   MOM_output_literal "(Block 2 before return)"

}

 

Regards

Frank

Re: Postprocessor to output return point in milling

Hi Frank,

 

Many thanks for your reply.

I had tried the same already. My problem is that $mom_motion_type only returns LINEAR, RAPID, RETRACT etc.  It is not finding the motion type "RETURN", though a return point move is defined in the operation.

 

Also, thank you Stefan for your reply

 

Best Regards,

Jithesh

NX9.0.2.5

Re: Postprocessor to output return point in milling

[ Edited ]

hi,

 

I am sure there is also variable (mom_return_status? and mom_start_status for start point) saying return point is in use 0/1/2.. (not sure about polarity)

So check it ad use it

---------------------------------------------
#♫ PB, 5ax, itnc, nx, vericut ♫ #

Re: Postprocessor to output return point in milling

Hi Juraj,

 

Thanks for your reply.

 

Yes, there is mom_return_status variable.

However, if a return point is specified, this variable would always be 1.

So, any comment or code added would be output along with every block in the program.

 

Best Regards,

Jithesh

Re: Postprocessor to output return point in milling

I output this variable in end of operation and it works

 

N0450 RETRACT
N0460 Z153.
N0470 RAPID
N0480 G00 Z200. RT
N0490 X50. Y50. RT
N0500 1
N0510 M02

Put cmd with your blocks before every motion and if return_status is 1 then output them:

 

N0250 X-68.409
N0260 Z153.
N0270 here
N0280 G00 Z200.
N0290 X50. Y50.

 

 

---------------------------------------------
#♫ PB, 5ax, itnc, nx, vericut ♫ #

Re: Postprocessor to output return point in milling

I have a nasty solution.

At the start of program activate read ahead.

--------

global mom_kin_read_ahead_next_motion

 

set mom_kin_read_ahead_next_motion "1"

MOM_reload_kinematics

-------

Then before the rapid move create a custom command like that:

------

global mom_nxt_motion_type

if {$mom_nxt_motion_type == "none"} {
#MOM_output_literal "***** $mom_nxt_motion_type"
MOM_output_literal "***** (Before Return)"

}

------------

The problem is that the output is made even when no return point is defined, always before the last rapid move.

 

Regards

Frank

 

Re: Postprocessor to output return point in milling

That's great Juraj !

 

Could you please explain a little in detail...

 

Did you mean in Operation End Sequence?

I had tried that too. Then, before reaching the end sequence, the return move was being output from Rapid move

 

Many Thanks,

Jithesh

Re: Postprocessor to output return point in milling

yes, there  I outputed retrun status only for chceck it if it is working.

forget it.

 

Just do this:

put your new cmd here:

Snímka.JPG

 

Content of your CMD :


global mom_return_status
if {$mom_return_status==1} {
MOM_output_literal "here"
}

 

---------------------------------------------
#♫ PB, 5ax, itnc, nx, vericut ♫ #

Learn online





Solution Information