How to use subprograms on a CNC

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ต.ค. 2024
  • CNC Subprograms: What they are, why they're cool, & how to do them.

ความคิดเห็น • 28

  • @gabriel.sampaio
    @gabriel.sampaio ปีที่แล้ว

    Loved the video. Gretings from Brazil. Keep up the good work

  • @DJKrEyVa
    @DJKrEyVa 2 ปีที่แล้ว +2

    i came for the sub program tutoriel, i stayed for the "oh and by the way, this is how i cheat to turn parts on my mill" 0.o love the vid thank you so much!

  • @cncsandingtools
    @cncsandingtools 11 หลายเดือนก่อน

    Nice sub demo. Great information Thanks

  • @iliandimitrov4857
    @iliandimitrov4857 5 หลายเดือนก่อน

    Very clever, thanks for sharing.

  • @bluddywulf6796
    @bluddywulf6796 3 ปีที่แล้ว +2

    You could have done that with 1 sub using incremental in the sub and call out your start positions at each point in the main with absolute,If you are using the same tool path.

  • @shanel4348
    @shanel4348 3 ปีที่แล้ว +1

    Awesome video, thanks.

  • @jaimeperez3968
    @jaimeperez3968 2 ปีที่แล้ว +1

    Hey man thank you very much you have replied super well thanks one more subscriber thank you
    Greetings from Colombia

  • @amrounesalah8706
    @amrounesalah8706 3 ปีที่แล้ว +1

    Merci pour le partage de la video. Thanks from Algeria.

    • @kittadyne
      @kittadyne  3 ปีที่แล้ว

      My pleasure.

  • @Cole-xq2tl
    @Cole-xq2tl 4 ปีที่แล้ว

    This is pretty neat! I'm in trade school for programming and machining, hope i can become this skilled some day

    • @kittadyne
      @kittadyne  4 ปีที่แล้ว +2

      Have fun with school, enjoying yourself is the best way to learn!

  • @Ertrosveli
    @Ertrosveli ปีที่แล้ว

    My God. You're genius bro

    • @kittadyne
      @kittadyne  ปีที่แล้ว

      Thanks, I occasionally agree with that
      😄👍

  • @RussellHaghgoo
    @RussellHaghgoo 4 หลายเดือนก่อน

    very very clever.

  • @Yuri-qs6oi
    @Yuri-qs6oi 5 ปีที่แล้ว

    Nice, and good explanation

  • @jesusalberto9044
    @jesusalberto9044 4 ปีที่แล้ว

    nice.... hi from monterrey mexico

    • @kittadyne
      @kittadyne  4 ปีที่แล้ว

      Gracias, y saludos desde California.

  • @F30586
    @F30586 2 ปีที่แล้ว

    I made a bar puller sub program (O12345) and I want to run 10 parts on my lathe then stop. For some reason it runs continuously and doesn’t stop. I start the main program and before I do any machining I call up the bar puller sub. Then at the bottom of my bar puller sub is an M99. Also at the bottom of my main program is an M99. When I call up my sub, when I input M98 P12345 L10…it runs the bar puller sub 10 times before it starts machining the part. How do I get it to run the sub and main 10 times then stop? What am I doing wrong? Are my M Codes in the wrong place? Or is my Haas lathe too old? It recognizes the L…but where do I put it to run the puller then main a certain amount of times? I thought the only M98 is for the sub.

    • @kittadyne
      @kittadyne  2 ปีที่แล้ว

      From what you described my 1st thought is the Loop command [ L10 ] should be in the main program, no loop in the sub.
      2nd thought to tell you to look at the difference between M99 & M30 or M2 at the end of a program.
      Post your main & your sub programs in the comments & we'll look at it.

    • @F30586
      @F30586 2 ปีที่แล้ว

      @@kittadyne the L10 is in the main. At the top of the program…before it calls the first tool. So it reads the safety blocks…then I call the sub up M98 P12345 L10…then it runs the bar puller sub (O12345) and at the bottom of that sub is the M99. So then it jumps back to the main and runs the main program. And at the bottom of the main is an M99 as well. So with the L value in that block with the sub call…it runs that sub 10 times before running the main. Should I put the Sub Call block at the end of my main rather than at the beginning?

    • @F30586
      @F30586 2 ปีที่แล้ว

      So I’m trying to get it to run only a certain number of cycles and then stop. Which is controlled by the L value. I’m thinking I have the codes in the wrong spot. I have an M99 at the end of both programs. It’s a Haas lathe. Late 90’s model.

    • @kittadyne
      @kittadyne  2 ปีที่แล้ว

      Post your code in reply to this comment

    • @F30586
      @F30586 2 ปีที่แล้ว

      @@kittadyne can I email it to you. Screen shots of both programs?

  • @leninjosepintocardona4572
    @leninjosepintocardona4572 2 ปีที่แล้ว

    Crack