I need some help with a Fanuc .tmp file that I am using
to code 5 axis drilling locations with.
 
The following statements works in tying the
"B" axis rotation to the "J" and "R" vectors. 
 
#EVAL(#fakec=(#INDXA+90))
#IF(#INDXB<0)<#EVAL(#rindey)=1)>
#IF(#INDXB>0)<#EVAL(#rindey)=-1)>
#IF(#INDXB=0)<#EVAL(#rindey)=0)>
G90 G00 B#INDXB  C#INDXA
G68 X#XFO Y#YFO Z#ZFO I0 J#FMT(#rindey) K0 R#FMT(#rindex,D3.4)
 
 
My problem is that when the "B" axis reads positive the "J" vector
reads negative. I need the "J" to read positive.
 
G90 G00 B15.0  C0.0
G68 X0.0 Y0 Z0 I0 J-1.0 K0 R15.0
 
What I am trying to come up with is a  way to have the "I J  K" vectors
activated with a 1 when needed or a zero call out when not in use.
 
The activation for  " I J K " needs to be tied to the "C" and "B" axis rotations.
 
 
I am at a lose on how the tell the tmp file to separate each Vector
and activate when the "C" and "B" are at a certain result..
 
 
Thanks
 
Brock
 
 

Reply via email to