585,886 active members*
5,746 visitors online*
Register for free
Login
Results 1 to 3 of 3
  1. #1

    keeps cycling?

    Im not sure what I'm doing wrong here,I've written other programs that work fine this way, but this one gets to the last hole to spot drill for tool 1 and goes back to the beginning of e2 and repeats, any advice? tried a bunch of different things but now its just frustrating me to the point the error thats probably obvious is eluding me, thanks

    G20 G8
    G0 G17 G40 G49 G80 G90 G98 H0 E0 Z0

    ( 1/2 SPOTDRILL TOOL - 1 DIA. OFF. - 2 LEN. - 1 DIA - 0.5 )
    T1 M6
    G0 G90 S3500 M3 E7 X-1.1201 Y-1.25
    H1 Z.1 M8
    G81 G99 X-1.1201 Y-1.25 Z-.19 R0.1 F40.
    X-3.
    X-4.88
    G80
    G0 Z.5

    G0 E8 X-1.1201 Y-1.25
    H1 Z.1 M8
    G81 G99 X-1.1201 Y-1.25 Z-.19 R0.1 F40.
    X-3.
    X-4.88
    G80
    M5
    G90 H0 Z0
    M17
    M1

    N290 ( 5/16 DRILL TOOL - 2 DIA. OFF. - 2 LEN. - 2 DIA - 0.3125 )
    N300 T2 M6
    N310 G0 G90 S1500 M3 E7 X-1.1201 Y-1.25
    N320 H2 Z.1 M8
    N330 G81 G99 X-1.1201 Y-1.25 Z-1. R0.1 F15.
    N340 X-3.
    N350 X-4.88
    N360 G80
    G0 Z.5

    N310 G0 E8 X-1.1201 Y-1.25
    N330 G81 G99 X-1.1201 Y-1.25 Z-1. R0.1 F15.
    N340 X-3.
    N350 X-4.88
    N41G80
    N42G80G0Z1.M9

    M5
    G90 H0 Z0
    M17
    M1

    N400 ( 3/8-16 TAPRH TOOL - 3 DIA. OFF. - 3 LEN. - 3 DIA - 0.375 )
    N410 T3 M6
    N420 G0 G90 S1000.2 M5 M90 E7 X-1.1201 Y-1.25
    N430 G84.2
    N440 H3 Z.1 M8
    N450 G84.1 G99 X-1.1201 Y-1.25 Z-1.25 R0.1 F1000. Q.0625
    N460 X-3.
    N470 X-4.88
    N480 G80
    G0 Z.5

    N420 G0 E8 X-1.1201 Y-1.25
    N430 G84.2
    N450 G84.1 G99 X-1.1201 Y-1.25 Z-1.25 R0.1 F1000. Q.0625
    N460 X-3.
    N470 X-4.88
    N480 G80
    N490 M5 M9
    G0 Z1.
    N500 G90 H0 Z0.
    N510 E0 X0 Y0
    M30
    N520 M2
    %

  2. #2
    Join Date
    Sep 2009
    Posts
    103

    Re: keeps cycling?

    Get rid of your M17's The are used to designate end of subroutine when you are using subroutines.I would also lose the G90 H0 Z0 at the end of each tool cycle and you don't need the M2 at the end.

  3. #3

    Re: keeps cycling?

    yeah sorry that was the wrong version i pasted there, they all had M1, i was in the process of re-writing it to be subroutine, which worked fine, don't know why it didn't want to change work coordinates without being in a subroutine

Posting Permissions

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