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. Yaskawa Motoman 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

RET command

  • the_indiRoboter
  • September 29, 2020 at 8:21 AM
  • Thread is Unresolved
  • the_indiRoboter
    Trophies
    3
    Posts
    96
    • September 29, 2020 at 8:21 AM
    • #1

    Can someone please how RET command works and where exactly it is useful?

  • Reintz
    Reactions Received
    20
    Trophies
    4
    Posts
    122
    • September 29, 2020 at 12:16 PM
    • #2

    RET instruction will return to the calling job. You use it in a job that is being called for in case there are some lines or instructions after the RET that you don't want the controller to go through. If you add IF to the RET you can manipulate if the lines after RET will be executed or not.

  • vmec
    Reactions Received
    7
    Trophies
    3
    Posts
    41
    • October 9, 2020 at 2:41 AM
    • #3

    Adding to Reintz's, if you use RET in a program that wasn't called by another (for example, in the master job), the controller will throw a UNDEFINED RETURN JOB alarm or something like that.

  • samapon
    Reactions Received
    1
    Trophies
    2
    Posts
    5
    • October 9, 2020 at 3:19 AM
    • #4

    You also can return Local Variable too

  • 95devils
    Reactions Received
    235
    Trophies
    8
    Posts
    1,951
    • October 9, 2020 at 1:40 PM
    • #5
    Quote from samapon

    You also can return Local Variable too

    Possibly. That is not available on every generation. The OP doesn't specify what controller.

    I know a thing or two, because I’ve seen a thing or two. Don't even ask about a third thing. I won't know it.

  • BTS_Automation
    Trophies
    3
    Posts
    3
    • October 14, 2020 at 6:50 AM
    • #6

    The RET (Return) INFORM command isn't really necessary and simply using the default program/job END will work just as well in any jobs called.

    Reintz is also correct, the RET is helpful if used in IFTHEN or ENDIF instructions too.

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
  • krc5
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • 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
  • krc5
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Similar Threads

  • Wait Instruction

    • moelsayed
    • September 26, 2020 at 4:03 PM
    • Universal Robots
  • MRC SK6 cmos batch file backup?

    • Makerman1234
    • September 18, 2020 at 12:36 AM
    • Yaskawa Motoman Robot Forum
  • ethernet server function - consecutive commands

    • jac
    • September 24, 2020 at 4:57 PM
    • Yaskawa Motoman Robot Forum
  • kawasaki fs003n problem

    • Rolbod91
    • September 19, 2020 at 4:45 PM
    • Kawasaki Robot Forum
  • TCP calibration has no effect on NX100

    • jiivee
    • September 18, 2020 at 4:55 PM
    • Yaskawa Motoman Robot Forum
  • deadman switch in external mode

    • Y_Ma
    • September 15, 2020 at 10:03 AM
    • KUKA Robot Forum
  • Need help understanding tilted user coordinate/frame

    • RobotOne
    • September 1, 2020 at 5:58 PM
    • Yaskawa Motoman 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