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

Creating a program that loops.

  • Dreamawake
  • July 22, 2020 at 1:46 AM
  • Thread is Unresolved
  • Dreamawake
    Trophies
    3
    Posts
    14
    • July 22, 2020 at 1:46 AM
    • #1

    Heya all,

    Hope this thread finds you all happy and healthy!

    Just a quick question, but before that here are my robot details: using an Motoman XRC, this robot is primarily used to quality test Product Development goods (hinge tests etc).

    I've been asked to write a program that loops on itself for a period of time. I have never done this in any of my programming experience.

    I've been getting confused at work as the people I asked have given me multiple ways of accomplishing the task but without an in-depth explanation. "Just use labels" was one direction I was given, I've never used labels prior to this either.

    This is what I have so far from some research online:

    "NOP

    SHKST <1>

    <SPEED SETTINGS>

    TOOLON

    *LOOP

    MOVJ

    MOVL

    MOVL

    MOVJ

    *JUMP LOOP IF PULSE OT#1 T=60

    MOVJ

    TOOLOFF

    MOVJ"

    So, from my VERY basic understanding of this is that the motoman will complete the program and loop the program for 60 seconds correct then go home and turn the tool off?

    Thank you guys for any and all the support I might get for this. :grinning_face_with_smiling_eyes:

  • Online
    95devils
    Reactions Received
    235
    Trophies
    8
    Posts
    1,951
    • July 22, 2020 at 4:52 PM
    • Best Answer
    • #2

    On the XRC due to age, there is not an easy way to do this. The time amount would be over 60 seconds. How much over depends on where the cursor is at the 60 second mark. The robot job is sequential, do this, then this, then this. If the cursor was 1 line above the cursor at the 60 second mark then the JUMP would be false and bail out at 60 seconds and a hundredth or so. If the cursor was at the *LABEL then at the time would be 60 seconds plus how ever long the instructions took to execute down to the JUMP.

    Probably the only true way to make this work repeatably very close to 60 seconds is with the INTERRUPT job option and possibly the CONCURRENT job option.

    The way you have it written is close. The PULSE would need to be above the *LABEL. The JUMP would be IF OT#( )=OFF.

    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.

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

Tags

  • motoman
  • XRC
  • loop

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