Dynomotion

Group: DynoMotion Message: 12221 From: philloder Date: 9/8/2015
Subject: mach3 jogs fine but stalls when running G-code

I am trying to finish a CNC 3 axis router and am having issues with Mach3 current rev.

My setup is as follows.

KFlop board

KStep board

Windows XP pro

Mach 3 R 3.043.066

KFlop ver 4.32

3 axis with "A" slaved to "Y"  open loop normal stepping

All motors are nema 34, 200 steps / rev 

Motor tuning is V=3000 A=30000 J=300000 in Step Response.

16,598 pulses per inch

All that is loaded on Reset is the init C-Code

Pulse width is set to 4 uS in the standard C-Code

Axis A = -1 In the C-code (1,2,3,-1)

I made G-Code that is a Box that runs the parameter of my machine multiple times.

When I run the G-Code in DynomotionCNC everything runs perfect at 90 in/min. I ran this at least 20 times and each run lasts about 10 minutes with no fail or missed steps per marks on the gears. A axis is not bolted to the gantry but has a alignment mark that I verify on all "Y" axis moves. 

Using the same setup for Mach3, I can Jog the X and Y axis and all is good.

When I try to run the G-Code it Stalls immediately. I tried changing the motor settings in Mach to 30 in/min and changed the G-Code to match and it still stalls when start is pressed.

I checked the tutorial for Mach3 setup for Kflop and Mach3  and could not find anything.

What is the difference jogging vs running code?

 

Group: DynoMotion Message: 12222 From: Tom Kerekes Date: 9/8/2015
Subject: Re: mach3 jogs fine but stalls when running G-code
Hi,

Mach3 GCode uses the Acceleration in the "Config | Motor Tuning" where continuous Jogs use the Acceleration and Jerk setting in KFLOP.

What is your Mach3 Motor Tuning Acceleration set at?

Regards
TK

Group: DynoMotion Message: 12224 From: philloder Date: 9/8/2015
Subject: Re: mach3 jogs fine but stalls when running G-code
Mach3 motor settings
counts/inch 16,598
velocity 30
accelleration 100
Group: DynoMotion Message: 12225 From: TK Date: 9/8/2015
Subject: Re: mach3 jogs fine but stalls when running G-code
I assume that Mach3 configuration is in inches?

If so 100 in/sec2 would be very high acceleration. KFLOP is set to less than 2 (seems low).

HTH
Regards
TK

On Sep 8, 2015, at 10:35 AM, philloder@... [DynoMotion] <DynoMotion@yahoogroups.com> wrote:

 

Mach3 motor settings
counts/inch 16,598
velocity 30
accelleration 100

Group: DynoMotion Message: 12231 From: philloder Date: 9/8/2015
Subject: Re: mach3 jogs fine but stalls when running G-code
That was it, thanks Tom
She runs like a top.