Postprocessor Debug

Postprocessor Debug

infomeca26
Enthusiast Enthusiast
2,064 Views
6 Replies
Message 1 of 7

Postprocessor Debug

infomeca26
Enthusiast
Enthusiast
Hello,

In visual studio, is it possible to do line by line to debug a postpro ?

I add these lines:

// DEBUG ACTIVATE ALL
var valid = true ;
var writeDebug = valid;
setWriteInvocations (valid);
setWriteStack (valid);
 
But I haven't go in output the results of the various tests and I can't find where it's wrong.
 
Thank you
Olivier
0 Likes
2,065 Views
6 Replies
Replies (6)
Message 2 of 7

KrupalVala
Autodesk
Autodesk

Hi @infomeca26 ,

 

Install Autodesk Post Processor Editor (We recommend Visual Studio Code with the Autodesk Fusion 360 Post Processor Utility extension) which Matches the output NC file line to the post-processor command that created it.

Capture.JPG

Thanks,



Krupal Vala
Senior Technology Consultant - Post Processor & Machine Simulation
0 Likes
Message 3 of 7

infomeca26
Enthusiast
Enthusiast

Hello,

 

I have install it but I don't understand how doing line to line for debugging

 

Thanks

olivier

0 Likes
Message 4 of 7

KrupalVala
Autodesk
Autodesk

Hi @infomeca26 ,

 

For the testing, you need to select *.CNC file from CNC SELECTOR and run (Ctrl+Alt+G) it in VScode. Then Go to debuggedfile.nc and double click on NC code. It will give the location of the Post Script Codes.

 

I suggest you to refer Post Processor Training Guide (Page No: 21 to 36). You will know how to use it.

 

Thanks,



Krupal Vala
Senior Technology Consultant - Post Processor & Machine Simulation
0 Likes
Message 5 of 7

KrupalVala
Autodesk
Autodesk

Hi @infomeca26 ,

 

How to use Autodesk Fusion 360 Post Processor Utility. You can download/watch it from here.

Step : Select CNC file and press  Ctrl+Alt+G. It will open debug file on side-window and allows you to find(Double click on NC codes) the location of Post script codes from the NC codes.

 

How to enable debug mode. You can download/watch it from here.

Step:  Click F1, It will open the command window and choose HSM to debug Mode then select true to turn on debug mode. Now select the CNC file which you want to test and press Ctr+Atr+G., It will open a debug window.

 

I hope this helps

 

Thanks,

 



Krupal Vala
Senior Technology Consultant - Post Processor & Machine Simulation
Message 6 of 7

Coras_Alin
Collaborator
Collaborator

if you try it with Inventor Cam 2022, it doesn't work, you get error :

 

 

 

 

Information: Loading post configuration from 'c:\Users\Programare\Desktop\Diverse\Alin posts\siemens-840d multipart.cps'.
Information: Size of intermediate NC data: 0 bytes
Debug: Loading intermediate NC data from 'c:\Users\Programare\.vscode\extensions\autodesk.hsm-post-processor-3.5.8\res\CNC files\Custom\1001.cnc'.
Debug: Loading intermediate NC data as CNC.
Error: Failed to load intermediate NC data.
Failed to load intermediate NC data.
Code page changed to '1250  (ANSI - Central Europe)'
0 Likes
Message 7 of 7

thomspam
Community Visitor
Community Visitor

I have the same. Has there been a solution?

0 Likes