Need Help! indicator dial


Results 1 to 9 of 9

Thread: indicator dial

  1. #1
    Registered
    Join Date
    Apr 2005
    Location
    England
    Posts
    29
    Downloads
    0
    Uploads
    0

    Default indicator dial

    Hi All
    So I'm stumped ! , I'm trying to engrave a dial in 1 degree marks for my tool cutter grinder on a Doosan 220 LY. I've made a sub program that engraves the dial lines up to 9 degrees and then I need the program to move the C axis 10 degrees to start again. But at the moment I'm just going over the same engraving. At the moment I think I'm missing something as I cant believe I've got to write loads of code to repeat the program. So how would you do it ?

    Thanks Nev

    Similar Threads:


  2. #2
    Member dcoupar's Avatar
    Join Date
    Mar 2003
    Location
    USA
    Posts
    2932
    Downloads
    0
    Uploads
    0

    Default Re: indicator dial

    I have an idea... post your program(s) here so we might have a clue what you're doing and what you could do to make it work.



  3. #3
    Registered
    Join Date
    Apr 2005
    Location
    England
    Posts
    29
    Downloads
    0
    Uploads
    0

    Default Re: indicator dial

    So nothing new but here's an idea of the code with bits I've forgot left out

    Main Program

    O5000
    M98 P275001
    M30

    Sub Program

    O5001
    G90 G21 G54
    G10 X0 Z0
    G10 X350 Z500 Z200.
    P12 M3
    C0
    G0 X65 Z2
    G1 Z-0.1 F0.3
    X70
    G0Z2.
    X65
    C1
    G1 Z0.1
    X70
    G0 Z2
    *
    *
    *
    Until 9 degrees is reached
    *
    *
    G0 Z10.0
    M5
    P11
    G00 G28 U0.0 V0.0
    G00 G28
    M99

    So I know there's bits of code left out ( I'm away from work so cant remember it all ) but the program works as in it cuts up to 9 degrees , but its getting the C axis to turn to the new start point . At the moment I'm wondering if something like

    O5000
    M98 P275001
    C10
    C20
    C30
    *
    *
    *
    C80
    M30

    would work ? but I'm just stabbing in the dark at the moment.
    So tease me with your idea
    Thanks All : )



  4. #4
    Member
    Join Date
    May 2016
    Location
    United Kingdom
    Posts
    526
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by Buba b View Post
    So nothing new but here's an idea of the code with bits I've forgot left out

    Main Program

    O5000
    M98 P275001
    M30

    Sub Program

    O5001
    G90 G21 G54
    G10 X0 Z0
    G10 X350 Z500 Z200.
    P12 M3
    H0
    G0 X65 Z2
    G1 Z-0.1 F0.3
    X70
    G0Z2.
    X65
    H1
    G1 Z0.1
    X70
    G0 Z2
    *
    *
    *
    Until 9 degrees is reached
    *
    *
    G0 Z10.0
    M5
    P11
    G00 G28 U0.0 V0.0
    G00 G28
    M99

    So I know there's bits of code left out ( I'm away from work so cant remember it all ) but the program works as in it cuts up to 9 degrees , but its getting the C axis to turn to the new start point . At the moment I'm wondering if something like

    O5000
    M98 P5001
    C10
    M98 P5001
    C20
    M98 p5001
    C30
    M98 P5001
    *
    *
    *
    C80
    M30

    would work ? but I'm just stabbing in the dark at the moment.
    So tease me with your idea
    Thanks All : )
    Swap C for H in your sub program as shown



  5. #5
    Registered
    Join Date
    Apr 2005
    Location
    England
    Posts
    29
    Downloads
    0
    Uploads
    0

    Default Re: indicator dial

    Ok thanks that makes sense , I mainly do low batch numbers so very ... very rarely use sub programing routines so it catches me out when it pops up.
    The M98 p5001 line rung a bell , forgot about that and ill have a look into how the H value affects the program , ( its one I forgot to put in ) always seen it ...... never messed with it !.
    Thanks MBS



  6. #6
    Registered
    Join Date
    Apr 2005
    Location
    England
    Posts
    29
    Downloads
    0
    Uploads
    0

    Default Re: indicator dial

    Well I'm still missing something? .... if this is possible , I'm still not advancing on the C axis.

    Main Program
    O5000
    M98 P035001
    C10
    M98 P5001
    C20
    M98 P5001
    C30
    M98 P5001
    M30


    Sub Program

    G1900 D76 L10 K.5
    G00 G40 G80 G99 G18 G21
    G130 X350 Z500
    G28 V0
    G30 U0 W0
    G10 P0 X0 Y0 Z0
    G10 L2 P1 X0 Y0 Z200.
    M01

    N10
    G28 V0
    G30 U0 W0
    T1010
    M5 P11
    G28 H0
    G0 C0
    G97 S6000 M3 P12
    G00 G40 G54 Z2. M8
    G17
    X80
    Y0
    G1 X62 F0.5
    Z-0.1 F0.03
    X77
    G0 Z2

    G1 H01
    G1 X62 F0.5
    Z-0.1 F0.03
    X77
    G0 Z2

    G1 H01
    G1 X62 F0.5
    Z-0.1 F0.03
    X77
    G0 Z20
    M5 P11
    M90
    M34
    G28 V0
    G30
    U0 W0 M9
    M99

    Back to being stumped !
    : )



  7. #7
    Registered
    Join Date
    Aug 2016
    Location
    Australia
    Posts
    119
    Downloads
    0
    Uploads
    0

    Default Re: indicator dial

    Quote Originally Posted by Buba b View Post
    Well I'm still missing something? .... if this is possible , I'm still not advancing on the C axis.

    Main Program
    O5000
    M98 P035001
    C10
    M98 P5001
    C20
    M98 P5001
    C30
    M98 P5001
    M30


    Sub Program

    G1900 D76 L10 K.5
    G00 G40 G80 G99 G18 G21
    G130 X350 Z500
    G28 V0
    G30 U0 W0
    G10 P0 X0 Y0 Z0
    G10 L2 P1 X0 Y0 Z200.
    M01

    N10
    G28 V0
    G30 U0 W0
    T1010
    M5 P11
    G28 H0
    ----------------------------------------->G0 C0<---------------------
    G97 S6000 M3 P12
    G00 G40 G54 Z2. M8
    G17
    X80
    Y0
    G1 X62 F0.5
    Z-0.1 F0.03
    X77
    G0 Z2

    G1 H01
    G1 X62 F0.5
    Z-0.1 F0.03
    X77
    G0 Z2

    G1 H01
    G1 X62 F0.5
    Z-0.1 F0.03
    X77
    G0 Z20
    M5 P11
    M90
    M34
    G28 V0
    G30
    U0 W0 M9
    M99

    Back to being stumped !
    : )
    See my pointer in program. You're rapiding back to C0 here? I could be extremely wrong, I have no experience with lathes, but do have a familiarity with fanuc controllers



  8. #8
    Registered
    Join Date
    Apr 2005
    Location
    England
    Posts
    29
    Downloads
    0
    Uploads
    0

    Default Re: indicator dial

    I've run the program with and without the C0 , it makes no difference but your right I question the referencing of the C axis . It really comes down to what's happening when the machine references the C axis . To me the C axis 0 is always zero and all the machine will do is add the 10 degrees at the start of every sub cycle but its not reading the Main Program C axis move or its being reset if you will by say the G28 H0 . I've got to do some more reading later !
    : )



  9. #9
    Member
    Join Date
    May 2016
    Location
    United Kingdom
    Posts
    526
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by Blackened View Post
    See my pointer in program. You're rapiding back to C0 here? I could be extremely wrong, I have no experience with lathes, but do have a familiarity with fanuc controllers
    Why are you referencing the C axis each time in your sub program you don't need to g28H0 is the same as g28co
    Reference it once at the start of your main program before you call the sub programs



Tags for this Thread

Posting Permissions

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


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

indicator dial

indicator dial