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:

2D High Speed single parameter call out, please help.


Recommended Posts

Hello everyone,
   I'm trying to call out my High Speed 2DToolPaths but somehow I got error messages.  I think I got the right parameter numbers from 2017 post parameter and perhaps I did something funky when I define it.   Please help and below here is what I did.

 

Thank you for your help

=========================================

13 May 2017 10:28:35 AM - PST LINE (765) - Question number is not valid (1. to 999999999.)
13 May 2017 10:28:35 AM - PST LINE (766) - Question number is not valid (1. to 999999999.)
13 May 2017 10:28:35 AM - PST LINE (767) - Question number is not valid (1. to 999999999.)
13 May 2017 10:28:35 AM - PST LINE (768) - Question number is not valid (1. to 999999999.)
13 May 2017 10:28:35 AM - PST LINE (769) - Question number is not valid (1. to 999999999.)
13 May 2017 10:28:35 AM - PST LINE (5120) - Illegal character(s) encountered
13 May 2017 10:28:35 AM - PST LINE (5121) - Illegal character(s) encountered
13 May 2017 10:28:35 AM - PST LINE (5122) - Illegal character(s) encountered
13 May 2017 10:28:35 AM - PST LINE (5123) - Illegal character(s) encountered
13 May 2017 10:28:35 AM - PST LINE (5124) - Illegal character(s) encountered
13 May 2017 10:28:35 AM - PST LINE (6894) - The post block output type processing has failed!, , Label has not been defined[10]
13 May 2017 10:28:35 AM - PST LINE (6894) - The post block output type processing has failed!, , Label was expected but was not found[16], Illegal character(s) encountered
13 May 2017 10:28:35 AM - PST LINE (6894) - The post block output type processing has failed!, , Label was expected but was not found[36], Illegal character(s) encountered
13 May 2017 10:28:35 AM - PST LINE (6895) - The post block output type processing has failed!, , Label has not been defined[7]
13 May 2017 10:28:35 AM - PST LINE (6895) - The post block output type processing has failed!, , Label was expected but was not found[13], Illegal character(s) encountered
13 May 2017 10:28:35 AM - PST LINE (6895) - The post block output type processing has failed!, , Label was expected but was not found[33], Illegal character(s) encountered
13 May 2017 10:28:35 AM - PST LINE (6896) - The post block output type processing has failed!, , Label has not been defined[7]
13 May 2017 10:28:35 AM - PST LINE (6896) - The post block output type processing has failed!, , Label was expected but was not found[14], Illegal character(s) encountered
13 May 2017 10:28:35 AM - PST LINE (6896) - The post block output type processing has failed!, , Label was expected but was not found[34], Illegal character(s) encountered
13 May 2017 10:28:35 AM - PST LINE (6897) - The post block output type processing has failed!, , Label has not been defined[7]
13 May 2017 10:28:35 AM - PST LINE (6897) - The post block output type processing has failed!, , Label was expected but was not found[13], Illegal character(s) encountered
13 May 2017 10:28:35 AM - PST LINE (6897) - The post block output type processing has failed!, , Label was expected but was not found[33], Illegal character(s) encountered
13 May 2017 10:28:35 AM - PST LINE (6898) - The post block output type processing has failed!, , Label has not been defined[7]
13 May 2017 10:28:35 AM - PST LINE (6898) - The post block output type processing has failed!, , Label was expected but was not found[13], Illegal character(s) encountered
13 May 2017 10:28:35 AM - PST LINE (6898) - The post block output type processing has failed!, , Label was expected but was not found[33], Illegal character(s) encountered

=========================================

2DCore: 0
2DPeel: 0
2DBlend: 0
2DArea: 0
2DRest: 0
DynamicArea: 0
DynamicRest: 0
DynamicCore: 0
DynamicContour: 0

HighSpeed2DToolPathsContour: 0
++++++++++++++++++++++++++++++++++++++++++++++
fmt      4  2DCore
fmt      4  2DPeel
fmt      4  2DBlend
fmt      4  2DArea
fmt      4  2DRest
fmt      4  DynamicArea
fmt      4  DynamicRest
fmt      4  DynamicCore
fmt      4  DynamicContour
fmt      4  HighSpeed2DToolPathsContour

