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

WAIT on multiple signals in Yaskawa

  • Woebot
  • May 1, 2024 at 10:29 AM
  • Thread is Unresolved
  • Woebot
    Reactions Received
    5
    Trophies
    3
    Posts
    24
    • May 1, 2024 at 10:29 AM
    • #1

    Recently I have been wanting to use a WAIT command in Yasakwa programing (YRC1000) with multiple input signals, is this possible? As a work around I have either been using two waits in a row or been making small if loops, that works fine just wondering if there is a better method I could be using to improve my code.

    example of desired command:

    WAIT IN(1)=ON AND IN(2)=ON
    next steps...

    current code:

    WAIT IN(1)=ON
    WAIT IN(2)=ON
    next steps

    other example i sometime use:

    *Label1
    if IN(1)=ON AND IN(2)=ON
    Jump *Label2
    Jump *Label1
    *Label2
    next steps..

    Edited once, last by Woebot (May 1, 2024 at 1:59 PM).

  • WattUp
    Reactions Received
    7
    Posts
    96
    • May 1, 2024 at 3:27 PM
    • #2

    I commonly use the IF and label jump method; but make sure you add a timer in that loop. It gets angry otherwise

    You could maybe do a JUMP *Label IF IG#1 = #, if your inputs are on the same input grouping.

  • 95devils
    Reactions Received
    234
    Trophies
    8
    Posts
    1,947
    • May 1, 2024 at 6:18 PM
    • #3

    On YRC the WAIT can have up to 15 conditions. You can also write a rung in the ladder with the conditions and output to the General Purpose Input.

    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.

  • Woebot
    Reactions Received
    5
    Trophies
    3
    Posts
    24
    • May 2, 2024 at 1:24 AM
    • #4
    Quote from WattUp

    I commonly use the IF and label jump method; but make sure you add a timer in that loop. It gets angry otherwise

    You could maybe do a JUMP *Label IF IG#1 = #, if your inputs are on the same input grouping.

    I like they grouping idea, I'll try that in the future.

    I have never use timers in those if loops though, what does your timer usually do? Jump to an error routine or something? Not that I think having a timer is a bad idea just never though of it or had a controller crash or anything beceue of it (yet).

  • WattUp
    Reactions Received
    7
    Posts
    96
    • May 2, 2024 at 10:10 PM
    • #5

    I use the timer just to slow the scan down as it loops. The software does not (at least older ones didnt) like scanning through loops at full speed.

    LABEL 1

    IF COND

    JUMP LABEL 2

    ELSE

    Timer 0.1s

    JUMP LABEL 1

  • Woebot
    Reactions Received
    5
    Trophies
    3
    Posts
    24
    • May 7, 2024 at 4:52 AM
    • #6

    oh gotcha, that is a good idea. I thought maybe you meant some sort of timeout function to stop it from looping indefinitely.

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

  • yaskawa
  • INFORM
  • wait

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