Need Help! Assigning subroutine number of passes ???


Results 1 to 5 of 5

Thread: Assigning subroutine number of passes ???

  1. #1
    Member
    Join Date
    Oct 2009
    Location
    New Zealand
    Posts
    51
    Downloads
    0
    Uploads
    0

    Default Assigning subroutine number of passes ???

    I have searched this forum and others but can't find an answer to this one.

    A program that I created to re-machine existing parts, needs a multi-pass facing routine which was simple enough to do with a subroutine.
    The trouble is a need to define the number of passes ... some parts may need two passes, some may need (say) five passes.
    The program works out how many passes it needs, but the problem I have is transferring that number to the subs L21## number.

    I have been thru the Fadal manuals, searched forums, tried multiple trial/error combinations (like L21+V20, L21+R1, L21(R1) etc etc) but I can't get it to work .... or find an answer.
    The subs ok, if I enter L2104 it will do 4 passes so its good.

    Its no doubt very simple .... can anyone help me with this please ??

    Similar Threads:


  2. #2
    Member
    Join Date
    Oct 2009
    Location
    New Zealand
    Posts
    51
    Downloads
    0
    Uploads
    0

    Default Re: Assigning subroutine number of passes ???

    Don't worry about a reply guys .... after two days of messing about, I have figured it out ....



  3. #3
    Member
    Join Date
    Apr 2014
    Location
    United States
    Posts
    345
    Downloads
    0
    Uploads
    0

    Default Re: Assigning subroutine number of passes ???

    I curious as to the answer?



  4. #4
    Member
    Join Date
    Oct 2009
    Location
    New Zealand
    Posts
    51
    Downloads
    0
    Uploads
    0

    Default Re: Assigning subroutine number of passes ???

    You save the sub's number to a V variable. The program computes the number of passes as a V variable .... so you simply add the two together, transfer to an R value and add to the L ...

    e.g
    #V80=2100
    #V83=3
    #V84=V80+V83
    #R9=V84
    L+R9 (sub 2100 cycles 3 times)

    Simple ....



  5. #5
    Member
    Join Date
    Apr 2014
    Location
    United States
    Posts
    345
    Downloads
    0
    Uploads
    0

    Default Re: Assigning subroutine number of passes ???

    That is pretty simple. Thanks for the info.



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

Assigning subroutine number of passes ???

Assigning subroutine number of passes ???