++++++++++++++++++++++++++++++++++++++++

pwrttparam$ #Information from parameters
            if prmcode$ = 12713, 
		     [
		         2DCore = rpar(sparameter$,0)
			  2DPeel = rpar(sparameter$,1)
			  2DBlend = rpar(sparameter$,2)
			  2DArea = rpar(sparameter$,3)
			  2DRest = rpar(sparameter$,4)
			  DynamicArea = rpar(sparameter$,5)
			  DynamicRest = rpar(sparameter$,6)
			  DynamicCore = rpar(sparameter$,7)
			  DynamicContour = rpar(sparameter$,8)
			 ]

=========================================

pHighSpeed2DToolPaths
	   if 2DCore = 1, "(", *HighSpeed2DToolPathStepOver, "STEPOVER, ", *HighSpeed2DToolPathStepOverCoreMill, no_spc$, "% TOOL DIA.)", e$
	   if 2DPeel = 1, "(", *HighSpeed2DToolPathStepOver, "STEPOVER, ", *HighSpeed2DToolPathStepOverCoreMill, no_spc$, "% TOOL DIA.)", e$
	   if 2DBlend = 1, "(", *HighSpeed2DToolPathSBlendStepOver2, "STEPOVER, ", *HighSpeed2DToolPathStepOverCoreMill, no_spc$, "% TOOL DIA.)", e$
	   if 2DArea = 1, "(DYNAMIC AREA)", e$
	   if 2DRest = 1, "(DYNAMIC REST)", e$
	   if DynamicArea = 1, "(DYNAMIC CORE)", e$
	   if DynamicRest = 1, "(DYNAMIC CONTOUR)", e$
	   if DynamicCore = 1, "(DYNAMIC CONTOUR)", e$
	   if DynamicContour = 1, "(DYNAMIC CONTOUR)", e$

=========================================

ptlchg_com      #Tool change common blocks
     pHighSpeed2DToolPaths
ptlchg0$         #Call from NCI null tool change (tool number repeats)
     pHighSpeed2DToolPaths
Link to comment
Share on other sites

Why do you keep making this so hard on yourself? All those long variables one letter out of place and it will mess everything up. You should learn the KISS process for your work. Keep It Simple Stupid not that you're stupid, but make the process so simple that anyone can use do it and understand it. Your variables are just to long and sorry, but time I try to make sure each letter is exact for each one I have put way more time into helping you than I am willing to do for free. Best of luck and hope you work in a shop where you can post and go with your code and not have to coddle the people running your programs.

  • Like 1
Link to comment
Share on other sites

you have two problems.  You are using rpar incorrectly is the first issue.  The second issue is the parameters values in the documentation are not correct.  my guess is they were not updated when the the toolpaths were consolidated a few versions back.  Below are the values for the toolpaths I tested.   I am unsure of of the "2D area" style toolpaths output.  this has been reported but hopefully this helps.

 

  • if prmcode$ = 12713, my_variable = rpar(sparameter$, 1)
    • Dynamic set to stay inside = 0
    • Dynamic set to from outside = 0
    • Dynamic rest = 0
    • Dynamic contour = 2
    • Dynamic peel = 3
    • 2d blend = 4
    • Any other toolpath = -99999
  • Like 1
Link to comment
Share on other sites
48 minutes ago, Roger Peterson said:

you have two problems.  You are using rpar incorrectly is the first issue.  The second issue is the parameters values in the documentation are not correct.  my guess is they were not updated when the the toolpaths were consolidated a few versions back.  Below are the values for the toolpaths I tested.   I am unsure of of the "2D area" style toolpaths output.  this has been reported but hopefully this helps.

 

  • if prmcode$ = 12713, my_variable = rpar(sparameter$, 1)
    • Dynamic set to stay inside = 0
    • Dynamic set to from outside = 0
    • Dynamic rest = 0
    • Dynamic contour = 2
    • Dynamic peel = 3
    • 2d blend = 4
    • Any other toolpath = -99999

 

 

Thank you for your suggestions, I truly appreciated.

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