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:

Custom vertical lathe tools


Recommended Posts

Machine: Mazak Integrex w/Matrix control

 

Post/X7 issue: The vertical position (B90.) for custom lathe tools is not being read.

There is no issue with the non-custom lathe tools.

 

Post code from lathe tool change (ltlchg$)/tool call section only:

 

ptoolcall

[

if synch_flg & vert, pbld, n$,"G0 B90. W-15.",e$

else,

if vert, pbld, n$,"G0 B90.",e$

if not(vert) & spindle_no$ = 0,pbld, n$,"G0 B0.",e$

if not(vert) & spindle_no$ = 1,pbld, n$,"G0 B180.",e$

]

 

Post code for tool call:

ptoolcall

 

if posttype$ <> 2,

[

if cuttype = 2, tdircode = 0.01

if abs(cuttype) = 3 | cuttype = 4, tdircode = 0.01

if cuttype = -2,tdircode= 0.01

if cuttype > 5, tdircode = 0.01 # use .0 for all 5-axis except when 5-axis with 4-axis output

if cuttype = 5 & not(mr3$), tdircode = 0.01

if cuttype = 5 & mr3$ & mill5$ = 1,

[

if fmtrnd(babs) = 90, tdircode = 0.01

else, tdircode = 0.02

]

if lturret$ = 0, tdircode = .7575

]

if posttype$ = 2 & vert, #vertical tools

[

if orient$ = 1, tdircode = 0.02 #unrotated mill spindle

if orient$ = 5, tdircode = 0.02

if orient$ = 2, tdircode = 0.05 #rotated mill spindle

if orient$ = 6, tdircode = 0.05

]

if posttype$ = 2 & not(vert) & spindle_no$ = 0, #horizontal tools on main

[

if orient$ = 4, tdircode = 0.01 #unrotated mill spindle

if orient$ = 8, tdircode = 0.01

if orient$ = 1, tdircode = 0.04 #rotated mill spindle

if orient$ = 5, tdircode = 0.04

]

if posttype$ = 2 & not(vert) & spindle_no$ = 1, #horizontal tools on sub

[

if orient$ = 5, tdircode = 0.03 #unrotated mill spindle

if orient$ = 8, tdircode = 0.03

if orient$ = 6, tdircode = 0.06 #rotated mill spindle

if orient$ = 7, tdircode = 0.06

]

if mi6$ > 0, tdircode = mi6$/10 # Override #entered as integer

if mi6$ > 9, tdircode = mi6$/100 # Override

if mr2$ & sav_tdircode = 0,

[

sav_tdircode = tdircode

tdircode = 0

]

toolno = int(t$)

#suffix = ((t$/100) - toolno) / 100

if tcode_sw = 0,

 

toolno = toolno + tdircode #4-Digit T-Code

result = newfs(21,toolno)

#if lturret$ = 0, result = newfs(24,toolno)

 

if toolchng, pbld, n$, *toolno,next_tool$,"M6",tloffno$, e$

else, pbld, n$, toolno, e$

 

The tool path code in the posted program for the custom tool is correct for a lathe tool at B90. However, the B on the main spindle outputs B0. and the sub spindle outputs B180. If I manually change the B to B90. in the program there is no issue. Non-custom lathe tools will output correctly.

 

Sample tool path code:

N1

(Custom Vert lathe tool)

G28 U0. Y0.

G28 W0.

M901

M202

T17.04 T17 M6 D17

G0 B0. – Should read B90.

G53.5

G18

G50 S2000 R1 (MAIN)

G96 S100 M03 R1 (MAIN)

**removed tool path code**

Link to comment
Share on other sites

Okay are you using MU1? There was a known bug with certain tools in X7 that caused all kind of havoc for lathe that was addressed in MU1. I suggest you make a .z2g and shoot it off to your dealer and let them take alook to help you sort it out. I never set my tools up the way you are describing so unless I have something to follow not going to be much help.

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