586,105 active members*
3,261 visitors online*
Register for free
Login
IndustryArena Forum > MetalWorking Machines > CNC Swiss Screw Machines > wtf? does this look like it would work to you?
Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2012
    Posts
    13

    wtf? does this look like it would work to you?

    O4444(TEST FOR AUTOMATIC)
    $1
    M9
    G113G99
    G50Z-.015
    M6
    G4P1000



    #501=[#501+1]

    IF[#501EQ3]GOTO10
    IF[#501EQ6]GOTO20
    IF[#501EQ9]GOTO30
    IF[#501EQ12]GOTO40


    GOTO2000
    N10
    #2701=.001
    GOTO2000

    GOTO2000
    N20
    #2701=.002
    GOTO2000

    GOTO2000
    N30
    #2701=.003
    GOTO2000

    GOTO2000
    N40
    #3000=1(TOOL LIFE UP)
    GOTO2000

    N2000


    G0X.5Z-.05
    M3S1=2000

    T100(FRONT TOOL)
    G0X.5Z0T1

  2. #2
    Join Date
    Jan 2005
    Posts
    304
    That will work. You could ADD the line to reset #501 to zero when tool life is up to save you from having to do it manually.
    N40
    #3000=1(TOOL LIFE UP)
    #501=0(************************)
    GOTO2000

  3. #3
    Join Date
    Jan 2005
    Posts
    304
    You MUST put the reset BEFORE the alarm. My BAD!
    N40
    #501=0(************************)
    #3000=1(TOOL LIFE UP)
    GOTO2000

  4. #4
    Join Date
    Mar 2012
    Posts
    13
    thanks much. I did have some minor hang ups though, some how the machine
    ignored the math portion altogether when i put the "n10" etc. statments in the main body of the program. so finally the proven example looks like this

    O4444(TEST FOR AUTOMATIC)
    $1
    M9
    G113G99




    G50Z-.015
    M6
    G4P500



    #500=[#500+1.0]



    IF[#500EQ3]GOTO10
    IF[#500EQ6]GOTO20
    IF[#500EQ9]GOTO30
    IF[#500GT12]GOTO40


    N200


    G0X.5Z-.05
    M3S1=2000

    T100(FRONT TOOL)
    G0X.5Z0T1
    G99G1Z.05F.002
    G0X.625T0




    T600(CUT OFF .047)
    G0X.6Z.050T6
    M3S1=2000
    G99G1X-.05F.004




    M8
    M8
    /M98P8999
    M9
    M9
    M25
    M119
    M5
    M7
    G0U0Z-.015T0
    M56
    G600
    G999
    G600
    N999
    M2
    M99



    N10
    #2701=.001
    GOTO200

    N20
    #2701=.002
    GOTO200

    N30
    #2701=.003
    GOTO200

    N40
    #500=0
    #3000=1(TOOL LIFE UP)
    GOTO200



    $2

    G600

    G999
    G600

    N999
    M2
    M99
    $3

    G600

    G999
    G600
    N999
    M2
    M99
    $0
    A
    #814=0000001560
    #815=0000002000
    #816=0000006000
    #817=0003000000
    #822=0000000007
    #824=-000000500
    #818=0000008000
    #819=0000001000
    #820=0000000000
    #821=0000010000
    #990=0000005000
    #991=0000063000
    #893=0000000000
    %

  5. #5
    Join Date
    Apr 2009
    Posts
    101
    What are you machining that you get 12 parts for tool life?

    I get cranky when I have to change an insert once a day... haha.

  6. #6
    Join Date
    Oct 2011
    Posts
    0
    Quote Originally Posted by danrudolph View Post
    What are you machining that you get 12 parts for tool life?

    I get cranky when I have to change an insert once a day... haha.
    yeah seriously :cheers:

    rather than fiddling around with funky programming id rather solve the issue at its source.. unless you're machining 1" diamond down to .1" in one pass over a footlong length I dont see how you're only getting 12 parts lol *shrug*

    interesting method though!

Similar Threads

  1. Work Planes / Work Coordinates
    By MICFDI in forum Esprit
    Replies: 11
    Last Post: 10-04-2014, 02:41 PM
  2. Work holding options to hold thin round work? .024, .046 etc
    By KyleH2 in forum MetalWork Discussion
    Replies: 0
    Last Post: 06-07-2010, 07:22 PM
  3. Need work
    By denmar in forum Employment Opportunity
    Replies: 0
    Last Post: 07-10-2009, 05:03 PM
  4. need work.help.
    By rscabeza in forum Employment Opportunity
    Replies: 1
    Last Post: 09-15-2007, 03:46 AM
  5. Need DXF Work Done
    By lal19541 in forum Employment Opportunity
    Replies: 7
    Last Post: 08-29-2007, 10:45 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
  •