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:

Warning of multiple work offsets


Recommended Posts

  • Threept82 changed the title to Warning of multiple work offsets

You could certainly add a post check for it..

I did something similar for planes...seems this could be edited to serve

use_wcs_chk  : no$   #Set to turn on/off wcs checking

stplanewarn : "ERROR - TPLANE CONFLICT WARNING, TPLANE DIFFERENT, VERIFY OUTPUT" 

if use_wcs_chk,
        [
         !wcs_id, !op_id$, !tplane_id                               #04/12/18
         sav_wcs_id = wcs_id                                         #04/17/18
         sav_tplane_id = tplane_id                                     #04/12/18
        ]

 

if use_wcs_chk,
        [
         !wcs_id, !op_id$, !tplane_id                            #04/12/18
         if sav_wcs_id <> wcs_id, pwcs_check                      #04/18/18
         if sav_tplane_id <> tplane_id & not(rot_on_x), pwcs_check  #04/12/18 
        ]

 

pwcs_check
        if sav_wcs_id <> wcs_id,                                                         #04/12/18
         [
          op_number = opnumber
          pbld, n$, sopen_prn, "WCS DOES NOT MATCH INITIAL WCS SETTING", sclose_prn, e$
          pbld, n$, sopen_prn, "OPERATION", no_spc$, "#", sspace, op_number, sclose_prn, e$
          if compwarnflg = 0, result = mprint(swcswarn)
          spaces$ = 0
          n$, pspc, *sm00, " ", sopen_prn, swcswarn, sclose_prn, e$
          n$, pbld, exitpost$, e$
          spaces$ = sav_spc
          compwarnflg = 1
         ]
        
        if sav_tplane_id <> tplane_id,                                                   #04/17/18
         [
          op_number = opnumber
          pbld, n$, sopen_prn, "T-PLANE DOES NOT MATCH INITIAL T-PLANE SETTING", sclose_prn, e$
          pbld, n$, sopen_prn, "OPERATION", no_spc$, "#", sspace, op_number, sclose_prn, e$
          if compwarnflg = 0, result = mprint(stplanewarn)
          spaces$ = 0
          n$, pspc, *sm00, " ", sopen_prn, stplanewarn, sclose_prn, e$
          n$, pbld, exitpost$, e$
          spaces$ = sav_spc
          compwarnflg = 1
         ]

 

 

  • Like 1
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...