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

WAIT - instruction

  • dewitm
  • June 13, 2016 at 10:29 AM
  • Thread is Resolved
  • dewitm
    Reactions Received
    3
    Trophies
    3
    Posts
    99
    • June 13, 2016 at 10:29 AM
    • #1

    Hello everyone,

    I'm new to this forum and I have a question..

    In a part of my program I have this code:

    1: L PR[1] 2000 mm/s CNT 100

    2: Wait DI[16] = ON

    3: J PR[2] 50 % CNT 100

    When I see this piece of code I expect these twee possible scenario's:
    1: When DI[16] = OFF, the program (and Robot) will wait at line 2 till DI[16] = ON
    2: When DI[16] = ON before movement PR[1] is started and is still ON when the movement is finished, the program will see the condition is met immediately and continues from PR[1] to PR[2] without a stop.

    However, in reality it doesn't matter whatever the state of DI[16] is, the robot will stops it's movement. (Offcourse, with scenario 2, continues immediately after the real short stop)

    We really need to check this DI because a linear axis needs to be out of the area. In normal production, the linear axis is a bit faster than the robot and should be normally out of the area of the robot.
    When this is the case, we don't want that the robot stops and does one smooth movement to his end position.

    When I read the manual I see the following line:

    Quote

    When a wait instruction is executed, the robot does not execute any motion instructions.

    Does anyone know a trick to create a sort of Wait instruction which will pass without a stop when the condition is already met?

    I tried the following:
    _____________________________________
    LBL [1]
    If DI[16] = OFF, JUMP LBL [1]
    _____________________________________
    Result: The same


    _____________________________________
    If DI[16] = ON, JUMP LBL[1]
    Wait DI[16] = ON
    LBL[1]
    _____________________________________
    Result: The same


    Does anyone know a solution or can point out what i'm doing wrong? Would be very helpful!

  • skalactik
    Reactions Received
    13
    Trophies
    3
    Posts
    111
    • June 13, 2016 at 3:56 PM
    • #2

    Hello,

    Maybe you can specify a skip condition while returning to the end position ?
    The skip condition will trigger a JMP LBL for as long as your linear axis is in the way but won't disturb the robot if the path is clear. The LBL can be used to either wait a certain amount of time or just loop until the way is clear.

  • dmbj
    Reactions Received
    14
    Trophies
    3
    Posts
    202
    • June 13, 2016 at 9:21 PM
    • #3

    try something like

    P[1]
    if di[16]=off call wait16.tp
    P[2]

    and the program wait16.tp just says

    wait di[16]=on

    that may fix ya up

  • Sergei Troizky
    Reactions Received
    67
    Trophies
    6
    Posts
    650
    • June 14, 2016 at 2:02 PM
    • #4

    Or try:
    L PR[1] 2000 mm/s CNT 100
    IF (DI[16]), JUMP LBL[1]
    WAIT DI[16] = ON
    LBL[1]
    J PR[2] 50 % CNT 100

    Do it well right away. It will become bad by itself.

  • dewitm
    Reactions Received
    3
    Trophies
    3
    Posts
    99
    • June 29, 2016 at 3:53 PM
    • #5

    I haven't been able to test your suggestions because of problems in 3rd party devices. It could take a few weeks before i can test it.

    Strange enough i am not able to reply when I am in China, because the validation of this forum is generated by Google, which is banned in China.

  • mortoch
    Reactions Received
    16
    Trophies
    3
    Posts
    199
    • August 2, 2016 at 9:07 AM
    • #6

    I am in that place as I write this. I use a VPN and have no problems. Yes they hate google here.

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