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:

Makino A-61nx Horizontal Post from MPMaster


Recommended Posts

Hey smart people!

 

I need a lot of help with a post.  Looks like it's going to be at least 2 weeks before I can get my hands on a functional post but I need that spindle turning TODAY!

 

Can anybody explain what I must change to get the Makino recommended "H1 D2" output for every tool?  I was able to hardcode it in the toolchange section but when it turns on comp, the D is wrong.

Link to comment
Share on other sites

IN my Mazak...

 

Defined variable

fmt  "D#" 4 maz_doff    #Mazak Pallet Tech Diameter offset number #added 8/14/2015
fmt  "H#" 4 maz_hoff    #Mazal Pallet Tech Height offset number   #added 8/14/2015

In pheader set their values.

maz_doff = 51999  #modified 8/14/2015
 maz_hoff = 51999  #modified 8/14/2015

 

in toolchange

pbld, n$, sg43, maz_hoff, pfzout, scoolant, e$ #[if nextdc$ <> 8, scoolant, sm08_1], e$

in pccdia

pccdia          #Cutter Compensation
      #Force Dxx#  
       if prv_cc_pos$ <> cc_pos$ & cc_pos$, prv_maz_doff = c9k  ##modified 8/14/2015
       sccomp
       if cc_pos$, maz_doff  

 

 

Link to comment
Share on other sites

This is my Makino tool change:

ptlchg$          #Tool change                                        

      pcuttype
      size1 = rbuf(1,0)
      rc1 = t$
      if rc1<= size1, tcount = rbuf(1,rc1)
        else, tcount = 0
      if tcount = 0, tseqno = t$*100
        else, tseqno = t$*100+tcount
      tcount = tcount+1
      wc1 = t$
      tcount = wbuf(1,wc1)
      toolchng = one
      toolchg_cnt = toolchg_cnt + 1
      if mi1$ = one, #Work coordinate system
        [
        pfbld, n$, *sg28ref, "X0.", "Y0.", e$
        pfbld, n$, sg92, *xh$, *yh$, *zh$, e$
        ]
      if t$ <> prv_t$,
        if prog_stop = 1, pbld, n$, *sm01, e$
      if prog_stop = 2, pbld, n$, *sm00, e$
      pcom_moveb
      pcheckaxis
      c_mmlt$ #Multiple tool subprogram call
      ptoolcomment
      comment$
      if omitseq$, *tseqno, e$  #use *tseqno for *ntnum with buffer file        
      pcan
      result = newfs(15, feed)  #Reset the output format for 'feed'
      pbld, n$, *t$, e$
      pbld, n$, sm06, e$
      pbld, n$,[if nextdc$ <> 7, *speed, *spindle], pgear, strcantext,e$ 
      if mi6$ = 1, "M3 G4 X240.", e$
      if mi5$ = 1, plaser2
      pindex
      sav_absinc = absinc$
      if mi1$ > one, absinc$ = zero
      pcan1, pbld, n$, *sgcode, *sgabsinc, pwcs, pfxout, pfyout, pfcout,
        [if nextdc$ <> 7, *speed, *spindle], pgear, strcantext, e$
      if mi4$, psgi_on  #Enable SGI Mode      
      pbld, n$, sg43, pbld, n$, "D2", "H1", pfzout, scoolant,  e$         
      absinc$ = sav_absinc
      pbld, n$, sgabsinc, e$
      pcom_movea
      toolchng = zero
      c_msng$ #Single tool subprogram call
      !xnci$, !ynci$, !znci$, !mi4$

Looks hard coded as well

  • Like 1
Link to comment
Share on other sites

Ok, not sure I did all (any) of this correctly...

Also not sure what the number "51999" is doing for us but now the .nc file has the 51999 in it.

