Hey everyone,
I just took a job as an engineer with one of my responsibilities being the programming of a CNC Mill using CAMWorks and Solidworks. I have been trying to get the correct post processor for CAMWorks from our supplier, but so far I have no solution from them.
Controller: GE Fanuc 0i-MC
Machine: Mag-Fadal VMC 4020-FX
In the meantime, I have a simple part that needs to be machined but is on hold because I'm too new to this to be able to simply write the code myself. I have some code which is very close to what I need, but I still can't get it exactly right. Here is what I've got so far,
Code:
%
O0007
G40 G90 G17 G80 G49
G49 G40
T11 M06 (3/8 4 FLUTE COA EM)
G40 G90 G80 G49
G0 G56
G0 X-.4 Y0 M3 S1000
G00 G43 H11 Z.50 M8
G0 G56
G01 Z-.75 F4.
G0 G41 D11 X-.4
G02 I.3025 J0
G0 X-.4
G01 Z-1.375
G02 I.3025 J0
G0 X-.4
G01 Z-1.9999
G02 I.3025 J0
G1 G40 D11 X-.5 Y0.0
G0 Z0.25
M5
M9
G0 G91 G28 Z0
G90 M2
%
What I am trying to accomplish is to simply interpolate around the outside of a square peg and mill it down into a round one (don't worry about the potential problems with that). The peg is 0.25" x 0.25" x 2.0" long. I am milling it in three steps from top to bottom.
The machine does everything correct except it doesn't seem to be centered on the part like it should be. I'm not totally sure if it starts out centered or not, but it definitely ends up off of center (by visual inspection). Am I accidentally offsetting the tool by using 'G0 X-.4' and the machine is not returning afterward? Any ideas on what is wrong here would be great. If you need more information I'll be happy to provide it.
Thanks,
Andy
Also: If anyone knows where I can find the correct CAMWorks post processor for my controller and machine, I would really appreciate it. I'm tired of receiving the wrong ones from my supplier!