Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

custom cycles

Status
Not open for further replies.

jemoce

Computer
Sep 20, 2013
6
Hi,
I am learning the use of NX.
To learn about postprocessor, I am creating a lathe postprocessor, and I want the generated code with cycles.
If I am correctly, the fist thig I should do is create a custom cycle in NX to generate the event.

Is this correct? Is there any other way to do it?

Thanks everybody!!
 
Replies continue below

Recommended for you

In Post Builder create a lathe post with a Siemens 840D lathe control.
In NX create a rough turn OD operation, and set the motion output to machine cycle.
(You could also open the sample mill turn part and edit the OD operation there)
Postprocess the operation through your new post and you will see CYCLE95 output.
That should get you started...


Mark Rief
Product Manager
Siemens PLM
 
Yes, I saw the postprocessor from Siemens. It uses the contour_start and contour_end events, however, I don´t know how to activate this events.
Do you know how to activate it?
 
You have to have some text (cycle 95) or somthing like it in your post. Those terms only make sense to a Siemens controller, it is not what you might think contour start or end should be. I was also told that they will provide documentation on these commands in a future release.
 
Debuging this post, I can see that it listen the event MOM_contour_start, and when it occurs, saves the trayectory and doesn´t print. When MOM_contour_end occurs, it prints the next line:
"N80 CYCLE95("G95:G95_END",60.,0.5,0.7,0.,0.7,0.5,0.7,2,0.,0.,0.)"

as you can see, the trayectory will be output in a block from G95 to G95_END.
This block, is printed when MOM_end_of_program occurs.

I understand the post, however, I can´t find the way to activate the listen to the MOM_contour_start and MOM_contour_end events, I think this is the key.
 
To get the contour start and rend events, set the motion output to machine cycles.
Machine cycles are only available for some turning operations.



Mark Rief
Product Manager
Siemens PLM
 
I just tried, but it doesn´t work!!!!

I tried to setup the operation in machine cycle, and creating a new postprocessor, in the .tcl code I wrote:

[ignore]#=============================================================
proc MOM_contour_end { } {
#=============================================================
MOM_output_literal "MOM_contour_end"
}


#=============================================================
proc MOM_contour_start { } {
#=============================================================
MOM_output_literal "MOM_contour_start"

}[/ignore]

And the result of the generation is:

[ignore]%
N0010 G94 G90 G71
N0020 G92 X0.0 Z0.0
N0030 T00 H00 M06
N0040 G97 S0 M03
N0050 G94 G00 X34.2 Z.5
N0060 G96 S0 M03
N0070 G95 G01 X33. F.1
N0080 X18.8
N0090 X-1.2
N0100 X-2.4 F1.
N0110 M02
%[/ignore]

There is no message!!!!
 
What event did you attach the proc to?



John Joyce
N.C. Programming Supervisor
Barnes Aerospace, Windsor CT
NX6, NX7.5 & NX8.5
Vericut7.2.3
 
I didn´t attach any event, How can I do that?
 
It appears that you need to get some training in Post builder or at the very least review the help docs.



John Joyce
N.C. Programming Supervisor
Barnes Aerospace, Windsor CT
NX6, NX7.5 & NX8.5
Vericut7.2.3
 

You can drag and drop a custom command to a procedure such as Start of Path or End of Path



John Joyce
N.C. Programming Supervisor
Barnes Aerospace, Windsor CT
NX6, NX7.5 & NX8.5
Vericut7.2.3
 
To see those events in Post Builder, you need create your post using the Siemens 840D Lathe control.

Mark Rief
Product Manager
Siemens PLM
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor