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:

GENERIC FANUC 4X MT_LATHE.pst problems with canned drilling


Recommended Posts

Hello all,

I have read a lot in the forum about enabling canned drilling cycles in the control definition manager. I did that and I had the same problem MSL had earlier, afterwards it only posted CUSTOMIZABLE DRILL CYCLE instead of g83. However, he was using the mplmaster post. I tried replacing the text in the post with the text that Chris Mcintosh supplied him with and it messed up my post processor. I assume it only worked on the mplmaster post. Does anyone know what I must change to get the generic fanuk post processor to work? I have edited it in a lot of different areas so it is 90% perfect for what I need it to do only no g83 and g84 yet. I'm using X7

Link to comment
Share on other sites

well, what I edited was pretty simple stuff. since I am the only programmer in this shop I put a line in the pheader to display my name,

changed the m8 to /m8

made canned rough cycles post in old one line format and added a D for depth of cut

removed the g28 w0 from the reference return line and the tool callout before m1

 

I tried to post the files but im not allowed

Link to comment
Share on other sites

here is the canned drilling area of my post

 

#Canned drill cycle, lathe

#Use this postblock to customize lathe drilling cycles 0 - 7

pdrlcommonb

"CUSTOMIZABLE DRILL CYCLE ", pfxout, pfyout, pfzout, e$

pcom_movea

lpeck$ #Canned peck drill cycle, lathe

ldrill$

lchpbrk$ #Canned chip break cycle, lathe

gcode$ = zero

prv_dwell$ = zero

@dwell$

comment$

pcan

pe_inc_calc

xabs = vequ(refht_x)

ps_inc_calc

pcan1, pbld, n$, sgcode, pzout, strcantext, e$

pe_inc_calc

xabs = vequ(depth_x)

ps_inc_calc

if old_new_sw = one,

[

pbld, n$, *sg74, *peckclr$, e$

result = nwadrs (strq, peck1$)

]

else, result = nwadrs (strk, peck1$)

pcan1, pbld, n$, *sg74, pfzout, *peck1$, pffr, strcantext, e$

prv_gcode$ = m_one

if refht$ <> initht$,

[

gcode$ = zero

xabs = vequ(refht_x)

ps_inc_calc

pe_inc_calc

xabs = vequ(initht_x)

ps_inc_calc

pbld, n$, sgcode, pfzout, e$

]

pcom_movea

ltap$ #Canned tap cycle, lathe

gcode$ = zero

prv_dwell$ = zero

@dwell$

comment$

pcan

pe_inc_calc

xabs = vequ(refht_x)

ps_inc_calc

pcan1, pbld, n$, sgcode, pzout, strcantext, e$

pe_inc_calc

xabs = vequ(depth_x)

ps_inc_calc

opcode$ = 104 #thread address from feedrate

pbld, n$, *sthdg32, pfzout, pffr, pnullstop, e$

pdwell1

pe_inc_calc

xabs = vequ(refht_x)

ps_inc_calc

pswtchspin

pbld, n$, *sthdg32, pfzout, *spindle_l, e$

pdwell1

prv_gcode$ = m_one

pbld, n$, pnullstop, e$

pswtchspin

if refht$ <> initht$,

[

gcode$ = zero

pe_inc_calc

xabs = vequ(initht_x)

ps_inc_calc

pbld, n$, sgcode, pfzout, *spindle_l, e$

]

pbld, n$, spindle_l, e$

opcode$ = 81 #Restore opcode

pcom_movea

Link to comment
Share on other sites

Format:HTML Format Version:1.0 StartHTML: 165 EndHTML: 1452 StartFragment: 314 EndFragment: 1420 StartSelection: 314 EndSelection: 314

%

O0000

(T)

(JOHN WILLIAMSON)

(12-06-13---11:26)

G20

(TOOL - 123 OFFSET - 123)

(DRILL .375 DIA.)

G0 T12423

G97 S1200 M03

G0 G54 X0. Z.25

/M8

G83 Z-1. Q.125 F.003 R.1

M9

G28 U0. M05

M30

%

 

well, it seems I figured it out. sorry to bother! :smoke:

Link to comment
Share on other sites
  • 2 years later...

Had the same problem, I almost got everything fixed, but for some reason the post wont output the cutting depth (for example Q1000)

Here's my drilling post block:

ldrill$          #Canned drill cycle, lathe      #Use this postblock to customize lathe drilling cycles 0 - 7      pdrlcommonb      pcan1, pbld, n$, *sgdrlref, pgdrlout, pxout, pyout, pzout,      prdrlout, dwell$, pffr, strcantext, e$      pcom_movea      pcanceldcl

I get this result :

 

 

 

 

 

 

 

 

G98 G83 Z-1.2432 R0. F4.11

 

Any ideas?

 

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