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:

Brother S2C Tapping Machine post


pinlec
 Share

Recommended Posts

Everybody,do you have brother tapping maching post processor or anybody can modify it from mpfan?

fanuc tapping code

G99 G84 Z-20.0 R3.0 Q3.0 F____ (TAP 2-56)

Brother machine

G99 G77 Z-20.0 R3.0 Q3.0 S2000 J56

How to modify it on mpfan?

could anybody help?

Link to comment
Share on other sites

Hope this helps.

 

sg73 G73 #chip break - no dwell

sg73d G73 #chip break - with dwell

sg77 G77 #tap - right hand

sg84d G74 #tap - left hand

 

 

fmt J 3 tap_out #Spindle Speed for tap out

 

 

ptap$ #Canned Tap Cycle

pdrlcommonb

 

tap_out = n_tap_thds$

pcan1, pbld, , *sgdrill, sgabsinc, *sgdrlref, *xout, *yout, prdrlout, *speed,

tap_out, strcantext, e$

pcom_movea

 

 

outputs: G77 G99 X-2.5028 Y1.1136 Z0. R.1 S4456 J80.

 

[ 07-03-2009, 10:34 AM: Message edited by: Tr3bor ]

Link to comment
Share on other sites

Combined Mill and Lathe Post Processor Version 9.16 © Copyright 1992-2003 CNC Software, Inc.

Processing file with MPFAN...

Variable not defined:

Post line number 578

Program execution halted due to error(s) in .pst

 

this error message after modify

Link to comment
Share on other sites

*progno, e

"(PROGRAM NAME - ", sprogname, ")", e

"(DATE=DD-MM-YY - ", date, " TIME=HH:MM - ", time, ")", e

pbld, n, *sgcode, "G40", "G49", "G80", "G90", e

sav_absinc = absinc

if mi1 <= one, #Work coordinate system

[

absinc = one

pfbld, n, sgabsinc, *sg28ref, "Z0.", e

pfbld, n, *sg28ref, "X0.", "Y0.", e

pfbld, n, "G92", *xh, *yh, *zh, e

absinc = sav_absinc

]

pcom_moveb

c_mmlt #Multiple tool subprogram call

ptoolcomment

comment

pcan

if stagetool >= zero, pbld, n, *t, "M6", e

pindex

if mi1 > one, absinc = zero

pcan1, pbld, n, *sgcode, *sgabsinc, pwcs, pfxout, pfyout,

pfcout, *speed, *spindle, pgear, strcantext, e

pbld, n, "G43", *tlngno, pfzout, scoolant, next_tool, e

absinc = sav_absinc

tap_out = n_tap_thds

pcan1, pbld, , *sgdrill, sgabsinc, *sgdrlref, *xout, *yout, prdrlout, *speed,

tap_out, strcantext, e

Link to comment
Share on other sites

fmt N 4 n #Sequence number

fmt X 2 xabs #X position output

fmt Y 2 yabs #Y position output

fmt Z 2 zabs #Z position output

fmt X 3 xinc #X position output

fmt Y 3 yinc #Y position output

fmt Z 3 zinc #Z position output

fmt A 11 cabs #C axis position

fmt A 14 cinc #C axis position

fmt A 4 indx_out #Index position

fmt R 14 rt_cinc #C axis position, G68

fmt I 3 i #Arc center description in X

fmt J 3 j #Arc center description in Y

fmt K 3 k #Arc center description in Z

fmt R 2 arcrad #Arc Radius

fmt F 15 feed #Feedrate

fmt P 11 dwell #Dwell

fmt M 5 cantext #Canned text

fmt J 3 tap_out #Spindle Speed for tap out

Link to comment
Share on other sites

yours only has:

 

ptap #Canned Tap Cycle

 

 

Not what i said. you have put it in the wrong place should look like this:

 

ptap #Canned Tap Cycle

pdrlcommonb

 

tap_out = n_tap_thds

pcan1, pbld, , *sgdrill, sgabsinc, *sgdrlref, *xout, *yout, prdrlout, *speed,

tap_out, strcantext, e

pcom_movea

Link to comment
Share on other sites

You also have this further down in your post:

 

ptap #Canned Tap Cycle

> pdrlcommonb

> result = newfs(17, feed) # Set for tapping Feedrate format

> pcan1, pbld, n, *sgdrlref, *sgdrill, pxout, pyout, pfzout, pcout,

> prdrlout, *feed, strcantext, e

Link to comment
Share on other sites

prdrlout #R drill position

if cuttype = one, refht_a = refht + (rotdia / two))

else, refht_a = refht

refht_i = refht - initht

if cuttype = three, refht_a = w

if absinc = zero, refht_a, !refht_i

else, refht_i, !refht_a

 

ptap #Canned Tap Cycle

 

pbrlcommonb

 

tap_out = n_tap_thds

pcan1, pbld, , *sgdrill, sgabsinc, *sgdrlref, *xout, *yout, prdrlout, *speed,

tap_out, strcantext, e

pcom_movea

 

pdrill #Canned Drill Cycle

pdrlcommonb

pcan1, pbld, n, *sgdrlref, *sgdrill, pxout, pyout, pfzout, pcout,

prdrlout, dwell, *feed, strcantext, e

pcom_movea

 

 

after i changed to,the error command show

 

Combined Mill and Lathe Post Processor Version 9.16 © Copyright 1992-2003 CNC Software, Inc.

Processing file with MPFAN2...

Variable not defined: pbrlcommonb

Post line number 1091

Program execution halted due to error(s) in .pst

Link to comment
Share on other sites

The problem is solved.

Now another issue.........

see the program with CAPITAL LETTER

 

(PROGRAM NAME - T)

(DATE=DD-MM-YY - 04-07-09 TIME=HH:MM - 22:19)

G0G40G49G80G90

G10L2P1X0Y0Z0

( 2.50-0.45 TAP RH TOOL - 1 DIA. OFF. - 1 LEN. - 1 DIA. - 2.5)

T1G100

G0G90G54X-73.686Y30.901S2000M3

(THIS LINE I NEED TO CHANGE TO)

(G0G90G54X-73.686Y30.901)

G43H1Z2.M8

G99G77Z-20.R2.Q2.I.45S2000

X-19.016Y-4.571F900.

(THIS LINE F900 TO DELETE)

X36.02Y-14.81

G80

M5

G91G28Z0.M9

G28X0.Y0.

M01

( 2. DRILL TOOL - 2 DIA. OFF. - 2 LEN. - 2 DIA. - 2.)

T2G100

G0G90G54X-73.686Y30.901S2864M3

G43H2Z2.M8

G99G83Z-20.R2.Q2.F171.8

X-19.016Y-4.571

X36.02Y-14.81

G80

M5

G91G28Z0.M9

G28X0.Y0.

M30

 

HOW TO MODIFY THE POST?

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