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:

okuma c-axis drill cycles


kazmir44
 Share

Recommended Posts

I have an okuma l470m with live tooling. OSP-P100. When I post out drill cycles in milling mode it posts out "G183 Z~ K.1 F~ D~"

I need it to be "G183 C~ X~ Z~ K0. F~ D~"

 

Need it to post out C and X values. And, I need the K to be 0. so it will retract to the ref. position. With the K set at .1 it only retracts to Z0., then indexes the C.

 

It also posts out a different home position in milling mode than in lathe mode.

 

Using version 9.

 

Any help would be appreciated

 

Thanks in advance

 

Jake

 

[ 01-11-2008, 07:40 AM: Message edited by: kazmir44 ]

Link to comment
Share on other sites

I have been trying to modify the mplosp7c post. Which, so far, has turned out better than the one that I got from my reseller.

The post supplied by my reseller does the same thing with the k value. I have been waiting for months for them to get me a post with no issues.

I just don't have the time to sit around and wait.

 

So what kind of information am i missing. I started with the mplosp7c post. Which is a generic okuma post supporting lap3 cycles and c-axis. Shouldn't this post have all of the information necessary?

Link to comment
Share on other sites

I would think so. Need to post up that cycle on the screen like so:

 

code:

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

# Drilling

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

pdrill0$ #Pre-drill postblock call

if cuttype = five, #Don't allow 5 axis, rests at toolchange

[

usecandrill$ = zero

usecanpeck$ = zero

usecanchip$ = zero

usecantap$ = zero

usecanbore1$ = zero

usecanbore2$ = zero

usecanmisc1$ = zero

usecanmisc2$ = zero

]

else,

[

if abs(cuttype) < three, mdrl_dir = zero

else, mdrl_dir = one

x$ = xnci$

y$ = ynci$

z$ = refht$

copy_x = vequ(x$)

pshft_map_xa

pxyzcout

refht_x = vequ(xabs)

z$ = depth$

copy_x = vequ(x$)

pshft_map_xa

pxyzcout

depth_x = vequ(xabs)

z$ = zdrl$

copy_x = vequ(x$)

pshft_map_xa

pxyzcout

zdrl_x = vequ(xabs)

z$ = initht$ #Initial is last

copy_x = vequ(x$)

pshft_map_xa

pxyzcout

initht_x = vequ(xabs)

znci$ = initht$

ps_inc_calc

]

 

pdrlcommonb #Canned Drill Cycle common call, before

if gcode$ = 81,

[

if drillcyc$ = three, drlgsel = fsg1 (-g_speed) + drillcyc$ * two #Tap

else, drlgsel = fsg2 (dwell$) + drillcyc$ * two

if initht$ <> refht$, drillref = zero

else, drillref = one

prv_refht_a = c9k

prv_refht_i = c9k

prv_dwell$ = zero

]

if mdrl_dir = zero, #Set Z to depth

[

zia = fmtrnd(depth_z)

zinc = zia - prv_zia

]

else, #Set X to depth

[

xia = fmtrnd(depth_x)

xinc = xia - prv_xia

]

xabs = vequ (depth_x)

comment$

pcan

 

pgdrlout #Drill Gcode output

if mdrl_dir = zero, *sgdrillf

else, *sgdrillc

 

prdrlout #R drill position

if mdrl_dir = zero, refht_a = refht_z

else, refht_a = refht_x

refht_i = refht$ - initht$

if absinc$ = zero, refht_a, !refht_i

else, refht_i, !refht_a

 

ldrill$ #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$ = -1

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$

if dwell$, pdwell1

pe_inc_calc

xabs = vequ(refht_x)

ps_inc_calc

pswtchspin

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

if dwell$, pdwell1

prv_gcode$ = -1

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

 

lbore1$ #Canned bore #1 cycle, lathe

ldrill$

 

lbore2$ #Canned bore #2 cycle, lathe

ldrill$

 

lmisc1$ #Canned misc #1 cycle, lathe

ldrill$

 

lmisc2$ #Canned misc #2 cycle, lathe

ldrill$

 

mdrill$ #Canned drill cycle, mill

pdrlcommonb

pcan1, pbld, n$, *sgdrlref, pgdrlout, pxout, pyout, pzout,

pcout, prdrlout, dwell$, pffr, strcantext, e$

pcom_movea

 

mpeck$ #Canned peck drill cycle, mill

pdrlcommonb

pcan1, pbld, n$, *sgdrlref, pgdrlout, pxout, pyout, pzout,

pcout, prdrlout, *peck1$, dwell$, pffr, strcantext, e$

pcom_movea

 

mchpbrk$ #Canned chip break cycle, mill

mpeck$

 

mtap$ #Canned tap cycle, mill

pdrlcommonb

pcan1, pbld, n$, *sgdrlref, pgdrlout, pxout, pyout, pzout,

pcout, prdrlout, pffr, strcantext, e$

pcom_movea

 

mbore1$ #Canned bore #1 cycle, mill

mdrill$

 

mbore2$ #Canned bore #2 cycle, mill

mdrill$

 

mmisc1$ #Canned misc #1 cycle, mill

pdrlcommonb

pcan1, pbld, n$, *sgdrlref, pgdrlout, pxout, pyout, pzout,

pcout, prdrlout, *shftdrl$, dwell$, pffr, strcantext, e$

pcom_movea

 

mmisc2$ #Canned misc #2 cycle, mill

 

mdrill_2$ #Canned drill cycle repeat, mill

pdrlcommonb

pcan1, pbld, n$, pxout, pyout, pzout, pcout, prdrlout,

dwell$, pfr, strcantext, e$

pcom_movea

 

mpeck_2$ #Canned peck drill cycle repeat, mill

mdrill_2$

 

mchpbrk_2$ #Canned chip break cycle repeat, mill

mdrill_2$

 

mtap_2$ #Canned tap cycle repeat, mill

mdrill_2$

 

mbore1_2$ #Canned bore #1 cycle repeat, mill

mdrill_2$

 

mbore2_2$ #Canned bore #2 cycle repeat, mill

mdrill_2$

 

mmisc1_2$ #Canned misc #1 cycle repeat, mill

mdrill_2$

 

mmisc2_2$ #Canned misc #2 cycle repeat, mill

mdrill_2$

 

pdrlcst$ #Custom drill cycles 8 - 19 (user option)

#Use this postblock to customize drilling cycles 8 - 19

pdrlcommonb

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

pcom_movea

 

pdrlcst_2$ #Custom drill cycles 8 - 19 (user option)

#Use this postblock to customize drilling cycles 8 - 19

pdrlcommonb

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

pcom_movea

 

pcanceldc$ #Cancel drill cycle

xabs = vequ (initht_x) #Position to return

ps_inc_calc

pe_inc_calc #Update to current location

gcode$ = zero

pcan

pcan1, pbld, n$, sgcode, "G80", strcantext, e$

pcan2


And also this section:

code:

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

# Drill output

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

fmt R 2 refht_a #Reference height

fmt R 2 refht_i #Reference height

fmt X 2 initht_x #Initial height, mapped X

fmt 2 initht_y #Initial height, mapped Y

fmt Z 2 initht_z #Initial height, mapped Z

fmt X 2 refht_x #Reference height, mapped X

fmt 2 refht_y #Reference height, mapped Y

fmt Z 2 refht_z #Reference height, mapped Z

fmt X 2 depth_x #Depth, mapped X

fmt 2 depth_y #Depth, mapped Y

fmt Z 2 depth_z #Depth, mapped Z

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

fmt 2 peck2$ #Second or last peck (positive)

fmt R 2 peckclr$ #Safety distance

fmt 2 retr$ #Retract height

fmt Q 2 shftdrl$ #Fine bore tool shift

And the code as it is outputted using the debug with the post for those cycles:

 

Like so:

 

code:

%                                                           pheader$ pheader$

:6930 (A76950) pheader$ pheader$

( MACHINE - AMURA SEIKI) pheader$ pheader$

( CUSTOMER - ADD CUSTOMER) pheader$ pheader$

