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:

Overrride ARC Feed Rate in 2018


Recommended Posts

Hello everyone,
     I am now using 2018 and I am having problems when turning on "Overrride ARC Feed Rate".  There are two issues:

1.  If FEED RATE and PLUNGE RATE are the same and "Overrride ARC Feed Rate" is on, the post does not show any feed rate
2. If FEED RATE and PLUNGE RATE are different and "Overrride ARC Feed Rate" different, the post only shows feed rate for FEED RATE and PLUNGE RATE but not the "Overrride ARC Feed Rate"

 

 

Please help, I tried to use * on the FEED but worked very weir codes.  
Thank you for your help.

 

===== Different FEED RATE and PLUNGE RATE, "Overrride ARC Feed Rate" is on =====

%
O1327(50-1327-32C OP2.NC)
N16( 1.0000,1.5" SHELL MILL, CB, USED TOOL,)
(2FLTS .500LOC, 2.10LOH)
(HELITANG-T490 FLN D2.00-5-.75-R-13)
G0 G17 G40 G49 G80 G90
G91 G28 Z0 M19
G28 Y0  (ID FEEDRATE DECREASED FROM F50. DOWN TO F12.5)   =========> IT SAID HERE, BUT NOT OUTPUTTING
(OD FEEDRATE INCREASED FROM F50. UP TO F31.25)                      =========> IT SAID HERE, BUT NOT OUTPUTTING
T16 M6(ROUGH AND FINISH 6X PART FACES, CUT#72)
G90 G54 X-2.95 Y0.
S4500 M3
G43 H16 Z1. M8(DOC= Z0.)
Z.1875
G1 Z.102 F30. =========> PLUNGE FEED RATE
X-2.25 F50. =========> START FEED RATE
X10.25
X10.95
G0 Z.227
Y2.996
Z.1875
G1 Z.102 F30. =========> PLUNGE FEED RATE
X10.25 F50. =========> START FEED RATE
X-2.25
X-2.95
G0 Z.227
Y0.
Z.1645
G1 Z.079 F30. =========> PLUNGE FEED RATE
X-2.25 F50. =========> START FEED RATE
X10.25
X10.95
G0 Z.204
Y2.996
Z.1645
G1 Z.079 F30. =========> PLUNGE FEED RATE
X10.25 F50. =========> START FEED RATE
X-2.25
X-2.95
G0 Z.204
Y0.
Z.1415
G1 Z.056 F30. =========> PLUNGE FEED RATE
X-2.25 F50. =========> START FEED RATE
X10.25
X10.95
G0 Z.181
Y2.996
Z.1415
G1 Z.056 F30. =========> PLUNGE FEED RATE
X10.25 F50. =========> START FEED RATE
X-2.25
X-2.95
G0 Z.181
Y0.
Z.1185
G1 Z.033 F30. =========> PLUNGE FEED RATE
X-2.25 F50. =========> START FEED RATE
X10.25
X10.95
G0 Z.158
Y2.996
Z.1185
G1 Z.033 F30. =========> PLUNGE FEED RATE
X10.25 F50. =========> START FEED RATE
X-2.25
X-2.95
G0 Z.158
Y0.
Z.0955
G1 Z.01 F30. =========> PLUNGE FEED RATE
X-2.25 F50. =========> START FEED RATE
X10.25
X10.95
G0 Z.135
Y2.996
Z.0955
G1 Z.01 F30. =========> PLUNGE FEED RATE
X10.25 F50. =========> START FEED RATE
X-2.25
X-2.95
G0 Z.135
Y0.
Z.0725
G1 Z0. F30. =========> PLUNGE FEED RATE
X-2.25 F50. =========> START FEED RATE
X10.25
X10.95
G0 Z.125
Y2.996
Z.0725
G1 Z0. F30. =========> PLUNGE FEED RATE
X10.25 F50. =========> START FEED RATE
X-2.25
X-2.95
G0 Z1.
M9
G91 G28 Z0.
/G28 Y0. M5
G0 G90 G54 X0.
M30(1,555CHARS - 1.56KB)
%

 

===== Same FEED RATE and PLUNGE RATE, "Overrride ARC Feed Rate" is on =====

N16( 1.0000,1.5" SHELL MILL, CB, USED TOOL,)
(2FLTS .500LOC, 2.10LOH)
(HELITANG-T490 FLN D2.00-5-.75-R-13)
G0 G17 G40 G49 G80 G90
G91 G28 Z0 M19
G28 Y0 (ID FEEDRATE DECREASED FROM F50. DOWN TO F12.5)       =========> IT SAID HERE, BUT NOT OUTPUTTING
(OD FEEDRATE INCREASED FROM F50. UP TO F31.25)                        =========> IT SAID HERE, BUT NOT OUTPUTTING
T16 M6(ROUGH AND FINISH 6X PART FACES, CUT#72) 
G90 G54 X-2.95 Y0.
S4500 M3
G43 H16 Z1. T15 M8(DOC= Z0.)
Z.1875
G1 Z.102   =========> No FEED RATE here, FEED RATE must present here
X-2.25
(CUTTING...)
X-2.25
X-2.95
G0 Z1.
M9
G91 G28 Z0.
/G28 Y0. M5
M1

 

===== My Post Codes =====
 

#Region Motion NC output
# --------------------------------------------------------------------------
# Motion NC output
# --------------------------------------------------------------------------
#The variables for absolute output are xabs, yabs, zabs.
#The variables for incremental output are xinc, yinc, zinc.
# --------------------------------------------------------------------------
prapidout       #Output to NC of linear movement - rapid 
      sav_gcode = gcode$
      if convert_rpd$ = one,
        [
        gcode$ = one
        feed = maxfeedpm
        ipr_type = zero
        ]
    #"DEBUG: ", ~mr3$, ~nextop$, e$
      if tool_op$ = 19, "M0(AGAINST PIN STOP HERE)", e$
      pcan1, pbld, n$, [if prv_sgplane <> sgplane, sgplane], `sgcode, [if prv_sgplane <> sgplane, sgabsinc], pccdia, [if gcode$ = 1, sgfeed]
        pxout, pyout, pzout, pcout, [if gcode$ = 1, `feed], strcantext, scoolant, e$
      gcode$ = sav_gcode

plinout         #Output to NC of linear movement - feed  
      pcan1, pbld, [if prv_sgplane <> sgplane, sgplane], `sgcode, [if prv_sgplane <> sgplane, sgabsinc], pccdia, #, n$, sgfeed
        pxout, pyout, pzout, pcout, `feed, strcantext, scoolant, e$

pcirout         #Output to NC of circular interpolation
      if not(arccomp), pcompwarn, pHelixBoreCompWarn
      if full_arc_flg$,
        [
        if plane$ = zero, result = force(xabs,yabs)   #force coordinate on full arc              
        if plane$ = one,  result = force(yabs,zabs)   #force coordinate on full arc              
        if plane$ = two,
          [
          result = force(xabs,xabs)   #force coordinate on full arc              
          result = force(zabs,zabs)   #force coordinate on full arc              
          ]
        ]
      if hel_2100 = one, pcirout2
      else, pcirout1

pcirout1        #Output to NC of circular interpolation
      pcan1, pbld, [if prv_sgplane <> sgplane, sgplane], sgcode, [if prv_sgplane <> sgplane, sgabsinc], pccdia, #, n$, `sgfeed
        pxout, pyout, pzout, pcout, parc, feed, strcantext, scoolant, e$

pcirout2        #Output to NC of circular interpolation
      if (plane$ = zero & fmtrnd(zinc)<>0)
       | (plane$ =  one & fmtrnd(xinc)<>0)
       | (plane$ =  two & fmtrnd(yinc)<>0), phelout
      else, pcirout1

phelout         #Output to NC of helical interpolation
      if errorcheck = one, [if not(arccomp), pcompwarn, pHelixBoreCompWarn]
      if plane$ = zero,
        [
        result = nwadrs(strk, lead)
        lead = abs(zinc/sweep$*360)
        ]
      if plane$ = one,
        [
        result = nwadrs(stri, lead)
        lead = abs(xinc/sweep$*360)
        ]
      if plane$ = two,
        [
        result = nwadrs(strj, lead)
        lead = abs(yinc/sweep$*360)
        ]
      pcan1, pbld, [if prv_sgplane <> sgplane, sgplane], sgcode, [if prv_sgplane <> sgplane, sgabsinc], pccdia, #, n$, `sgfeed
        pxout, pyout, pzout, *lead, pcout, parc, feed, strcantext, scoolant, e$
#EndRegion

 

# --------------------------------------------------------------------------
# Error Checks
# --------------------------------------------------------------------------
#Region pOverRideARCFeedRate
pOverRideARCFeedRate
       if OverideArcFeedRateIO = 1 & MaxIDDecreaseFeedRate > 0, "(ID FEEDRATE DECREASED FROM", *feed, "DOWN TO", *MaxIDDecreaseFeedRate, no_spc$, ")", e$
       if OverideArcFeedRateIO = 1 & MaxODIncreaseFeedRate > 0, "(OD FEEDRATE INCREASED FROM", *feed, "UP TO", *MaxODIncreaseFeedRate, no_spc$, ")", e$
#EndRegion

#Region Tool change common blocks
ptlchg_com      #Tool change common blocks
pOverRideARCFeedRate
#Region Null tool change
ptlchg0$         #Call from NCI null tool change (tool number repeats)
pOverRideARCFeedRate

#Region  Define Number Constants
OverideArcFeedRateIO: 0
MaxIDDecreaseIO : 0
MaxODIncreaseIO : 0
MaxMaxIDDecreaseFeedRate : 0
MaxIDDecreasePerCent : 0
MaxODIncreaseFeedRate : 0
MaxODIncreasePerCent : 0

 

fmt ""   4 OverideArcFeedRateIO
fmt ""   4 MaxIDDecreaseIO
fmt ""   4 MaxODIncreaseIO
fmt "F"  2 MaxIDDecreaseFeedRate
fmt      2 MaxIDDecreasePerCent "%"
fmt "F"  2 MaxODIncreaseFeedRate
fmt      4 MaxODIncreasePerCent "%"

 

#Region pparameter
pparameter$ # Run parameter table

if prmcode$ = 15965, OverideArcFeedRateIO = rpar(sparameter$, 1)
if prmcode$ = 15089, MaxIDDecreaseIO = rpar(sparameter$, 1)
if prmcode$ = 15093, MaxODIncreaseIO = rpar(sparameter$, 1)
           
if prmcode$ = 15966, MaxIDDecreaseFeedRate = rpar(sparameter$, 1)
if prmcode$ = 15968, MaxIDDecreasePerCent = rpar(sparameter$, 1)

if prmcode$ = 15967, MaxODIncreaseFeedRate = rpar(sparameter$, 1)
 if prmcode$ = 15969, MaxODIncreasePerCent = rpar(sparameter$, 1)

03 - Overrride ARC Feed Rate.png

01 - START FEED RATE - PLUNGE FEED RATE - DIFFERERENT.png

02 - START FEED RATE - PLUNGE FEED RATE.png

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