Hello Guest it is March 29, 2024, 10:32:12 AM

Author Topic: Problem with Error Involving Arcs  (Read 17454 times)

0 Members and 1 Guest are viewing this topic.

Offline Sam

*
  • *
  •  987 987
    • View Profile
    • hillbillyhilton.com
Re: Problem with Error Involving Arcs
« Reply #10 on: March 23, 2011, 08:17:42 PM »
I think your right, Gerry. The K and Q values are not normally needed. The key is finding out what setting makes use of the I and J instead. Would be allot easier to troubleshoot it "hands on". Also, you need to make sure that you set the incremental/absolute mode in Machs "general logic config" within your g-code, instead of the check boxes. In the PP generators 'circle' tab, I would check the 'limit arcs to angle' check box, just to be on the safe side and avoid any potential unrelated errors that you don't need right now. When you get everything sorted and working right, you can uncheck it and see how it jives.  Here is how a helix format could look, to give you at least some reference to go by.....

%
O0000
G20
G0 G17 G40 G49 G80 G90 G91.1
T1 M6
G0 G90 G54 X-.2492 Y.301 S1000 M3
G43 H1 Z1.25
Z1.2
G1 Z1.1 F500
G2 Z.9354 I.3992 J-.301
Z.7707 I.3992 J-.301
Z.6061 I.3992 J-.301
Z.4414 I.3992 J-.301
Z.2768 I.3992 J-.301
Z.1121 I.3992 J-.301
X.0443 Y-.4887 Z0. I.3992 J-.301
M30
%



 Also, when your posting a reply, there is an 'additional options' link south-west of the text input box, that will allow you to post your pics without the need to upload them to a separate server, and that mess. Use it if you like, it's much more convenient.
"CONFIDENCE: it's the feeling you experience before you fully understand the situation."

Offline SWATH

*
  •  48 48
    • View Profile
Re: Problem with Error Involving Arcs
« Reply #11 on: March 24, 2011, 12:17:09 AM »
Thanks for the input.  Alright I edited the block format to what was suggested and that has eliminated the K word error but now I keep getting the error:

"Radius from end of arc differs from radius to startLine 10"

I've played with the tolerance settings but it doesn't eliminate the error.

I'm not sure how to change general config logic within the gcode instead of check boxes.

Offline Sam

*
  • *
  •  987 987
    • View Profile
    • hillbillyhilton.com
Re: Problem with Error Involving Arcs
« Reply #12 on: March 24, 2011, 12:46:03 AM »
Just add G90.1 for Abs, or G91.1 for inc.   Since you've already got it defaulted to abs in the config page, you likely just need to add G91.1 to the code to make it switch to inc. See the code I posted earlier for an example.
"CONFIDENCE: it's the feeling you experience before you fully understand the situation."

Offline SWATH

*
  •  48 48
    • View Profile
Re: Problem with Error Involving Arcs
« Reply #13 on: March 24, 2011, 02:33:05 AM »
I changed from "absolute" to  "vector from center to start" in the post processor and "incremental" in mach and here is the gcode:

G00 G49 G40.1 G17 G80 G50 G90
G20
(Hole Pocketing)
M6 T3 G43 H3
S5000M03
G00Z0.2500
X0.1248Y-0.0044
G01Z-0.2960 F7.3
G17
G03X0.1250Y0.0000Z-0.5473I-0.1248J0.0044 F10.0
X0.2186Y-0.7171I-0.1250J0.0000
X-0.2186Y0.7171I-0.2186J0.7171
X0.2186Y-0.7171I0.2186J-0.7171
G01X0.1250Y0.0000
X0.1036Y0.0699
G03X0.1250Y0.0000Z-0.7737I-0.1036J-0.0699
X0.2186Y-0.7171I-0.1250J0.0000
X-0.2186Y0.7171I-0.2186J0.7171
X0.2186Y-0.7171I0.2186J-0.7171
G01X0.1250Y0.0000
X0.1036Y0.0699
G03X0.1250Y0.0000Z-1.0000I-0.1036J-0.0699
X0.2186Y-0.7171I-0.1250J0.0000
X-0.2186Y0.7171I-0.2186J0.7171
X0.2186Y-0.7171I0.2186J-0.7171
G01X0.1250Y0.0000
X0.0000
G00Z0.2500
M5 M9
M30

I am no longer getting K word errors instead I'm getting:

"Radius from end of arc differs from radius to startLine 10"

