Z axis has suddenly stopped going forwards <resloved>

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

dmbgo
Posts: 547
Joined: Sat Aug 15, 2020 9:21 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 0035FF8A7F34-0730203594
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Bendigo Vic Australia
Contact:

Re: Z axis has suddenly stopped going forwards (only when running gcode, it goes in both directions when I use the MPG)

Post by dmbgo »

cncsnw wrote: Tue Feb 16, 2021 9:41 pm For this testing, you might try setting the G28 position to Z-20, X-20 or something similar, so that you have more time to see what is going on after it leaves the G28 position, before it gets to your travel limit.
Here is a screen grab of the result of a G28 command after I set the return settings to -20
g28 position set to -20mm.png
cncsnw
Posts: 3832
Joined: Wed Mar 24, 2010 5:48 pm

Re: Z axis has suddenly stopped going forwards (only when running gcode, it goes in both directions when I use the MPG)

Post by cncsnw »

dmbgo wrote:This is the Gcode screen when the X limit error occurs
(picture of screen after limit switch has been tripped)

What I had in mind was to look at the Distance to Go display on the screen before the limit switch is tripped and the job is cancelled. Once the error occurs, the Distance to Go is reset to zero, and does not tell us anything.
dmbgo
Posts: 547
Joined: Sat Aug 15, 2020 9:21 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 0035FF8A7F34-0730203594
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Bendigo Vic Australia
Contact:

Re: Z axis has suddenly stopped going forwards (only when running gcode, it goes in both directions when I use the MPG)

Post by dmbgo »

Actually, I don't know if it's me, or if there is a mistake in this Gcode program, when I look up G20, it says that is the command to use inch measurements. I am using Metric measurements, so 1 inch is a lot more then 1mm! The file name is PAWN-MM.cnc, and it is located in the C:\cnct\ncfiles\millimeter folder. I wonder what would happen if I change the G20 to G21 in the file that CNC12 loads?
25.4 inches is way past my machine's travel limits in the + X direction.
cncsnw
Posts: 3832
Joined: Wed Mar 24, 2010 5:48 pm

Re: Z axis has suddenly stopped going forwards (only when running gcode, it goes in both directions when I use the MPG)

Post by cncsnw »

To see what is in your CNC program, press F6/Edit.

The program you attached (which I have no doubt is exactly as it came with the software) begins:

Code: Select all

; ICN_PATH = C:\icn_lath\millimeter\PAWN-MM.LTH
; CNC code generated by Intercon v4.07 Dev Test, Rev 8
; Description: Without Spindle Encoder
; Programmer: DED
; Date: 26-Sep-2017
; --- Header ---
N0001 G20 ; inch measurements 
  :::: --- Stock Dimensions ---
  :::: X- = -12.7, X+ = 12.7
  :::: Z- = -36.83, Z+ = 0.0
  :::: ---
  G50 S2000 ; max CSS spindle speed 
  G40 ; Cutter Comp Off 
; --- Comment ---
N0002 ; Tool #1 - 55 degree turning tool
; --- Comment ---
N0003 ; with a .4 MM (.0156") nose radius
; --- Comment ---
N0004 ; using a nose vector 3
; --- Comment ---
N0005 ; Tool #3 - .25 mm(.092") wide cutoff tool
; --- Comment ---
N0006 ; using a nose vector 8
; --- Comment ---
N0007 ; Finished part is 34.29 mm long
  M5
  M9
  G28
; --- Facing ---
N0008 T0100 ;55 Degree turning
  M9
  G97 S1900.0 M3
  G4 P3.0
  G0 X25.4 Z2.54 T0101
  X25.4 Z2.54 
  G94 X-1.27 Z0.127 G98 F200.0
What matters here is the G20 code on line 7. Whoever created this "mm" version of the program evidently scaled all the dimensions up by a factor of 25.4, but did not bother changing their machine configuration over to metric, so it posted with a G20 instead of a G21.

As a result, the move on line 34 is trying to move X from your G28 position (a diameter of around 77mm) to a diameter of 25.4 inches, or about 645mm. If you look at the Distance to Go display just after the move begins, before the limit switch trips, you will probably see something over 560mm to go.

If you previewed the program with F8/Graph, and looked at the rulers along the bottom and left of the screen, you might have seen some surprising dimensions.

If you had software travel limits set, you would have gotten an error message, "907 X axis travel exceeded, line 34". This would not have told you exactly what the problem was, but it would have eliminated hardware problems and questions about the G28 code.

Chances are, if you open the program in Intercon (F5/CAM -> F1/ICN) and then re-post it (F10/Post), it will work correctly. Or at least better.
dmbgo
Posts: 547
Joined: Sat Aug 15, 2020 9:21 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 0035FF8A7F34-0730203594
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Bendigo Vic Australia
Contact:

Re: Z axis has suddenly stopped going forwards (only when running gcode, it goes in both directions when I use the MPG)

Post by dmbgo »

It appears that was it. I changed the G20 command to G21 mm measurements right at the start of the PAWN-MM.CNC file and the X axis limit problem magically disappeared. I don't know about older versions of CNC12, but certainly Ver 4.5 and Ver 4.62 have the same issue with this file.

It's a bit ironic that in order to solve an issue that I was experiencing, I lucked out when I picked a file with an error to help resolve my issue.
dmbgo
Posts: 547
Joined: Sat Aug 15, 2020 9:21 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 0035FF8A7F34-0730203594
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Bendigo Vic Australia
Contact:

Re: Z axis has suddenly stopped going forwards (only when running gcode, it goes in both directions when I use the MPG)

Post by dmbgo »

:) que cera
dmbgo
Posts: 547
Joined: Sat Aug 15, 2020 9:21 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 0035FF8A7F34-0730203594
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Bendigo Vic Australia
Contact:

