Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 02:18:46 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  General Mach Discussion
| | |-+  Missing lines of Gcode
Pages: 1   Go Down
Print
Author Topic: Missing lines of Gcode  (Read 464 times)
0 Members and 1 Guest are viewing this topic.
bwprice100
Active Member

Offline Offline

Posts: 61




View Profile WWW
« on: July 23, 2010, 09: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
Logged

M250cnc
Active Member

Offline Offline

Posts: 591




View Profile
« Reply #1 on: July 23, 2010, 11:52:47 AM »

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.

Logged

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

The Bad Thing About Mach3, Is It's Too Configurable
bwprice100
Active Member

Offline Offline

Posts: 61




View Profile WWW
« Reply #2 on: July 23, 2010, 12: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, 12:20:08 PM by bwprice100 » Logged

Hood
Active Member

Offline Offline

Posts: 17,352


Carnoustie, Scotland


View Profile
« Reply #3 on: July 23, 2010, 03:00:47 PM »

Can you attach your xml please, also is that the full code?
Hood
Logged
bwprice100
Active Member

Offline Offline

Posts: 61




View Profile WWW
« Reply #4 on: July 23, 2010, 03:16:43 PM »

Hi Phil

Yes full code

xml file attached

Cheers Brian

* Copy of Mach3Mill.xml (41.77 KB - downloaded 46 times.)
Logged

Hood
Active Member

Offline Offline

Posts: 17,352


Carnoustie, Scotland


View Profile
« Reply #5 on: July 23, 2010, 03: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
Logged
bwprice100
Active Member

Offline Offline

Posts: 61




View Profile WWW
« Reply #6 on: July 27, 2010, 12: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 Sad 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
Logged

Hood
Active Member

Offline Offline

Posts: 17,352


Carnoustie, Scotland


View Profile
« Reply #7 on: July 27, 2010, 02: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
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!