Machsupport Forum

G-Code, CAD, and CAM => G-Code, CAD, and CAM discussions => Topic started by: TT350 on February 29, 2012, 12:59:59 PM

Title: Runn Error Line 2
Post by: TT350 on February 29, 2012, 12:59:59 PM
Hi guys I'm getting a Run Error Line 2 unspecified failure.
It is stopping on the line for spindle start.

I can hit any key on the key board and it will start the program but the spindle
dose not start.

When the program starts  running a VB scipt editor box appears,
The word DoSpinCW()

I have been generating code with the same cam software for about 5 years
and this is just started happening.

Here is a piece of the code

Thanks for any help

N1 G00 G43 G40.1 G17 G80 G50 G90
N2 G20
N3 (Deep Drill )
N4 M6 T1
N5 G43 H1
N6  M03 S1500
M8
N7 G00 Z0.50000
N8 X-0.30000 Y6.85000
N9 G83 X-0.30000 Y6.85000 Z-0.52197 R0.1 Q0.1 F5.0
N10G80
N11 G00 Z0.50000
N12 G83 X-1.90036 Y7.45000 Z-0.52197 R0.1 Q0.1 F5.0
N13G80
N14 G00 Z0.50000
N15 G83 X-4.10000 Y6.85000 Z-0.52197 R0.1 Q0.1 F5.0
N16G80
N17 G00 Z0.50000
N18 G83 X-6.30000 Y7.45000 Z-0.52197 R0.1 Q0.1 F5.0
N19G80
N20 G00 Z0.50000
N21 G83 X-9.00030 Y6.67013 Z-0.52197 R0.1 Q0.1 F5.0
N22G80
N23 G00 Z0.50000
N24 G83 X-10.69964 Y7.45000 Z-0.52197 R0.1 Q0.1 F5.0
N25G80
N26 G00 Z0.50000
N27 G83 X-12.90000 Y6.85000 Z-0.52197 R0.1 Q0.1 F5.0
N28G80
N29 G00 Z0.50000
N30 G83 X-15.09928 Y7.45000 Z-0.52197 R0.1 Q0.1 F5.0
M9
N31G80
N32 G00 Z5.0
Title: Re: Runn Error Line 2
Post by: BR549 on February 29, 2012, 01:37:56 PM
The specifid error Line 2 is actually the N1 line in your Gcode program. Check the manual for the use of G40.1 (;-)

Just a thought, (;-) TP
Title: Re: Runn Error Line 2
Post by: TT350 on February 29, 2012, 01:45:02 PM
What is G40.1?

Should I remove it?