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:

to many nubers past the right of decimal point


PERRY C
 Share

Recommended Posts

Check these settings in your post. What are the settings for x,y, and z?

 

 

# Toolchange / NC output Variable Formats

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

fmt T 4 t$ #Tool No

fmt T 4 first_tool$ #First Tool Used

fmt T 4 next_tool$ #Next Tool Used

fmt D 4 tloffno$ #Diameter Offset No

fmt H 4 tlngno$ #Length Offset No

fmt G 4 g_wcs #WCS G address

fmt P 4 p_wcs #WCS P address

fmt S 4 speed #Spindle Speed

fmt M 4 gear #Gear range

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

fmt N 4 n$ #Sequence number

fmt X 2 xabs #X position output

fmt Y 2 yabs #Y position output

fmt Z 2 zabs #Z position output

fmt X 3 xinc #X position output

fmt Y 3 yinc #Y position output

fmt Z 3 zinc #Z position output

fmt A 11 cabs #C axis position

fmt A 14 cinc #C axis position

fmt A 4 indx_out #Index position

fmt R 14 rt_cinc #C axis position, G68

fmt I 3 i$ #Arc center description in X

fmt J 3 j$ #Arc center description in Y

fmt K 3 k$ #Arc center description in Z

fmt K 2 lead #Helical lead

fmt R 2 arcrad$ #Arc Radius

fmt F 15 feed #Feedrate

fmt P 11 dwell$ #Dwell

fmt M 5 cantext$ #Canned text

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

Link to comment
Share on other sites

perry,

i think you can change this in your post under #common format statements. where it is reading 5 plc# --------------------------------------------------------------------------

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

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

#Format statements

fs2 1 0.7 0.6 #Decimal, absolute, 7 place, default for initialize ( smile.gif

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

fs2 3 0.5 0.4d #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.4 #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

fs2 17 1 0 1 0l #Integer, force 1

 

leadings.change that to a 4

Link to comment
Share on other sites

We have several machines with limited memory and the RS232 is used by the 4th axis indexer so DNC is out of the question. I have set the posts for those machines so that X,Y,Z, and R values post out to 3 decimal. This vastly reduces the program size. And before any members jump in and say "Don't do that!". "It will cause arc errors!" I say "bite me." (Been down this road before.) I have been doing it for 5 years with no problems. Besides, the nci file is created to 7 decimals and rounded down to 4 for the average post processor. So how much different is rounding to 3 decimals?

Link to comment
Share on other sites

seems like four ought to be enough for "most" folks.

but I'm glad the subject was brought up since this was close to the last tweak for me to make for MR2. seems like y'all are sayin' that the control def doesn't overide the post and that an actual post edit is necessary, yes?

Link to comment
Share on other sites
  • 3 weeks later...

I'm just getting around to this and

am seeing different post variables

than what you guys have. Ex: you have

"fs2" I have...

 

code:

fs  1  0.3l

fs 2 0.4

fs 3 4 0

fs 4 1 0ln

fs 5 0.1t

fs 6 2 0ln

fs 7 4 0l

fs 8 0.4li

fs 9 0.4ln

fs 10 1 0

fs 11 0.4d

which one do I manipulate to get more/less characters after the decimal in nc code?

Link to comment
Share on other sites

In the above statements, the fs 1 is called in the output line for a certain formatted output. fs 2 is another format. Check which format is called for your X or Y output and try selecting a different format or (back up your post first) modify the current statement that is being called. Can't stress enough though, back up your post!

Link to comment
Share on other sites

quote:

Check which format is called for your X or Y output

that's what I'm having a hard time with.

can't find it. I've found the Z value, the Q/R vaules, and even the i,j,k but can't figure out which one is the X/Y output.

 

code:

fs  1  0.3l # Z value 

fs 2 0.4 # Q,R values

fs 3 4 0

fs 4 1 0ln

fs 5 0.1t

fs 6 2 0ln

fs 7 4 0l

fs 8 0.4li

fs 9 0.4ln

fs 10 1 0

fs 11 0.4d # i,j,k leading zeros

Link to comment
Share on other sites

Perry,

I had the same problem to get 4 decimals for our router.

You can't change the output from inside X like you could in MC9. I had to chane the fs 1 and fs 2 format statements in the post to 4 instead of 5 to get 4 places right.

Make shure you back up your current post like others have said. Also maybe rename the new post so that you can easily see that it is the 4 place post if you have to switch posts back and forth for different machines or whatever.

Link to comment
Share on other sites

the number after the decimal points

is what is determining the number of places

after the decimal in the nc code. these format

statements have been the source of headaches

for me lately updating current posts to X.

Hopefully I'll be done with them all by X2.

 

code:

fs  1  0.4l # X,Y,Z values

fs 2 0.4 # Q,R values

fs 3 4 0

fs 4 1 0ln

fs 5 0.2t # feed rate

fs 6 2 0ln

fs 7 4 0l

fs 8 0.4li

fs 9 0.4ln

fs 10 1 0

fs 11 0.4d # i,j,k values

Link to comment
Share on other sites

There are two areas you need to look at in the post. The first area defines the format. The second area specifies which format you want to use for each axis. I post 3 place prior to and 4 place after the decimal point. My post is set to fmt 2 for X, Y and Z. Hopefully this helps.

 

Running MR2

 

POST CODE

 

#Default english/metric position format statements

fs2 1 0.7 0.6 #Decimal, absolute, 7 place, default for initialize ( smile.gif

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

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

///////////////////////////////////////////

fmt N 4 n$ #Sequence number

fmt X 2 xabs #X position output

fmt Y 2 yabs #Y position output

fmt Z 2 zabs #Z position output

fmt X 3 xinc #X position output

fmt Y 3 yinc #Y position output

fmt Z 3 zinc #Z position output

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