Quantcast
Channel: Practical Machinist - Largest Manufacturing Technology Forum on the Web - Deckel, Maho, Aciera, Abene Mills
Viewing all articles
Browse latest Browse all 2110

M07 is getting skipped

$
0
0
I have a D2 program that looks like this. It cuts a 30 degree conical section

N0 set speed, feed, lube cycle, move to start position.
N1 g1 x1y1z1 start coolant < move to top of conical section (or move over ½ degree when called during the repeats)
N2 g1 x2y2z2 < move to bottom of conical section
N3 rotate xy axis ½ degree
N4 g1 x2y2z2 < move over ½ degree
N5 g1 x1y1z1 < move to top of conical section
N6 rotate xy axis ½ degree
N7 repeat 35 times N1 thru N6
N8 lube cycle
N9 repeat 9 times N1 through N8
N10 M30

The program works fine, except for one thing. The only lube cycle that gets called is the first one in line N0. So it does 1440 short moves without any additional lubrication. I tried changing N8 to G1 Z=4, M7, and sure enough, it does go to Z=4 now after every 144 moves, but again, no lube cycle. And while a program is running you cannot manually initiate a lube cycle. Any ideas?

Question #2. When I originally wrote the program, instead of the g1 xyz commands I used polar coordinates (g09 g1) and told it to move along a 30 degree angle in the XZ plane (I specified i=0 and k=0). I got an error 81, which the manual says means conflict of planes, so I guess that is not allowed. Fortunately the g1 x,y,z *is* allowed after a rotation of the axis, and Dialog does all the calculations to make it work right, so the program ended up being very simple. It is actually slightly longer than shown, because it is for cutting the 30 deg. angles in a cylinder head that has two cylinders, so there is a g54 to reset program zero followed by an addiitonal repeat. I am wondering if it is the nested repeats that cause the problem with M07 not getting called.

-Dave

Viewing all articles
Browse latest Browse all 2110

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>