Hello Guest it is March 28, 2024, 05:13:19 PM

Author Topic: Step increment wrong after loading g-code  (Read 4627 times)

0 Members and 1 Guest are viewing this topic.

Step increment wrong after loading g-code
« on: May 20, 2009, 01:41:04 PM »
Just upgraded to the current release version R3.042.020 and I run into an odd problem. When I first open Mach3 everything works normally. I can jog in increments of 0.001 and the machine moves in increments of 0.001, so far so good. If I then load previously run g-code and try to jog the machine moves 0.025 for every 0.001 requested. I also noticed on loading that the x, y, and z DRO showed different values after loading the file but clicking on any axis zeros all three (I had previously zeroed the axis prior to loading the file).

Any thoughts?

Ward

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Step increment wrong after loading g-code
« Reply #1 on: May 20, 2009, 01:50:24 PM »
Does your code have a G21 in it?

Hood
Re: Step increment wrong after loading g-code
« Reply #2 on: May 20, 2009, 02:24:06 PM »
No, no G21 in the code. I loaded some very simple g-code, just basic moves and those didn't effect the step size. I'll dig some more into the code. I wasn't aware that Mach3 evealuated the code before it was run?

Ward

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Step increment wrong after loading g-code
« Reply #3 on: May 20, 2009, 02:35:28 PM »
Yes Mach runs through the code so that it can display the toolpath, it also checks for any illegal moves/code.
 Certainly sounds to me like your code is changing the DROs to metric and thus a 0.001 inch move would show as 0.025mm in the DRO.
Hood
Re: Step increment wrong after loading g-code
« Reply #4 on: May 20, 2009, 02:46:00 PM »
Ok, the evaluation run makes sense. So here is a quick piece of test code. I used the same post to create this as the other code. The code specifies G80 (inches) so I'm still not sure what is happening.

(BEGIN PREDATOR NC HEADER)
(MACH_FILE=3AXVMILL.MCH)
(MTOOL T8 S1 D.0625 H1.995 DIAM_OFFSET 8 = .0313)
(SBOX X0. Y-1. Z-1. L1. W1. H1.)
(END PREDATOR NC HEADER)

%
O100
(PROGRAM NUMBER)
(PROGRAM NAME - ONE_INCH_SQUARE_TEST.NC)
(POST -  MACH 3 ROUTER)
(DATE - WED. 05/20/2009)
(TIME - 11:41AM)

N01 G20 G80 G90 G91.1
N02 G0 Z0.1

(JOB 1  CONTOUR)
(FEATURE PROFILE)

N03 T8
N04 S1500 M03
N05 G00 G90 X0. Y-1.
N06 Z.1
N07 G01 Z-.05 F10.
N08 X1.
N09 Y0.
N10 X0.
N11 Y-1.
N12 G00 Z.1
N13 M05
N14 G00 Z0.1
N15 M02

(END OF PROGRAM)

N16 M30
%
Re: Step increment wrong after loading g-code
« Reply #5 on: May 20, 2009, 02:50:26 PM »
Oops, G20 is inches mode, G80 is canned cycle cancel. Gotta proof read my posts better ;-)

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Step increment wrong after loading g-code
« Reply #6 on: May 20, 2009, 02:51:14 PM »
 Does that code cause you problems?
Please attach your xml and I will have a look and see if I can replicate it here.
Hood
Re: Step increment wrong after loading g-code
« Reply #7 on: May 20, 2009, 02:58:37 PM »
Hood, thank you for all your help! Your suggestion that it was metric vs inches jogged my memory. When I installed the new version, I walked through all the configs except the native units. Go figure, it was reset to mm when it was installed. Setting it back to inches solved the problem.

Thanks again!

Ward

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Step increment wrong after loading g-code
« Reply #8 on: May 20, 2009, 02:59:19 PM »
:)