Cancel
Showing results for 
Search instead for 
Did you mean: 

[PostProcessor]The minimum and maximum output

Solution Partner Builder Solution Partner Builder
Solution Partner Builder

Hi

 

set to output the maximum and minimum values for each axis.

But, I want to change the output location.

The current position is end of path.

I want to change the start of path.

 

post_request.jpg

 

I ask for method.

16 REPLIES

Re: [PostProcessor]The minimum and maximum output

Legend
Legend

Hi!
You should reprocess your program after end of path as it is used to do with ordinary files.
Copy it to another file and insert any info into any place during copying.

 

Add to the MOM_end_of_program the procedure like this:

#=============================================================
proc PB_CMD_reprocess { } {
#=============================================================
global mom_output_file_full_name

MOM_close_output_file $mom_output_file_full_name

set handle_r [open $mom_output_file_full_name r]
set handle_w [open $some_temp_filename w]

while { [gets $handle_r buf] > 0 } {
puts $handle_w $buf

if { [string match "*( STOCK=*" $buf] } {
puts "X MINMAX..."
puts "Y MINMAX..."
puts "Z MINMAX..."
}
}
close $handle_r; close $handle_w
file delete $mom_output_file_full_name
file rename $some_temp_filename $mom_output_file_full_name
}

 

Re: [PostProcessor]The minimum and maximum output

Pioneer
Pioneer
Hi kimies
What variable do you use to get these values? I have been wanting to add the min max value to the post for tool paths.

Re: [PostProcessor]The minimum and maximum output

Legend
Legend

Use any custom global variables.
The simple arithmetical task is to compare min and max values of mom_pos (mom_mcs_goto) during every motion and remember them into these variables.

Re: [PostProcessor]The minimum and maximum output

Esteemed Contributor
Esteemed Contributor

A couple notes on axis min/max values

1) Arcs - use "quadrant limited" arcs.  I use them for other reasons, but if you use "full circle" arcs, then YOU need to compute what the actual limits are (mom_pos will be the end point, but it may not be the max or min for the move).

2) Drill cycles (I've only played with PTP/legacy cycles, not sure how hole making works yet) - note these also need additional computation as the depth point is not "mom_pos" but rather mom_cycle_feed_to_pos

 

 

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled


Re: [PostProcessor]The minimum and maximum output

Legend
Legend

One more note: "quadrant" mode for helix move.

However I prefer to calculate any arcs regardless of arc mode. I compute an approximated arc and then compare min/max values in these intermediate points.

Re: [PostProcessor]The minimum and maximum output

Solution Partner Builder Solution Partner Builder
Solution Partner Builder
Hi.

I don't know "some_temp_filename" variable.
What are the variables?

The error appears as shown below.

Re: [PostProcessor]The minimum and maximum output

Legend
Legend

Hi,

I especially wrote the name "some_temp_filename".
It means any temporary filename in YOUR folders. For example, "C:\\TEMP\\xxx.dat".


So you can add into the procedure the line like this:

set some_temp_filename "C:\\TEMP\\xxx.dat"
set handle_w [open $some_temp_filename w]

 

Re: [PostProcessor]The minimum and maximum output


nsmith118 wrote:
Hi kimies
What variable do you use to get these values? I have been wanting to add the min max value to the post for tool paths.

There is custom command included with Postbuilder to track total travel.

To get the min and max for each axis, attached is an old sample you can import.

Mark Rief
Retired Siemens

Re: [PostProcessor]The minimum and maximum output

Pioneer
Pioneer

I plugged it in and it worked.Thanks for sharing this Mark. Does it take into account the actual travel limits as Ken A mentioned on arc moves or is it just the start and end points? 

Learn online





Solution Information