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:

EDIT post for akira seiki


thanhsonnguyen
 Share

Recommended Posts

Supercar,

 

Someone posted this for me a very long time ago. Over five years ago in fact. I cant remember the details so I cant explain it all to you but this may help you. If needed maybe someone will be able to explain more.

 

code:

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

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

fmt Q 2 shftdrl$ #Fine bore tool shift

fmt R 2 refht_a #Reference height

fmt R 2 refht_i #Reference height

fmt E 15 pitch #Tap pitch (units per thread) added this line

 

pmisc2$ #Canned Misc #2 Cycle (User Option)

pdrlcommonb

if met_tool$, pitch = n_tap_thds$ #Tap pitch (mm per thread)

else, pitch = 1/n_tap_thds$ #Tap pitch (inches per thread)

# pitch = pitch * 1000

pcan1, pbld, n$, *sgdrlref, *sg84, pxout, pyout, pfzout,

prdrlout, *pitch, "R1", strcantext, e$

pcom_movea

 

pmisc2_2$ #Canned Misc #2 Cycle

pdrlcommonb

pcan1, pbld, n$, pxout, pyout, pzout, prdrlout, strcantext, e$

pcom_movea

 

Then at the bottom of the post for fixing the control Def text:

 

code:

 

[misc1]

1. "Fine bore (shift)"

7. ""

8. ""

9. ""

10. ""

[misc2]

1. "Rigid Tapping Mits"

3. ""

7. ""

8. ""

9. ""

10. ""

11. ""

[drill cycle descriptions]

7. "Fine bore (shift)"

8. "Rigid Tapping Cycle"

[canned text]

1. "Program Stop"

2. "Optional Stop"

3. "Block Delete On"

4. "Block Delete Off"

5. "M5"

6. "M6"

7. "M7"

8. "M8"

9. "M9"

10. "M10"

[CTRL_MILL|DEFAULT]

[misc integers]

1. "Work Coordinates [0-1=G92, 2=G54's]"//2

2. "Absolute/Incremental, top level [0=ABS, 1=INC]"

3. "Reference Return [0=G28, 1=G30]"

[simple drill]

1. "Drill/Counterbore"

7. ""

8. ""

9. ""

10. ""

11. ""

[peck drill]

7. "Peck"

8. ""

9. ""

10. ""

11. ""

[chip break]

7. "Peck"

8. ""

9. ""

10. ""

11. ""

[tap]

7. ""

8. ""

9. ""

10. ""

11. ""

[bore1]

1. "Bore #1 (feed-out)"

7. ""

8. ""

9. ""

10. ""

11. ""

[bore2]

1. "Bore #2 (stop spindle, rapid out)"

7. ""

8. ""

9. ""

10. ""

11. ""

[misc1]

1. "Fine bore (shift)"

7. ""

8. ""

9. ""

10. ""

[misc2]

1. "Rigid Tapping Mits"

3. ""

7. ""

8. ""

9. ""

10. ""

11. ""

[drill cycle descriptions]

7. "Fine bore (shift)"

8. "Rigid Tapping Cycle"

[canned text]

1. "Program Stop"

2. "Optional Stop"

3. "Block Delete On"

4. "Block Delete Off"

5. "M5"

6. "M6"

7. "M7"

8. "M8"

9. "M9"

10. "M10"

[CTRL_TEXT_END]

Link to comment
Share on other sites

CALM DOWN MAN!!!!!!

I think, he guided you to the right way but you just DO NOT know how to put them together.

First, declare and format new var.

 

Code

--------------------------------

fmt E 15 pitch #Tap pitch (units per thread) added this line

-------------------------------

second, put it where you need

 

code

-------------------------------

if met_tool$, pitch = n_tap_thds$ #Tap pitch (mm per thread) else, pitch = 1/n_tap_thds$ #Tap pitch (inches per thread)# pitch = pitch * 1000 pcan1, pbld, n$, *sgdrlref, *sg84, pxout, pyout, pfzout, prdrlout, *pitch, "R1", strcantext, e$ pcom_movea

-------------------------------

 

REMEMBER: ANY THING AFTER THE "#" SIGN WILL BE SKIPPED.

Link to comment
Share on other sites

Sorry, should have pointed out that the math had been commented out. The person that originally helped me set it up for ipm and I added the E to the fmt and commented out the math to get it working properly.

 

I would have spent more time explaining but I was at work.

 

[ 02-16-2010, 12:54 AM: Message edited by: Neurosis ]

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