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:

how to edit mplfan to post canned cycles without decimals


Recommended Posts

Hello, I have to edit mplfan for x4 to change the depth of cut on canned cycles to whole numbers instead of decimals.

 

It reads like G71 P1 Q2 U.05 W.002 D.1 F.01

 

IT SHOULD READ G71 P1 Q2 U.05 W.002 D1000 F.01

 

also,

 

I need to make G83 read without a decimal number for Q

 

ex, G83 Z-1. Q1250 F.005 R.1

 

any suggestions?

Link to comment
Share on other sites

I am definitely not a post expert but this is what I think you will have to change. Make sure you save a backup of the post before starting.

 

There should be a section of the post that look like this

 

fmt "Q" 2 peck1$ #First peck increment (positive)

 

I think you will have to change the 2 to something else. Look for a section in the post that looks like the following

 

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

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

#Default english/metric position format statements

fs2 1 0.7 0.6 #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 0 4 0 4t #No decimal, absolute, 4 trailing

 

Find the format type you want. You may have to create a new one if the correct one is not there. The one in the post by MSL above is probably what you need. Notice the number after fs2. This is the number you what to change the number the other section of the post to. In the example I have it is set to 2 so it would output absolute code with a decimal. I think you would want to use 16.

Link to comment
Share on other sites

I am definitely not a post expert but this is what I think you will have to change. Make sure you save a backup of the post before starting.

 

There should be a section of the post that look like this

 

fmt "Q" 2 peck1$ #First peck increment (positive)

 

I think you will have to change the 2 to something else. Look for a section in the post that looks like the following

 

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

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

#Default english/metric position format statements

fs2 1 0.7 0.6 #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 0 4 0 4t #No decimal, absolute, 4 trailing

 

Find the format type you want. You may have to create a new one if the correct one is not there. The one in the post by MSL above is probably what you need. Notice the number after fs2. This is the number you what to change the number the other section of the post to. In the example I have it is set to 2 so it would output absolute code with a decimal. I think you would want to use 16.

 

If above section is from Mpfan post you need to use format # 16 which is the last one.

 

fs2 16 0 4 0 4t #No decimal, absolute, 4 trailing <--------------

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