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 G131


Recommended Posts

Hello all, 

I'm trying to incorporate okuma high speed functions into my post. mpmaster

code example:

G131 F1000. E0.003

max feed and tolerance held.

G130 turns it off.

I'm using Misc values, Misc reals 1 and 2 (the factory spot for high speed functions)

I converted MR1 #3 to use G131 F1000. and the cancel for G130 which work fine and position code in proper spot.

My issue is the E value (mr2) is always a whole number not a decimal. (I have tried lots but never get the desired output or I create an error)

After typing all of this I'm wondering if I can only use whole numbers for Mics Reals?

Thank for any help provided. Have a great weekend ill be back on Monday.

 

 

 

Link to comment
Share on other sites
50 minutes ago, TORQUE said:

Hello all, 

I'm trying to incorporate okuma high speed functions into my post. mpmaster

code example:

G131 F1000. E0.003

max feed and tolerance held.

G130 turns it off.

I'm using Misc values, Misc reals 1 and 2 (the factory spot for high speed functions)

I converted MR1 #3 to use G131 F1000. and the cancel for G130 which work fine and position code in proper spot.

My issue is the E value (mr2) is always a whole number not a decimal. (I have tried lots but never get the desired output or I create an error)

After typing all of this I'm wondering if I can only use whole numbers for Mics Reals?

Thank for any help provided. Have a great weekend ill be back on Monday.

 

 

 

Real Numbers, by definition, are Decimal Values in the NCI File. (The 'Misc Integers', are only whole integer numbers.) So you have to be using 'mr1$', 'mr2$', and 'mr3$'.

You must use Format Assignment Lines to format the "number output" for a decimal. So you need to add formatting for 'mr2$' (Decimal, 4 place), to get the Corner Rounding value to come out properly.

Also, watch where you are setting the values.

For the 1st Tool Change, you should get the 1st operation's values. But after that, 'Pretract' is called at the start of the next tool change. So sometimes you can be an Op ahead/behind. Just be sure you aren't processing the previous/next Op's values during your testing...

For MPMaster, they have a mechanism built into that Post to avoid this issue.

See 'plast'.

They record the 'last MR values' for MR1 and MR2, in the 'plast' Post Block. 

  • Like 1
Link to comment
Share on other sites

Thank-you very much Colin, 

I did some searching for Format Assignment Lines,  I ended up finding one for your other posts describing how they work. changed the 4 to 2 and BAM! I got a decimal.

I added in mr3 and its all tied up with a bow on top.

Thank you for you Help.

  • Like 1
Link to comment
Share on other sites
  • 1 year later...

This is the code I like to use for setting up Hi-Cut in my posts. Code below uses mi4$ as a toggle to output on. mr1$-mi3$ are for extended commands within the G131 line.

Enjoy,

Brad Lisle

 

# --------------------------------------------------------------------------
# G131 Hi-Cut (mi4$)
# --------------------------------------------------------------------------

sg130          : "G130"  #Hi-CUT output string for G131 cancel
sg131          : "G131"  #Hi-CUT output string for G131 initiate


hicut_on    : no$         #flag for hicut on
op_changed  : no$         #flag for op_id$ change at null tool

fmt  "F"   2  g131f        #'F' Hi-CUT Feedrate Upper Limit (mr1$)
fmt  "J"   4  g131j        #'J' Hi-CUT Machining Mode       (mr2$)
fmt  "E"   2  g131e        #'E' Hi-CUT Machining Tolerance  (mr3$)

phicut_on
      hicut_on = no$
      if mi4$ >= 1,
      [
        phg131_out
        hicut_on = yes$
      ]
      !hicut_on, !g131f, !g131j, !g131e

pnull_hicut
      #"***", ~op_id$, prv_op_id$, "***", e$
      if op_changed,
      [
        if mi4$ >= 1, hicut_on = yes$
        else, hicut_on = no$
        if (hicut_on = no$ & prv_hicut_on = yes$),
        [
          pbld, n$, sg130, e$
          prv_gcode$ = -1
        ]
        else,
        [
          if hicut_on = yes$ & prv_hicut_on = yes$,
          [
            #pbld, n$, sg130, e$
            if prv_g131f <> mr1$ | prv_g131j <> mr2$ | prv_g131e <> mr3$, phg131_out
            prv_gcode$ = -1
          ]
          else,
          [
            if prv_hicut_on = no$ & hicut_on = yes$,
            [
              phg131_out
              prv_gcode$ = -1
            ]
          ]
        ]
      ]
      !hicut_on, !g131f, !g131j, !g131e

phg131_out
      g131f = mr1$
      if g131f <= 0, g131f = 1260
      g131j = mr2$
      if g131j > 2, g131j = 2
      if g131j < 1, g131j = 1
      g131e = mr3$
      if g131e <= 0, g131e = 0.002
      pbld, n$, *sg131, *g131f, *g131j, *g131e, e$

phicut_off
      if hicut_on, pbld, n$, sg130, e$

 

psof$  #only if first tool change is in psof$

     phicut_on  #after toolchange call, before cut moves

     !mi4$, !mi5$, !mi6$, !mi7$, !op_id$  #at end of post block

ptlchg$

     phicut_on  #after toolchange call, before cut moves

     !mi4$, !op_id$  #at end of post block

ptlchg0$

     pnull_hicut  #before cut moves

     !mi4$  #at end of post block

pretract

     phicut_off  #after initial retract, before home movement or tool breakage check

 

 

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