Need Help! Spline Programming


Results 1 to 2 of 2

Thread: Spline Programming

  1. #1
    Registered
    Join Date
    May 2007
    Location
    Norway
    Posts
    4
    Downloads
    0
    Uploads
    0

    Default Spline Programming

    My code only loops at N1 not counting the angle on C axis.

    G28 U0. V0. H0. W0.

    #100 = 20. (Start diameter)
    #101 = 25. (End diameter)
    #102 = 0. (Start C)
    #103 = 10 (Angle between spline teeths)
    #104 = 2. (Start Z)
    #105 = -50. (End Z)
    #106 = 0701 (Tool)
    #107 = 200 (Feed)
    #108 = 0.1 (Cut depth)
    #109 = 359.

    T#106
    M5 M200
    G0 C#102 Z#104 X#100
    M8

    #110 = [ #100 + #108 ]

    N1
    G0 Z#104 X#110 C#102

    N2
    G1 Z#105 F#107
    G0 X#100
    G0 Z#104
    G0 C#111
    #111 = [ #102 + #103 ]
    IF [ #111 LE #109 ] GOTO 2
    IF [ #111 GE #109 ] GOTO 3

    N3
    #110 = [ #100 + #108 ]
    IF [ #110 LE #101 ] GOTO 1

    G0 Z#104
    G28 U0. V0. H0. W0.


    Similar Threads:


  2. #2
    Registered
    Join Date
    Jun 2007
    Location
    Norway
    Posts
    87
    Downloads
    0
    Uploads
    0

    Default Re: Spline Programming

    The c axis won't increment because you have put a permanent value of 10 degrees to it.

    Change it to this

    (after N1 block)

    #111 = [ #102 + #103 ]

    N2
    G1 Z#105 F#107
    G0 X#100
    G0 Z#104
    G0 X#110 C#111
    #111 = #111 + #103
    IF [ #111 LE #109 ] GOTO 2
    IF [ #111 GE #109 ] GOTO 3 (this line not necessary, last position is always 350°)


    the block N3 is also wrong. it will be an endless loop in cutting X20.1

    it should be #110=#110+#108



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

Spline Programming

Spline Programming