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:

Custom Parameters for Transform Operation


Recommended Posts

ok I'm still stuck. I am trying to force the bld "/" for transform operations. Here is the code I added:

xform_cp    : 0     #Transform Custom Paramter (BJL 06/27/16)
xform_cp_ci1 : 0    #Transform Custom Paramter, Custom Integer #1 (BJL 06/27/16)


pparameter$ # Run parameter table

           if prmcode$ = 15870, xform_cp = rpar(sparameter$,1)  #(BJL 06/27/16)
           if prmcode$ = 15774, xform_cp_ci1 = rpar(sparameter$,1) #(BJL 06/27/16)


pwrttparam$ #Information from parameters

           if prmcode$ = 15870, xform_cp = rpar(sparameter$,1)  #(BJL 06/27/16)
           if prmcode$ = 15774, xform_cp_ci1 = rpar(sparameter$,1) #(BJL 06/27/16)


pbld            #Canned text - block delete #(BJL 06/27/16)
      if xform_cp,
       [
       if xform_cp_ci1 > 0, pfbld
       ]
      else,
       [
       if bld, pfbld
       ]

pfbld           #Force - block delete
      "/"

I can't get the xform_cp or xform_cp_ci1 to read any value other than 0.

 

Any ideas?

Link to comment
Share on other sites

ok I'm still stuck. I am trying to force the bld "/" for transform operations. Here is the code I added:

I can't get the xform_cp or xform_cp_ci1 to read any value other than 0.

 

Any ideas?

 

I ran into the same thing a week or 2 ago. All I ever got was a zero for output. following....

Link to comment
Share on other sites

I haven't played with posts in several years but I am fairly certain we added predefined variables for the transform ops misc values.

 

Try using trans_mi1$, trans_mi2$, trans_mi3$, trans_mi4$, trans_mi5$, trans_mr1$, trans_mr2$, trans_mr3$, trans_mr4$, and trans_mr5$.

You rock Paul. That worked great! Thank you

 

 

I ran into the same thing a week or 2 ago. All I ever got was a zero for output. following....

MIL-TFP-41,

Here is what I did.

trans_mi1$  : 0     #Transform Custom Paramter, Custom Integer

pretract0        #End of tool path, null toolchange
      trans_mi1$ = 0 #put this line at the end of pretract0

pbld            #Canned text - block delete
      if trans_mi1$,
      	[
      	pfbld
      	]
      else,
      	[
      	if bld, '/'
      	]

pfbld           #Force - block delete
      "/"
  • Like 2
Link to comment
Share on other sites

 

You rock Paul. That worked great! Thank you

 

 

MIL-TFP-41,

Here is what I did.

trans_mi1$  : 0     #Transform Custom Paramter, Custom Integer

pretract0        #End of tool path, null toolchange
      trans_mi1$ = 0 #put this line at the end of pretract0

pbld            #Canned text - block delete
      if trans_mi1$,
      	[
      	pfbld
      	]
      else,
      	[
      	if bld, '/'
      	]

pfbld           #Force - block delete
      "/"

 

Brad thank you for posting up your results. :clap: :clap:

Link to comment
Share on other sites

Brad thank you for posting up your results. :clap: :clap:

No problem.

 

I also noticed, previously I stated to put the trans_mi1$ at the end of pretract0, but you actually want to put it towards the top so it reads all the safety retracts and you want to put it in the same place for pretract #End of tool path, toolchange as well. I put the trans_mi1$ = 0 right after absinc$ = one for both post blocks. Hope this helps.

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...