( PART # - 65B01356-7 REV - ) pheader$ pheader$

( PROGRAM - A76950.NC) pheader$ pheader$

( DATE - JAN-11-2008) pheader$ pheader$

( TIME - 8:34 AM ) pheader$ pheader$

( PROGRAMMER - RONNIE B ) pheader$ pheader$

(T11 - 1/4 CENTERDRILL ) pwrtt$ p__190:3335

(T12 - 33/64 DRILL ) pwrtt$ p__190:3335

( ***** ) psof$ psof$

(OVERALL MAX - Z5.) psof$ p__40:1584

(OVERALL MIN - Z-.4) psof$ p__40:1584

(*****) psof$ psof$

N100 G00 G17 G20 G40 G80 G90 psof$ psof$

N110 T11 M06 ( 1/4 CENTERDRILL) psof$ p__43:1635

N120 (MAX - Z5.) psof$ p__46:1648

N130 (MIN - Z2.8) psof$ p__46:1648

N140 G00 G54 X-4. Y6. S1800 M03 psof$ p__45:1645

N150 G43 H11 Z5. psof$ p__45:1645

N160 G98 G81 Z2.8 R3.05 F4. pdrill$ pdrill$

N170 G80 pcanceldc$ pcanceldc$

N180 M05 ptlchg1002$ pretract

N190 G91 G28 Z0. ptlchg1002$ pretract

N200 M01 ptlchg$ ptlchg$

N210 T12 M06 ( 33/64 DRILL) ptlchg$ p__43:1635

N220 (MAX - Z5.) ptlchg$ p__46:1648

N230 (MIN - Z-.4) ptlchg$ p__46:1648

N240 G00 G90 G54 X-4. Y6. S900 M03 ptlchg$ p__45:1645

N250 G43 H12 Z5. ptlchg$ p__45:1645

N260 G98 G83 Z-.4 R3.05 Q.1 F8. ppeck$ ppeck$

N270 G80 pcanceldc$ pcanceldc$

N280 M05 peof$ pretract

N290 G91 G28 Z0. peof$ pretract

N300 G90 peof$ peof$

N310 M01 peof$ peof$

N320 M30 peof$ peof$

%

And we can go from there and see if we can be of assitance.

Link to comment
Share on other sites

here is the drilling section

_______________________________________________

 

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

fmt X 2 initht_x #Initial height, mapped X

fmt 2 initht_y #Initial height, mapped Y

fmt Z 2 initht_z #Initial height, mapped Z

fmt I 2 refht_x #Reference height, mapped X

fmt 2 refht_y #Reference height, mapped Y

fmt K 2 refht_z #Reference height, mapped Z

fmt X 2 depth_x #Depth, mapped X

fmt 2 depth_y #Depth, mapped Y

fmt Z 2 depth_z #Depth, mapped Z

fmt D 2 peck1 #First peck increment (positive)

fmt 2 peck2 #Second or last peck (positive)

fmt R 2 peckclr #Safety distance

fmt 2 retr #Retract height

fmt Q 2 shftdrl #Fine bore tool shift

 

zdrl_x : 0 #Drill point, mapped X

zdrl_y : 0 #Drill point, mapped Y

zdrl_z : 0 #Drill point, mapped Z

drillref : -1 #Select drill reference

drlgsel : -1 #Drill Select Initialize

no_g80 : 0 #Drill G80 code not output

mdrl_dir : 0 #Mill drill direction for boolean, 0 = face, 1 = cross

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

pdrill0 #Pre-drill postblock call

result = nwadrs(stre, dwell)

if drillcyc = 3, drlgsel = fsg1 (-c1_ss) + drillcyc * 2 #Tap

else, drlgsel = fsg2 (dwell) + drillcyc * 2

if abs(c1_cuttype) < 3, mdrl_dir = zero

else, mdrl_dir = one

if initht <> refht, drillref = 0

else, drillref = 1

x = xnci

y = ynci

z = initht

xa = vequ (x)

pshft_map

pxyzcoutdrl

initht_x = vequ (xabs)

z = refht

xa = vequ (x)

pshft_map

pxyzcoutdrl

refht_x = vequ (xabs)

z = depth

xa = vequ (x)

pshft_map

pxyzcoutdrl

depth_x = vequ (xabs)

z = zdrl

xa = vequ (x)

pshft_map

pxyzcoutdrl

zdrl_x = vequ (xabs)

znci = initht

 

pdrlstrt #Drill Cycle start

pcomread

xa = vequ (xnci)

pshft_map

pxyzcout

if mi4 <> 0, pbld, n, smspdl_clmp, e

pbld, n, sgfeed, e

feed = fr_pos

if gcode <> 100, prv_dwell = zero

@dwell

 

pdrlend #Drill Cycle end

pcom_movea

prv_gcode = -1

if mi4 <> 0, pbld, n, smspdl_clmp, e

 

pdrlref #Drill Cycle reference position

*sgdrlref

 

ldrill #Canned drill cycle, lathe

 

lpeck #Canned peck drill cycle, lathe

 

lchpbrk #Canned chip break cycle, lathe

 

ltap #Canned tap cycle, lathe

pdrlstrt

gcode = zero

zabs = refht_z

pbld, n, psgcode, pzout

zabs = depth_z

c1_opcode = 104 #thread address

pbld, n, "G32", pfzout, pffr, pnullstop

if fmtrnd(dwell) <> zero, pdwell1

zabs = refht_z

pswtchspin

pbld, n, "G32", pfzout, *spindle_l

if fmtrnd(dwell) <> zero, pdwell1

prv_gcode = -1

pbld, n, pnullstop

pswtchspin

if refht <> initht, pref_ne_i

pbld, n, spindle_l

c1_opcode = 81 #Restore opcode

pdrlend

 

lbore1 #Canned bore #1 cycle, lathe

 

lbore2 #Canned bore #2 cycle, lathe

 

lmisc1 #Canned misc #1 cycle, lathe

 

lmisc2 #Canned misc #2 cycle, lathe

 

pref_ne_i #Drill Cycle, refht <> initht, lathe

gcode = zero

zabs = initht_z

pbld, n, psgcode, pfzout, ptapspindle, e

 

ptapspindle #Tap Cycle, refht <> initht, lathe

if drillcyc = 3, *spindle_l

 

mdrill #Canned drill cycle, mill

if no_g80 = one, mdrill_2

else, mdrill2

 

mdrill2 #Canned drill cycle, mill

pdrlstrt

if mdrl_dir = zero, pbld, n, pdrlref, *sgdrillf, pxout, pyout, *depth_z,

pcout, *refht_z, pffr, dwell, e

else, pbld, n, pdrlref, *sgdrillc, *depth_x, pyout, pzout,

pcout, *refht_x, pffr, dwell, e

pdrlend

 

mpeck #Canned peck drill cycle, mill

if no_g80 = one, mdrill_2

else, mpeck2

 

mpeck2 #Canned peck drill cycle, mill

pdrlstrt

if mdrl_dir = zero, pbld, n, pdrlref, *sgdrillf, pxout, pyout, *depth_z,

pcout, *refht_z, pffr, dwell, *peck1, e

else, pbld, n, pdrlref, *sgdrillc, *depth_x, pyout, pzout,

pcout, *refht_x, pffr, dwell, *peck1, e

pdrlend

 

mchpbrk #Canned chip break cycle, mill

if no_g80 = one, mdrill_2

else, mpeck2

 

mtap #Canned tap cycle, mill

if no_g80 = one, mdrill_2

else, mtap2

 

mtap2 #Canned tap cycle, mill

pdrlstrt

if mdrl_dir = zero, pbld, n, pdrlref, *sgdrillf, pxout, pyout, *depth_z,

pcout, *refht_z, pffr, e

else, pbld, n, pdrlref, *sgdrillc, *depth_x, pyout, pzout,

pcout, *refht_x, pffr, e

pdrlend

 

mbore1 #Canned bore #1 cycle, mill

if no_g80 = one, mdrill_2

else, mdrill2

 

mbore2 #Canned bore #2 cycle, mill

if no_g80 = one, mdrill_2

else, mdrill2

 

mmisc1 #Canned misc #1 cycle, mill

if no_g80 = one, mdrill_2

else, mmisc12

 

mmisc12 #Canned misc #1 cycle, mill

pdrlstrt

if mdrl_dir = zero, pbld, n, pdrlref, *sgdrillf, pxout, pyout, *depth_z,

pcout, *refht_z, *shftdrl, pffr, dwell, e

else, pbld, n, pdrlref, *sgdrillc, *depth_x, pyout, pzout,

pcout, *refht_x, *shftdrl, pffr, dwell, e

pdrlend

 

mmisc2 #Canned misc #2 cycle, mill

 

mdrill_2 #Canned drill cycle repeat, mill

gcode = 100

pdrlstrt

if mdrl_dir = zero, pbld, n, pxout, pyout, depth_z, pcout, refht_z, dwell

else, pbld, n, depth_x, pyout, pzout, pcout, refht_x, dwell

pdrlend

 

mpeck_2 #Canned peck drill cycle repeat, mill

mdrill_2

 

mchpbrk_2 #Canned chip break cycle repeat, mill

mdrill_2

 

mtap_2 #Canned tap cycle repeat, mill

mdrill_2

 

mbore1_2 #Canned bore #1 cycle repeat, mill

mdrill_2

 

mbore2_2 #Canned bore #2 cycle repeat, mill

mdrill_2

 

mmisc1_2 #Canned misc #1 cycle repeat, mill

mdrill_2

 

mmisc2_2 #Canned misc #2 cycle repeat, mill

mdrill_2

 

pcanceldc #Cancel drill cycle

#Filter cancel with cross null toolchanges

if c1_cuttype = 3 & nextop > 999 & n1_gcode = 1000

& n1_nextop = 81, no_g80 = one

else, pcanceldc2

 

pcanceldc2 #Cancel drill cycle if passed filter

gcode = zero

if posttype = 2, pbld, n, "G80", e

else, pbld, n, "G180", e

no_g80 = zero

 

__________________________________________________

 

and the posted file

__________________________________________________

 

$LIVE.MIN pheader 112

(LIVE.MIN) pheader 112

(PROVEN BY: DATE: 00/00/00 TIME: 00:00) pheader 112

(PROBLEMS: ) pheader 112

(COMMENTS: ) pheader 112

(SUGGESTIONS: ) pheader 112

(SPEICIAL FIXTURES: NONE ) pheader 112

(MACHINE NO. ) pheader 112

O0000 (LIVE ) msof 118

N01 msof mtlchg 118

( *** ) msof pcomreadout 118

( *** START OF MILLWORK *** ) msof pcomreadout 118

( *** ) msof pcomreadout 118

( DRILLING THRU IN 14 PLACES ) msof pcomreadout 118

( TOOL - 1 OFFSET - 1 ) msof ptoolcomment 118

( DRILL .281 HIPER DRILL ) msof ptoolcomment 118

G0 X100. Z0. M05 msof phomecall 118

M110 msof pcaxis_on_m2 118

G136 msof pcaxis_on_m2 118

T0101 M42 M13 M86 M8 msof mtlchg 118

G0 X7.624 Z.1 msof mtlchg 118

C90. msof mtlchg 118

G94 mdrill pdrlstrt 118

G181 Z-.7943 K.1 F20. mdrill mdrill2 118

X6.1244 C119.998 mdrill_2 120

X7.6252 C150.005 mdrill_2 122

X7.624 C180. mdrill_2 124

X6.124 mdrill_2 126

X7.6252 C209.995 mdrill_2 128

X6.1244 C240.002 mdrill_2 130

X7.624 C270. mdrill_2 132

X6.1244 C299.998 mdrill_2 134

X7.6252 C330.005 mdrill_2 136

X6.1249 C344.993 mdrill_2 138

C15.007 mdrill_2 140

X7.6252 C29.995 mdrill_2 142

X6.1244 C60.002 mdrill_2 144

G180 pcanceldc pcanceldc2 146

M9 ptoolend phomecall_ret 150

G0 X50. Z50. ptoolend phomecall_ret 150

M01 ptoolend phomecall_ret 150

ptoolend phomecall_ret 150

N05 mtlchg 256

( ROUGHING IN THE C'BORES ) mtlchg pcomreadout 256

( TOOL - 5 OFFSET - 5 ) mtlchg ptoolcomment 256

( DRILL 10 MM DRILL .3937 DIA 3-3/8 LOF 67 PER. THD-7/16-20 IN A V40BR-20-275/V5 mtlchg ptoolcomment 256

G0 X100. Z0. M05 mtlchg phomecall 256

T0505 M41 M13 M86 M8 mtlchg 256

G0 X7.624 Z.1 mtlchg 256

C90. mtlchg 256

G181 Z-.33 K.1 F5. mdrill mdrill2 256

X6.1244 C119.998 mdrill_2 258

X7.6252 C150.005 mdrill_2 260

X7.624 C180. mdrill_2 262

X6.124 mdrill_2 264

X7.6252 C209.995 mdrill_2 266

X6.1244 C240.002 mdrill_2 268

X7.624 C270. mdrill_2 270

X6.1244 C299.998 mdrill_2 272

X7.6252 C330.005 mdrill_2 274

X6.1249 C344.993 mdrill_2 276

C15.007 mdrill_2 278

X7.6252 C29.995 mdrill_2 280

X6.1244 C60.002 mdrill_2 282

G180 pcanceldc pcanceldc2 284

M9 ptoolend phomecall_ret 288

G0 X50. Z50. ptoolend phomecall_ret 288

M01 ptoolend phomecall_ret 288

ptoolend phomecall_ret 288

N06 mtlchg 394

( FINISHING THE C'BORES ) mtlchg pcomreadout 394

( TOOL - 6 OFFSET - 6 ) mtlchg ptoolcomment 394

( DRILL .406 2 FLUTE ENDMILL 1" L.O.C., TOOL OUT 1-1/4 IN A V40SF-038-275/V50SF- mtlchg ptoolcomment 394

G0 X100. Z0. M05 mtlchg phomecall 394

T0606 M41 M13 M87 M8 mtlchg 394

G0 X7.624 Z.1 mtlchg 394

C90. mtlchg 394

G181 Z-.255 K.1 F20.37 mdrill mdrill2 394

X6.1244 C119.998 mdrill_2 396

X7.6252 C150.005 mdrill_2 398

X7.624 C180. mdrill_2 400

X6.124 mdrill_2 402

X7.6252 C209.995 mdrill_2 404

X6.1244 C240.002 mdrill_2 406

X7.624 C270. mdrill_2 408

X6.1244 C299.998 mdrill_2 410

X7.6252 C330.005 mdrill_2 412

X6.1249 C344.993 mdrill_2 414

C15.007 mdrill_2 416

X7.6252 C29.995 mdrill_2 418

X6.1244 C60.002 mdrill_2 420

G180 pcanceldc pcanceldc2 422

M9 peof phomecall_ret 424

G0 X50. Z50. peof phomecall_ret 424

M12 peof 424

M109 peof pcaxis_off_l 424

T1100 peof 424

(LIVE.MIN) peof 424

M30 peof 424

% peof 424

peof 424

 

_________________________________________________

 

and this is how it looked after i edited it and sent it to the machine.

_________________________________________________

 

( *** )

( *** START OF MILLWORK *** )

( *** )

 

N5

( DRILL .281 HIPER DRILL )

( IN A STRAIGHT LYNDEX LIVE MILLING STATION )

( DRILLING THRU IN 14 PLACES )

G0 X50. Z50. M05

M110

G136

T0101 SB=3000 M42 M13

G0 X7.624 Z.1

C90. M8

G94

G181 C90. X7.624 Z-.7943 K0. F20.

X6.1244 C119.998

X7.6252 C150.005

X7.624 C180.

X6.124

X7.6252 C209.995

X6.1244 C240.002

X7.624 C270.

X6.1244 C299.998

X7.6252 C330.005

X6.1249 C344.993

C15.007

X7.6252 C29.995

X6.1244 C60.002

G180

G0 Z50. M9

M01

 

N6

( 10 MM DRILL .3937 DIA )

( IN A STRAIGHT LYNDEX LIVE MILLING STATION )

( ROUGHING IN THE C'BORES )

G0 Z50. M05

T0505 SB=970 M41 M13

G0 X7.624 Z.1

C90. M8

G181 C90. X7.624 Z-.33 K0. F5.

X6.1244 C119.998

X7.6252 C150.005

X7.624 C180.

X6.124

X7.6252 C209.995

X6.1244 C240.002

X7.624 C270.

X6.1244 C299.998

X7.6252 C330.005

X6.1249 C344.993

C15.007

X7.6252 C29.995

X6.1244 C60.002

G180

G0 Z50. M9

M01

 

N7

( DRILL .406 2 FLUTE ENDMILL 1" L.O.C. )

( IN A STRAIGHT LYNDEX LIVE MILLING STATION )

( FINISHING THE C'BORES )

G0 Z50. M05

T0606 SB=2500 M42 M13

G0 X7.624 Z.1

C90. M8

G181 C90. X7.624 Z-.255 K0. F10.

X6.1244 C119.998

X7.6252 C150.005

X7.624 C180.

X6.124

X7.6252 C209.995

X6.1244 C240.002

X7.624 C270.

X6.1244 C299.998

X7.6252 C330.005

X6.1249 C344.993

C15.007

X7.6252 C29.995

X6.1244 C60.002

G180

G0 Z50. M9

X50.

M12

M109

 

_________________________________________________

 

as of right now i am using one post to post out the lathe work. and another post to post out the mill work. then i paste the two together.

i am also having issues with the lathe work when using this post. that is why i post the lathe work with a "good post".

in the future i would like to work out the issues with the lathe work on this post. but, right now i just want to fix the mill portion.

 

 

BTW

thanks for taking the time to look this over.

your help is greatly appreciated

 

jake

Link to comment
Share on other sites

Thanks for the info on posting up. I'm trying to break out of "noob" status. I'll be sure to put it to good use.

 

The holes we were drilling on this part were on separate bolt circles. The print was actually dimensioned from hole to hole instead of on bolt circles. If they were all on the same bolt circle there would be no X moves after the G181. Probably not the best example. But it was one of the more recent ones I have done.

 

Well, when the K is set at .1 in the mill drilling cycles, the drill retracts to Z0. instead of to Z.1 before it indexes to the next C position.

 

When the K is set to 0. it will retract to Z.1

 

When cross drilling it posts out an I instead of a K. And it reacts the same way. The I has to be 0. for the drill to retract to the ref. position.

 

Does this seem right to you? Maybe there is something I am doing wrong. I would like to talk to someone using the same type of machine and take a look at the g-code they are using. Maybe my way is not the best way.??? But it does work.

 

Anyway, I'll try to locate a good part file to use as a model and i'll make up a .z2g. Probably won't be until monday.

 

Thanks again,

 

Jake

Link to comment
Share on other sites

Well it might be an absolute/incremental setting for the machine and using the drilling cycles 1 is incremental and 0 absolute or could be vise/versa. I am a firm believer if what works works and until someone can show me a better way I do what works for me. When you get your .z2g just send it to my email and we will go from there.

 

HTH

Link to comment
Share on other sites

Well, i'm pretty sure I figured out our problem with the K value. We were programming it wrong. It will output what we want if we set the clearance to .1, and the retract to 0. That was an issue of improper training. We were turning the clearance off, and setting the retract to .1, for some reason.??

 

This is the okuma format.

G94 X___ Z1___ T1111 SB=1500

G181 X___ Z___ C___ K___ F___

 

K: Rapid feed from Z1 to K (Z1 - K), and then feed rate follows F___.

 

So if it was G94 X3. Z.1 ........ and a K.1, it would rapid to Z0.

 

Thanks for the help.

 

Jake

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