Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Operation Start for Tapping in NX Post

Status
Not open for further replies.

Trevz87

Mechanical
Joined
Apr 2, 2014
Messages
3
Location
NZ
thread561-177672

Hi,

I have the same issue as in the referenced thread and it seems the original question was never fully answered. In our case I would like to have a different operation start and op end for tapping(if possible)- I like to use G95 so the the operator is looking at the thread pitch rather than a random feed number based on the spindle speed.

Thanks
 
You will need some TCL code, Something like

#=============================================================
proc PB_CMD_tap_start { } {
#=============================================================
# this command used with PCB_CMD_tap_start and PCB_CMD_tap_start
# will output an M and s code before tapping cycles
# put this command in the above the cycle ouput blocks
# in "tap" event


global mom_spindle_speed tap_set

if { $tap_set == "OFF" } {
MOM_output_literal "G95 (FPR)"
MOM_output_literal "M135 S[format %0.0f $mom_spindle_speed]"
set tap_set "ON"
}
}

Regards
Greg
 
Thanks Greg,

I'm sure that's close - but I'm still learning post builder and still very green with Tcl. I have the command above the G84 output(in the same block) but I still get the error in the attached screenshot. I've tried to figure it out but I'm not having much success. Could you possibly have a look? Help is much appreciated.

NX9.01
 
 http://files.engineering.com/getfile.aspx?folder=07db05f1-bdd2-438e-921a-938503f57bc5&file=error_tap_cycle.PNG
It looks like you only have part of the solution. You also need a User Defined Event (UDE) to pass the value of $tap_set to the postprocessor. I would highly recommend reading the help doc's on the post and creating UDE's
There is a section on UDE creation

There is a lot of information available from the PLM World website from previous user group presentations that cover creating and modifying posts. membership is free to current customers of NX.



John Joyce
N.C. Programming Supervisor
Barnes Aerospace, Windsor CT
NX6, NX7.5,NX8.5, NX9.0
Vericut7.3
 
Add this to the start of program

#=============================================================
proc PB_CMD_tap_initialise { } {
#=============================================================
# this command used with PCB_CMD_tap_start and PCB_CMD_tap_end
# will output an M and s code before tapping cycles
# put this command in the "start of program" event
# Also this will initialise the coolant dwell

global tap_set

set tap_set "OFF"
}

and this bit
#=============================================================
proc PB_CMD_tap_end { } {
#=============================================================
# this command used with PCB_CMD_tap_initialise and PCB_CMD_tap_start
# will output an M and s code before tapping cycles
# put this command in the "cycle off" event


global mom_spindle_speed tap_set

if { $tap_set == "ON" } {
MOM_output_literal "G94 (FPM)"
set tap_set "OFF"
}
}

Regards
Greg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top