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:

Contour with .00005 taper


Leon82
 Share

Recommended Posts

I have a square with radii in the 4 corners. Tool path tolerance it .00001.

On all 4 sides the posted code is moving.00005 along each length. The geometry is straight I even drew new geometry if I annalize with six place decimals it's a straight line..

 

The post is set for 6 place decimal. Will adjusting the system tolerance help this?

Link to comment
Share on other sites
40 minutes ago, Leon82 said:

I have a square with radii in the 4 corners. Tool path tolerance it .00001.

On all 4 sides the posted code is moving.00005 along each length. The geometry is straight I even drew new geometry if I annalize with six place decimals it's a straight line..

 

The post is set for 6 place decimal. Will adjusting the system tolerance help this?

This is probably just an issue with rounding of the numbers in Windows.

Do a Google Search for 'round_opt$' on this site.

 

 

Link to comment
Share on other sites
1 hour ago, Leon82 said:

I have a square with radii in the 4 corners. Tool path tolerance it .00001.

On all 4 sides the posted code is moving.00005 along each length. The geometry is straight I even drew new geometry if I annalize with six place decimals it's a straight line..

 

The post is set for 6 place decimal. Will adjusting the system tolerance help this?

Can you share a file?

Link to comment
Share on other sites

Which version of Mastercam? You can use native vbscript tools to output the precise value in a message box of the selected lines endpoints.

It might not be in the right view, then you would combine views or something.

There is intellisense in code expert for the language

Link to comment
Share on other sites


Dim success
success = StartDBSearch(MC_SELECTED,MC_LINETYPE)

If success Then
    Do 
	       Dim Line
		   
           Set Line = New mcLn

           If GetLineData(GetEntityEptr, Line) = True Then 
			
			  ShowString("Line end point1->" + "x" + Cstr(Line.X1)  + "y" + Cstr(Line.Y1) + "z"  + Cstr(Line.Z1) + " Line end point2->"+ "x" + Cstr(Line.X2)  + "y" + Cstr(Line.Y2) + "z"  + Cstr(Line.Z2))  
			 
           End If
    Loop While NextDBSearch   
End If  

 

Link to comment
Share on other sites
1 hour ago, Thee Byte™ said:

Which version of Mastercam? You can use native vbscript tools to output the precise value in a message box of the selected lines endpoints.

It might not be in the right view, then you would combine views or something.

There is intellisense in code expert for the language

2020.

1 hour ago, Colin Gilchrist said:

 

 

 

So, try the following (one at a time), to test the 'round_opt$' variable:

round_opt$ : 0

round_opt$ : 1

round_opt$ : 11

round_opt$ : 21

Thanks, I will give it a shot tomorrow

1 hour ago, Thee Byte™ said:

Can you share a file?

I will try. I need to strip it of customer data

Link to comment
Share on other sites
2 hours ago, Leon82 said:

That variable is not in the post

No, it isn't. 

This is something that you have to add to your Post, if you want to test it out. It is kind of a 'secret option'.

That MP variable instructs MP.DLL to utilize a different Windows Function for rounding a double value. (All numbers are stored as the Double Type in MP.)

Add the variable initialization, starting with the 'r' in the very 1st column of your editor.

Only add one line, and then change the 'initialization value', each time you run the test. (Be sure to sve the Post between the tests!)

round_opt$ : 11

There are 4 different values to try: 0, 1, 11, 21.

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