Cancel
Showing results for 
Search instead for 
Did you mean: 

Defining Work offsets ofther than g54-59?

Valued Contributor
Valued Contributor

I have the standard work offsets g54-59, but also have more offsets that are called out as g54.1 p10 where p can be 10-64.

 

I also usually type in 54 in the fixture offset dialog in the MCS geometry, but I cant seem to type in g54.1 p10  , only integers. How do people get around this

Using NX 8.0.3.4
8 REPLIES

Re: Defining Work offsets ofther than g54-59?

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

There are may ways - look in uganswer for some others...

Typically what I do in my posts (stolen from someone else)

1) MCS value starts at 1 & goes up from there

- if 1 then post will output G54

- if 6 then post will output G59

- if 7 then post will output G54.1 Pn (n = 1 thru whatever, or in your case 10 thru whatever)

 

2) Post sets up an couple arrays (1 thru whatever)

- Main code = "54" part.  so main_array(1) = 54 thru  (6) = 59; then main_array(7) thru (whatever) = 54

- suffix = ("Pn" part), so suffix_array(1) thru (6) are "" (empty string); suffix_array(7) thru (end) = " Pn" (note leading space & n = appropriate number)

 

These are defined in a couple "for" loops 

 

3) Set up separate G word in post for fixture offsets

- prefix = G

- format = Digit_2 (or whatever)

- value = $main_array($mom_fixture_offset_value)

- suffix = $suffix_array($mom_fixture_offset_value)

 

This way is "generic" across control types (e.g. on Okuma it will output G51 H1 thru G15 Hn) without editing the MCS object.

 

Hope this makes sense...

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


Re: Defining Work offsets ofther than g54-59?


@aluminum2 wrote:

I have the standard work offsets g54-59, but also have more offsets that are called out as g54.1 p10 where p can be 10-64.

 

I also usually type in 54 in the fixture offset dialog in the MCS geometry, but I cant seem to type in g54.1 p10  , only integers. How do people get around this


Ken has some good comments, and I am sure a search will turn up some examples.

 

In general, formatting and machine-specific numbering should be done by the postprocessor, not the user.

 

In NX, you should enter "1" for the first fixture offset, and let the post figure out what that is - G54 or G54.1P10 or E1 or whatever the control requires.

 

Before the flares start, I understand that if all your machines are the same, you can enter "54" in the MCS dialog instead of "1". That's easy in the short term... until you get that next machine.


 

Mark Rief
Retired Siemens

Re: Defining Work offsets ofther than g54-59?

This can work too.  Then you just have to use a string to output your fixture offset.  The sim07 has a term called msc_additional_g or something that's a string.  This is what I use.

 

switch $mom_fixture_offset_value {
	54 {set mcs_string G54}
	55 {set mcs_string G55}
	56 {set mcs_string G56}
	57 {set mcs_string G57}
	58 {set mcs_string G58}
	59 {set mcs_string G59}
	10 {set mcs_string "G54.1 P10"}
	11 {set mcs_string "G54.1 P11"}
	|||||||||||||||||||||||
	|||||||||||||||||||||||
	|||||||||||||||||||||||
	|||||||||||||||||||||||
	53 {set mcs_string "G54.1 P53"}
	54 ????????????????????????????
	55 ????????????????????????????
	56 ????????????????????????????
	57 ????????????????????????????
	58 ????????????????????????????
	59 ????????????????????????????
	60 {set mcs_string "G54.1 P60"}
	61 {set mcs_string "G54.1 P61"}
	62 {set mcs_string "G54.1 P62"}
	63 {set mcs_string "G54.1 P63"}
	64 {set mcs_string "G54.1 P64"}
	}

The only problem is once you get back to 54 when using the G54.1 PXX number.  The switch is nice because as Mark stated, you just chage  set mcs_string "XXXXXXX" to whatever you machine needs to see.

Jake Hardwick
CNC Programmer
Senior Aerospace AMT
Production NX8.5.3.3 Beta testing NX10.0.1.4

