<I only forward the email because the original post was too big to fit on the list,
I removed the attached image, and put it up at:
http://imagebin.org/12581

It will only be there for a couple of days though..

Regards,
Alex>

----- Original Message ----- From: "Andy Lee" <[EMAIL PROTECTED]>
To: <emc-users@lists.sourceforge.net>
Sent: Tuesday, December 25, 2007 1:15 PM
Subject: Re: [Emc-users] EMC ignoring G2 codes


On Mon, 24 Dec 2007 11:50:22 Chris Radek wrote:

<<
Hi Andy, I ran this code and it worked properly.  The only changes I
made were to add G21 and G0 to the beginning, and M2 to the end.

http://timeguy.com/cradek-files/emc/andy-success.png

The preview and machine motion matched.  If you are getting a
different result, we need more information to reproduce it.
Some things that I wonder are:

Does the preview look wrong?

Does the machine motion match the preview?

What exactly do you mean that the arcs are skipped?

What else is above in the program that might influence the path?
Maybe tool radius or length compensation?  G64 setting?  If tool
radius or length comp, what is in the tool table?

Can you narrow down the problem to a very short program that
reproduces it, so you can post the entire program here?

Chris


Thanks for the quick response Chris.

I've tried paring back the code to just after the point at which things
went wrong and the issue disappeared. It was near the start of the
program so I left everything before unaltered. I then added back in the
deleted code in chunks, running the code at an elevated z level above
the work. With approx 2000 lines it worked fine. Then with the full
original code for this tool it ran ok beyond the forth profile level
where the problems started. I then reset it back to the original z-level
without the tool and the fault reappeared. However all operations are
well within the physical boundaries and the red box. I then pared the
code right back again to the attached and the fault again arose on the
fourth level (N224). The short code and a screenshot is attached.

I've also posted the code at the end in case attachments are lost.

This apparent Z level sensitivity is interesting. The machine boundaries
are set at (X -0.01, 6.67), (Y -2.73, 0.01), (Z -6.78, 0.01) putting the
home origin in the top left upper corner. The part (G54) is then zeroed
in absolute coord (X2.9361, Y-1.5052, Z-2.1691). All the tool paths
appear well within the boundaries and I can see no logical reason for
this dependency. I've restarted the program a number of times during
these investigations and with the same z zero the errant behaviour is
repeatable.

<<Does the preview look wrong?>>
The preview is correct to the code, but the tool path display matches
what the tool did. i.e. a red plot line was drawn where no white line
exists. (See attached)

<<What exactly do you mean that the arcs are skipped?>>
The lines containing the G2 code after that point (I ran it for approx
10 more lines) were ignored by the controller. The debug output in the
terminal made no mention of them. The tool motion was consistent with
the machine ignoring the G2 code line and enacting the subsequent G1
line immediately, ploughing straight across the part.
A sample of the debug output is given below:
<<
Issuing EMC_TRAJ_LINEAR_MOVE --          (+220,+116,
+0,1.936829,-2.147814,-5.105566,-0.004303,0.000000,0.000000,0.000000,0.000000,0.000000, +1,0.300000,0.300000,5.000000, +0,)
Motion id 107 took 7.317767 seconds.
Outgoing motion id is 2161.
Issuing EMC_TRAJ_LINEAR_MOVE --          (+220,+116,
+0,1.936829,-2.147814,-5.153715,-0.004303,0.000000,0.000000,0.000000,0.000000,0.000000, +2,0.006562,0.300000,5.000000, +0,)
Motion id 109 took 17.098524 seconds.
Outgoing motion id is 2162.
Issuing EMC_TRAJ_LINEAR_MOVE --          (+220,+116,
+0,2.003561,-2.263208,-5.153715,-0.004303,0.000000,0.000000,0.000000,0.000000,0.000000, +2,0.049213,0.346553,5.775881, +0,)
Motion id 111 took 2.700402 seconds.
Outgoing motion id is 2163.
Issuing EMC_TRAJ_LINEAR_MOVE --          (+220,+116,
+0,2.111159,-2.178917,-5.153715,-0.004303,0.000000,0.000000,0.000000,0.000000,0.000000, +2,0.049213,0.381094,6.351569, +0,)
Motion id 113 took 11.997048 seconds.
Outgoing motion id is 2164.
Issuing EMC_TRAJ_LINEAR_MOVE --          (+220,+116,
+0,2.214191,-2.075885,-5.153715,-0.004303,0.000000,0.000000,0.000000,0.000000,0.000000, +2,0.049213,0.424264,7.071068, +0,)
Motion id 115 took 14.614687 seconds.
Outgoing motion id is 2165.>>

As you can see, motion id 108 (N214), 110 (N218), 112 N222 and 114,
(N226) are skipped.


<<What else is above in the program that might influence the path?
Maybe tool radius or length compensation?  G64 setting?  If tool
radius or length comp, what is in the tool table?>>

G43 H2 is set and functioning correctly (Mastertool recorded as tool 1).
The tool table line is:
<<1 1 5.24 0.24 Touch off probe
 2 2 -3.2415 0.250 1/4” endmill in 1/4” endmill holder>>

G40 is active, so no radius compensation should be present. The machine
is set and remains on G64 throughout.
One observation is the active G code display looks wacky. The code
displayed does not match that active. This seems to happen fairly
randomly. When stopped, both G1 and G0 are displayed (see screenshot).
This seems indicative of some sort of bug.

Bit of a tricky one, hey? Any insight warmly received.

Cheers

Andy

Code:
[
(Mk2 Campump)
(Mk2 Camplate)
(Sherline 5000 / EMC 2.2.2)
(Outer milling)
N10 G21 G90
(T002 - 1/4" Endmill)
N10 T2 M6
N12 G20 G43 H2
N14 G17 G21 G40 G80 G90 G94
N18 G94 G54 G0 X-10.153 Y10.147 Z17.506
N20 G1 Z16.506 F10
N22 G2 X-10.153 Y-10.147 I-10.147 J-10.147 F75
N24 G1 X-11.415 Y-11.409
N26 G2 X-14.39 Y-13.085 I-4.49 J4.49
N28 G1 X-14.392 Y-13.077
N30 G2 X-28.375 Y-11.862 I-5.908 J13.077
N32 G1 X-29.5 Y-11.85
N34 G2 X-35.85 Y-5.5 J6.35
N36 G1 Y5.5
N38 G2 X-29.5 Y11.85 I6.35
N40 G1 X-28.356 Y11.875
N42 G2 X-14.113 Y12.948 I8.056 J-11.875
N44 G1 Y12.951
N46 G2 X-11.331 Y11.325 I-1.708 J-6.116
N48 G1 X-10.153 Y10.147
N50 X-12.398 Y7.902
N52 G2 X-12.398 Y-7.902 I-7.902 J-7.902
N54 G1 X-13.66 Y-9.164
N56 G2 X-15.42 Y-10.056 I-2.245 J2.245
N58 G1 X-15.439 Y-10.062
N60 G2 X-27.338 Y-8.681 I-4.861 J10.062
N62 G1 X-29.5 Y-8.675
N64 G2 X-32.675 Y-5.5 J3.175
N66 G1 Y5.5
N68 G2 X-29.5 Y8.675 I3.175
N70 G1 X-27.338 Y8.681
N72 G2 X-15.22 Y9.953 I7.038 J-8.681
N74 G1 X-15.213 Y9.951
N76 G2 X-13.576 Y9.08 I-.608 J-3.116
N78 G1 X-12.398 Y7.902
N80 G0 Z17.247
N82 X-10.153 Y10.147
N84 G1 Z16.011 F10
N86 G2 X-10.153 Y-10.147 I-10.147 J-10.147 F75
N88 G1 X-11.415 Y-11.409
N90 G2 X-14.39 Y-13.085 I-4.49 J4.49
N92 G1 X-14.392 Y-13.077
N94 G2 X-28.375 Y-11.862 I-5.908 J13.077
N96 G1 X-29.5 Y-11.85
N98 G2 X-35.85 Y-5.5 J6.35
N100 G1 Y5.5
N102 G2 X-29.5 Y11.85 I6.35
N104 G1 X-28.356 Y11.875
N106 G2 X-14.113 Y12.948 I8.056 J-11.875
N108 G1 Y12.951
N110 G2 X-11.331 Y11.325 I-1.708 J-6.116
N112 G1 X-10.153 Y10.147
N114 X-12.398 Y7.902
N116 G2 X-12.398 Y-7.902 I-7.902 J-7.902
N118 G1 X-13.66 Y-9.164
N120 G2 X-15.42 Y-10.056 I-2.245 J2.245
N122 G1 X-15.439 Y-10.062
N124 G2 X-27.338 Y-8.681 I-4.861 J10.062
N126 G1 X-29.5 Y-8.675
N128 G2 X-32.675 Y-5.5 J3.175
N130 G1 Y5.5
N132 G2 X-29.5 Y8.675 I3.175
N134 G1 X-27.338 Y8.681
N136 G2 X-15.22 Y9.953 I7.038 J-8.681
N138 G1 X-15.213 Y9.951
N140 G2 X-13.576 Y9.08 I-.608 J-3.116
N142 G1 X-12.398 Y7.902
N144 G0 Z16.753
N146 X-10.153 Y10.147
N148 G1 Z15.517 F10
N150 G2 X-10.153 Y-10.147 I-10.147 J-10.147 F75
N152 G1 X-11.415 Y-11.409
N154 G2 X-14.39 Y-13.085 I-4.49 J4.49
N156 G1 X-14.392 Y-13.077
N158 G2 X-28.375 Y-11.862 I-5.908 J13.077
N160 G1 X-29.5 Y-11.85
N162 G2 X-35.85 Y-5.5 J6.35
N164 G1 Y5.5
N166 G2 X-29.5 Y11.85 I6.35
N168 G1 X-28.356 Y11.875
N170 G2 X-14.113 Y12.948 I8.056 J-11.875
N172 G1 Y12.951
N174 G2 X-11.331 Y11.325 I-1.708 J-6.116
N176 G1 X-10.153 Y10.147
N178 X-12.398 Y7.902
N180 G2 X-12.398 Y-7.902 I-7.902 J-7.902
N182 G1 X-13.66 Y-9.164
N184 G2 X-15.42 Y-10.056 I-2.245 J2.245
N186 G1 X-15.439 Y-10.062
N188 G2 X-27.338 Y-8.681 I-4.861 J10.062
N190 G1 X-29.5 Y-8.675
N192 G2 X-32.675 Y-5.5 J3.175
N194 G1 Y5.5
N196 G2 X-29.5 Y8.675 I3.175
N198 G1 X-27.338 Y8.681
N200 G2 X-15.22 Y9.953 I7.038 J-8.681
N202 G1 X-15.213 Y9.951
N204 G2 X-13.576 Y9.08 I-.608 J-3.116
N206 G1 X-12.398 Y7.902
N208 G0 Z16.258
N210 X-10.153 Y10.147
N212 G1 Z15.022 F10
N214 G2 X-10.153 Y-10.147 I-10.147 J-10.147 F75
N216 G1 X-11.415 Y-11.409
N218 G2 X-14.39 Y-13.085 I-4.49 J4.49
N220 G1 X-14.392 Y-13.077
N222 G2 X-28.375 Y-11.862 I-5.908 J13.077
N224 G1 X-29.5 Y-11.85
N226 G2 X-35.85 Y-5.5 J6.35
N228 G1 Y5.5
N230 G2 X-29.5 Y11.85 I6.35
N232 G1 X-28.356 Y11.875
N234 G2 X-14.113 Y12.948 I8.056 J-11.875
N236 G1 Y12.951
N238 G2 X-11.331 Y11.325 I-1.708 J-6.116
N240 G1 X-10.153 Y10.147
N242 X-12.398 Y7.902
N244 G2 X-12.398 Y-7.902 I-7.902 J-7.902
N246 G1 X-13.66 Y-9.164
N248 G2 X-15.42 Y-10.056 I-2.245 J2.245
N250 G1 X-15.439 Y-10.062
N252 G2 X-27.338 Y-8.681 I-4.861 J10.062
N254 G1 X-29.5 Y-8.675
N256 G2 X-32.675 Y-5.5 J3.175
N258 G1 Y5.5
N260 G2 X-29.5 Y8.675 I3.175
N262 G1 X-27.338 Y8.681
N264 G2 X-15.22 Y9.953 I7.038 J-8.681
N266 G1 X-15.213 Y9.951
N268 G2 X-13.576 Y9.08 I-.608 J-3.116
N270 G1 X-12.398 Y7.902
N272 G0 Z15.764
N274 X-10.153 Y10.147
N276 G1 Z14.528 F10
N278 G2 X-10.153 Y-10.147 I-10.147 J-10.147 F75
N280 G1 X-11.415 Y-11.409
N282 G2 X-14.39 Y-13.085 I-4.49 J4.49
N284 G1 X-14.392 Y-13.077
N286 G2 X-28.375 Y-11.862 I-5.908 J13.077
N288 G1 X-29.5 Y-11.85
N290 G2 X-35.85 Y-5.5 J6.35
N292 G1 Y5.5
N294 G2 X-29.5 Y11.85 I6.35
N296 G1 X-28.356 Y11.875
N298 G2 X-14.113 Y12.948 I8.056 J-11.875
N300 G1 Y12.951
N302 G2 X-11.331 Y11.325 I-1.708 J-6.116
N304 G1 X-10.153 Y10.147
N306 X-12.398 Y7.902
N308 G2 X-12.398 Y-7.902 I-7.902 J-7.902
N310 G1 X-13.66 Y-9.164
N312 G2 X-15.42 Y-10.056 I-2.245 J2.245
N314 G1 X-15.439 Y-10.062
N316 G2 X-27.338 Y-8.681 I-4.861 J10.062
N318 G1 X-29.5 Y-8.675
N320 G2 X-32.675 Y-5.5 J3.175
N322 G1 Y5.5
N324 G2 X-29.5 Y8.675 I3.175
N326 G1 X-27.338 Y8.681
N328 G2 X-15.22 Y9.953 I7.038 J-8.681
N330 G1 X-15.213 Y9.951
N332 G2 X-13.576 Y9.08 I-.608 J-3.116
N334 G1 X-12.398 Y7.902
N336 G0 Z15.269
N338 X-10.153 Y10.147
N10716 M2
%]

Attachment: NC - Mk2 Camplate_Manufacturing_Program_3.ngc
Description: Binary data

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to