This should explain the problem better. I created a 40x40mm box in SW and set up the coordinate system in lower left corner. A 20 mm mill to cut a profile around it, set it to the outside=right side. I run the simulation and it looks fine with origin visible in lower left corner. I created the G-code and opened it in Mach3. Here is the problem visible in the Table display. When X and Y says zero the starting position is inside the square. I expect it to be in the corner where origin is defined in SC. Now when I set up the material I have start the mill in to the part, most annoying..
Pictures are G-code, coordinate setup in SolidWorks, 2D-simulation and start screen from Mach3.
Code:
%
O5000 (F_CONTOUR_T1.TAP)
( MCV-OP ) (11-DEC-2009)
(SUBROUTINES: O2 .. O0)
G90 G17
G80 G49 G40
G54
G91 G28 Z0
G90
M01
N1 M6 T1
(TOOL -1- MILL DIA 20.0 R0. MM )
G90 G00 G40 G54
G43 H1 D31 G0 X10. Y-11. Z30. S1000 M3
M8
(----------------------)
(F-CONTOUR-T1 - PROFILE)
(----------------------)
X10. Y-11. Z10.
Z2.
G1 Z-10. F33
X40. F100
G3 X51. Y0. R11.
G1 Y40.
G3 X40. Y51. R11.
G1 X0.
G3 X-11. Y40. R11.
G1 Y0.
G3 X0. Y-11. R11.
G1 X10.
G0 Z10.
M30
%

