cancel
Showing results for 
Search instead for 
Did you mean: 

Z Depth Work Instructions

Valued Contributor
Valued Contributor

Hi, I'd like to add the lowest Z depth value of my tools to my Work Instructions Documentation. Is this possible?

 

Thanks. 

16 REPLIES

Re: Z Depth Work Instructions

No, this is not available in Work Instructions. They have access to the same information as Shop Docs. You can search here and find previous discussions on the topic.

Basically, the lowest Z is not an operation parameter, so it is not available as a mom variable. Also, it can be different from the internal tool path, depending on the post. The only way to get it is look at the output Z coordinates from the post. This is why many users call shop docs from the post, where they have this information. 

Mark Rief
Retired Siemens

Re: Z Depth Work Instructions

Legend
Legend

Here is a sample clip out of Marek work instruction template

NX11.0.1

Re: Z Depth Work Instructions

Valued Contributor
Valued Contributor
So how do I go about setting up my shop docs to pull the Z values from my post? Is there a tutorial anywhere?

Thanks

Re: Z Depth Work Instructions

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Hello,

what I do for shop doc is make another postpro where the output file is in html format, so like any other postpro I have access to the zmin.

You can do a custom command to handle that. For instance yo can do something like this:

 

PB_CMD_handle_Z_min {

global my_zmin

global mom_pos

 

   if {$mom_pos(2) < $my_zmin} {

      set my_zmin $mom_pos(2)

   }

}

 

And then put the custom command into the move events.

 

Additionaly you must do something similar into the point to point operations.

 

Regards

Frank.

Re: Z Depth Work Instructions

Valued Contributor
Valued Contributor
Hi Frank,
Are you able to view the Z level for each individual too that way? In my current post that I use, I can see the lowest Z min but it is a min over the whole post, so I lose information about every other tool that doesn't reach that minimum.

In general I find it very frustrating that critical and very practical tool information is so hard to output in NX, being as advanced as the software is. I don't want to say it and I think we all know who I'm talking about but for $80 a month for a seat of a cheap software, I can easily get all the tool information I need, quickly and neatly. I don't want to "be that guy" who compares software but I know this is an issue that people have been requesting for quite a while now (years) and it really hasn't been addressed.

Sorry for the rant but I can articles and forum posts dating back to NX 7.5 I believe, where people have be requesting this information. If those people are like me, a CNC Machinist with no or limited computer coding experience, how are we supposed to view certain information that is mainstream in almost all other Cad Cam software, from high end to low end packages?

The only option that is offered is that I have to pay someone for white a post that will give me a setup sheet with basic tool information. I do not believe this is right.

Once again, sorry for the rant.

Thanks

Re: Z Depth Work Instructions

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Hello,

 

I often use an alternate solution, I output at the end of the nc program (before M30) a few comment lines with some information like the Zmin.

You can output also some comments with the zmin of each tool.

 

I will post here an example. Let me prepare it a little bit.

 

Regards

Frank.

Re: Z Depth Work Instructions

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Hello, I post here one possible solution to calculate the zmin total and by tool number.

 

Put the PB_CMD_MY_init_vars at the start_of_program to initialize the variables.

Put the PB_CMD_MY_zmin into the movement events, linear, circular, rapid, this store the zmin value

Put the PB_CMD_MY_zmin_cycle into the canned cycle common parameters, the same as before but in the canned cycles the Z is not into mom_pos(2)

Put the PB_CMD_MY_tool_zmin into the end_of_path event, this custom command stores the zmin by tool and resets the zmin.

And finally put PB_CMD_MY_output_zmin into the end_of_program event, this command outputs the zmin stored in an array where the key is the tool number.

 

I hope this helps you with the tool zmin.

 

Regards

Frank.

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

#=============================================================
proc PB_CMD_MY_init_vars { } {
#=============================================================
global my_zmin
global my_global_zmin

set my_zmin 999999
set my_global_zmin 99999
}

 

#=============================================================
proc PB_CMD_MY_zmin { } {
#=============================================================
global mom_pos
global my_zmin


if {$mom_pos(2) < $my_zmin} {
    set my_zmin $mom_pos(2)
}

}

 

#=============================================================
proc PB_CMD_MY_zmin_cycle { } {
#=============================================================
global my_zmin
global mom_cycle_feed_to_pos


if {$mom_cycle_feed_to_pos(2) < $my_zmin} {
    set my_zmin $mom_cycle_feed_to_pos(2)
}

}

 

#=============================================================
proc PB_CMD_MY_tool_zmin { } {
#=============================================================
global my_zmin
global my_global_zmin
global my_tool_zmin
global mom_tool_number

if [info exists my_tool_zmin($mom_tool_number)] {
    if {$my_zmin < $my_tool_zmin($mom_tool_number)} {
       set my_tool_zmin($mom_tool_number) $my_zmin
    }
} else {
    set my_tool_zmin($mom_tool_number) $my_zmin
}

if {$my_zmin < $my_global_zmin} {
    set my_global_zmin $my_zmin
}

set my_zmin 99999
}

 

#=============================================================
proc PB_CMD_MY_output_zmin { } {
#=============================================================
global my_tool_zmin
global my_global_zmin
global mom_tool_number
global mom_sys_control_in mom_sys_control_out

set ci $mom_sys_control_in
set co $mom_sys_control_out

foreach key [lsort -integer [array names my_tool_zmin]] {
    MOM_output_literal "$co TOOL: $key - Zmin: [format %.3f $my_tool_zmin($key)] $ci"
}

MOM_output_literal "$co ZMIN: [format %.3f $my_global_zmin] $ci"
}

 

 Modified: 25/04/2017. Added $ci in the last line.

Re: Z Depth Work Instructions

Valued Contributor
Valued Contributor
Thanks Frank, I will definitely give this a try!

Re: Z Depth Work Instructions

Valued Contributor
Valued Contributor
Alright, So I made a Blank post and inserted all the Commands in to the appropriate location. Now how to I insert those values into my shop doc?

Thanks!

Learn online





Solution Information