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:

Another Okuma Canned Cycle


Recommended Posts

Hey guys I have another one. I am trying to add a G80 to the end of my G85 (G71 in Fanuc land) Canned cycle. For the life of me I am unable to find out where to place the code. I contacted my reseller who told me to put it on the ng70s, ng70e line under pread_g70. That does not work. 
 
This is what I am currently outputting:

(***************************************************)
NS1(TOOL - 7 OFFSET - 7)
(CHAMBER OD FINISH  INSERT - VCMT-331-SM)
G0 TG=7 OG=1
G97 S2339 M03
G0 G54 X.98 Z0. M8
G50 S3600
G96 S600
G85 NRUF29 U.1 F.004 U.02 W.01
NRUF29 G81
G0 X.7225 S600
G1 Z-.0092
X.8033 Z-.0496
G3 X.8125 Z-.0606 L.0156
G1 Z-.4731
G3 X.8059 Z-.4828 L.0156
G1 X.7275 Z-.5329
Z-.6046
G2 X.7583 Z-.62 L.0154
G1 G40 X.98
G0 Z0.
M9
G0 X40. M05
GOTO NEND
(***************************************************)

What I need is this:

(***************************************************)
NS1(TOOL - 7 OFFSET - 7)
(CHAMBER OD FINISH  INSERT - VCMT-331-SM)
G0 TG=7 OG=1
G97 S2339 M03
G0 G54 X.98 Z0. M8
G50 S3600
G96 S600
G85 NRUF29 U.1 F.004 U.02 W.01
NRUF29 G81
G0 X.7225 S600
G1 Z-.0092
X.8033 Z-.0496
G3 X.8125 Z-.0606 L.0156
G1 Z-.4731
G3 X.8059 Z-.4828 L.0156
G1 X.7275 Z-.5329
Z-.6046
G2 X.7583 Z-.62 L.0154
G1 G40 X.98
G80
G0 Z0.
M9
G0 X40. M05
GOTO NEND
(***************************************************)
Link to comment
Share on other sites

There was an Okuma post that was part of the post installation executable, that had the LAP cycles all defined. It seemed to work pretty well from memory.

 

Seems to me that would have been a better option, rather than converting a Fanuc post.

 

Maybe use the variable lathecc to (if lathecc <> 0, "G80")

 

Without knowing the post, I wouldn't be sure where to put it though.

Link to comment
Share on other sites

I gave that a whirl, but still cannot find the correct place to put that. It is either placing the G80 at the top of the sequence or after every line in the sequence. 

 

Edit:

Got it to work by adding a "G80" line here:

        #Write the cycle profile, sequence are written now
        rc3 = one
        while rc3 <= size3,
          [
          #Write the lathe canned cycle profile
          string3 = rbuf (three, rc3)
          if rc3 = two,
            [
            #Add the finish spindle speed to the first move
            speed = n1_ss
            pbld, *string3, *speed, e$
            ]
          else,
            [
            if omitseq$ = one & rc3 = size3 + one, pbld, *string3, e$
            else, pbld, *string3, e$
            ]
          ]
		  pbld, "G80", e$
        #Close the buffer
        result = fclose (three)
        #Remove the ext file
        result = remove (sbufname3$)
        ]
  • Like 1
Link to comment
Share on other sites
  • 1 month later...

.

 

Asking for a post that goes around your dealer like someone who is running crack software is not looked upon favorable here. Please contact your dealer or provide your company information so you can be validated to be a legal user of the software. We are community of hard working people who don't mind sharing our knowledge, but we believe in the honest and legal way of going about it. Merry Christmas.

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