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. KUKA 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

how to indicate the speed of a LIN_REL

  • LUCAF
  • April 2, 2024 at 11:40 AM
  • Thread is Unresolved
  • LUCAF
    Trophies
    1
    Posts
    6
    • April 2, 2024 at 11:40 AM
    • #1

    Hello, I need to use a LIN_REL in my program.

    Until now I've been working with WOPCORE to write my movements.

    I would like to know how the speed is indicated to this movement.

    current code : lin_rel {x 0, y 0, z 300, a 0, b 0, c 0}

    I take all advice and warnings concerning use :winking_face:

  • MOM April 2, 2024 at 12:37 PM

    Approved the thread.
  • Fubini
    Reactions Received
    278
    Trophies
    9
    Posts
    1,889
    • April 2, 2024 at 1:53 PM
    • #2
    Code
    ; set 2 m/s for all following lin/circ motions until changed again
    $vel.cp = 0.2
    lin_rel {x 0, y 0, z 300, a 0, b 0, c 0}

    Fubini

  • SkyeFire
    Reactions Received
    1,052
    Trophies
    12
    Posts
    9,429
    • April 2, 2024 at 2:55 PM
    • #3
    Quote from LUCAF

    I would like to know how the speed is indicated to this movement.


    current code : lin_rel {x 0, y 0, z 300, a 0, b 0, c 0}

    Move commands in KRL do not include velocity as part of the command. Motions programmed by Inline Forms, like this:

    actually create multiple lines of KRL that set multiple system variables, including velocity.

    But since LIN_REL is not available as an Inline Form, you need to program it in "raw" KRL, as you already have.

    If you keep your code as it is, the LIN_REL command will execute at the same speed as the last Inline Form LIN motion that was executed.

    If you want to control the velocity of the LIN_REL directly, use Fubini's method. The system variable $VEL.CP is set in units of m/s, and controls the velocity with which any following LIN or CIRC motions are executed.

  • chris.rhoades
    Reactions Received
    8
    Trophies
    1
    Posts
    51
    • April 2, 2024 at 3:05 PM
    • #4

    A simple user-friendly method I use with Kuka is to create a "motion parameter" function that I call before every motion. Inside the function you can have preset values for speed, acceleration, approximation, etc. Cleans up the rest of your programs and makes programming much faster.

  • SkyeFire
    Reactions Received
    1,052
    Trophies
    12
    Posts
    9,429
    • April 2, 2024 at 3:13 PM
    • #5
    Quote from chris.rhoades

    A simple user-friendly method I use with Kuka is to create a "motion parameter" function that I call before every motion. Inside the function you can have preset values for speed, acceleration, approximation, etc. Cleans up the rest of your programs and makes programming much faster.

    You can do that, but that's literally what BAS.SRC (which comes in every KRC) is for. The only "problem" with BAS is that it has a wide range of options, so you have to determine how to trigger the option you want, using the arguments in the call.

  • chris.rhoades
    Reactions Received
    8
    Trophies
    1
    Posts
    51
    • April 2, 2024 at 3:17 PM
    • #6

    Absolutely right, that's how we used to do it. A personal goal of mine is to make the programs at least somewhat easy to read for the customer. Coming from a maintenance background I understand how frustrating it is to get called over to a robot issue and not be able to make heads or tails of the programming. Using BAS is perfectly fine, just depends on what your goals are.

    Edited once, last by chris.rhoades (April 4, 2024 at 5:55 PM).

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

  • LIN_REL
  • VITESSE

Users Viewing This Thread

  • 1 Guest
  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