509,521 active members
4,479 visitors online
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > G-Code Programing > Troubel looping a program in a 5 axis lathe program (sub spindle won't line up)
Results 1 to 5 of 5
  1. #1
    sul1
    Guest

    Troubel looping a program in a 5 axis lathe program (sub spindle won't line up)

    I'm trying to run a program in our lathe.
    The parts is rectangular, and we have a sub spindle cut with the shape of the part.
    When we run the individual part program, everything comes out just as we want.
    The trouble is when we loop the program, using the original as a sub program.
    The first part comes out fine, but on the second part, the sub spindle does not line up correctly and smashes the corners of the part.

    We are running this on a Hwacheon Hi-Tech 250 A, Multi-Axis Control TK.
    The control is Fanuc 18i – TB.

    I'm using the sub spindle as a bar puller and support for the cut-off.
    Where the problem only shows up when we are looping, I'm guessing there is something I'm not canceling at the end of the program, but I'm stummped as to what I need to do.

    Below is the code from the bar pull to the end of the program.
    Can anyone tell me what I need to add (or remove)??

    We loop it as a sub program using an M98 command.

    Any help would be greatly appreciated.

    Thanks,
    sul1


    ( SUB BAR PULL )
    G97S2500M04
    M120
    M169
    G0B0.25
    M234
    G1G98B-0.15F50.0
    M235
    M168
    G4P2000
    M69
    G1G98B0.235F50.0
    M68
    G4P2000
    M9
    G28V0.0
    G28U0.0
    G28W0.0
    M01

    N05( MAIN SPINDLE, TURNING )
    ( CUTOFF CUTOFF1 )
    G0G18G40G54G80G99
    T0505
    G97S2500M4
    G0Z-0.01
    X0.825Y0.M8
    G1X-0.016F0.001
    G0X0.825
    M9
    M105
    M121
    M205
    M5
    G28U0
    G28W0
    G0B10.0
    M169
    G4P2000
    M168
    G53G0B0.
    M9
    M5
    G28U0
    G28W0
    M30
    %

  2. #2
    txcncman
    Guest
    Dunno what codes for your machine, but you need to sync the spindles before and after the machining.

  3. #3
    sul1
    Guest
    on this machine the M120 before the pull, syncs the spindles and the M121 after the cutoff cancles the sync.

  4. #4
    txcncman
    Guest
    What I was trying to say is you need to re-sync the spindles after the bar pull, before the turn mill takes place.

  5. #5
    sul1
    Guest
    Quote Originally Posted by txcncman View Post
    What I was trying to say is you need to re-sync the spindles after the bar pull, before the turn mill takes place.
    I'll give it a try.
    thanks

Similar Threads

  1. Looping Program
    By libbey in forum Okuma
    Replies: 9
    Last Post: 08-06-2012, 06:04 PM
  2. Start Spindle middle of program Axis
    By flash319 in forum LinuxCNC (formerly EMC2)
    Replies: 0
    Last Post: 03-06-2012, 12:14 AM
  3. Possible to program spindle as A axis and use as lathe?
    By bebob1 in forum Uncategorised CAM Discussion
    Replies: 3
    Last Post: 02-02-2012, 09:06 PM
  4. Replies: 2
    Last Post: 12-10-2008, 07:39 PM
  5. Program Looping
    By Bohemund in forum CamSoft Products
    Replies: 7
    Last Post: 05-26-2007, 05:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •