Hello Guest it is May 19, 2019, 11:12:20 PM

Author Topic: Unigraphics to mach3 controller issues...  (Read 3563 times)

0 Members and 1 Guest are viewing this topic.

Offline Rob27

*
  •  25 25
    • View Profile
Unigraphics to mach3 controller issues...
« on: May 31, 2009, 05:05:20 PM »
I have the licensed version of Mach3 and I am having problems with the G code. What is happening is when I bring the G code into mach3, I get the part, but I also get a circle to. So, I have a simple 4"x4" square x .75 thich material. When I load it into my configured mach3 controller, I get the square and an offset circle. When I load it into the regular mach3 controller that is automatically downloaded, I dont have the circle, just the square... I dont know if it is the G code from unigraphics causing the problem or what.

This is the controller with just opening the regular mach3. Sort of hard to see in both pics...


This is the configured mach3 controller with a standard configuration - table size, ports and pins for the motors, nothing advanced.


Here is a picture of the cut that I tried to make of a square, you can see where it started to cut the square, then went into a circle, and then I stoped it... its a 4x4 inch sqare...  The rest of the mess was me jogging the controller around making a mess...


The code for the square- Codes are in .txt files.
Code: [Select]
%
N0010 G40 G17 G90 G70
N0020 G91 G28 Z0.0
N0030 T00 M06
N0040 G0 G90 X2.0958 Y-.1697 S0 M03
N0050 G43 Z.5 H00
N0060 Z-.025
N0070 G1 Z-.125 F10. M08
N0080 G3 X2. Y-.125 I-.0958 J-.0803
N0090 G1 X0.0
N0100 G2 X-.125 Y0.0 I0.0 J.125
N0110 G1 Y4.
N0120 G2 X0.0 Y4.125 I.125 J0.0
N0130 G1 X4.
N0140 G2 X4.125 Y4. I0.0 J-.125
N0150 G1 Y0.0
N0160 G2 X4. Y-.125 I-.125 J0.0
N0170 G1 X2.
N0180 G3 X1.9042 Y-.1697 I0.0 J-.125
N0190 G0 Z-.025
N0200 Z.5
N0210 X2.0958
N0220 Z-.15
N0230 G1 Z-.25
N0240 G3 X2. Y-.125 I-.0958 J-.0803
N0250 G1 X0.0
N0260 G2 X-.125 Y0.0 I0.0 J.125
N0270 G1 Y4.
N0280 G2 X0.0 Y4.125 I.125 J0.0
N0290 G1 X4.
N0300 G2 X4.125 Y4. I0.0 J-.125
N0310 G1 Y0.0
N0320 G2 X4. Y-.125 I-.125 J0.0
N0330 G1 X2.
N0340 G3 X1.9042 Y-.1697 I0.0 J-.125
N0350 G0 Z-.15
N0360 Z.5
N0370 X2.0958
N0380 Z-.275
N0390 G1 Z-.375
N0400 G3 X2. Y-.125 I-.0958 J-.0803
N0410 G1 X0.0
N0420 G2 X-.125 Y0.0 I0.0 J.125
N0430 G1 Y4.
N0440 G2 X0.0 Y4.125 I.125 J0.0
N0450 G1 X4.
N0460 G2 X4.125 Y4. I0.0 J-.125
N0470 G1 Y0.0
N0480 G2 X4. Y-.125 I-.125 J0.0
N0490 G1 X2.
N0500 G3 X1.9042 Y-.1697 I0.0 J-.125
N0510 G0 Z-.275
N0520 Z.5
N0530 X2.0958
N0540 Z-.4
N0550 G1 Z-.5
N0560 G3 X2. Y-.125 I-.0958 J-.0803
N0570 G1 X0.0
N0580 G2 X-.125 Y0.0 I0.0 J.125
N0590 G1 Y4.
N0600 G2 X0.0 Y4.125 I.125 J0.0
N0610 G1 X4.
N0620 G2 X4.125 Y4. I0.0 J-.125
N0630 G1 Y0.0
N0640 G2 X4. Y-.125 I-.125 J0.0
N0650 G1 X2.
N0660 G3 X1.9042 Y-.1697 I0.0 J-.125
N0670 G0 Z-.4
N0680 Z.5
N0690 X2.0958
N0700 Z-.525
N0710 G1 Z-.625
N0720 G3 X2. Y-.125 I-.0958 J-.0803
N0730 G1 X0.0
N0740 G2 X-.125 Y0.0 I0.0 J.125
N0750 G1 Y4.
N0760 G2 X0.0 Y4.125 I.125 J0.0
N0770 G1 X4.
N0780 G2 X4.125 Y4. I0.0 J-.125
N0790 G1 Y0.0
N0800 G2 X4. Y-.125 I-.125 J0.0
N0810 G1 X2.
N0820 G3 X1.9042 Y-.1697 I0.0 J-.125
N0830 G0 Z-.525
N0840 Z.5
N0850 X2.0958
N0860 Z-.65
N0870 G1 Z-.75
N0880 G3 X2. Y-.125 I-.0958 J-.0803
N0890 G1 X0.0
N0900 G2 X-.125 Y0.0 I0.0 J.125
N0910 G1 Y4.
N0920 G2 X0.0 Y4.125 I.125 J0.0
N0930 G1 X4.
N0940 G2 X4.125 Y4. I0.0 J-.125
N0950 G1 Y0.0
N0960 G2 X4. Y-.125 I-.125 J0.0
N0970 G1 X2.
N0980 G3 X1.9042 Y-.1697 I0.0 J-.125
N0990 G0 Z-.65
N1000 Z.5
N1010 M02
%

