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:

Decimal output of arcs


Ed Lustic
 Share

Recommended Posts

I need to create a subprogram with 5 place accuracy and only X, Y, I, & J moves. I modified the MP_EZ post to get the proper output except for the arcs. It seems that no matter what I do I can’t get more than 4 digits after the decimal. I can change the format statement to output less than 4 digits so I’m pretty sure I am changing the right one.

 

To test it I created a square with sides .123456789 and arcs that touch each corner of the square then chained the square and circle segments. I just changed all format statements to “fs2 (1-17) 0.9 0.9” out of frustration just to see what would happen. This is the output:

 

G0 X.123456789 Y.123456789

G1 X.123456789 Y-.123456789

G1 X-.123456789 Y-.123456789

G1 X-.123456789 Y.123456789

G1 X.123456789 Y.123456789

G2 X.1235 Y-.1235 I-.1235 J-.1235

G2 X-.1235 Y-.1235 I-.1235 J.1235

G2 X-.1235 Y.1235 I.1235 J.1235

G2 X.1235 Y.1235 I.1235 J-.1235

M17

 

The .nci does output to 9 places.

I am using version 9 (March 24 2004).

:firebounce: :firebounce: :firebounce: :firebounce:

Link to comment
Share on other sites

Look for the following area of the post:

code:

pq              #Setup post based on switch settings

if stagetool = one, bldnxtool = one #Need to build Tool table

if arctype = one | arctype = four,

[

result = newfs(two, i)

result = newfs(two, j)

result = newfs(two, k)

]

else,

[

result = newfs(three, i)

result = newfs(three, j)

result = newfs(three, k)

]

and change the format statement number (two or three depending on your setting for arctype) to the number that you wwould like to use.

Link to comment
Share on other sites

Thanks Paul that did the trick. I should have caught that myself when I changed bug2 to -40 and started looking at all the postblocks that were being called but for some reason I started looking at pmiscreal and skipped the first few. It's been a few years since I've done any post work or anything with Mastercam for that matter. The posts have changed a bit.

 

Thanks again,

Ed

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