O0001 (4 AXIS HMC TEST)
(MAKINO A-61)
(MACHINE GROUP-1)
(MCX FILE  - S:\MCX\MAKINO\4 AXIS HMC TEST.MCAM)
(PROGRAM   - 4 AXIS HMC TEST.NC)
(DATE      - DEC-07-2017)
(TIME      - 9:15 AM)
(T15  -  1/2 FLAT ENDMILL    - H15  - D15  - D0.5000")
(T16  - 2"  FACE MILL        - H16  - D16  - D2.0000")
(T14  - 6 CENTER DRILL       - H14  - D14  - D0.5000")
(T17  - 27/64 DRILL          - H17  - D17  - D0.4219")
(T18  - 1/2-13 TAPRH         - H18  - D18  - D0.5000")
(T19  - 3/16 FLAT ENDMILL    - H19  - D19  - D0.1875")
(OVERALL MAX - Z8.937)
(OVERALL MIN - Z4.3856)
N100 G00 G17 G20 G40 G80 G90
N110 G91 G28 Z0.
N120 (COMPENSATION TYPE - WEAR COMP)
N130 T15 M06 ( 1/2 FLAT ENDMILL)
N140 (MAX - Z8.937)
N150 (MIN - Z6.687)
N160 G00 G17 G90 G54 B0. X.375 Y-1.3 S1069 M03
N170 G43 H#51999 Z8.937 T16
N180 Z7.037
N190 G94 G01 Z6.687 F6.42
N200 G41 D#51999 Y-1.
N210 Y1.
N220 G40 Y1.3
N230 Z7.037
N240 G00 Z8.937
N250 X-.375
N260 Z7.037
N270 G01 Z6.687
N280 G41 D#51999 Y1.
N290 Y-1.
N300 G40 Y-1.3
N310 Z7.037
N320 G00 Z8.937
N330 M05
N340 G91 G28 Z0.
N350 M01

 

Link to comment
Share on other sites

Matt,

You'll want to change the #51999 to what your machine needs...that was straight out of my post and is the variable the Mazak control reads

maz_doff = 2  #modified 8/14/2015
 maz_hoff = 1  #modified 8/14/2015

If you need a persistant H1 D2 those changes will be needed

Link to comment
Share on other sites

Next issue:

The H & D seem great on OP#1...  Then Op#2 is missing the H altogether...  

O0001 (4 AXIS HMC TEST)
(MAKINO A-61)
(MACHINE GROUP-1)
(MCX FILE  - S:\MCX\MAKINO\4 AXIS HMC TEST.MCAM)
(PROGRAM   - 4 AXIS HMC TEST.NC)
(DATE      - DEC-07-2017)
(TIME      - 9:26 AM)
(T15  -  1/2 FLAT ENDMILL    - H15  - D15  - D0.5000")
(T16  - 2"  FACE MILL        - H16  - D16  - D2.0000")
(T14  - 6 CENTER DRILL       - H14  - D14  - D0.5000")
(T17  - 27/64 DRILL          - H17  - D17  - D0.4219")
(T18  - 1/2-13 TAPRH         - H18  - D18  - D0.5000")
(T19  - 3/16 FLAT ENDMILL    - H19  - D19  - D0.1875")
(OVERALL MAX - Z8.937)
(OVERALL MIN - Z4.3856)
N100 G00 G17 G20 G40 G80 G90
N110 G91 G28 Z0.
N120 (COMPENSATION TYPE - WEAR COMP)
N130 T15 M06 ( 1/2 FLAT ENDMILL)
N140 (MAX - Z8.937)
N150 (MIN - Z6.687)
N160 G00 G17 G90 G54 B0. X.375 Y-1.3 S1069 M03
N170 G43 H1 Z8.937 T16
N180 Z7.037
N190 G94 G01 Z6.687 F6.42
N200 G41 D2 Y-1.
N210 Y1.
N220 G40 Y1.3
N230 Z7.037
N240 G00 Z8.937
N250 X-.375
N260 Z7.037
N270 G01 Z6.687
N280 G41 D2 Y1.
N290 Y-1.
N300 G40 Y-1.3
N310 Z7.037
N320 G00 Z8.937
N330 M05
N340 G91 G28 Z0.
N350 M01
N360 (COMPENSATION TYPE - COMPUTER)
N370 T16 M06 (2"  FACE MILL)
N380 (MAX - Z8.3)
N390 (MIN - Z5.6123)
N400 G00 G17 G90 G54 B45. X-3.491 Y-3.2 S1069 M03
N410 G43 Z8.3 T14
N420 Z6.4
N430 G94 G01 Z6.2018 F1.07
N440 Y3.2
N450 G00 Z6.3018
N460 Y-3.2
N470 G01 Z6.1035
N480 Y3.2
N490 G00 Z6.2035
N500 Y-3.2
N510 G01 Z6.0053
N520 Y3.2
N530 G00 Z6.1053
N540 Y-3.2
N550 G01 Z5.907
N560 Y3.2
N570 G00 Z6.007
N580 Y-3.2
N590 G01 Z5.8088

 

Link to comment
Share on other sites

I believe I understand the reason that Makino wants a H1 D2 for every tool, as it allows for easy integration of redundant tooling with tool life, but it just frosts my rear end that they do it this way.  Someone set up a Mori I used in the past to do a similar thing, and you would use H99 D99 for everything.  But as a result, you couldn't have a tool in magazine position 99, as the values were passed to that register every time.   Needless to say, when I implemented tool life on the double columns at Cat, I used group numbers for everything and it made life of so much less confusing as your T H & D  #'s were always the same....  You could use the machine without redundant tools, and with, no problem, no hassle, no confusing non matching tool heigh and diameter numbers....

Matt, glad you are getting things figured out!  Have fun posting code to that beast.

 

  • Like 1
Link to comment
Share on other sites

There is no B rotation in this program but I kinda expected it to post a B0 on this line: N160 G00 G17 G90 G54 X-4.5691 Y1.4999 S850 M03

Should I force that output or not worry about it?

 

O0000 (Makino Post Test 1)
(MAKINO A-61)
(MACHINE GROUP-1)
(MCX FILE  - S:\MCX\MAKINO\MAKINO POST TEST 1.MCAM)
(PROGRAM   - Makino Post Test 1.NC)
(DATE      - DEC-07-2017)
(TIME      - 10:50 AM)
(T54  -     2.00  ISCAR INS MILL - H54  - D54  - D2.0000" - R0.0300")
(T15  -     .500 CARB FIN. MILL - H15  - D15  - D0.5000")
(T9   -     1.125 CHAMFER MILL *.625 SM.DIA.* - H9   - D9   - D1.0440" - R0.0200")
(T2   -     .250  CTR DRILL  - H2   - D2   - D0.2500")
(T4   -    .159 DRILL     NUM21 - H4   - D4   - D0.1590")
(T50  -    10-32 TAP         - H50  - D50  - D0.1900")
(T36  -    1.00 B BAR        - H36  - D36  - D1.0000")
(OVERALL MAX - Z2.)
(OVERALL MIN - Z-.5)
N100 G00 G17 G20 G40 G80 G90
N110 G91 G28 Z0.
N120 (COMPENSATION TYPE - COMPUTER)
N130 T54 M06 (    2.00  ISCAR INS MILL)
N140 (MAX - Z2.)
N150 (MIN - Z0.)
N160 G00 G17 G90 G54 X-4.5691 Y1.4999 S850 M03
N170 G43 H1 Z2. T15
N180 Z.1
N190 G94 G01 Z0. F20.
N200 X3.5691 F11.5
N210 X3.575 Y.5
N220 X-3.575
N230 Y-.5
N240 X3.575
N250 X3.5691 Y-1.4999
N260 X-4.5691
N270 G00 Z2.
N280 M05
N290 G91 G28 Z0.
N300 M01
N310 (COMPENSATION TYPE - WEAR COMP)
N320 T15 M06 (    .500 CARB FIN. MILL)
N330 (MAX - Z2.)
N340 (MIN - Z-.5)
N350 G00 G17 G90 G54 X2.5 Y-2.3 S4000 M03
N360 G43 H1 Z2. T9
N370 Z.1
N380 G94 G01 Z-.25 F50.
N390 G41 D2 Y-2. F100.
N400 G03 X2.25 Y-1.75 I-.25 J0.
N410 G01 X-2.25
N420 G02 X-2.625 Y-1.375 I0. J.375
N430 G01 Y1.375
N440 G02 X-2.25 Y1.75 I.375 J0.
N450 G01 X2.25
N460 G02 X2.625 Y1.375 I0. J-.375
N470 G01 Y-1.375
N480 G02 X2.25 Y-1.75 I-.375 J0.
N490 G03 X2. Y-2. I0. J-.25
N500 G01 G40 Y-2.3
N510 Z.1 F50.
N520 G00 X2.5
N530 G01 Z-.5
N540 G41 D2 Y-2. F100.
N550 G03 X2.25 Y-1.75 I-.25 J0.
N560 G01 X-2.25
N570 G02 X-2.625 Y-1.375 I0. J.375
N580 G01 Y1.375
N590 G02 X-2.25 Y1.75 I.375 J0.
N600 G01 X2.25
N610 G02 X2.625 Y1.375 I0. J-.375
N620 G01 Y-1.375
N630 G02 X2.25 Y-1.75 I-.375 J0.
N640 G03 X2. Y-2. I0. J-.25
N650 G01 G40 Y-2.3
N660 Z.1 F50.
N670 G00 Z2.
N680 M05
N690 G91 G28 Z0.
N700 M01
N710 (COMPENSATION TYPE - WEAR COMP)
N720 M08
N730 T9 M06 (    1.125 CHAMFER MILL *.625 SM.DIA.*)
N740 (MAX - Z2.)
N750 (MIN - Z-.13)
N760 G00 G17 G90 G54 X2.772 Y-3.0409 S2000 M03
N770 G43 H1 Z2. T2
N780 Z.1

 

Link to comment
Share on other sites
1 hour ago, Matt Berube at Ferron Mold said:

Next issue:

The H & D seem great on OP#1...  Then Op#2 is missing the H altogether...  


O0001 (4 AXIS HMC TEST)
(MAKINO A-61)
(MACHINE GROUP-1)
(MCX FILE  - S:\MCX\MAKINO\4 AXIS HMC TEST.MCAM)
(PROGRAM   - 4 AXIS HMC TEST.NC)
(DATE      - DEC-07-2017)
(TIME      - 9:26 AM)
(T15  -  1/2 FLAT ENDMILL    - H15  - D15  - D0.5000")
(T16  - 2"  FACE MILL        - H16  - D16  - D2.0000")
(T14  - 6 CENTER DRILL       - H14  - D14  - D0.5000")
(T17  - 27/64 DRILL          - H17  - D17  - D0.4219")
(T18  - 1/2-13 TAPRH         - H18  - D18  - D0.5000")
(T19  - 3/16 FLAT ENDMILL    - H19  - D19  - D0.1875")
(OVERALL MAX - Z8.937)
(OVERALL MIN - Z4.3856)
N100 G00 G17 G20 G40 G80 G90
N110 G91 G28 Z0.
N120 (COMPENSATION TYPE - WEAR COMP)
N130 T15 M06 ( 1/2 FLAT ENDMILL)
N140 (MAX - Z8.937)
N150 (MIN - Z6.687)
N160 G00 G17 G90 G54 B0. X.375 Y-1.3 S1069 M03
N170 G43 H1 Z8.937 T16
N180 Z7.037
N190 G94 G01 Z6.687 F6.42
N200 G41 D2 Y-1.
N210 Y1.
N220 G40 Y1.3
N230 Z7.037
N240 G00 Z8.937
N250 X-.375
N260 Z7.037
N270 G01 Z6.687
N280 G41 D2 Y1.
N290 Y-1.
N300 G40 Y-1.3
N310 Z7.037
N320 G00 Z8.937
N330 M05
N340 G91 G28 Z0.
N350 M01
N360 (COMPENSATION TYPE - COMPUTER)
N370 T16 M06 (2"  FACE MILL)
N380 (MAX - Z8.3)
N390 (MIN - Z5.6123)
N400 G00 G17 G90 G54 B45. X-3.491 Y-3.2 S1069 M03
N410 G43 Z8.3 T14
N420 Z6.4
N430 G94 G01 Z6.2018 F1.07
N440 Y3.2
N450 G00 Z6.3018
N460 Y-3.2
N470 G01 Z6.1035
N480 Y3.2
N490 G00 Z6.2035
N500 Y-3.2
N510 G01 Z6.0053
N520 Y3.2
N530 G00 Z6.1053
N540 Y-3.2
N550 G01 Z5.907
N560 Y3.2
N570 G00 Z6.007
N580 Y-3.2
N590 G01 Z5.8088

 

You must have changed something because earlier on you were getting it...I=your planes setup looks ok

Link to comment
Share on other sites

Success!

%
O0002 (Makino Post Test 2)
(MAKINO A-61)
(MACHINE GROUP-1)
(MCX FILE  - S:\MCX\MAKINO\MAKINO POST TEST 2.MCAM)
(PROGRAM   - Makino Post Test 2.NC)
(DATE      - DEC-07-2017)
(TIME      - 1:05 PM)
(T54  -     2.00  ISCAR INS MILL - H54  - D54  - D2.0000" - R0.0300")
(T15  -     .500 CARB FIN. MILL - H15  - D15  - D0.5000")
(T9   -     1.125 CHAMFER MILL *.625 SM.DIA.* - H9   - D9   - D1.0440" - R0.0200")
(T2   -     .250  CTR DRILL  - H2   - D2   - D0.2500")
(T4   -    .159 DRILL     NUM21 - H4   - D4   - D0.1590")
(T50  -    10-32 TAP         - H50  - D50  - D0.1900")
(T36  -    1.00 B BAR        - H36  - D36  - D1.0000")
(OVERALL MAX - Z2.)
(OVERALL MIN - Z-.5)
N100 G00 G17 G20 G40 G80 G90
N110 G91 G28 Z0.
N120 (COMPENSATION TYPE - COMPUTER)
N130 T54 M06 (    2.00  ISCAR INS MILL)
N140 (MAX - Z2.)
N150 (MIN - Z0.)
N160 G00 G17 G90 G54 B0. X-5.5691 Y1.4999 S850 M03
N170 G43 H1 Z2. T15
N180 Z.1
N190 G94 G01 Z0. F20.
N200 X2.5691 F11.5
N210 X2.575 Y.5
N220 X-4.575
N230 Y-.5
N240 X2.575
N250 X2.5691 Y-1.4999
N260 X-5.5691
N270 G00 Z2.
N280 M05
N290 G91 G28 Z0.
N300 M01
N310 (COMPENSATION TYPE - WEAR COMP)
N320 T15 M06 (    .500 CARB FIN. MILL)
N330 (MAX - Z2.)
N340 (MIN - Z-.5)
N350 G00 G17 G90 G54 B0. X1.5 Y-2.3 S4000 M03
N360 G43 H1 Z2. T9
N370 Z.1
N380 G94 G01 Z-.25 F50.
N390 G41 D2 Y-2. F100.
N400 G03 X1.25 Y-1.75 I-.25 J0.
N410 G01 X-3.25
N420 G02 X-3.625 Y-1.375 I0. J.375
N430 G01 Y1.375
N440 G02 X-3.25 Y1.75 I.375 J0.
N450 G01 X1.25
N460 G02 X1.625 Y1.375 I0. J-.375
N470 G01 Y-1.375
N480 G02 X1.25 Y-1.75 I-.375 J0.
N490 G03 X1. Y-2. I0. J-.25
N500 G01 G40 Y-2.3
N510 Z.1 F50.
N520 G00 X1.5
N530 G01 Z-.5
N540 G41 D2 Y-2. F100.
N550 G03 X1.25 Y-1.75 I-.25 J0.
N560 G01 X-3.25
N570 G02 X-3.625 Y-1.375 I0. J.375
N580 G01 Y1.375
N590 G02 X-3.25 Y1.75 I.375 J0.

 

Link to comment
Share on other sites

Next issue is with rigid tapping.

Here is the bad code:

N1220 G91 G28 Z0.
N1230 M01
N1240 T50 M06 (   10-32 TAP)
N1250 (MAX - Z2.)
N1260 (MIN - Z-.4)
N1270 G00 G17 G90 G54 B0. X-3. Y1.125
N1280 G43 H1 Z2.
N1290 G94
N1300 M29 S300
N1310 G98 G84 X-3. Y1.125 Z-.4 R.1 F9.38
N1320 X1. Y1.125
N1330 X1. Y-1.125
N1340 X-3. Y-1.125
N1350 G80
N1360 M05
N1370 G91 G28 Z0.
N1380 M01

What would be the best way to output S300 M3 before the M29?  Should I put it on the G43 line?

The problem we had with code posted above is that the spindle stays off until it reaches the bottom of hole #1 then reverses out and proceeds to tap the remaining holes properly...  So the spindle must be started before the M29 - and I'm told the M29 should be on a line of it's own.

  • Huh? 1
Link to comment
Share on other sites

Anyways, should be an easy fix.  Look in ptap$

should look like this now

ptap$            #Canned Tap Cycle
      pdrlcommonb
      #RH/LH based on spindle direction
      if rigid_tap, pbld, n$, *sm29, *speed, e$           #Rigid Tapping
      if use_pitch = 0,
        [
        pcan1, pbld, n$, *sgdrlref, *sgdrill, pdrlxy, pfzout, pcout, pindexdrl,
          prdrlout, [if peck1$, *peck1$], *feed, strcantext, e$
        ]
      else,
        [
        if metvals, pitch = n_tap_thds$  # Tap pitch (mm  per thread)
        else, pitch = 1/n_tap_thds$       # Tap pitch (inches per thread)
        pcan1, pbld, n$, *sgdrlref, *sgdrill, pdrlxy, pfzout, pcout, pindexdrl,
          prdrlout, [if peck1$, *peck1$], *pitch, !feed, strcantext, e$
        ]
      pcom_movea

you will need to make it like so if you want it as described

ptap$            #Canned Tap Cycle
      pdrlcommonb
      #RH/LH based on spindle direction
      if rigid_tap,    #Rigid Tapping
	[
	pbld, n$ *speed, *spindle, e$  
	pbld, n$, *sm29, e$
	]		
      if use_pitch = 0,
        [
        pcan1, pbld, n$, *sgdrlref, *sgdrill, pdrlxy, pfzout, pcout, pindexdrl,
          prdrlout, [if peck1$, *peck1$], *feed, strcantext, e$
        ]
      else,
        [
        if metvals, pitch = n_tap_thds$  # Tap pitch (mm  per thread)
        else, pitch = 1/n_tap_thds$       # Tap pitch (inches per thread)
        pcan1, pbld, n$, *sgdrlref, *sgdrill, pdrlxy, pfzout, pcout, pindexdrl,
          prdrlout, [if peck1$, *peck1$], *pitch, !feed, strcantext, e$
        ]
      pcom_movea

 

buuuut....  I would take a look see in the makino programming manual and see how they want it formatted...  I think after some quick reading they have a different Mcode for rigid tapping.

  • Like 1
Link to comment
Share on other sites

Your research was correct, Husker!

I needed an M135 instead.  That was almost too easy!

N1230 M01
N1240 T50 M06 (   10-32 TAP)
N1250 (MAX - Z2.)
N1260 (MIN - Z-.4)
N1270 G00 G17 G90 G54 B0. X-2. Y1.125
N1280 G43 H1 Z2.
N1290 G94
N1300 M135 S300
N1310 G98 G84 X-2. Y1.125 Z-.4 R.1 F9.38
N1320 X2. Y1.125
N1330 X2. Y-1.125
N1340 X-2. Y-1.125
N1350 G80
N1360 M05
N1370 G91 G28 Z0.

 

  • Like 1
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...