Subprogram for z height changes

Subprogram for z height changes

jdkendall97
Contributor Contributor
410 Views
7 Replies
Message 1 of 8

Subprogram for z height changes

jdkendall97
Contributor
Contributor

Hi,

 

I have an older control with limited memory. And I am trying a high feed mill for the first time. My Y travel is used to the max so i cant do straight moves so I need to find a way to have the z height called and the x and y moves be a subprogram. How do i do this?

 

jdkendall97_1-1703178154311.png

 

0 Likes
411 Views
7 Replies
Replies (7)
Message 2 of 8

seth.madore
Community Manager
Community Manager

How "Limited" is your memory on the controller?


Seth Madore
Customer Advocacy Manager - Manufacturing


0 Likes
Message 3 of 8

jdkendall97
Contributor
Contributor

About 25kB

0 Likes
Message 4 of 8

seth.madore
Community Manager
Community Manager

And what post processor are you using?


Seth Madore
Customer Advocacy Manager - Manufacturing


0 Likes
Message 5 of 8

seth.madore
Community Manager
Community Manager

So here's what I recommend:
Create a toolpath at a single Z level (your starting height Z level). Place that toolpath into a Linear Pattern, with the direction being your Z axis and your increment value being your depth of cut. Specify the number of repeats.

Using a post processor that spits out Sub program files, set it to "Patterns".

The result looks something like this:

 


Seth Madore
Customer Advocacy Manager - Manufacturing


0 Likes
Message 6 of 8

jdkendall97
Contributor
Contributor

To answer your question, I have an okuma post I modified. I did watched your video and tried it out. It looks like it is not retracting the model top on the subsequence moves and is going to hit the part on some of the moves. To fix that I separated out those to see if it would lift up but it did not. I cant make it do long paths to avoid hitting the side of the parts because it is at the limit of the y travel. However it did significantly reduce the program size.

jdkendall97_0-1703625551910.png

 

jdkendall97_1-1703625650203.png

 

 

Message 7 of 8

jdkendall97
Contributor
Contributor

Is there a way to make it fully retract to the model top plane every time to not hit the parts?

0 Likes
Message 8 of 8

seth.madore
Community Manager
Community Manager

Yes. Use a Manual NC command with a Passthrough snippet of code "G0G90Z.5"

The result will be this for the main code:

(FACE SIDES)
G00X0.23Y9.025
Z1.23
M98 P1002
G0G90Z.5

(FACE SIDES)
G00X0.23Y9.025
Z1.19
M98 P1002
G0G90Z.5

 

And the subroutine will still be the same as it was prior.

 


Seth Madore
Customer Advocacy Manager - Manufacturing


0 Likes