Hello Guest it is November 13, 2019, 05:35:00 PM

Author Topic: My File is running real slow  (Read 2140 times)

0 Members and 1 Guest are viewing this topic.

My File is running real slow
« on: April 09, 2018, 06:44:13 PM »
I am running the file below:

This is a new machine, and this is the first file I am attempting to run.

When it runs the machine moves real slow. But shouldn't it be running at the machines maximum feedrate? (I am air cutting to test it out). Currently as it is running it would take about 20 min for A to turn 360 degrees.

The only thing I can think of is that it's the settings for the motors. When I add A to the motion is when it slows way down. X, Y, Z resolution is .005". My goal for the A axis is to have the same resolution at a 4" circumference.

What do i need to do to get my code running at a decent speed?

X: 2000 steps/inch, Velocity 350 Inches/min, Accel 50
Y: 2000 steps/inch, Velocity 350 Inches/min, Accel 50
Z: 8000 steps/inch, Velocity 50 Inches/min, Accel 12.5
A 81.2698 steps/inch, Velocity 10800 Inches/min, Accel 2700



O0001
G90
G00 X0 Y18.5
G00 Z-1
G91
M98 P2 L36 (call function, Function 0002, do it 34 times ->18 inches)
G01 Y-.25 A180
G01 Y-.125 A90 Z.29
G00 Z0
G00 Y0 A0
M30
(Thread cutting loop)
O0002
G01 Y-.5 A360
M99
%
Re: My File is running real slow
« Reply #1 on: April 09, 2018, 06:56:28 PM »
Hi,
G00 is a move at rapid traverse rate, ie the maximum the motors can run according to your tuning.

G01 is a move at the prevailing feed rate. You haven't specified a feed rate. Try putting a line F100 near the top
of the file and try again.

Next thing to do is seperate the A axis moves from the linear moves and specify a suitable feed rate on the A axis move line.

You might consider a basic text about Gcode.

Craig
My wife left with my best friend...
     and I miss him!

Offline RICH

*
  • *
  •  7,370 7,370
    • View Profile
Re: My File is running real slow
« Reply #2 on: April 09, 2018, 07:13:41 PM »
The A axis is a rotary and it should be configured as such thus steps per degree not steps per inch.
Think you are getting confused about  the linear and rotary selection boxes in general configuration.


OOPs  :D Just noticed this is a Mach4 discussion .............  BYE ;D

RICH
« Last Edit: April 09, 2018, 07:16:32 PM by RICH »
Re: My File is running real slow
« Reply #3 on: April 10, 2018, 05:04:29 PM »
Thanks for pointing that out. I played with the feedrate and had to up it to 2000 to get a decent speed. The cycle takes about 7:00 min to run.

Does this seem normal that I would have to set the feedrate so high?

Also when it finishes the line: G01 Y-.5 A360
it goes to the last line: M99

But it pauses for about a half second. Is there a way to eliminate the pause?
Re: My File is running real slow
« Reply #4 on: April 10, 2018, 05:12:47 PM »
Hi,
no, that would suggest a feed rate of 2000 inches/minute. Are you sure that you Gcode is in inches?
Sounds more like 2000 mm/minute. Try putting a G20 at the top of the file.

Craig
My wife left with my best friend...
     and I miss him!
Re: My File is running real slow
« Reply #5 on: April 10, 2018, 05:56:30 PM »
Added a G20 No difference.

I also verified that I am in inchs
Re: My File is running real slow
« Reply #6 on: April 10, 2018, 06:07:01 PM »
Hi,
yes your native units are in inches but your Gcode can still be in mm, its determined by G20/G21.

If you are of the opinion that both your native units are inches AND your machine is interpreting the current Gcode
in inches then your motor tuning is way out.

Craig
My wife left with my best friend...
     and I miss him!
Re: My File is running real slow
« Reply #7 on: April 10, 2018, 06:08:36 PM »
Hi,
may I suggest making and running a simple file without A axis movements. Once your happy about how the linear axes work
then add a rotary axis.

Craig
My wife left with my best friend...
     and I miss him!
Re: My File is running real slow
« Reply #8 on: April 10, 2018, 06:35:59 PM »
I just ran a simple program and nice and fast like I would expect (below)

I do think it's the tunning because A is way out from the others.

I attached my motor tuning pictures. I am running the A axis from a stepper. The stepper has a 14 tooth pulley, and A axis has a 32 tooth pulley. I'm looking to get .005" resolution on a cylinder with a 4" diameter.

G20
O0001
G90
G00 Z0
G00 X0 Y0
G00 Z-1
G00 X5
G00 Y5
F100
G01 Z0
G01 X0 Y0
G01 Z-1
G01 X5
G01 Y5
G00 Z0
G00 X0 Y0
M30
Re: My File is running real slow
« Reply #9 on: April 10, 2018, 07:12:21 PM »
Hi,
try an even simpler program, just one axis at a time.

Say:
g0 x0
x10
x0
x10
x0

should cause x to go back and forth at the max rate ie 350 in/min

Do the same with y and z axes.
Now try:
g1 x0 f100
x10
x0
x10
x0
should cause x to go back and forth at 100 inch/min.
Repeat the same test with y and z axes.

Once you've got those sorted then start with the a axis.

Craig
My wife left with my best friend...
     and I miss him!