10:X0.2186Y-0.7171I-0.1250J0.0000

which I think is progress because now we are just dealing with math errors instead of syntax.

I'm not sure how to deal with this problem though.  Adding G90.1 or G91.1 doesn't help

BTW, what the heck is G40.1?
Re: Problem with Error Involving Arcs
« Reply #14 on: March 24, 2011, 04:48:48 AM »
BTW, what the heck is G40.1?

It is 1/10 more than a G40 ;D ;D ;D ;D

Jeff

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Problem with Error Involving Arcs
« Reply #15 on: March 24, 2011, 07:00:32 AM »
Quote
"Radius from end of arc differs from radius to startLine 10"

That's usually an incorrect IJ mode.
If you changed it to what I said, you should need incremental now.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html

Offline SWATH

*
  •  48 48
    • View Profile
Re: Problem with Error Involving Arcs
« Reply #16 on: March 24, 2011, 02:01:46 PM »
Attached is the current setting I'm using:

Here is the code produced from these settings:

G00 G49 G40.1 G17 G80 G50 G90
G20
(Hole Pocketing)
M6 T3 G43 H3
S5000M03
G00Z0.2500
X0.1250Y-0.0002
G01Z-0.2960 F7.3
G17
G03Z-0.5473I-0.1250J0.0002 F10.0
X0.2173Y-0.7175I-0.1250J0.0002
X-0.2173Y0.7175I-0.2173J0.7175
X0.2173Y-0.7175I0.2173J-0.7175
G01X0.1250Y-0.0002
G03Z-0.7737I-0.1250J0.0002
X0.2173Y-0.7175I-0.1250J0.0002
X-0.2173Y0.7175I-0.2173J0.7175
X0.2173Y-0.7175I0.2173J-0.7175
G01X0.1250Y-0.0002
G03Z-1.0000I-0.1250J0.0002
X0.2173Y-0.7175I-0.1250J0.0002
X-0.2173Y0.7175I-0.2173J0.7175
X0.2173Y-0.7175I0.2173J-0.7175
G01X0.1250Y-0.0002
X0.0000Y0.0000
G00Z0.2500
M5 M9
M30

I'm still getting the error:

"Radius from end of arc differs from radius to startLine 10"

10:X0.2173Y-0.7175I-0.1250J0.0002

Adding G90.1 or G91.1 to the beginning of the code doesn't do anything.

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Problem with Error Involving Arcs
« Reply #17 on: March 24, 2011, 05:19:13 PM »
Make sure you're using helical interpolation, and not spiral interpolation. It appears you should be using one or the other, and not both?

Looking at it again, I think it should be Vector from Start to Center.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html

Offline SWATH

*
  •  48 48
    • View Profile
Re: Problem with Error Involving Arcs
« Reply #18 on: March 24, 2011, 06:39:56 PM »
Interesting.  When I change to "Vector from Start to Center" I still get the error. but when I change RhinoCAM to "Output spiral motions as linear segments" it outputs code in long form but Mach will read it.  I had heard that Mach does not do spiral arcs so could this be the issue?  Is that true?

Here is the code:

