post link issue
post link issue
(OP)
Hi post experts,
I had an issue when I was trying to link mill-turn posts together with nx8.0
I made 3 mill-turn posts turning & zhead & xhead, I tested them seperately all ok.
1) I made mill-turn-zhead as the main post and used linked feature connected turning and mill-turn-xhead, and named them
zhead\turn\xhead
2) I also defined "user defined events" head event by machining method ==> object ==> start event ==>active head zhead\turn\xhead
give me following message when I post all the programs I made with the linked post:
"mom_sys_add_cutting_time" no such variable
while executing
"expr $mom_cutting_time + $mom_sys_add_cutting_time"
( procedure "MOM_end_of_path" Line 7 )
I thought perhaps because I have modified posts. then I tried making those three posts without changing anydthing at all except
make sure Initial Spindle Axies and Maching Mode are right, but same error. I am an inch away from well-done, please help me out.
thanks so much
davidtan20
I had an issue when I was trying to link mill-turn posts together with nx8.0
I made 3 mill-turn posts turning & zhead & xhead, I tested them seperately all ok.
1) I made mill-turn-zhead as the main post and used linked feature connected turning and mill-turn-xhead, and named them
zhead\turn\xhead
2) I also defined "user defined events" head event by machining method ==> object ==> start event ==>active head zhead\turn\xhead
give me following message when I post all the programs I made with the linked post:
"mom_sys_add_cutting_time" no such variable
while executing
"expr $mom_cutting_time + $mom_sys_add_cutting_time"
( procedure "MOM_end_of_path" Line 7 )
I thought perhaps because I have modified posts. then I tried making those three posts without changing anydthing at all except
make sure Initial Spindle Axies and Maching Mode are right, but same error. I am an inch away from well-done, please help me out.
thanks so much
davidtan20





RE: post link issue
It appears thet the math expression is missing some [ brackets ]
John Joyce
N.C. Programming Supervisor
Barnes Aerospace, Windsor CT
NX6.0.5.3
RE: post link issue
first thank you very much.
at beginning I thought same thing, and I even looked rest of tcl calculation and found same expression,
I even tried
set a 5
set b 6
expr $a + $b
11
anyway the following is proc:
#=============================================================
proc MOM_end_of_path { } {
#=============================================================
global mom_sys_add_cutting_time mom_sys_add_non_cutting_time
global mom_cutting_time mom_machine_time
# Accumulated time should be in minutes.
set mom_cutting_time [expr $mom_cutting_time + $mom_sys_add_cutting_time]
set mom_machine_time [expr $mom_machine_time + $mom_sys_add_cutting_time + $mom_sys_add_non_cutting_time]
MOM_reload_variable mom_cutting_time
MOM_reload_variable mom_machine_time
if [llength [info commands PB_CMD_kin_end_of_path] ] {
PB_CMD_kin_end_of_path
}
PB_CMD_Coolant_control
global mom_sys_in_operation
set mom_sys_in_operation 0
thank you so much
RE: post link issue
RE: post link issue
Hi shags72,
Thank you so much for your answering.
I have checked all the TCL files, found out that all the variable of mom_sys_add_cutting_time are defined at
the beginning of procs, one is in proc MOM_end_of_path { } {, other one is in proc MOM_start_path { } {.
I don't know what is the next, since this variable is initialized.
thank you
RE: post link issue
RE: post link issue
1) I made mill-turn-zhead as the main post and linked to lathe and mill-turn-xhead, and named them zhead\turn\xhead
2) I also defined "user defined events" head event by machining method ==> object ==> start event ==>active head zhead\turn\xhead
give me following message right way when I post all the programs I made with the linked post:
"mom_sys_add_cutting_time" no such variable
while executing
"expr $mom_cutting_time + $mom_sys_add_cutting_time"
( procedure "MOM_end_of_path" Line 7 )
I tried making those three posts without changing anydthing at all except make sure Initial Spindle Axies and Maching Mode are right, but same error came out.
when I posted programs of mill-turn-zhead, the linked post works ok, but not turning and mill-turn-xhead.
thank you
RE: post link issue
RE: post link issue
I have posted them seperately, each result are totally ok but not linked post, from my understanding linked-post not even goes through in the very beginning.
my programs are ordered by lathe => z-milling => x-milling, the programs for lathe would not go through the main post z-head, message says happened on z-head (main post) TLC file.
thank you
RE: post link issue