Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

CRASHED Fadal - tool return home problem with G53 Z0. not G90 H0 Z0


Recommended Posts

Sounds like you are starting from the generic CNC post provided and have the wcs_mode set to 2. There is a post block called pretract that contains the move causing the issue. At the bottom of the post block are the following lines:

  if wcs_mode = two,  # 'E' fixture offset mode
    pcan1, pbld, n$, *sgabsinc, sgcode, "H0", "Z0.", strcantext, e$ # Retract Z w/ tool length cancel
  else, # 'G28' retract mode
    [
    absinc$ = one
    pcan1, pbld, n$, "G28", "Z0.", strcantext, e$
    if nextop$ = 1003 | tlchg_home, pbld, n$, *sg28ref, "X0.", "Y0.", protretinc, e$
    else, pbld, n$, protretinc, e$
    ]

 

To output using the G53 Z0 method, you need to change the above code to the following:

 

  #if wcs_mode = two,  # 'E' fixture offset mode
  #  pcan1, pbld, n$, *sgabsinc, sgcode, "H0", "Z0.", strcantext, e$ # Retract Z w/ tool length cancel
  #else, # 'G28' retract mode
  #  [
    absinc$ = zero
    pcan1, pbld, n$, "G53", "Z0.", strcantext, e$
  # if nextop$ = 1003 | tlchg_home, pbld, n$, *sg28ref, "X0.", "Y0.", protretinc, e$
  #  else, pbld, n$, protretinc, e$
  #  ]

 

Note this will only retract the Z-axis as you requested, the XY and rotary axis home positioning will not be output.

 

HTH

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...