What's new
What's new

Compensation

vandisian

Plastic
Joined
May 19, 2003
Location
arbroath,angus,scotland
i have recently started a new job and the machine i am on has a fanuc 10t controler
when i programme with compensation using G41 or G42 it throws and error saying illegal code can nayone help?
im not a bnovice i have been working an programming for years.
 
we need to see the exact code to help you. Are you calling an H number with the g41/42? are you calling it on a straight line or radius? There may a couple parameter things needing called out in a certain way. Generally comps must be turned on in linear moves before radii. H numbers must be called out when doing your g41/42.
 
On some machines the "H" offset that WILLEO6709 mentioned is a "D". Check your manual. Also, if the value in the H/D offset is too large you will get an error. Some machines use the cutter diameter for the offset, others use the radius. Post the code and we'll take a look at it.
 
The G42 comp. move should be made in N10. I assume the canned cycle you have before the G70 is a G71 roughing cycle, in which case it doesn't need to be cancelled.
 
he's using a lathe firstly

the g42 wont work in the g70 line

so G42G70P10Q20 is wrong and the reason for the error

the g42 has to be in the body of the g71 cycle

eg
G71 U3.0 R0.25
G71 P10 Q20 U0.6 W0.1 F.35
N10....
.....
N20G40.....

should be

G71 U3.0 R0.25
G71 P10 Q20 U0.6 W0.1 F.35
N10G00X#.#
G1G42X#.#Z0.0(movement to activate and pickup comp)
.....
N20G40.....

10T will need an R value (eg 1.0 1.5) and a tool position number (eg 3 for od 2 for id).
then when G70 is run it will use the g42 as called in G71.
 
Wow this is and oldy! 3.5 year old thread.
 








 
Back
Top