Hello Guest it is May 22, 2019, 01:23:54 PM

Author Topic: mach3 spindle stops using d2nc  (Read 2808 times)

0 Members and 1 Guest are viewing this topic.

mach3 spindle stops using d2nc
« on: November 08, 2011, 04:14:06 PM »
I am using D2nc cam program ( easy to use pgm ). The problem is the code is generated and the spindle gets a command to stop. There is no M code on that g code line. Is there an error in D2nc or is there a setting in Mach3 that i have enabled? Thank you

Offline ger21

*
  • *
  •  6,233 6,233
    • View Profile
    • The CNC Woodworker
Re: mach3 spindle stops using d2nc
« Reply #1 on: November 08, 2011, 06:05:35 PM »
Can you post the G-code?
Gerry

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

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: mach3 spindle stops using d2nc
« Reply #2 on: November 08, 2011, 06:11:57 PM »
I will try to
Re: mach3 spindle stops using d2nc
« Reply #3 on: November 09, 2011, 04:26:56 PM »
Here is the code


(D2nc generated code)
 
G17  (set xy plane)
G90  (absolute mode)
G40  (cancel cutter radius comp)
G49  (cancel tool len offset)
G80  (cancel canned cycle)
G50  (reset scale 1:1)
G91.1 (IJ relative arcs)
G20  (inch mode)
 
(Tool diameter: 0.1875 )
M05  (stop spindle)
M06 T0 (tool change)
M03 S1000 (spindle on)
 
G00 Z.1
G00 X0 Y0
G00 X1.4629 Y.7655
G01 Z.0000 F2
G01 X1.1567 Y.9249 Z-.0115 F4
G02 X1.1063 Y1.0081 Z-.0149 I.0433 J.0832
G01 Y1.5895 Z-.0343
G02 X1.1567 Y1.6726 Z-.0377 I.0938 J.0000
G01 X1.4629 Y1.8320 Z-.0492
G03 X1.4571 Y1.8431 Z-.0499 I-.0029 J.0055
G01 X1.4535 Y1.8412 Z-.0500
G01 X.4221 Y1.3043
G03 X.4222 Y1.2932 I.0029 J-.0055
G02 X.4233 Y1.2926 I-.0422 J-.0837
G01 X1.4571 Y.7545
G03 X1.4629 Y.7655 I.0029 J.0055
G01 Z-.0500 F2
G01 X1.1567 Y.9249 Z-.0615 F4
G02 X1.1063 Y1.0081 Z-.0649 I.0433 J.0832
G01 Y1.5895 Z-.0843
G02 X1.1567 Y1.6726 Z-.0877 I.0938 J.0000
G01 X1.4629 Y1.8320 Z-.0992
G03 X1.4571 Y1.8431 Z-.0999 I-.0029 J.0055
G01 X1.4535 Y1.8412 Z-.1000
G01 X.4221 Y1.3043
G03 X.4222 Y1.2932 I.0029 J-.0055
G02 X.4233 Y1.2926 I-.0422 J-.0837
G01 X1.4571 Y.7545
G03 X1.4629 Y.7655 I.0029 J.0055
G01 Z-.1000 F2
G01 X1.1567 Y.9249 Z-.1058 F4
G02 X1.1063 Y1.0081 Z-.1075 I.0433 J.0832
G01 Y1.5895 Z-.1171
G02 X1.1567 Y1.6726 Z-.1189 I.0938 J.0000
G01 X1.4629 Y1.8320 Z-.1246
G03 X1.4571 Y1.8431 Z-.1249 I-.0029 J.0055
G01 X1.4535 Y1.8412 Z-.1250
G01 X.4221 Y1.3043
G03 X.4222 Y1.2932 I.0029 J-.0055
G02 X.4233 Y1.2926 I-.0422 J-.0837
G01 X1.4571 Y.7545
G03 X1.4629 Y.7655 I.0029 J.0055
G01 X1.1567 Y.9249
G02 X1.1063 Y1.0081 I.0433 J.0832
G01 Y1.5895
G02 X1.1567 Y1.6726 I.0938 J.0000
G01 X1.4629 Y1.8320
G03 X1.4571 Y1.8431 I-.0029 J.0055
G01 X1.4535 Y1.8412
G00 Z.1
 
