cancel
Showing results for 
Search instead for 
Did you mean: 

thread pitch post edit

Creator
Creator

Hello again peeps,

Iooking for some help in changing my post to put out the pitch instead of the feed rate.example=q239 of program below.

thanks againSmiley Happy

 

 

BEGIN PGM 100 INCH
0001 ; POSTPROCESSOR NAME
0002 ; C:\USERS\MSTAPLETON\DESKTOP\MIKES POST\MIKE_CONVERSATIONAL.TCL
0003 BLK FORM 0.1 Z X0.0 Y0.0 Z-20.
0004 BLK FORM 0.2 X100. Y100. Z0.0
0005 TOOL CALL 1 Z S194
0006 L Z4.409 W0.0 F MAX
0007 L X5.8464 Y-6.8701 FMAX M3
0008 L Z4.4092
0009 CYCL DEF 207 Q200=0.1 Q201=-1.4961 Q239=5. Q203=3.4092 Q204=1.
0010 L X5.8464 Y-6.8701 R0 F MAX
0011 CYCL CALL
0012 L X8.7991 Y-5.3937 R0 F MAX
0013 CYCL CALL
0014 L Y-8.3465 R0 F MAX
0015 CYCL CALL
0016 M9
0017 M30
0018 END PGM 100 INCH

 

10 REPLIES

Re: thread pitch post edit

You need to determine the mom variable for the pitch.

The easiest way is to post with the review tool on, and then open the debug file that is produced, and search for pitch.

Mark Rief
Retired Siemens

Re: thread pitch post edit

Creator
Creator

Is this where I should be looking?I am a newbie so Im kinda confused.Smiley Sad

 

 

 

#--------------------Calculate thread pitch---------------------------------------------------
if { ![string compare "tap_move" $mom_motion_event] ||\
![string compare "tap_deep_move" $mom_motion_event] ||\
![string compare "tap_float_move" $mom_motion_event] ||\
![string compare "tap_break_chip_move" $mom_motion_event] } {
if { [info exists mom_cycle_thread_pitch] } {
set dpp_TNC_cycle_thread_pitch $mom_cycle_thread_pitch

} else {
if { [info exists mom_tool_pitch] } {
set dpp_TNC_cycle_thread_pitch $mom_tool_pitch
} else {
#---------Warning---------
MOM_abort "$mom_operation_name: No thread pitch!"
}
}
}
#--------------------Calculate thread pitch sign-----------------------------------------------
if {[info exists mom_cycle_thread_right_handed]} {
if { $mom_cycle_thread_right_handed == "FALSE" } {
set dpp_TNC_cycle_thread_pitch [expr $dpp_TNC_cycle_thread_pitch * (-1)]
}
} elseif { $mom_spindle_direction == "CCLW" } {
set dpp_TNC_cycle_thread_pitch [expr $dpp_TNC_cycle_thread_pitch * (-1)

Re: thread pitch post edit

Creator
Creator

okay i have found the pitch in the review tool.It says that it is in machine mode 2.

Re: thread pitch post edit

Creator
Creator

I can find it now but dont know what to do with itSmiley Frustrated

Re: thread pitch post edit

In Post Builder, what outputs the CYCLE DEF block?

If you find that, there shoudl be a word for Q239=.

If you edit that, what is the variable set to?

Mark Rief
Retired Siemens

Re: thread pitch post edit

Creator
Creator

$mom_cycle_feed_rate_per_rev

Re: thread pitch post edit

Have you tired changing it to $dpp_TNC_cycle_thread_pitch or whatever value you want to be output?

Mark Rief
Retired Siemens

Re: thread pitch post edit

Creator
Creator

not sure I follow you Smiley Sad

Please remember I am very new at this.


MarkRief wrote:

Have you tired changing it to $dpp_TNC_cycle_thread_pitch or whatever value you want to be output?


 

Re: thread pitch post edit

You can edit the value that is output in the word address. So if you find the block for the cycle, select the word (Q239= or F or whatever) and edit the expression, based on mom variables.

 

I suggest you take a little time and go through some of the 16 videos that @wrightj has done on Post Builder. You'll be a lot more confident going forward. Start with "What is a Post Processor" in the Tech Tips section http://community.plm.automation.siemens.com/t5/Tech-Tips-Knowledge-Base-NX/tkb-p/open_forum_1%40tkb/...

Mark Rief
Retired Siemens

Learn online





Solution Information