G00 G49 G40.1 G17 G80 G50 G90
G20
(Hole Pocketing)
M6 T3 G43 H3
S5000M03
G00Z0.2500
X0.1250Y-0.0002
G01Z-0.2960 F7.3
G17
G03Z-0.5473I-0.1250J0.0002 F10.0
G01X0.1327Y0.0231
X0.1358Y0.0491
X0.1336Y0.0768
X0.1257Y0.1051
X0.1118Y0.1328
X0.0920Y0.1586
X0.0664Y0.1813
X0.0356Y0.1996
X0.0004Y0.2125
X-0.0382Y0.2189
X-0.0789Y0.2181
X-0.1204Y0.2095
X-0.1612Y0.1929
X-0.1997Y0.1682
X-0.2343Y0.1359
X-0.2634Y0.0964
X-0.2858Y0.0509
X-0.3000Y0.0006
X-0.3051Y-0.0532
X-0.3004Y-0.1087
X-0.2854Y-0.1640
X-0.2600Y-0.2173
X-0.2246Y-0.2666
X-0.1797Y-0.3100
X-0.1265Y-0.3456
X-0.0663Y-0.3719
X-0.0007Y-0.3875
X0.0682Y-0.3913
X0.1385Y-0.3827
X0.2076Y-0.3612
X0.2735Y-0.3271
X0.3335Y-0.2810
X0.3857Y-0.2236
X0.4278Y-0.1566
X0.4580Y-0.0817
X0.4750Y-0.0009
X0.4782Y0.0428
X0.4773Y0.0870
X0.4723Y0.1314
X0.4631Y0.1756
X0.4498Y0.2192
X0.4323Y0.2618
X0.4108Y0.3030
X0.3854Y0.3425
X0.3561Y0.3798
X0.3232Y0.4146
X0.2869Y0.4466
X0.2474Y0.4753
X0.2051Y0.5005
X0.1602Y0.5220
X0.1131Y0.5393
X0.0642Y0.5524
X0.0138Y0.5611
X-0.0376Y0.5650
X-0.0896Y0.5643
X-0.1418Y0.5587
X-0.1937Y0.5483
X-0.2449Y0.5330
X-0.2949Y0.5129
X-0.3432Y0.4882
X-0.3895Y0.4588
X-0.4332Y0.4250
X-0.4740Y0.3871
X-0.5114Y0.3452
X-0.5451Y0.2997
X-0.5748Y0.2509
X-0.6000Y0.1992
X-0.6206Y0.1450
X-0.6362Y0.0887
X-0.6467Y0.0307
X-0.6519Y-0.0285
X-0.6516Y-0.0883
X-0.6459Y-0.1483
X-0.6345Y-0.2080
X-0.6176Y-0.2669
X-0.5952Y-0.3244
X-0.5675Y-0.3800
X-0.5345Y-0.4332
X-0.4966Y-0.4836
X-0.4538Y-0.5306
X-0.4066Y-0.5738
X-0.3553Y-0.6128
X-0.3003Y-0.6471
X-0.2419Y-0.6765
X-0.1806Y-0.7006
X-0.1170Y-0.7192
X-0.0514Y-0.7319
X0.0154Y-0.7386
X0.0831Y-0.7392
X0.1510Y-0.7335
X0.2173Y-0.7175
G03X-0.2173Y0.7175I-0.2173J0.7175
X0.2173Y-0.7175I0.2173J-0.7175
G01X0.1250Y-0.0002
G03Z-0.7737I-0.1250J0.0002
G01X0.1327Y0.0231
X0.1358Y0.0491
X0.1336Y0.0768
X0.1257Y0.1051
X0.1118Y0.1328
X0.0920Y0.1586
X0.0664Y0.1813
X0.0356Y0.1996
X0.0004Y0.2125
X-0.0382Y0.2189
X-0.0789Y0.2181
X-0.1204Y0.2095
X-0.1612Y0.1929
X-0.1997Y0.1682
X-0.2343Y0.1359
X-0.2634Y0.0964
X-0.2858Y0.0509
X-0.3000Y0.0006
X-0.3051Y-0.0532
X-0.3004Y-0.1087
X-0.2854Y-0.1640
X-0.2600Y-0.2173
X-0.2246Y-0.2666
X-0.1797Y-0.3100
X-0.1265Y-0.3456
X-0.0663Y-0.3719
X-0.0007Y-0.3875
X0.0682Y-0.3913
X0.1385Y-0.3827
X0.2076Y-0.3612
X0.2735Y-0.3271
X0.3335Y-0.2810
X0.3857Y-0.2236
X0.4278Y-0.1566
X0.4580Y-0.0817
X0.4750Y-0.0009
X0.4782Y0.0428
X0.4773Y0.0870
X0.4723Y0.1314
X0.4631Y0.1756
X0.4498Y0.2192
X0.4323Y0.2618
X0.4108Y0.3030
X0.3854Y0.3425
X0.3561Y0.3798
X0.3232Y0.4146
X0.2869Y0.4466
X0.2474Y0.4753
X0.2051Y0.5005
X0.1602Y0.5220
X0.1131Y0.5393
X0.0642Y0.5524
X0.0138Y0.5611
X-0.0376Y0.5650
X-0.0896Y0.5643
X-0.1418Y0.5587
X-0.1937Y0.5483
X-0.2449Y0.5330
X-0.2949Y0.5129
X-0.3432Y0.4882
X-0.3895Y0.4588
X-0.4332Y0.4250
X-0.4740Y0.3871
X-0.5114Y0.3452
X-0.5451Y0.2997
X-0.5748Y0.2509
X-0.6000Y0.1992
X-0.6206Y0.1450
X-0.6362Y0.0887
X-0.6467Y0.0307
X-0.6519Y-0.0285
X-0.6516Y-0.0883
X-0.6459Y-0.1483
X-0.6345Y-0.2080
X-0.6176Y-0.2669
X-0.5952Y-0.3244
X-0.5675Y-0.3800
X-0.5345Y-0.4332
X-0.4966Y-0.4836
X-0.4538Y-0.5306
X-0.4066Y-0.5738
X-0.3553Y-0.6128
X-0.3003Y-0.6471
X-0.2419Y-0.6765
X-0.1806Y-0.7006
X-0.1170Y-0.7192
X-0.0514Y-0.7319
X0.0154Y-0.7386
X0.0831Y-0.7392
X0.1510Y-0.7335
X0.2173Y-0.7175
G03X-0.2173Y0.7175I-0.2173J0.7175
X0.2173Y-0.7175I0.2173J-0.7175
G01X0.1250Y-0.0002
G03Z-1.0000I-0.1250J0.0002
G01X0.1327Y0.0231
X0.1358Y0.0491
X0.1336Y0.0768
X0.1257Y0.1051
X0.1118Y0.1328
X0.0920Y0.1586
X0.0664Y0.1813
X0.0356Y0.1996
X0.0004Y0.2125
X-0.0382Y0.2189
X-0.0789Y0.2181
X-0.1204Y0.2095
X-0.1612Y0.1929
X-0.1997Y0.1682
X-0.2343Y0.1359
X-0.2634Y0.0964
X-0.2858Y0.0509
X-0.3000Y0.0006
X-0.3051Y-0.0532
X-0.3004Y-0.1087
X-0.2854Y-0.1640
X-0.2600Y-0.2173
X-0.2246Y-0.2666
X-0.1797Y-0.3100
X-0.1265Y-0.3456
X-0.0663Y-0.3719
X-0.0007Y-0.3875
X0.0682Y-0.3913
X0.1385Y-0.3827
X0.2076Y-0.3612
X0.2735Y-0.3271
X0.3335Y-0.2810
X0.3857Y-0.2236
X0.4278Y-0.1566
X0.4580Y-0.0817
X0.4750Y-0.0009
X0.4782Y0.0428
X0.4773Y0.0870
X0.4723Y0.1314
X0.4631Y0.1756
X0.4498Y0.2192
X0.4323Y0.2618
X0.4108Y0.3030
X0.3854Y0.3425
X0.3561Y0.3798
X0.3232Y0.4146
X0.2869Y0.4466
X0.2474Y0.4753
X0.2051Y0.5005
X0.1602Y0.5220
X0.1131Y0.5393
X0.0642Y0.5524
X0.0138Y0.5611
X-0.0376Y0.5650
X-0.0896Y0.5643
X-0.1418Y0.5587
X-0.1937Y0.5483
X-0.2449Y0.5330
X-0.2949Y0.5129
X-0.3432Y0.4882
X-0.3895Y0.4588
X-0.4332Y0.4250
X-0.4740Y0.3871
X-0.5114Y0.3452
X-0.5451Y0.2997
X-0.5748Y0.2509
X-0.6000Y0.1992
X-0.6206Y0.1450
X-0.6362Y0.0887
X-0.6467Y0.0307
X-0.6519Y-0.0285
X-0.6516Y-0.0883
X-0.6459Y-0.1483
X-0.6345Y-0.2080
X-0.6176Y-0.2669
X-0.5952Y-0.3244
X-0.5675Y-0.3800
X-0.5345Y-0.4332
X-0.4966Y-0.4836
X-0.4538Y-0.5306
X-0.4066Y-0.5738
X-0.3553Y-0.6128
X-0.3003Y-0.6471
X-0.2419Y-0.6765
X-0.1806Y-0.7006
X-0.1170Y-0.7192
X-0.0514Y-0.7319
X0.0154Y-0.7386
X0.0831Y-0.7392
X0.1510Y-0.7335
X0.2173Y-0.7175
G03X-0.2173Y0.7175I-0.2173J0.7175
X0.2173Y-0.7175I0.2173J-0.7175
G01X0.1250Y-0.0002
X0.0000Y0.0000
G00Z0.2500
M5 M9
M30

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Problem with Error Involving Arcs
« Reply #19 on: March 24, 2011, 06:53:56 PM »
Yes, that's why I said to use helical instead of spiral.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html