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

Synchronizing robot variable to servo turn

  • vmec
  • November 26, 2019 at 7:39 PM
  • Thread is Unresolved
  • vmec
    Reactions Received
    7
    Trophies
    3
    Posts
    41
    • November 26, 2019 at 7:39 PM
    • #1

    The robot picks and places some plastic stuff inside the holes of a turntable, just like a revolver.

    In the master job there's a WHILE that keeps checking different signals so the robot can make a different subtask based on them. The cycle time here is TIGHT, so the robot has to make whatever it needs whenever it gets a signal to do so. This is the cause.

    One subtask manages the servomotor, sending a pulse. Whenever the servo finishes turning I need to increment a variable. Since I have to keep going with the rest of the cycle I can't wait for that. Instead, there's a WAIT IN#(SERVO INPOS) in every subtask. But they may not be executed. So, right now, I'm incrementing the variable with each pulse, leading to errors.

    I need something that is constantly checking, like PLC ladder. But the controller's own ladder editor doesn't let me touch variables. Can I use this? This controller does not have the system/parallel job function.

    I thought of maybe waiting for the servo input before sending the pulse, but - I confirmed this - the robot controller can cycle faster than the PLC turns the input off. So there's times when the robot sends a signal twice (and increments twice) before the disk hasn't even begin moving. I programmed a timer that stops the robot from executing that subtask if it goes too fast, but it's kind of a half assed solution and doesn't work flawlessly either.

    I could also make it work if the controller let me turn off that input by myself before sending the pulse. Is this possible? This way I wouldn't need to synchronize the controller and the PLC.

    Thanks

  • vmec
    Reactions Received
    7
    Trophies
    3
    Posts
    41
    • November 27, 2019 at 12:01 PM
    • #2

    I managed to solve it. This is what I had:

    WAIT IN#(SERVO INPOS)=ON

    PULSE OT#(SERVO TURN) T=0.1

    SET var var + 1


    This is what I have done:

    WAIT IN#(SERVO INPOS)=ON

    PULSE OT#(SERVO TURN) T=0.1

    WAIT IN#(SERVO INPOS)=OFF

    SET var var + 1

    This way I increment the variable with the actual servo movement, instead of supposing it is moving. I'd like to use the rising edge, and count when it stops moving instead, but as I said earlier there's no where in the program to check for that. But here I can be sure the falling edge will happen since I'm actually sending the signal to move.

  • Kushal Patel
    Trophies
    3
    Posts
    31
    • November 27, 2019 at 10:14 PM
    • #3

    If you are restricted in cycle time you can execute any calculation logic using "PSTART" functionality as long as there are no manipulator movements in that job you are calling through "PSTART".

    This way you can move robot without waiting for any i/p and while it is running your described logic in parallel to the any job you are on.

  • vmec
    Reactions Received
    7
    Trophies
    3
    Posts
    41
    • November 29, 2019 at 8:19 PM
    • #4

    That's a great idea, but I can't find those commands in my controller. I have the INFORM EXPANDED option enabled. Are them available in the YRC1000? They don't even show up in the INFORM manual.

  • Kushal Patel
    Trophies
    3
    Posts
    31
    • December 5, 2019 at 2:22 PM
    • #5

    Yes vemc you are right; I couldn't find it either. However I have no experience with YRC controller so I took it for granted as it available on NX and DX should be available in YRC.

    Is there anyone know is there any substitute of PSTART in YRC??

  • 95devils
    Reactions Received
    235
    Trophies
    8
    Posts
    1,951
    • December 5, 2019 at 2:39 PM
    • #6

    PSTART (and PWAIT) are a software option (Concurrent Job software option). Been available on most Yaskawa controllers since MRC days. Some Yaskawa offices have this option turned on as a standard such as the US.

    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.

  • vmec
    Reactions Received
    7
    Trophies
    3
    Posts
    41
    • December 6, 2019 at 4:17 PM
    • #7

    It makes sense that it belongs to the concurrent job functionality, and it's so useful and sometimes essential that it should at least be mentioned in the manual, even if it's not included by default.

    Case solved I guess

  • 95devils
    Reactions Received
    235
    Trophies
    8
    Posts
    1,951
    • December 6, 2019 at 4:58 PM
    • #8

    Since it is a software option those instructions are in their own manual.

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