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:

Lathe Canned Cycle Sequence Numbers


Recommended Posts

Our Okuma post here doesnt output sequence numbers for the Lathe Canned cycle contour. I've been just removing block numbers in MC Code Expert and then inserting them back and fixing everything by hand, But, i'd like to get the post a little closer to just post and go no hand editing. Is this something that can be done fairly easy in the post? i have a little bit of experience editing posts but not extensive. Code looks like this now. It happens on all Canned cycles. everything else it does fine.

NAT1(CNMG 433MN)
(ROUGH FACE)
N100 G97 S657 M03 M42
N101 G00 T010101
N102 G96 S550
N103 G18
N104 G00 Z.1 X3.2 M08
N112 G85 N113 U.02 W.01 D.1 F.015
N113 G82
N114 G00 G41 Z0.
G01 X-.08         *****NO SEQUENCE NUMBER HERE*****
G40 Z.1
G80
N115 G00 X3.2     *****STARTS BACK UP HERE*****
N120 M09
N121 G97 S1500
N122 M05
N123 G00 X50. Z11.5 T0100
N124 M01

 

Link to comment
Share on other sites
5 hours ago, vulgamore said:

Our Okuma post here doesnt output sequence numbers for the Lathe Canned cycle contour. I've been just removing block numbers in MC Code Expert and then inserting them back and fixing everything by hand, But, i'd like to get the post a little closer to just post and go no hand editing. Is this something that can be done fairly easy in the post? i have a little bit of experience editing posts but not extensive. Code looks like this now. It happens on all Canned cycles. everything else it does fine.


NAT1(CNMG 433MN)
(ROUGH FACE)
N100 G97 S657 M03 M42
N101 G00 T010101
N102 G96 S550
N103 G18
N104 G00 Z.1 X3.2 M08
N112 G85 N113 U.02 W.01 D.1 F.015
N113 G82
N114 G00 G41 Z0.
G01 X-.08         *****NO SEQUENCE NUMBER HERE*****
G40 Z.1
G80
N115 G00 X3.2     *****STARTS BACK UP HERE*****
N120 M09
N121 G97 S1500
N122 M05
N123 G00 X50. Z11.5 T0100
N124 M01

 

Use the debugger and see what section output that code and throw it up on the forum so we can review and see how to help you sort ti out.

Link to comment
Share on other sites

lrapid$          #Rapid linear movement, lathe
      copy_x = vequ(x$)
      pl_ncoutput

llin$            #Linear line movement - at feedrate, lathe
      copy_x = vequ(x$)
      pl_ncoutput

lcir$            #Circular interpolation, lathe
      pshft_map_ijk
      copy_x = vequ(x$)
      pl_ncoutput

|15|LAW4022-1-1.lcc|205|G00 G41 Z0.|lrapid$[PST:3555,  7]|lrapid$  +  pl_ncoutput  +  prapidout  +  pscool  +  pchecky  +  pfcalc_u_min
|16|LAW4022-1-1.lcc|207|G01 X-.04|llin$[PST:3559,  7]|llin$  +  pl_ncoutput  +  plinout  +  pscool  +  pfr_l  +  pfcalc_u_min
|17|LAW4022-1-1.lcc|209|G40 Z.1|llin$[PST:3559,  7]|llin$  +  pl_ncoutput  +  plinout  +  pscool  +  pfr_l  +  pfcalc_u_min
 

these are the 3 lines for this particular canned cycle that dont have sequence numbers. and the corresponding post block lines. Do i just need to add the $n on the pl_ncoutput lines?

 

Link to comment
Share on other sites


        [
        #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
            result = nwadrs (strcc, n$)
            if gcodecc = two, pbld,  *n$, "G82", e$
            else, pbld,  *n$, "G81", e$
            result = nwadrs (strn, n$)
            pbld,  n$, *string3, e$
            ]
          else,
            [
            sav_omitsq = omitseq$
            omitseq$ = one
            if omitseq$ = one & rc3 = size3 + one,
            [
            pbld, n$, *string3, e$
            pbld, n$, "G80", e$
            ]
            else, pbld, n$, *string3, e$
            omitseq$ = sav_omitsq
            ]
          ]
        #Close the buffer
        result = fclose (three)
        #Remove the lcc file
        result = remove (sbufname3$)
        ]

 

My fault, This appears to be the actual part of the post. i havent used the debugger very much

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