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:

Changing 3 decimal place output to 4 decimal places


m_morgan
 Share

Recommended Posts

I want to output X, Y and Zs with 3 decimal places, and I,J and Ks with 4 decimal places, in the hope that the Fanuc 16i control will stop throwing up errors with arcs.

 

I've changed the format statements from '2' (3 decimal places in metric) to '12', which should be 4 decimal places):

 

# Format statements - n=nonmodal, l=leading, t=trailing, i=inc, d=delta

# ---------------------------------------

#Default english/metric position format statements

fs2 1 0.8 0.7 #Decimal, absolute, 7 place, default for initialize (:)

fs2 2 0.4 0.3 #Decimal, absolute, 4/3 place

fs2 3 0.4 0.3d #Decimal, delta, 4/3 place

#Common format statements

fs2 4 1 0 1 0 #Integer, not leading

fs2 5 2 0 2 0l #Integer, force two leading

fs2 6 3 0 3 0l #Integer, force three leading

fs2 7 4 0 4 0l #Integer, force four leading

fs2 9 0.1 0.1 #Decimal, absolute, 1 place

fs2 10 0.2 0.2 #Decimal, absolute, 2 place

fs2 11 0.3 0.3 #Decimal, absolute, 3 place

fs2 12 0.4 0.4 #Decimal, absolute, 4 place

fs2 13 0.5 0.5 #Decimal, absolute, 5 place

fs2 14 0.3 0.3d #Decimal, delta, 3 place

fs2 15 0.2 0.1 #Decimal, absolute, 2/1 place

fs2 16 1 0 1 0n #Integer, forced output

 

fmt X 2 xout #X position output

fmt Y 2 yout #Y position output

fmt Z 2 zout #Z position output

fmt X 2 g74xabs #G74 X position output

fmt Y 2 g74yabs #G74 Y position output

fmt Z 2 g74zabs #G74 Z position output

fmt I 12 i$ #Arc center description in X

fmt J 12 j$ #Arc center description in Y

fmt K 12 k$ #Arc center description in Z

fmt I 12 iout #Arc center description in X

fmt J 12 jout #Arc center description in Y

fmt K 12 kout #Arc center description in Z

fmt R 12 arcrad$ #Arc Radius

 

But the NC output still only has 3 decimal places for I, J and K values.

 

Am I missing something else?

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