Re: Defining Work offsets ofther than g54-59?

Valued Contributor
Valued Contributor

Thanks, I will have to formulate something similar to these responses.

Using NX 8.0.3.4

Re: Defining Work offsets ofther than g54-59?

Gears Phenom Gears Phenom
Gears Phenom

I agree with Mark.  This, at least for us, keeps things consistant with our probing routines. 

1 = G54, 101 = G54.1P1

John Joyce, Manufacturing Engineer,
Senior Aerospace

NX 11.0.2.7 Vericut 8.0.3 - Statements and opinions are mine alone and do not reflect
the opinion of my employer or any other member of the human race

Re: Defining Work offsets ofther than g54-59?

Experimenter
Experimenter

is tehre a way u can be more explicit ho to ouput  G54.1 p1...

for some reason can get it done

or u can email me some more information at gmbmachining@gmail.com

please

regards

Re: Defining Work offsets ofther than g54-59?

Gears Phenom Gears Phenom
Gears Phenom

What we have done is create two blocks

one for G54 and one for G54.1  they both use the same user defined expression for the fixture offset.

we then use the following custom command do select the correct block based on the value of the work offset

this also checks the value of the work offset is within the correct range.g54.1.JPG


global mom_fixture_offset_value
global sr_fixt_offset
global mom_logname
#
# this proc is set to work with the auto tool change event
#
#
# testing
# IF THE WORK OFFSET IS GREATER ZERO
# ABORT WITH MESSAGE
#
set user [string toupper $mom_logname ]

if { $mom_fixture_offset_value == 0 } {MOM_abort "

HEY!! $user THE FIXTURE OFFSET VALUE IS SET TO ZERO ! !
CHECK THE MCS


"}
#
# IF THE WORK OFFSET IS GREATER THAN 6 AND LESS THAN 100
# ABORT WITH MESSAGE
#

if { $mom_fixture_offset_value > 6 && $mom_fixture_offset_value < 100 } {MOM_abort "

HEY!! $user  THE FIXTURE OFFSET VALUE IS BOGUS !!
CHECK THE MCS


"}
#
# testing
# IF THE WORK OFFSET IS GREATER THAN 148
# ABORT WITH MESSAGE
#
if { $mom_fixture_offset_value > 148 } {MOM_abort "

HEY!! $user THE FIXTURE OFFSET VALUE IS OVER THE LIMIT !!
CHECK THE MCS


"}

#
# if the range is less than or equal to 6 then use output block for G54 - G59
#
if { $mom_fixture_offset_value <= 6 } { set sr_fixt_offset [ expr $mom_fixture_offset_value+53 ]
 MOM_do_template G54
 MOM_force_block once G54 }
#
#

#
# if the range is greater than or equal to 101 then use output block for G54.1Pxx
#
if { $mom_fixture_offset_value >= 101 } { set sr_fixt_offset [ expr $mom_fixture_offset_value-100 ]
MOM_do_template G54_1
MOM_force_block once G54_1 }

 

John Joyce, Manufacturing Engineer,
Senior Aerospace

NX 11.0.2.7 Vericut 8.0.3 - Statements and opinions are mine alone and do not reflect
the opinion of my employer or any other member of the human race

Re: Defining Work offsets ofther than g54-59?

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

Probably the easiest is to

- create a new "word" (e.g. "G_fixture")

- prefix = G

- output = text (or string or ...)

- in "Start of program" event, call a PB_CMD_* (e.g. create a custom command "PB_CMD_Set_Fixture_Offsets" and add it to the "start of program" events)

- in that loop thru and define the fixture offset strings (NOT including the "G") to what you want.  I would suggest starting the index at 1 & working up from there.

e.g.

set gmb_fixture_offsets(1) "54"
...
set gmb_fixture_offsets(7) "54.1 P1"

 

- in the NX MCS object, set the fixture offset to the INDEX of the strring you want.

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


Learn online





Solution Information