Lathe Go home safety lines location

Lathe Go home safety lines location

ctscsmith
Contributor Contributor
1,387 Views
4 Replies
Message 1 of 5

Lathe Go home safety lines location

ctscsmith
Contributor
Contributor

My post processor spits out home moves at the end of a toolpath before a toolchange as it should.  I would like the post to repeat the home move (G30) after the line number (N#).   This way I can jump to any operation of the program and not have to worry about sending the turret to a custom safe location.

 

Samsung post for a Fanuc controller on a 6 axis lathe.

0 Likes
Accepted solutions (1)
1,388 Views
4 Replies
Replies (4)
Message 2 of 5

serge.quiblier
Autodesk
Autodesk

Hello @ctscsmith 

 

Do you use the standard Samsung post, or another ?

 

Depending on the post, you may find inside a goHome function, or a writeRetract function.

These are the functions we usually create in the post to deal with this.

 

It may be something else, then you have to search for a line like writeBlock(mFormat.format(30)….. , o (28) depending.

 

It will allow you to determine where this is outputted by the post.

 

After detecting the function, you will have to add this call where ever you want.

 

If you need more assistance, do hesitate to send me a private message, joining your post so i can have a deeper look.

 

Regards.

 

 


______________________________________________________________

If my post answers your question, please click the "Accept as Solution" button. This helps everyone find answers more quickly!



Serge.Q
Technical Consultant
cam.autodesk.com
Message 3 of 5

ctscsmith
Contributor
Contributor

its the samsung post, and it seems to use goHome(true).  The tool change seems to be at line 1240.  I get a goHome is not a function when I try and run it though.

0 Likes
Message 4 of 5

ctscsmith
Contributor
Contributor

There are also some boolean operations and a definition called forceToolAndRetract on line 1232

0 Likes
Message 5 of 5

serge.quiblier
Autodesk
Autodesk
Accepted solution

Hello @ctscsmith ,

 

If you want to add an homing call after the block number, you have to open the post, and the search for the onSection function.

Inside this function, around the line 1324 you should find a piece of code looking like :

  // Output the operation description
  writeln("");
  if (hasParameter("operation-comment")) {
    var comment = getParameter("operation-comment");
    if (comment) {
      if (insertToolCall && properties.sequenceNumberToolOnly) {
        writeCommentSeqno(comment);
        goHome(true);   //Line to Add
      } else {
        writeComment(comment);
      }
    }
  }

 

Then add the goHome function, after the writeCommentSeqno call.

Hope this is helping you,

 

Regards

 


______________________________________________________________

If my post answers your question, please click the "Accept Solution" button. This helps everyone find answers more quickly!

 



Serge.Q
Technical Consultant
cam.autodesk.com
0 Likes