This is a 5x5 inch square with a similar problem with the circles -
Code: [Select]
%
N0010 G40 G17 G90 G70
N0020 G91 G28 Z0.0
N0030 T00 M06
N0040 G0 G90 X.3458 Y-2.6197 S0 M03
N0050 G43 Z1.25 H00
N0060 Z.725
N0070 G1 Z.625 F10. M08
N0080 G3 X.25 Y-2.575 I-.0958 J-.0803
N0090 G1 X-2.25
N0100 G2 X-2.375 Y-2.45 I0.0 J.125
N0110 G1 Y2.55
N0120 G2 X-2.25 Y2.675 I.125 J0.0
N0130 G1 X2.75
N0140 G2 X2.875 Y2.55 I0.0 J-.125
N0150 G1 Y-2.45
N0160 G2 X2.75 Y-2.575 I-.125 J0.0
N0170 G1 X.25
N0180 G3 X.1542 Y-2.6197 I0.0 J-.125
N0190 G0 Z.725
N0200 Z1.25
N0210 X.3458
N0220 Z.6
N0230 G1 Z.5
N0240 G3 X.25 Y-2.575 I-.0958 J-.0803
N0250 G1 X-2.25
N0260 G2 X-2.375 Y-2.45 I0.0 J.125
N0270 G1 Y2.55
N0280 G2 X-2.25 Y2.675 I.125 J0.0
N0290 G1 X2.75
N0300 G2 X2.875 Y2.55 I0.0 J-.125
N0310 G1 Y-2.45
N0320 G2 X2.75 Y-2.575 I-.125 J0.0
N0330 G1 X.25
N0340 G3 X.1542 Y-2.6197 I0.0 J-.125
N0350 G0 Z.6
N0360 Z1.25
N0370 X.3458
N0380 Z.475
N0390 G1 Z.375
N0400 G3 X.25 Y-2.575 I-.0958 J-.0803
N0410 G1 X-2.25
N0420 G2 X-2.375 Y-2.45 I0.0 J.125
N0430 G1 Y2.55
N0440 G2 X-2.25 Y2.675 I.125 J0.0
N0450 G1 X2.75
N0460 G2 X2.875 Y2.55 I0.0 J-.125
N0470 G1 Y-2.45
N0480 G2 X2.75 Y-2.575 I-.125 J0.0
N0490 G1 X.25
N0500 G3 X.1542 Y-2.6197 I0.0 J-.125
N0510 G0 Z.475
N0520 Z1.25
N0530 X.3458
N0540 Z.35
N0550 G1 Z.25
N0560 G3 X.25 Y-2.575 I-.0958 J-.0803
N0570 G1 X-2.25
N0580 G2 X-2.375 Y-2.45 I0.0 J.125
N0590 G1 Y2.55
N0600 G2 X-2.25 Y2.675 I.125 J0.0
N0610 G1 X2.75
N0620 G2 X2.875 Y2.55 I0.0 J-.125
N0630 G1 Y-2.45
N0640 G2 X2.75 Y-2.575 I-.125 J0.0
N0650 G1 X.25
N0660 G3 X.1542 Y-2.6197 I0.0 J-.125
N0670 G0 Z.35
N0680 Z1.25
N0690 X.3458
N0700 Z.225
N0710 G1 Z.125
N0720 G3 X.25 Y-2.575 I-.0958 J-.0803
N0730 G1 X-2.25
N0740 G2 X-2.375 Y-2.45 I0.0 J.125
N0750 G1 Y2.55
N0760 G2 X-2.25 Y2.675 I.125 J0.0
N0770 G1 X2.75
N0780 G2 X2.875 Y2.55 I0.0 J-.125
N0790 G1 Y-2.45
N0800 G2 X2.75 Y-2.575 I-.125 J0.0
N0810 G1 X.25
N0820 G3 X.1542 Y-2.6197 I0.0 J-.125
N0830 G0 Z.225
N0840 Z1.25
N0850 X.3458
N0860 Z.1
N0870 G1 Z0.0
N0880 G3 X.25 Y-2.575 I-.0958 J-.0803
N0890 G1 X-2.25
N0900 G2 X-2.375 Y-2.45 I0.0 J.125
N0910 G1 Y2.55
N0920 G2 X-2.25 Y2.675 I.125 J0.0
N0930 G1 X2.75
N0940 G2 X2.875 Y2.55 I0.0 J-.125
N0950 G1 Y-2.45
N0960 G2 X2.75 Y-2.575 I-.125 J0.0
N0970 G1 X.25
N0980 G3 X.1542 Y-2.6197 I0.0 J-.125
N0990 G0 Z.1
N1000 Z1.25
N1010 M02
%

