Create Programs

  • Hello everybody,

    I am looking for creating several programs ( some like several URP files ) and call each of them in the main program as we have in fanuc.

    How can I do that I tried to use subprogram but i found i am creating subprogram inside the main program not in a separate file .



  • Moelsayed,

    You should be able to do this by using that SubProgram function.

    1. Press Subprogram function in MAIN program (this will create a subprogram generically named "SubProgram_1" initially)
    2. Press the "Load File" button below the subprogram field on the right-hand side of the screen
    3. Load a Program file (.urp) in the same folder directory on the UR Pendant.
    4. It should load in the program, line-for-line, from the other file in the subprogram space that used to be blank in your MAIN program
    5. "CALL" that subprogram within your main code.


    • If the subprogram is very large in terms of lines of code, place a FOLDER under the first line of code in that sub_program and make the following subprogram lines of code fall within that folder. This way you can collapse all those lines of code in the subprogram for a clean look
    • I believe the pendant will ask you if you want to update the sub_program each time you open up your main program if there were any changes to the sub_program.urp file.... I can't remember

    If this doesn't work let me know. I will go take a look at a pendant. I know I have done this before, but I do not have the pendant in-front of me. Only a manual.

    - JV

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account
Sign up for a new account in our community. It's easy!
Register a new account
Sign in
Already have an account? Sign in here.
Sign in Now