M05  (stop spindle)
M09  (all coolant off)
G00 X0 Y0
 
(Tool diameter: 0.1875 )
M05  (stop spindle)
M06 T0 (tool change)
M03 S1000 (spindle on)
 
G00 Z.1
G00 X0 Y0
G00 X1.7438 Y1.0950
G01 Z.0000 F0.6
G02 X1.7563 Z-.0250 I.0063 J.0000 F1.2
G02 X1.7438 Z-.0500 I-.0063 J.0000
G01 Z-.0500 F0.6
G02 X1.7563 Z-.0750 I.0063 J.0000 F1.2
G02 X1.7438 Z-.1000 I-.0063 J.0000
G01 Z-.1000 F0.6
G02 X1.7563 Z-.1125 I.0063 J.0000 F1.2
G02 X1.7438 Z-.1250 I-.0063 J.0000
G02 X1.7563 I.0063 J.0000
G02 X1.7438 I-.0063 J.0000
G00 Z.1
 
M05  (stop spindle)
M09  (all coolant off)
G00 X0 Y0
 
(Tool diameter: 0.1875 )
M05  (stop spindle)
M06 T0 (tool change)
M03 S1000 (spindle on)
 
G00 Z.1
G00 X0 Y0
G00 X.3700 Y.3913
G01 Z.0000 F2
G03 Y.3288 Z-.0043 I.0000 J-.0312 F4
G01 X.4000 Z-.0056
G02 Y-.0938 Z-.0343 I.0000 J-.2112
G01 X.1250 Z-.0462
G02 X-.0938 Y.1250 Z-.0611 I.0000 J.2188
G01 Y.2146 Z-.0650
G01 Y1.8750
G02 X.1250 Y2.0938 I.2188 J.0000
G01 X.4100
G03 Y2.1563 I.0000 J.0313
G01 X.3800
G02 Y2.5788 I.0000 J.2113
G01 X2.1200
G02 Y2.1563 I.0000 J-.2113
G01 X2.0900
G03 Y2.0938 I.0000 J-.0313
G01 X2.3750 Y2.0938
G02 X2.5938 Y1.8750 I.0000 J-.2187
G01 Y.1366
G02 X2.3850 Y-.0937 I-.2184 J-.0117
G02 X2.3808 Y-.0938 I-.0041 J.0937
G01 X2.1000
G02 Y.3288 I.0000 J.2113
G01 X2.1300
G03 Y.3913 I.0000 J.0313
G01 X.3700
G01 Z-.0650 F2
G03 Y.3288 Z-.0693 I.0000 J-.0312 F4
G01 X.4000 Z-.0706
G02 Y-.0938 Z-.0993 I.0000 J-.2112
G01 X.1250 Z-.1112
G02 X-.0938 Y.1250 Z-.1261 I.0000 J.2188
G01 Y.2146 Z-.1300
G01 Y1.8750
G02 X.1250 Y2.0938 I.2188 J.0000
G01 X.4100
G03 Y2.1563 I.0000 J.0313
G01 X.3800
G02 Y2.5788 I.0000 J.2113
G01 X2.1200
G02 Y2.1563 I.0000 J-.2113
G01 X2.0900
G03 Y2.0938 I.0000 J-.0313
G01 X2.3750 Y2.0938
G02 X2.5938 Y1.8750 I.0000 J-.2187
G01 Y.1366
G02 X2.3850 Y-.0937 I-.2184 J-.0117
G02 X2.3808 Y-.0938 I-.0041 J.0937
G01 X2.1000
G02 Y.3288 I.0000 J.2113
G01 X2.1300
G03 Y.3913 I.0000 J.0313
G01 X.3700
G01 Z-.1300 F2
G03 Y.3288 Z-.1343 I.0000 J-.0312 F4
G01 X.4000 Z-.1356
G02 Y-.0938 Z-.1643 I.0000 J-.2112
G01 X.1250 Z-.1762
G02 X-.0938 Y.1250 Z-.1911 I.0000 J.2188
G01 Y.2146 Z-.1950
G01 Y1.8750
G02 X.1250 Y2.0938 I.2188 J.0000
G01 X.4100
G03 Y2.1563 I.0000 J.0313
G01 X.3800
G02 Y2.5788 I.0000 J.2113
G01 X2.1200
G02 Y2.1563 I.0000 J-.2113
G01 X2.0900
G03 Y2.0938 I.0000 J-.0313
G01 X2.3750 Y2.0938
G02 X2.5938 Y1.8750 I.0000 J-.2187
G01 Y.1366
G02 X2.3850 Y-.0937 I-.2184 J-.0117
G02 X2.3808 Y-.0938 I-.0041 J.0937
G01 X2.1000
G02 Y.3288 I.0000 J.2113
G01 X2.1300
G03 Y.3913 I.0000 J.0313
G01 X.3700
G01 Z-.1950 F2
G03 Y.3288 Z-.1993 I.0000 J-.0312 F4
G01 X.4000 Z-.2006
G02 Y-.0938 Z-.2293 I.0000 J-.2112
G01 X.1250 Z-.2412
G02 X-.0938 Y.1250 Z-.2561 I.0000 J.2188
G01 Y.2146 Z-.2600
G01 Y1.8750
G02 X.1250 Y2.0938 I.2188 J.0000
G01 X.4100
G03 Y2.1563 I.0000 J.0313
G01 X.3800
G02 Y2.5788 I.0000 J.2113
G01 X2.1200
G02 Y2.1563 I.0000 J-.2113
G01 X2.0900
G03 Y2.0938 I.0000 J-.0313
G01 X2.3750 Y2.0938
G02 X2.5938 Y1.8750 I.0000 J-.2187
G01 Y.1366
G02 X2.3850 Y-.0937 I-.2184 J-.0117
G02 X2.3808 Y-.0938 I-.0041 J.0937
G01 X2.1000
G02 Y.3288 I.0000 J.2113
G01 X2.1300
G03 Y.3913 I.0000 J.0313
G01 X.3700
G01 Z-.2600 F2
G03 Y.3288 Z-.2643 I.0000 J-.0312 F4
G01 X.4000 Z-.2656
G02 Y-.0938 Z-.2943 I.0000 J-.2112
G01 X.1250 Z-.3062
G02 X-.0938 Y.1250 Z-.3211 I.0000 J.2188
G01 Y.2146 Z-.3250
G01 Y1.8750
G02 X.1250 Y2.0938 I.2188 J.0000
G01 X.4100
G03 Y2.1563 I.0000 J.0313
G01 X.3800
G02 Y2.5788 I.0000 J.2113
G01 X2.1200
G02 Y2.1563 I.0000 J-.2113
G01 X2.0900
G03 Y2.0938 I.0000 J-.0313
G01 X2.3750 Y2.0938
G02 X2.5938 Y1.8750 I.0000 J-.2187
G01 Y.1366
G02 X2.3850 Y-.0937 I-.2184 J-.0117
G02 X2.3808 Y-.0938 I-.0041 J.0937
G01 X2.1000
G02 Y.3288 I.0000 J.2113
G01 X2.1300
G03 Y.3913 I.0000 J.0313
G01 X.3700
G01 Z-.3250 F2
G03 Y.3288 Z-.3293 I.0000 J-.0312 F4
G01 X.4000 Z-.3306
G02 Y-.0938 Z-.3593 I.0000 J-.2112
G01 X.1250 Z-.3712
G02 X-.0938 Y.1250 Z-.3861 I.0000 J.2188
G01 Y.2146 Z-.3900
G01 Y1.8750
G02 X.1250 Y2.0938 I.2188 J.0000
G01 X.4100
G03 Y2.1563 I.0000 J.0313
G01 X.3800
G02 Y2.5788 I.0000 J.2113
G01 X2.1200
G02 Y2.1563 I.0000 J-.2113
G01 X2.0900
G03 Y2.0938 I.0000 J-.0313
G01 X2.3750 Y2.0938
G02 X2.5938 Y1.8750 I.0000 J-.2187
G01 Y.1366
G02 X2.3850 Y-.0937 I-.2184 J-.0117
G02 X2.3808 Y-.0938 I-.0041 J.0937
G01 X2.1000
G02 Y.3288 I.0000 J.2113
G01 X2.1300
G03 Y.3913 I.0000 J.0313
G01 X.3700
G01 Z-.3900 F2
G03 Y.3288 Z-.3943 I.0000 J-.0312 F4
G01 X.4000 Z-.3956
G02 Y-.0938 Z-.4243 I.0000 J-.2112
G01 X.1250 Z-.4362
G02 X-.0938 Y.1250 Z-.4511 I.0000 J.2188
G01 Y.2146 Z-.4550
G01 Y1.8750
G02 X.1250 Y2.0938 I.2188 J.0000
G01 X.4100
G03 Y2.1563 I.0000 J.0313
G01 X.3800
G02 Y2.5788 I.0000 J.2113
G01 X2.1200
G02 Y2.1563 I.0000 J-.2113
G01 X2.0900
G03 Y2.0938 I.0000 J-.0313
G01 X2.3750 Y2.0938
G02 X2.5938 Y1.8750 I.0000 J-.2187
G01 Y.1366
G02 X2.3850 Y-.0937 I-.2184 J-.0117
G02 X2.3808 Y-.0938 I-.0041 J.0937
G01 X2.1000
G02 Y.3288 I.0000 J.2113
G01 X2.1300
G03 Y.3913 I.0000 J.0313
G01 X.3700
G01 Z-.4550 F2
G03 Y.3288 Z-.4553 I.0000 J-.0312 F4
G01 X.4000 Z-.4554
G02 Y-.0938 Z-.4576 I.0000 J-.2112
G01 X.1250 Z-.4586
G02 X-.0938 Y.1250 Z-.4597 I.0000 J.2188
G01 Y.2146 Z-.4600
G01 Y1.8750
G02 X.1250 Y2.0938 I.2188 J.0000
G01 X.4100
G03 Y2.1563 I.0000 J.0313
G01 X.3800
G02 Y2.5788 I.0000 J.2113
G01 X2.1200
G02 Y2.1563 I.0000 J-.2113
G01 X2.0900
G03 Y2.0938 I.0000 J-.0313
G01 X2.3750 Y2.0938
G02 X2.5938 Y1.8750 I.0000 J-.2187
G01 Y.1366
G02 X2.3850 Y-.0937 I-.2184 J-.0117
G02 X2.3808 Y-.0938 I-.0041 J.0937
G01 X2.1000
G02 Y.3288 I.0000 J.2113
G01 X2.1300
G03 Y.3913 I.0000 J.0313
G01 X.3700
G03 Y.3288 I.0000 J-.0312
G01 X.4000
G02 Y-.0938 I.0000 J-.2112
G01 X.1250
G02 X-.0938 Y.1250 I.0000 J.2188
G01 Y.2146
G00 Z.1
 
