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
Everywhere
  • Everywhere
  • Articles
  • Pages
  • Forum
  • Blog Articles
  • Products
  • More Options
  1. Robotforum - Support and discussion community for industrial robots and cobots

Blog Articles Tagged with “Programming Rapid”

Search by Tags
Programming ABB robots, Rapid programming
Rapid 201: Set yourself ahead of the crowd.
How to call by variable, and how not to.

Here a programmer hard coded the routine name to a string to be used in a Call by variable. It pretty much defeats the purpose of using a Call by Variable and creates extra steps as well. There are two ways to use a call by variable: 1. %MyRoutine%; where the string between the percent signs is the name of the routine to run. 2. CallByVar "MainTyp", nProg; The number value is automatically converted to a string and concatenated onto the string name of the routine.



!**************** STRING ****************

!

! "stMainTyp1" Call for main routine, for engine type 1 (DO NOT EDIT).

CONST string stMainTyp1:="MainTyp1";

! "stMainTyp2" Call for main routine, for engine type 2 (DO NOT EDIT).

CONST string stMainTyp2:="MainTyp2";

! "stMainTyp3" Call for main routine, for engine type 3 (DO NOT EDIT).

CONST string stMainTyp3:="MainTyp3";

! "stMainTyp4" Call for main routine, for engine type 4 (DO NOT EDIT).

CONST string …


Read More

Lemster68
March 9, 2020 at 6:20 PM
Like 1
1

Advertising from our partners

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

Content

  • Articles 0
  • Threads 0
  • Blog Articles 1
  • Product 0

Tags

  • abb
  • ABB robot
  • picking parts
  • Programming
  • Programming ABB robot
  • Programming Rapid
  • RAPID
  • Rapid code
  • Rapid programming
  • WaitTime
  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