as machine runs through program,and before it gets done traveling it moves to next line on gcode. goes down before getting to hole location, hope you understand what i am saying? thanks brian
as machine runs through program,and before it gets done traveling it moves to next line on gcode. goes down before getting to hole location, hope you understand what i am saying? thanks brian
Sounds like a software problem, in Gcode a line of code is considered a block and should complete before moving to the next block.
The only exception I can think of is a G31 which is block skip. i.e. it does not complete the block if a skip signal is input.
Most programs signify the end of a block by CR (carriage return).
Al.
CNC, Mechatronics Integration and Custom Machine Design
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
The Man, Can I send you my code and you can see if theres a problem with it?
Thanks Brian
That is a canned cycle problem in your G-Code. It would be easier to point out if you could post the lines of code that you are referring to.
Direction, Commitment, Follow Through
here are the first couple of lines, the problem occurs when cutter is returning to X0 it gets about 3 inches away and starts to go down instead of staying at the Z0.1 position.
G0 G49 G40 G17 G80 G50 G90
M3 S2000
G0 X0 Y0 Z0
G0 X0 Y2.375 Z-1.165
G1 X14 F20
G0 X14 Z0.1
G0 X0
G0 X0 Y2.373 Z-1.1019
G1 X14
G0 X14 Z0.1
G0 X0
G0 X0 Y2.3682 Z-1.039
G1 X14
G0 X14 Z0.1
G0 X0
G0 X0 Y2.3596 Z-0.9765
G1 X14
G0 X14 Z0.1
oh man.......well i'll try
are you running from machine zero I see no fixture offset call.
You have redundent X and Z position calls, once its there you don't have to tell it again. Then you have a G0 X0 Y2.375 Z-1.1019 which is a rapid move in Y and Z. It's doing just what you are telling it to do.
I've always said CNC machines are smart enough to do whatever you tell them to do and dumb enough to do it!!
Be carefull what you wish for, you might get it.
It should not make a difference, but there are alot of redundancies in your code,
Maybe the post you are using,
e.g. G1 X14;
G0 X14 Z0.1;
You do not need the X14 on the second line as X should already be there.
Also the G0, G01 are modal, so they really only need to be issued once, not on repetitive lines.
Is it possible the editor you are using is not inserting the necessary end of block? wether this be Line Feed, Carriage Return etc.
Al.
CNC, Mechatronics Integration and Custom Machine Design
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
G0 G49 G40 G17 G80 G50 G90
M3 S2000
G0 X0 Y0 Z0
G0 X0 Y2.375 Z-1.165 This is the problem. Z should be at Z0.1 in rapid
G1 X14 F20
G1 Z-1.165 This should be here in cut mode
G0 X14 Z0.1 redundant on X, Z OK
G0 X0 Don't need to go back to X0
It seems that your post is screwed up but you can rewrite this in a text editor if you want to run it.