Re: Z axis has suddenly stopped going forwards (only when running gcode, it goes in both directions when I use the MPG)

Post by dmbgo »

Anyway, I still have the original issue, but it is so many posts ago that I wonder if I should start a new thread?
dmbgo
Posts: 547
Joined: Sat Aug 15, 2020 9:21 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 0035FF8A7F34-0730203594
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Bendigo Vic Australia
Contact:

Re: Z axis has suddenly stopped going forwards (only when running gcode, it goes in both directions when I use the MPG)

Post by dmbgo »

cncsnw wrote: Tue Feb 16, 2021 11:22 pm To see what is in your CNC program, press F6/Edit.

The program you attached (which I have no doubt is exactly as it came with the software) begins:

Code: Select all

; ICN_PATH = C:\icn_lath\millimeter\PAWN-MM.LTH
; CNC code generated by Intercon v4.07 Dev Test, Rev 8
; Description: Without Spindle Encoder
; Programmer: DED
; Date: 26-Sep-2017
; --- Header ---
N0001 G20 ; inch measurements 
  :::: --- Stock Dimensions ---
  :::: X- = -12.7, X+ = 12.7
  :::: Z- = -36.83, Z+ = 0.0
  :::: ---
  G50 S2000 ; max CSS spindle speed 
  G40 ; Cutter Comp Off 
; --- Comment ---
N0002 ; Tool #1 - 55 degree turning tool
; --- Comment ---
N0003 ; with a .4 MM (.0156") nose radius
; --- Comment ---
N0004 ; using a nose vector 3
; --- Comment ---
N0005 ; Tool #3 - .25 mm(.092") wide cutoff tool
; --- Comment ---
N0006 ; using a nose vector 8
; --- Comment ---
N0007 ; Finished part is 34.29 mm long
  M5
  M9
  G28
; --- Facing ---
N0008 T0100 ;55 Degree turning
  M9
  G97 S1900.0 M3
  G4 P3.0
  G0 X25.4 Z2.54 T0101
  X25.4 Z2.54 
  G94 X-1.27 Z0.127 G98 F200.0
What matters here is the G20 code on line 7. Whoever created this "mm" version of the program evidently scaled all the dimensions up by a factor of 25.4, but did not bother changing their machine configuration over to metric, so it posted with a G20 instead of a G21.

As a result, the move on line 34 is trying to move X from your G28 position (a diameter of around 77mm) to a diameter of 25.4 inches, or about 645mm. If you look at the Distance to Go display just after the move begins, before the limit switch trips, you will probably see something over 560mm to go.

If you previewed the program with F8/Graph, and looked at the rulers along the bottom and left of the screen, you might have seen some surprising dimensions.

If you had software travel limits set, you would have gotten an error message, "907 X axis travel exceeded, line 34". This would not have told you exactly what the problem was, but it would have eliminated hardware problems and questions about the G28 code.

Chances are, if you open the program in Intercon (F5/CAM -> F1/ICN) and then re-post it (F10/Post), it will work correctly. Or at least better.
Sorry Cncnsw, I hadn't refreshed my browser, so I didn't realise that you'd found the problem as well. Are you in NSW Australia? I was starting to think it must be V late at night in the USA.
martyscncgarage
Posts: 9914
Joined: Tue Mar 28, 2017 12:01 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Location: Mesa, AZ

Re: Z axis has suddenly stopped going forwards (only when running gcode, it goes in both directions when I use the MPG)

Post by martyscncgarage »

Yes, start a new thread....sounded like you found the issue with the Pawn program but then you didn't???
Reminder, for support please follow this post: viewtopic.php?f=20&t=383
We can't "SEE" what you see...
Mesa, AZ
cncsnw
Posts: 3832
Joined: Wed Mar 24, 2010 5:48 pm

Re: Z axis has suddenly stopped going forwards (only when running gcode, it goes in both directions when I use the MPG)

Post by cncsnw »

Given that now you are presumably getting back to the issue described by the thread's subject line -- having returned from the unrelated digression with the pawn sample program -- it is not unreasonable to continue here.

New thread or not: return to the simple turning program you described in your first post.
  • Show us what you see on the F8/Graph preview screen when you graph that program.
  • Tell us what happens when you run it.
  • Post a fresh report.
  • Post a copy of the CNC file.
Post Reply