M05  (stop spindle)
M09  (all coolant off)
G00 X0 Y0
 
M30  (end with rewind)

Offline ger21

*
  • *
  •  6,233 6,233
    • View Profile
    • The CNC Woodworker
Re: mach3 spindle stops using d2nc
« Reply #4 on: November 09, 2011, 10:14:52 PM »
I guess the question is where is it stopping? There are numerous M5's throughout your code.
Gerry

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

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: mach3 spindle stops using d2nc
« Reply #5 on: November 10, 2011, 04:28:35 PM »
The spindle stops after about 20 lines into the cut cycle. After it does g00 to then starts the cut cycle.
Thanks  you

Offline ger21

*
  • *
  •  6,233 6,233
    • View Profile
    • The CNC Woodworker
Re: mach3 spindle stops using d2nc
« Reply #6 on: November 10, 2011, 06:53:25 PM »
Does the Spindle On LED go out?

What version of Mach3 are you using?

How is your spindle controlled?


There's nothing in the g-code to turn off the spindle during the cut.
Gerry

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

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

Offline BR549

*
  •  6,865 6,865
    • View Profile
Re: mach3 spindle stops using d2nc
« Reply #7 on: November 10, 2011, 07:08:19 PM »
Are you getting an error message in the message bar when it shuts off?

When it shuts OFF does the machine stop movement as well?

(;-) TP