Offline Hood

*
  •  25,811 25,811
  • Carnoustie, Scotland
    • View Profile
Re: Unigraphics to mach3 controller issues...
« Reply #1 on: May 31, 2009, 05:11:38 PM »
General Config page, change the IJ mode and that may clear it up.
Hood

Offline Rob27

*
  •  25 25
    • View Profile
Re: Unigraphics to mach3 controller issues...
« Reply #2 on: May 31, 2009, 05:17:10 PM »
I am assuming Mach3 is using I and J for some kind of interpolation in the program creating the circles?... Why does my configured controller do it, but not the one that is downloaded directly? I have not tried to run the program with the regular downloaded mach3...

Offline Hood

*
  •  25,811 25,811
  • Carnoustie, Scotland
    • View Profile
Re: Unigraphics to mach3 controller issues...
« Reply #3 on: May 31, 2009, 05:21:25 PM »
Check both and you will probably find one has IJ MODE as ABS and the other Inc.
Hood
« Last Edit: May 31, 2009, 05:23:32 PM by Hood »

Offline Rob27

*
  •  25 25
    • View Profile
Re: Unigraphics to mach3 controller issues...
« Reply #4 on: May 31, 2009, 05:25:00 PM »
I think I just checked inc, and the circles no longer appear... I think its fixed.