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:

Post remove decimal


Recommended Posts

Hey guys,

We are using the standard MPLFAN post from mastercam,

our lathe is a regular 2 axis single turret with a fanuc 0iTD controller.

The current posts for outside thread.

G20

(TOOL - 5 OFFSET - 5)

(OD THREAD RIGHT INSERT - NONE)

( OD THREAD )

G0 T0505

G97 S400 M03

G0 G54 X.5737 Z.2167

G76 P010029 Q.001 R.001

G76 X.2993 Z-1. P372 Q70 R0. E.0625

G28 U0. W0. M05

T0500

M30

The problem seems to be the first g76 line.

G76 P010029 Q001 R.001 the controller complains about the decimal point for the Q.

How can I modify the post to remove the Decimal point for this Q only?

Thank you.

Mike

Link to comment
Share on other sites

One more thing!

We are using the standard MPLFAN post from mastercam,

our lathe is a regular 2 axis single turret with a fanuc 0iTD controller.

The current posts for outside thread.

G20

(TOOL - 5 OFFSET - 5)

(OD THREAD RIGHT INSERT - NONE)

( OD THREAD )

G0 T0505

G97 S400 M03

G0 G54 X.5737 Z.2167

G76 P010029 Q.001 R.001

G76 X.2993 Z-1. P372 Q70 R0. E.0625

G28 U0. W0. M05

T0500

M30

I need to change or format the E.0625 value for the feed to F.0625.

How can I do this?

Thank you.

Mike

Link to comment
Share on other sites
  • 1 year later...

"Find this line in your post"

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

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

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

Bellow you will see your "fs2" or Format statements you will need to add a statement

because if you change one that already exsits you will most likely change others as well.

 

ADD THIS at the bottom of the fs2 lines

fs2 27 0 4 0 4 #Decimal, absolute, 3 place

 

Then search for your fmt "Q" line under your #Thread output it will probably have a 2 next to it.

Change it to look like this.....

fmt "Q" 27 thdfirst$ #First depth cut in thread

 

 

 

To change the E output Look for this....

 

#String and string selector definitions for NC output

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

#Address string definitions

stra : "A" #String for address A

strd : "D" #String for address D

stre : "F" #String for address E Change E to F

strf : "F" #String for address F

stri : "I" #String for address I

Link to comment
Share on other sites

Hey guys,

We are using the standard MPLFAN post from mastercam,

our lathe is a regular 2 axis single turret with a fanuc 0iTD controller.

The current posts for outside thread.

G20

(TOOL - 5 OFFSET - 5)

(OD THREAD RIGHT INSERT - NONE)

( OD THREAD )

G0 T0505

G97 S400 M03

G0 G54 X.5737 Z.2167

G76 P010029 Q.001 R.001

G76 X.2993 Z-1. P372 Q70 R0. E.0625

G28 U0. W0. M05

T0500

M30

The problem seems to be the first g76 line.

G76 P010029 Q001 R.001 the controller complains about the decimal point for the Q.

How can I modify the post to remove the Decimal point for this Q only?

Thank you.

Mike

 

We do have the same controller on our new Mori Dura Turn lathes. I have been working on a post on and off. I know there is some work that needs to be done for canned cycles.I have to take a look at that. How is your drilling cycle working?

A format statements will take care of the decimal point.

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