Remove G28 W0. from program by editing post processor

Remove G28 W0. from program by editing post processor

mpj_skolzi
Explorer Explorer
815 Views
1 Reply
Message 1 of 2

Remove G28 W0. from program by editing post processor

mpj_skolzi
Explorer
Explorer

I am looking for a way to edit the post processor in order to post my program without a z retract (G28 W0.) at the end of the program. I would still like to have the X retract (G28 U0.).

 

I have been manually deleting it from the finished program but any help would be appreciated to automatically post without the Z retract as shown in line 31 of the attached photo below.

 

I am using a fanuc turning post processor and am thinking I will need to edit something around line 1552. 

 

Thank you in advance,

 

Mike

Screenshot (2).pngScreenshot (3).png

0 Likes
816 Views
1 Reply
Reply (1)
Message 2 of 2

bob.schultz
Alumni
Alumni

You are correct that the retract code is in the onClose function.  Find the following code in this function.

if (!machineConfiguration.hasHomePositionX() && !machineConfiguration.hasHomePositionY()) {
    writeBlock(gFormat.format(28), "U" + xFormat.format(0), conditional(yOutput.isEnabled(), "V" + yFormat.format(0)), "W" + zFormat.format(0)); // return to home
  } else {

And remove the "W" code from it.  It should look like this.

if (!machineConfiguration.hasHomePositionX() && !machineConfiguration.hasHomePositionY()) {
    writeBlock(gFormat.format(28), "U" + xFormat.format(0), conditional(yOutput.isEnabled(), "V" + yFormat.format(0))); // return to home
  } else {


Bob Schultz
Sr. Post Processor Developer

0 Likes