Hello Guest it is March 29, 2024, 10:38:01 AM

Author Topic: Initial startup problem  (Read 1975 times)

0 Members and 1 Guest are viewing this topic.

Initial startup problem
« on: October 20, 2014, 06:17:26 PM »
Hi, I quite new to Mach3 and I have a problem when starting my milling.
After I have refed all the axis, the tool is in the material (Z0). When I start the milling program, the tool moves in X/Y direction first to the starting point after that the Z axis is moved up and then down to start the actual milling. I would like the tool to move up first to safe pos, then moxe X/Y axis.
Now I get som nice scratches on the topface of the material.

Br
Stefan

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Initial startup problem
« Reply #1 on: October 20, 2014, 07:56:03 PM »
Your G-code needs to do that, unless of course you are pressing the GoToZ button to move to Zero.
If you are doing the latter then you need to set up the safe Z, I prefer machine coords.

If it is the former then as mentioned it is your G Code that should move the Z up before moving the X and Y.
Hood
Re: Initial startup problem
« Reply #2 on: October 21, 2014, 03:54:07 AM »
Hi, and thanks for your reply.

Here's my G-code, am I right in saying that G28 G91 Z0. is the 'go home'  command. I guess I have made some fundamentially wrong here. But the code below drags my milling tool all over the workpiece, creating a huge scratch, when the tool comes to startpos, it goes up in Z dir and then down to start milling.

(PRG7)
(T2  D=60. CR=0. - ZMIN=0. - FACE MILL)
G90 G94 G17
G21
G28 G91 Z0.
G90

(FACE1)
M5
M9
T2 M6
S5000 M3
G54
M8
G0 X101.131 Y-44.43
G43 Z15. H2
Z6.
G18 G3 X95.131 Z0. I-6. K0. F1000.
G1 X71.084
X-71.084
X-72.
G17 G2 Y1.35 I0. J22.89
G1 X72.
G3 Y47.13 I0. J22.89
G1 X70.595
X-70.595
G18 G3 X-76.595 Z6. I0. K6.
G0 Z15.
G17

M9
G28 G91 Z0.
G28 X0. Y0.
M30


Br
Stefan