gCode Export Failure: "Error: Machine can only run metric parts"

gCode Export Failure: "Error: Machine can only run metric parts"

joeltbennettuk
Contributor Contributor
1.136Aufrufe
8Antworten
Nachricht 1 von 9

gCode Export Failure: "Error: Machine can only run metric parts"

joeltbennettuk
Contributor
Contributor

Hi. I have a strange issue here, I'm doing some CAM work for someone and they gave me a post-processor for their machine to work with, so I created a new machine for it and now when I'm trying to export gCode files with the Post Process, I'm getting ".failed" extensions on my files.

 

Here's a sample code output for one toolpath export attempt:

Information: Configuration: RS-274D
Information: Vendor: Autodesk
Information: Posting intermediate data to '/Users/JTB/Downloads/PRS-Custom-22/01. Body - Front/1001222222222.nc'
Error: Failed to post process. See below for details.
...
Start time: Wed Jun 24 01:33:44 2020
Post processor engine: 4.5663.0
Configuration path: /users/jtb/autodesk/fusion 360 cam/posts/Autodesk_HSM_beamicon2.cps
Include paths: /users/jtb/autodesk/fusion 360 cam/posts
Configuration modification date: Fri Jun  5 15:50:43 2020
Output path: /Users/JTB/Downloads/PRS-Custom-22/01. Body - Front/1001222222222.nc
Checksum of intermediate NC data: b9096df835be878aa1115f3458987cc9
Checksum of configuration: a62e3066eb3a0cf41a153105b80ddbec
Vendor url: http://www.autodesk.com
Legal: Copyright (C) 2012-2016 by Autodesk, Inc.
Generated by: Fusion 360 CAM 2.0.8412
...

###############################################################################
Error: Machine can only run metric parts
Error at line: 213
Failed while processing onOpen().
###############################################################################

Error: Failed to invoke function 'onOpen'.
Error: Failed to invoke 'onOpen' in the post configuration.
Error: Failed to execute configuration.
Stop time: Wed Jun 24 01:33:45 2020
Post processing failed.

 

 

What is this? Am I being dumb?

0 „Gefällt mir“-Angaben
Akzeptierte Lösungen (1)
1.137Aufrufe
8Antworten
Antworten (8)
Nachricht 2 von 9

boopathi.sivakumar
Autodesk
Autodesk

Hi @joeltbennettuk 

It seems like a modified post could you attach the post file here . let me take a look at it

 


Boopathi Sivakumar
Senior Technology Consultant

0 „Gefällt mir“-Angaben
Nachricht 3 von 9

joeltbennettuk
Contributor
Contributor

Hi - I am attaching the cps file I was given to work with, and also a manual for the machine in question (High-Z T-1000 or something).

 

Please let me know if anything else is needed.

0 „Gefällt mir“-Angaben
Nachricht 4 von 9

joeltbennettuk
Contributor
Contributor

I'll attach a couple more files here from the project in its current state that may or may not be helpful.

0 „Gefällt mir“-Angaben
Nachricht 5 von 9

joeltbennettuk
Contributor
Contributor

Sorry to be annoying, but I can't find this issue anywhere else - I can send you the entire project if that would help.

0 „Gefällt mir“-Angaben
Nachricht 6 von 9

boopathi.sivakumar
Autodesk
Autodesk
Akzeptierte Lösung

.... Edited

Hi @joeltbennettuk 

Edit the post and search for the below section

and change the codes like in the attached code

 

  switch (unit) {
  case IN:
    //error(localize("Machine can only run metric parts")); // Block this line in the post
    writeBlock(gUnitModal.format(20)); //<< Add this line 
    break;
  case MM:
    writeBlock(gUnitModal.format(21));
    break;
  }
}

 

Hope it will work now !! 
Sorry for the delay in reply I missed the queue 


Boopathi Sivakumar
Senior Technology Consultant

0 „Gefällt mir“-Angaben
Nachricht 7 von 9

joeltbennettuk
Contributor
Contributor

Yeah I suppose that'd be best - someone might be annoyed about this floating around 😉

0 „Gefällt mir“-Angaben
Nachricht 8 von 9

boopathi.sivakumar
Autodesk
Autodesk

You might wanna check the previous thread again I edited it.

No need for the model🙂

 


Boopathi Sivakumar
Senior Technology Consultant

Nachricht 9 von 9

joeltbennettuk
Contributor
Contributor

Works perfectly now, thank you so much. I'm just going to attach the corrected post-processing file here in case anyone else needs it in the future.

 

CNC Machine vendor is CNCStep.de / CNCStepUSA.com, model is a High-Z S-1000 T

0 „Gefällt mir“-Angaben