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. Industrial Robot Support and Discussion Center
  4. ABB Robot Forum
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

Conditional execution of the called subroutine

  • byrol
  • July 31, 2023 at 9:29 AM
  • Thread is Unresolved
  • byrol
    Reactions Received
    13
    Trophies
    5
    Posts
    347
    • July 31, 2023 at 9:29 AM
    • #1

    Greetings to all my masters, I am working with the IRC5 IRB2600 robot. I'm installing a fiber laser welding machine. From the "Add Instruction" section, I am calling a subroutine that I created earlier with the normal "ProcCall" command. There is no problem so far, but sometimes I want the robot to run between the lines that I Decipher, not all the lines in this subroutine. Fanuc also had Argument options such as "Call 1Prog(1,2)", and I could start the program I called on a single line from the desired line and finish it on the desired line. How is this work being done at Abb, I am waiting for help from my masters, regards..

  • Lemster68
    Reactions Received
    295
    Trophies
    9
    Posts
    2,458
    Blog Articles
    7
    • July 31, 2023 at 3:22 PM
    • #2

    The Rapid language supports the use of parameters to pass to routines called. One of which, that I will recommend that you look into, is the switch parameter. It is optional and you could also make the arguments exclusive of one another. It has no value, and may only be examined in the called routine by using the function Present(). You can find this information and more in the Rapid overview, Rapid Kernel and Instructions, Functions and datatypes manuals.

  • byrol
    Reactions Received
    13
    Trophies
    5
    Posts
    347
    • July 31, 2023 at 4:26 PM
    • #3

    "Lemster68" Thank you very much for your interest. I started reading the documents you wrote from one side. I think I will find the most appropriate method for my own program logic. I'm looking at examples of the "function Present()" application.. Respects.

  • Alihan Yilmaz
    Reactions Received
    2
    Trophies
    2
    Posts
    21
    • August 1, 2023 at 1:26 PM
    • #4

    From which line you want the program you are callng to start create a new program and call that program with the procall command. ABB not have this subjcet

  • byrol
    Reactions Received
    13
    Trophies
    5
    Posts
    347
    • August 2, 2023 at 7:33 AM
    • #5

    "Alihan kardeşim ilgin için teşekkürler.."

    I have read many different topics in the Abb documents, but I have not found a feature that exactly corresponds to the "Program Argument" feature in the Fanuc software. I was able to find the solution to the "OffsetCondition" problem that I opened the topic earlier and the problem of running another program Decently between the lines only by the method I shared in the picture. I would like to share it, maybe one day it will be useful for someone. By the way, I love this site, it doesn't end Dec.. Respects.

    Images

    • 456.jpg
      • 63.61 kB
      • 321 × 661
      • 4
  • hermann
    Reactions Received
    405
    Trophies
    9
    Posts
    2,596
    • August 2, 2023 at 7:47 AM
    • #6

    Why not using parameters instead of global variables?

    Code
    FULL_PROG 2,7;
    
    ... 
    Prog full_prog (num istart, num iend) 
    ... 

    You can define parameters in Rapid! At the moment I am not sure about the correct syntax, but you can look at the manual.

    You always should post code as text in a code tag, not as picture, then the chance that someone corrects your code is better. I'm too lazy to type in the complete code from the picture :winking_face:

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

Tags

  • subprogram
  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