Where do I edit a post processor file?

Where do I edit a post processor file?

ferdinand.krall88G99
Explorer Explorer
447 Views
5 Replies
Message 1 of 6

Where do I edit a post processor file?

ferdinand.krall88G99
Explorer
Explorer

All I'm trying to do is change the last few lines of NC-code at the end of the program in the "haas next generation.cps" post but I can't find how/where to do the edit. It should be just a plain swap of text, no logic or variables.

Currently it looks like this:

M5
G28 G91 Z0.
G90
G53 G0 X0. Y0.
M30

%

 

I want to change it to this format:

M5
G28 G91 Z0.
G28 G91 Y0.
X-150.
G90
M30
%

 

0 Likes
Accepted solutions (1)
448 Views
5 Replies
Replies (5)
Message 2 of 6

programming2C78B
Advisor
Advisor

you open the CPS in any text editor and make the adjustments as needed. Save it as a COPY with the same file type.

Please click "Accept Solution" if what I wrote solved your issue!
0 Likes
Message 3 of 6

ferdinand.krall88G99
Explorer
Explorer

Well, it's not the first CAM software where I'm editing the post processor
but I can't find the text in the .cps file.

Using Find/Replace and searching for G28, there are ZERO search results!

How do I change this

M5
G28 G91 Z0.
G90
G53 G0 X0. Y0.
M30

%


to this?

M5
G28 G91 Z0.
G28 G91 Y0.
X-150.
G90
M30
%


Thanks



F.

 

0 Likes
Message 4 of 6

AdamKunzo
Collaborator
Collaborator

"G28 G91 Z0." is not text string in the post. There is a function "writeRetract (Z/X/Y)" that take cares of retracts.

 

I attached post processor that outputs home position as per your requirement.
You can compare this file with yours to see the modifications I made.

 

---
If my response answers your question, please use Accept Solution button.

0 Likes
Message 5 of 6

ferdinand.krall88G99
Explorer
Explorer

So then how did you edit the "writeRetract (Z/X/Y)" function to get the result I'm looking for? 

0 Likes
Message 6 of 6

matty.fuller
Collaborator
Collaborator
Accepted solution
Do as instructed and compare the file with your unmodified version. In Visual Studio Code you can hit Ctrl+Shift+P and then search for "Compare Active File With..." to automatically highlight differences.