View Full Version : Look ahead and g10 L10 problem


REVCAM_Bob
04-10-2007, 01:03 PM
I have programs that I use the G10 L10 P99 R- x.xxx statement to set a tool
length, the problem is that I use the h99 for anything above tool 100, and the program looks ahead and sets the value to the last one it finds in the program.

Does any one know how to stop this look ahead from doing this?

I was useing TO statements, and that works o.k. but for dnc it would not work, that is why I am trying th g10 route.....

Thanks!!


*DRILL 0.3437
G10 L10 P99 R0 -6.9120
T1M6
M00
*
*PUT TOOL 107 IN SPINDLE
*(11/32 (0.3437) TAPER LENGTH)
*
H99 Z0.1000
S333 M3 M8

jakk100
04-10-2007, 01:51 PM
Try below.
G90 G10 L10 P099 R-6.9120
Is it a Fanuc control?
If above doesnt work try a G11 next line after G10. G11 will turn off parmeter write.
If that dont work, try an emty N block such as N100 after the G10 line.

REVCAM_Bob
04-10-2007, 02:07 PM
it actually is setting the values, the problem is that in dnc mode it looks ahead and sets the value to the last one in the program..... :)

Dsny
04-17-2007, 09:03 AM
I don't run DNC, but I have found that a block skip on the line before the G10 will prevent this problem. I use the G10 for a part counter at the end of the program.
For example...
/N100
N110 G90 G10 L12 P36 R0+4.

Geof
04-17-2007, 09:43 AM
I don't run Fadals but I think they recognise G52 in a standard manner. I think you should be able to simulate a tool offset using G52. Immediately following the tool change instead of calling a tool offset leave that at zero and use G52 Z-(whatever the tool offset distance would be). This just moves the Z work coordinate down by the distance of what would be the tool offset. Then when that tool is done just before the next toolchange use G52 Z0.0.