1. Home
    1. Dashboard
    2. Search
  2. Forum
    1. Unresolved Threads
    2. Members
      1. Recent Activities
      2. Users Online
      3. Team Members
      4. Search Members
      5. Trophys
  3. Articles
  4. Blog
  5. Videos
  6. Jobs
  7. Shop
    1. Orders
  • Login or register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Blog Articles
  • Products
  • More Options
  1. Robotforum - Support and discussion community for industrial robots and cobots
  2. Forum
  3. Cobot Help and Discussion Center
  4. Universal Robots
Your browser does not support videos RoboDK Software for simulation and programming
Visit our Mainsponsor
IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Sponsored Ads

Create Programs

  • moelsayed
  • September 7, 2020 at 2:21 AM
  • Thread is Unresolved
  • moelsayed
    Reactions Received
    3
    Trophies
    3
    Posts
    98
    • September 7, 2020 at 2:21 AM
    • #1

    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 .


    Thanks,

    Moelsayed

  • jvincent
    Reactions Received
    8
    Trophies
    2
    Posts
    20
    • September 8, 2020 at 10:44 PM
    • #2

    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.

    EXTRA:

    • 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

  • moelsayed
    Reactions Received
    3
    Trophies
    3
    Posts
    98
    • September 9, 2020 at 1:51 AM
    • #3

    Really thank you very much for your information I followed what you said and this what I was looking for.

    Thanks again

    Moelsayed

Advertising from our partners

IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Advertise in Robotics
Advertise in Robotics

Job Postings

  • Anyware Robotics is hiring!

    yzhou377 February 23, 2025 at 4:54 AM
  • How to see your Job Posting (search or recruit) here in Robot-Forum.com

    Werner Hampel November 18, 2021 at 3:44 PM
Your browser does not support videos RoboDK Software for simulation and programming

Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Thread Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Similar Threads

  • program example of a palletizing program KUKA KRC4

    • Doe
    • May 29, 2019 at 7:47 AM
    • KUKA Robot Forum
  • Universal Robots Bugs & Robot-forum Wish list

    • Werner Hampel
    • April 1, 2020 at 8:49 AM
    • Universal Robots
  • Problem with Simulation programs.

    • vanquang17
    • August 24, 2020 at 3:21 PM
    • Fanuc Robot Forum
  • New Member - Best Practices

    • i_Robot
    • August 13, 2020 at 4:00 PM
    • Fanuc Robot Forum
  • Val3: no way to create a function to return a value ?

    • psionprime
    • August 7, 2020 at 5:34 PM
    • Stäubli & Bosch Robot Forum
  • Universal Robot PC program

    • moelsayed
    • July 21, 2020 at 9:15 AM
    • Universal Robots
  • Issue with Ofline Simulator Blinking Continiously

    • jimc913
    • July 29, 2020 at 11:24 AM
    • Universal Robots
  • KAWASAKİ ACCURACY and find a point

    • karakasov67
    • April 13, 2020 at 2:19 PM
    • Kawasaki Robot Forum
  • FANUC Move Relative to Tool

    • AwfulAutomation
    • August 29, 2019 at 12:37 PM
    • Fanuc Robot Forum
  • Merging paint programs into one long TP-program or sorting them in folders

    • silento
    • September 20, 2017 at 9:22 AM
    • Fanuc Robot Forum
  1. Privacy Policy
  2. Legal Notice
Powered by WoltLab Suite™
As a registered Member:
* You will see no Google advertising
* You can translate posts into your local language
* You can ask questions or help the community with your knowledge
* You can thank the authors for their help
* You can receive notifications of replies or new topics on request
* We do not sell your data - we promise

JOIN OUR GREAT ROBOTICS COMMUNITY.
Don’t have an account yet? Register yourself now and be a part of our community!
Register Yourself Lost Password
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on Google Play
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on the App Store
Download