Hello Guest it is March 28, 2024, 03:07:13 PM

Author Topic: Missing lines of Gcode  (Read 4894 times)

0 Members and 1 Guest are viewing this topic.

Missing lines of Gcode
« on: July 23, 2010, 10:48:39 AM »
.
I am having a strange proble with Mach 3 missing out lines of Gcode. i am using the following gcode to put a chamfer on the end of a hex bar but every now and again complete lines of code are just missed out. It is not always the same lines but as soon as I go to the MDI window the axis move no problem. For example it will sometimes miss out line 8 and sometimes line 6

Any thoughts much appreciated

Brian


1 G00 Z6
2 G00 X15.5 Y25
3 G00 X15.5 Y0
4 G01 Z0 F30
5 G01 Z-1 F10
6 G17 G03 X15.5 Y0 I-15.5 J0 F35
7 G00 Z6
8 G00 X15.5 Y25
9 M30
Re: Missing lines of Gcode
« Reply #1 on: July 23, 2010, 12:52:47 PM »
Brian

You do not mention what type of machine you are using but it sounds as though it is a lathe.

The G17 command sets the system to default to the XY plane as the main machining plane for specifying circular interpolation moves and/or cutter compensation.

Yet you say you want a chamfer ?

Commands like G17 should be at the start of a file (Header) anyway.

The Good Thing About Mach3, Is It's very Configurable

The Bad Thing About Mach3, Is It's Too Configurable
Re: Missing lines of Gcode
« Reply #2 on: July 23, 2010, 01:17:25 PM »
Hi Phil

Sorry its on my mill and i have the hex bar standing upright in the vice.

My command of Gcode is limited but what I can't understand is the randomness about this.

Are you saying it may be because the G17 code should not be there or should be at the start of the file.

Brian
« Last Edit: July 23, 2010, 01:20:08 PM by bwprice100 »

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Missing lines of Gcode
« Reply #3 on: July 23, 2010, 04:00:47 PM »
Can you attach your xml please, also is that the full code?
Hood
Re: Missing lines of Gcode
« Reply #4 on: July 23, 2010, 04:16:43 PM »
Hi Phil

Yes full code

xml file attached

Cheers Brian

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Missing lines of Gcode
« Reply #5 on: July 23, 2010, 04:54:22 PM »
I have run your code 4 times and its not skipped any lines, however there is something weird about your xml and I have not been able to find what it is so far.
What I am seeing is a delay between the G1 move in the Z ending and the G3 starting. I also seem to see a problem when jogging the X axis, it will jog and stop and then requires a further press to get it moving properly. Do you see that?

Might be worth your while making up a new xml and seeing how that goes.
Hood
Re: Missing lines of Gcode
« Reply #6 on: July 27, 2010, 01:59:51 PM »
I have run your code 4 times and its not skipped any lines, however there is something weird about your xml and I have not been able to find what it is so far.
What I am seeing is a delay between the G1 move in the Z ending and the G3 starting. I also seem to see a problem when jogging the X axis, it will jog and stop and then requires a further press to get it moving properly. Do you see that?

Might be worth your while making up a new xml and seeing how that goes.
Hood

Hi Hood

Sorry about the slow response but I have been in my sick bed all weekend :( so I am behind with my work. I should be able to have a closer look tomorrow but I do see the double press when jogging; I am using a wireless keyboard so I just put it down to a lost signal

How would I make up a new xml file?

Brian

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Missing lines of Gcode
« Reply #7 on: July 27, 2010, 03:20:43 PM »
Best way is just to open Mach via the loader (or double click Mach3.exe in the Mach3 folder)
Then choose New Profile at the right then type the name. You will need to then re-enter all of your ports and pin settings in this new profile. Dont use the clone option as that would just reproduce the errors that are already there.

Hood