Cancel
Showing results for 
Search instead for 
Did you mean: 

Thru Coolant Code Output after initial XY Before Z

Creator
Creator

Hi 

 

How would I output thru coolant code after my inital X & Y move but before the Z move as shown below

 

%
O1001 (TEST)
IF[#147NE5]GOTO9999
G40G80G49G17
(PART NX10 GUNDRILLTEMPLATE TEMPLATE.PRT)
(FILENAME O1001.PTP)
(THU JAN 31 06.35.48 2019)
( NX10 POST)
(OPNAME- 6MM PILOT HM)
G00G91G30Z0.0
G30X0.0Y0.0
G90T316
M06
G59
T701
M11
B0.0
M10
S3700M03
G00X-150.Y22.
M88 (THRU COOLANT ON)
G43Z250.H1
G17G83X-150.Y22.Z188.R210.F344.Q2.
G80
M89
M05

9 REPLIES 9

Re: Thru Coolant Code Output after initial XY Before Z

Gears Phenom Gears Phenom
Gears Phenom

hi,

 

put on rapid_spindle block a check_block condition :

 

MOM_do_template (with your M coolant)

return 1

 

aa.jpg

---------------------------------------------
#♫ PB, 5ax, itnc, nx, vericut ♫ #

Re: Thru Coolant Code Output after initial XY Before Z

PLM World Member Phenom PLM World Member Phenom
PLM World Member Phenom

You could define your Initial Move to output the code in the order you want.  This is only output after a tool change.

 

init-move.JPG

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: Thru Coolant Code Output after initial XY Before Z

Creator
Creator

Hi 

 

Thanks for your response

 

I added a block called coolant on


2019_02_01_05_51_31_WORD_M_coolant.jpg 

added an output condition 

 

2019_02_01_05_51_31_WORD_M_coolant2.jpg

 

But I dont get any output

 

(OPNAME- 6MM_PILOT_HM)
G00G91G30Z0.0
G30X0.0Y0.0
G90T316
M06
G59
T221
M11
B0.0
M10
S3700M03
X-150.Y22. (NO Coolant or Comment)
G43Z250.H1
G17G83X-150.Y22.Z188.R210.F344.Q2.
G80
M09

 

I added simular to an inital move block, to test see if i got an output & it worked

 

2019_02_01_05_51_31_WORD_M_coolant3.jpg

 

(OPNAME- 6MM_PILOT_HM)
G00G91G30Z0.0
G30X0.0Y0.0
G90T316
M06
G59
T221
M11
B0.0
M88
(*********)
M10
S3700M03
X-150.Y22.
G43Z250.H1
G17G83X-150.Y22.Z188.R210.F344.Q2.
G80
M09

 

Not quite sure why it won't work on the rapid move ?

 

Re: Thru Coolant Code Output after initial XY Before Z

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

You'll have to open up the post's .tcl file and look thru proc "MOM_rapid_move"

Once you decipher that logic, it could guide you as to the solution.

 

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: Thru Coolant Code Output after initial XY Before Z

Gears Phenom Gears Phenom
Gears Phenom

Hi, @Ash_Nz 

 

I put condition command same as you I got this:

N0040 G00 G90 X-34.497 Y149.994 S1020 M03
N0050 ++++
N0060 G43 Z20. H00

So it is working

 

(I would not recomment to anything manuall in tcl.)

 

If you dont mind you can share your postprocesor and I can take a look.

Maybe there could be something...

---------------------------------------------
#♫ PB, 5ax, itnc, nx, vericut ♫ #

Re: Thru Coolant Code Output after initial XY Before Z

Creator
Creator

Hi Juraj

 

I created a test post & the only thing I added was on output condition on the rapid move & I don't get any output from it 

 

NewPost.jpg

 

see the attached post

 

 

Re: Thru Coolant Code Output after initial XY Before Z

Creator
Creator

Hi @Juraj 

 

I think its NX10 post builder because i tried NX12 post builder & it works fine !

 

O0001
G40 G00
M09
N0010
(6MM_PILOT_HM)
G97
M303
M05
G94
T99
G91 G28 Z0.0
M11
G91 G28
M10
M69
G91 G30 B0.0
M68
G91 G30 X0.0
M1
T99
M6
N11
T701
M11
M69
G00 B0.0
G90 X-150. Y22.
G43 Z250. H99 S3700 M03
***********
G17
G98 G83 X-150. Y22. Z188. F344. R210. Q2.
G80
N0020

Re: Thru Coolant Code Output after initial XY Before Z

Gears Phenom Gears Phenom
Gears Phenom

hi,

but as I see you didnt get output BEFORE rapid spindle

 

XY

****

Z

 

with condition command it should be possible as I showed you above

---------------------------------------------
#♫ PB, 5ax, itnc, nx, vericut ♫ #

Re: Thru Coolant Code Output after initial XY Before Z

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

I think you will need to dig into the proc MOM_rapid_move to figure out the issue. (I'm not saying you HAVE to EDIT the code, but it may come to that).

 

Otherwise if only in initial move event that this is required (not in first move, or any other rapid motion)

add a couple blocks to the VERY END of the initial move event:

- "G0 X Y" block (you may need other words from the "traverse" block from the rapid move event)

- output your coolant (if specified)

Due to modality, the rapid move should then just output the Z

 

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