Hello Guest it is October 19, 2019, 01:58:21 PM

Author Topic: RADIUS TO END OF ARC DIFFERS FROM RADIUS TO START  (Read 5916 times)

0 Members and 1 Guest are viewing this topic.

Re: RADIUS TO END OF ARC DIFFERS FROM RADIUS TO START
« Reply #10 on: February 01, 2015, 05:51:16 AM »
Cheers Hood
Great software.
Re: RADIUS TO END OF ARC DIFFERS FROM RADIUS TO START
« Reply #11 on: February 01, 2015, 11:02:40 AM »
Hi
Just ran this code to turn a ball. It all worked great and turned the radius very nice except when it got to line 232 when it just stopped and didn't do the finishing pass?  The program is slightly different to the last post as in I just made the part slightly shorter.
Any thoughts appreciated.

(BEGIN PREDATOR NC HEADER)
(MCH_FILE=LATHE.MCH)
(END PREDATOR NC HEADER)
 
%
O00300 ( PROGRAM NUMBER )
( PROGRAM START - TURNING CYCLES )
( PROGRAM NAME: BALL.NC)
( POST: MACH 3 - METRIC )
( DATE: SUN. 02/01/2015)
( TIME: 03:49PM)
N01 G18 G21 G40 G80 G90 G99 G95
G91.1
(Machine Setup - 1  Face Rough )
(TOOL #1    MASTER TOOL )
N02 G00 G54
N03 T0101 M06
N04 G97 S500 M04
N05 X16. Z1.
N06 Z-.3
N07 G01 X0. F.3
N08 G00 Z0.
N09 X16.
N10 Z-.6
N11 G01 X0. F.3
N12 G00 Z-.3
N13 X16.
N14 Z-.9
N15 G01 X0. F.3
N16 G00 Z-.6
N17 X16.
N18 Z-1.
N19 G01 X0. F.3
N20 G00 Z1.
N21 X16.
N22 Z0.
(Machine Setup - 1  Turn Rough outer )
(TOOL #1    MASTER TOOL )
N23 G00 G54
N24 T0101
N25 G97 S500 M04
N26 X17. Z0.
N27 X15.7
N28 G01 Z-40. F.3
N29 G00 X16.
N30 Z0.
N31 X15.4
N32 G01 Z-40. F.3
N33 G00 X15.7
N34 Z0.
N35 X15.1
N36 G01 Z-40. F.3
N37 G00 X15.4
N38 Z0.
N39 X15.
N40 G01 Z-40. F.3
N41 G00 X17.
N42 X16.
N43 Z0.
(Machine Setup - 1  Turn Rough arc)
(TOOL #1    MASTER TOOL )
N44 G00 G54
N45 T0101
N46 G97 S500 M04
N47 X16. Z-1.
N48 X14.954
N49 G01 Z-12.991 F.3
N50 G03 X15.254 Z-16. K-14.974 I-3.012 F.3
N51 G00 Z-1.
N52 X14.654
N53 G01 Z-11.765 F.3
N54 G03 X14.954 Z-12.991 K-14.777 I-4.266 F.3
N55 G00 Z-1.
N56 X14.354
N57 G01 Z-10.839 F.3
N58 X14.654 Z-11.765 F.3
N59 G00 Z-1.
N60 X14.054
N61 G01 Z-10.071 F.3
N62 X14.354 Z-10.839 F.3
N63 G00 Z-1.
N64 X13.754
N65 G01 Z-9.405 F.3
N66 X14.054 Z-10.071 F.3
N67 G00 Z-1.
N68 X13.454
N69 G01 Z-8.812 F.3
N70 X13.46 Z-8.822 F.3
N71 X13.754 Z-9.405 F.3
N72 G00 Z-1.
N73 X13.154
N74 G01 Z-8.277 F.3
N75 X13.454 Z-8.812 F.3
N76 G00 Z-1.
N77 X12.854
N78 G01 Z-7.787 F.3
N79 X13.154 Z-8.277 F.3
N80 G00 Z-1.
N81 X12.554
N82 G01 Z-7.335 F.3
N83 X12.854 Z-7.787 F.3
N84 G00 Z-1.
N85 X12.254
N86 G01 Z-6.916 F.3
N87 X12.264 Z-6.929 F.3
N88 X12.553 Z-7.334 F.3
N89 X12.554 Z-7.335 F.3
N90 G00 Z-1.
N91 X11.954
N92 G01 Z-6.525 F.3
N93 X11.961 Z-6.533 F.3
N94 X12.254 Z-6.916 F.3
N95 G00 Z-1.
N96 X11.654
N97 G01 Z-6.158 F.3
N98 X11.954 Z-6.525 F.3
N99 G00 Z-1.
N100 X11.354
N101 G01 Z-5.814 F.3
N102 X11.645 Z-6.148 F.3
N103 X11.654 Z-6.158 F.3
N104 G00 Z-1.
N105 X11.054
N106 G01 Z-5.489 F.3
N107 X11.354 Z-5.814 F.3
N108 G00 Z-1.
N109 X10.754
N110 G01 Z-5.182 F.3
N111 X11.054 Z-5.489 F.3
N112 G00 Z-1.
N113 X10.454
N114 G01 Z-4.892 F.3
N115 X10.754 Z-5.182 F.3
N116 G00 Z-1.
N117 X10.154
N118 G01 Z-4.617 F.3
N119 X10.446 Z-4.884 F.3
N120 X10.454 Z-4.892 F.3
N121 G00 Z-1.
N122 X9.854
N123 G01 Z-4.356 F.3
N124 X10.154 Z-4.617 F.3
N125 G00 Z-1.
N126 X9.554
N127 G01 Z-4.109 F.3
N128 X9.854 Z-4.356 F.3
N129 G00 Z-1.
N130 X9.254
N131 G01 Z-3.874 F.3
N132 X9.554 Z-4.109 F.3
N133 G00 Z-1.
N134 X8.954
N135 G01 Z-3.651 F.3
N136 X9.254 Z-3.874 F.3
N137 G00 Z-1.
N138 X8.654
N139 G01 Z-3.439 F.3
N140 X8.954 Z-3.651 F.3
N141 G00 Z-1.
N142 X8.354
N143 G01 Z-3.237 F.3
N144 X8.654 Z-3.439 F.3
N145 G00 Z-1.
N146 X8.054
N147 G01 Z-3.046 F.3
N148 X8.354 Z-3.237 F.3
N149 G00 Z-1.
N150 X7.754
N151 G01 Z-2.864 F.3
N152 X8.054 Z-3.046 F.3
N153 G00 Z-1.
N154 X7.454
N155 G01 Z-2.691 F.3
N156 X7.754 Z-2.864 F.3
N157 G00 Z-1.
N158 X7.154
N159 G01 Z-2.528 F.3
N160 X7.438 Z-2.682 F.3
N161 X7.454 Z-2.691 F.3
N162 G00 Z-1.
N163 X6.854
N164 G01 Z-2.373 F.3
N165 X7.154 Z-2.528 F.3
N166 G00 Z-1.
N167 X6.554
N168 G01 Z-2.226 F.3
N169 X6.854 Z-2.373 F.3
N170 G00 Z-1.
N171 X6.254
N172 G01 Z-2.087 F.3
N173 X6.553 Z-2.225 F.3
N174 X6.554 Z-2.226 F.3
N175 G00 Z-1.
N176 X5.954
N177 G01 Z-1.956 F.3
N178 X6.254 Z-2.087 F.3
N179 G00 Z-1.
N180 X5.654
N181 G01 Z-1.833 F.3
N182 X5.954 Z-1.956 F.3
N183 G00 Z-1.
N184 X5.354
N185 G01 Z-1.717 F.3
N186 X5.64 Z-1.827 F.3
N187 X5.654 Z-1.833 F.3
N188 G00 Z-1.
N189 X5.054
N190 G01 Z-1.608 F.3
N191 X5.354 Z-1.717 F.3
N192 G00 Z-1.
N193 X4.754
N194 G01 Z-1.506 F.3
N195 X5.054 Z-1.608 F.3
N196 G00 Z-1.
N197 X4.454
N198 G01 Z-1.411 F.3
N199 X4.465 Z-1.414 F.3
N200 X4.754 Z-1.506 F.3
N201 G00 Z-1.
N202 X4.154
N203 G01 Z-1.323 F.3
N204 X4.454 Z-1.411 F.3
N205 G00 Z-1.
N206 X3.854
N207 G01 Z-1.241 F.3
N208 X4.154 Z-1.323 F.3
N209 G00 Z-1.
N210 X3.554
N211 G01 Z-1.166 F.3
N212 X3.854 Z-1.241 F.3
N213 G00 Z-1.
N214 X3.254
N215 G01 Z-1.097 F.3
N216 X3.26 Z-1.099 F.3
N217 X3.554 Z-1.166 F.3
N218 G00 Z-1.
N219 X2.954
N220 G01 Z-1.035 F.3
N221 X3.254 Z-1.097 F.3
N222 G00 Z-1.
N223 X2.772
N224 G01 X2.954 Z-1.035 F.3
N225 G00 X16.254
N226 X15.254
N227 Z-1.
(Machine Setup - 1  Turn Basic Finish arc )
(TOOL #1    MASTER TOOL )
N228 G00 G54
N229 T0101
N230 G97 S500 M04
N231 X16. Z-1.
N232 X0.
N233 G03 X15. Z-16. K0. I-15. F.3
N234 G00 X30.
N235 Z-1.
N236 M05
N237 M02
%

Offline Hood

*
  •  25,856 25,856
  • Carnoustie, Scotland
    • View Profile
Re: RADIUS TO END OF ARC DIFFERS FROM RADIUS TO START
« Reply #12 on: February 01, 2015, 01:17:59 PM »
replace the M02 with a M30 and see how it goes.
Hood
Re: RADIUS TO END OF ARC DIFFERS FROM RADIUS TO START
« Reply #13 on: February 01, 2015, 01:47:38 PM »
Cheers Hood
Will try tomorrow too cold now.
Could do with speaking about threading. Getting shocking results.  >:(

Thanks
Mick 
Re: RADIUS TO END OF ARC DIFFERS FROM RADIUS TO START
« Reply #14 on: February 02, 2015, 01:40:28 PM »
Tried replacing M02 with M30 and still stops on line 232?
Any thoughts

Cheers
Mick
Re: RADIUS TO END OF ARC DIFFERS FROM RADIUS TO START
« Reply #15 on: February 02, 2015, 01:43:38 PM »
Just a point which you might want to know is even though the program stops running on line 232 the spindle is still running as if the program hasn't ended???

Cheers

Offline Hood

*
  •  25,856 25,856
  • Carnoustie, Scotland
    • View Profile
Re: RADIUS TO END OF ARC DIFFERS FROM RADIUS TO START
« Reply #16 on: February 02, 2015, 03:35:36 PM »
If you attach your xml I will see if I can find the problem.
It seems to run through fine in simulation here although if you have the M02 at the end the code window will jump back a bit however the final position showing in the DROs is that of the last move in the code.

Hood
Re: RADIUS TO END OF ARC DIFFERS FROM RADIUS TO START
« Reply #17 on: February 02, 2015, 04:08:23 PM »
The DRO is showing next line 257 when there's only 237 lines of code. Thinking about it I have had a similar problem before when Mach3 didn't execute the last few lines of code.

Cheers
Mick

Offline Hood

*
  •  25,856 25,856
  • Carnoustie, Scotland
    • View Profile
Re: RADIUS TO END OF ARC DIFFERS FROM RADIUS TO START
« Reply #18 on: February 02, 2015, 04:40:23 PM »
257 is likely because there are lines with comments etc, so Mach sees more lines.

Hood
Re: RADIUS TO END OF ARC DIFFERS FROM RADIUS TO START
« Reply #19 on: February 03, 2015, 05:36:23 AM »
I have ran a few tests with this radius problem. My stock diameter before executing the arc is 30mm. If try and put a radius on the end over 10mm it throws an error (radius from start differs********) Surely if it was a  mach3 problem it wouldn't do any radius?

Cheers
Mick