What's new
What's new

fanuc 6 G-code from Mastercam to Protortrak

DLCGeno

Plastic
Joined
Mar 21, 2017
Hello,

I am trying to mill an elliptical pocket on a prototrak. The trak did not recognize the dxf from Soidworks. Does anyone have any experience with this? Thanks
 
Hello,

I am trying to mill an elliptical pocket on a prototrak. The trak did not recognize the dxf from Soidworks. Does anyone have any experience with this? Thanks

some Prototraks do not see any Z axis gcode if you got
G0 X1.0 Y1.0 Z2.0
G0 X1.0 Y1.0 Z0.0
it will often not see Z change notice X and Y the same and give error message cause you telling it to move nothing
.
i have gotten around lead in and lead out milling by selecting a helix approach. it again does not see the Z change but does see X and Y change
.
usually got to edit gcode a bit to get it to work.
 
This is a 2-axix trak, forgot to mention that...

.
AGE-2 is more tolerant of gcode than MX-2 or Prototrak Plus
.
Prototrak Plus i know cannot see Z as i used for over a decade. if you send back to laptop you can read how it translated the Fanuc to SWI gcode. i believe
CR-
is when you want it to stop for Go button push like when changing Z manually
CR0 is connecting radius zero but it continues on
.
some basics
.
(Funac,6,gcode,save,file,as,filename.cam)
Gcode....Function....NonModal?,(needs,on,each,line?)
--------------------------------------------------------------------------------------
G00....Position,(Rapid)..........................NonModal
G01....Linear,Interpolation.....................NonModal
G02....Circular,Interpolation,CW............NonModal
G03....Circular,Interpolation,CCW..........NonModal
G20....Inch,Mode..................................Modal
G21....Metric,Mode..................................Modal
G40....Tool,Compensation,(Dia),Cancel ....Modal
G41....Tool,Compensation,Left..................Modal
G42.....Tool,Compensation,Right................Modal
G90......Absolute,Coordinates,Mode...........Modal
G91......Incremental,Coord.,Mode...............Modal
--------------------------------------------------------------------------------------
SWI,gcode,for,Prototrak,Plus,Mill,(2,axis,mill),save,file,as,filename.mx2
G100....Position,(Rapid)
G101....Linear,Event
G102....Arc,Event,CW
G103....Arc,Event,CCW
G104....Bolthole,Event
G105....Repeat,Event
G106....Rectangular,Pocket
G107.....Rectangular,Frame
G108.....Circular,Pocket,Event
G109......Circular,Frame,Event
-------------------------------------------------------------------------------------
Axis,Codes Function
X.......X,Axis,ending,point
Y.......Y,Axis,ending,point
XB....X,Axis,beginning,point
YB....Y,Axis,beginning,point
XE.....X,Axis,ending,point
YE.....Y,Axis,ending,point
XC.....X,center,(absolute,or,incremental,from,X,arc,ending,point)
YC.....Y,Center,(absolute,or,incremental,from,Y,arc,ending,point)
I.........X,center,(Incremental,from,Arc,beginning,point)
J........Y,Center,(Incremental,from,Arc,beginning,point)
XD......X,Diagonal,Position,(used,by,G106,&,G107)
YD......Y,Diagonal,Position,(used,by,G106,&,G107)
------------------------------------------------------------------------------------
Misc,Code....Function
A.......Angle,Input
HL.....Number,of,holes
PN.....Part,number
R.......Radius,Input
CR.....Conrad,Input,(Connection,Radius,or,gcode,continue(CR0),or,stop(CR-))
F........Feed,Rate,Input,(needs,to,be,##.#,or,10.0)....Modal
T........Tool,number,input......Modal
TC......Tool,Compensation,Input....Modal
D........Diameter,Input..........Modal
FE.......From,Event,Input
FC.......Finish,Cut,Input
DR.......Direction,Input
LE........To,Last,Event,Input
RE.......Repeat,Event,Input
N..........Line,Number
;...........End,of,Block,Character,(End,of,line)(Semicolon)
%.........End,of,Program
(..........Start,of,Comment,Character
)..........End,of,Comment,Character
-----------------------------------------------------------------------
G20,G90,G40;,,,,,,,,,,,,(Inch,,Absolute,coord,,Tool,Dia,Cutter,Comp,off)
M06,T1,D0.5;,,,,,,,,,,,,(Tool,Change,,Tool,1,,Dia=0.5)
G92,X0.0,Y0.0,Z0.0;,,,,,(Reset,Coord,or,Start,Postition,Stated)
G01,X2.0,Y0.0,F10.0;
G02,X0.0,Y0.0,I-1.0,J0.0;
%

(Above,Sent,to,Prototrak(with,no,comments),,Below,what,came,back)
(Feed,needs,to,be,#.#,(10.0),or,10,will,change,to,1.0)
(XB,and,YB,is,XB0I,or,no,Incremental,change,from,last,position)
(I,J,Incremental,from,Arc,Start,changed,to,XC,YC,incremental,from,Arc,End)
(G,code,must,be,on,every,line)(G,code,must,have,spaces,between)
(End,of,block,(line),must,be,;,(semicolon))

PN0,G20;
N001,G101,XB0I,YB0I,XE2.0A,YE0A,TC0,F10.0,D0.5,CR0,T01,;
N002,G102,XB0I,YB0I,XE0A,YE0A,XC1.0I,YC0I,F10.0,TC0,D0.5,CR-,T01,;
%
 








 
Back
Top