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:

Loop routine on Okuma C-axis Lathe


tsaladyga
 Share

Recommended Posts

Hi guys,

 I am trying to come up with a looping routine for our LB4000 C-Y axis  Lathe and I am having trouble getting the code to work.

Can someone look at it and let me know what I am doing wrong? Basically I am starting at 9.5 inches and  working my way .04 at a time until I get to 7.5. I would like the start

and finish diameters to be variable so the operator can easily modify based on customer specs. 

Thanks,

Todd

NT7
( .875 MILL)
T0707
(7/8 MILL)
G136 ( Y Axis Mode/Coordinate Conversion:ON)
M110 (  C-Axis Joint:ON)
SB=3400 M13
M175
CALL OTURN XX=9.5 XXX=7.5
M09
M12
M109
X20
Z30
M30

OTURN
NLOOP
G0 Z-.88
G0 C180
G0 X10.25
M08
M15
G0 X=XX
XST=XX
XDT=-.04
G01 G91 X[XDT] F.02
XDT=XDT+XST
G90
G01 G91 C359 F.03
G90
G01 Z-1.4
M16
G91
G01 C209
G90
G01 Z-1.875
M15
G91
G01 C170
G90
G01 Z-2.301
M16
G91
G01 C170
G90
G01 Z-2.7
M15
G91
G01 C170
G90
G01 Z-3.1
M16
G91
G01 C170
G90
G01 Z-3.5
M15
G91
G01 C359
G90
IF[XDT GE XXX]NLOOP
G00 X10.25
RTS

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