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

Fanuc Vision system

  • Daniel O'Keeffe
  • September 22, 2022 at 6:16 PM
  • Thread is Unresolved
  • Daniel O'Keeffe
    Trophies
    1
    Posts
    6
    • September 22, 2022 at 6:16 PM
    • #1

    Hello,

    So I'm a student working on research and I'm posting because of a coding error I have run into.

    A few months ago during the summer I programed A Fanuc robotic arm with a vision system to do basic sorting of shapes. I left it for about a month month and a half and have come back to find that the system isn't working.

    What is happening is that the robot's 'aim' is completely off. I have set up a vision system where it identifies a triangle but now when it goes to pick up said triangle it moves to the left side of the work area, instead of going for the triangle. I have tried: resetting the calibration of the vision system, redefining what a triangle is, and have gone over the code to see if someone has messed with it while I was away, checked the user frame and reference positions . None of it works despite it working a month and a half ago.

    The only thing I have changed is the size of the triangles because they were too small for the suction cup to pick up. I made them a lot bigger and redefined the triangle in the vision system. There are students learning how to use the arm however to my knowledge they have not messed around with any of it.

    I'm not sure if this is a coding bug or if it a settings bug but any help and suggestions would be appreciated. I posted my code below

    1. ! Vision Sort
    2. !------------------------
    3. UFRAME_NUM=1
    4. UTOOL_NUM=5
    5. PAYLOAD[1]
    6. OVERRIDE=20%
    7. ! Establishes User & Tool frames, Payload and Speed
    8. J PR[1] 100% FINE
    9. VISION RUN_FIND ‘TRIANGLE’
    10. VISION GET_OFFSET ‘TRIANGLE’ VR[1] JMP LBL[999]
    11. !GO TO HOME AND USE CAMERA TO FIND A TRIANGLE
    12. !IF NO TRIANGLE IS FOUND JUMP TO 999
    13. L PR[4] 200mm/sec CNT25 OFFSET, PR[3] VOFFSET, VR[1]
    14. !Position above the triangle
    15. L PR[4] 225mm/sec FINE VOFFSET, VR[1]
    16. !Moves down to triangle
    17. WAIT 3.00 (sec)
    18. RO[1]=ON
    19. WAIT 3.00 (sec)
    20. !Turns suction on
    21. L PR[4] 225mm/sec CNT25 OFFSET, PR[3] VOFFSET,VR[1]
    22. ! Lifts triangle
    23. J PR[1] 100% FINE
    24. !Go home
    25. LBL[999]
  • HawkME
    Reactions Received
    568
    Trophies
    10
    Posts
    3,268
    • September 22, 2022 at 7:33 PM
    • #2

    If you changed the vision pattern you would likely need to touch up the pick position PR[4] also.

    If the height of the part changed then you would also need to update the vision Z height parameter.

  • Fabian Munoz
    Reactions Received
    133
    Trophies
    9
    Articles
    1
    Posts
    1,517
    • September 22, 2022 at 8:15 PM
    • #3

    HI

    Usually what you described is a UF issue.

    I know it was working but:

    Can you check the grid size ? Can you teach the UF5 again ? or make sure that matches what you did using the right tool ?

    Teach PR4 again

    Your program logic looks good

    Retired but still helping

  • Daniel O'Keeffe
    Trophies
    1
    Posts
    6
    • September 23, 2022 at 5:28 PM
    • #4

    Thank you both for the quick reply and suggestions

    I checked the user frame and the reference height for the shapes. I did reprint larger shapes to be the same height but I double check anyway.

    I haven't been able to do many tests on it due to limited time I have in the lab but it is working slightly better.
    the aim is off by about an inch which is a big improvement but, it now only moves to one place. I can continue to work on it next week when I have more time

    Thank you very much for your help

  • HawkME
    Reactions Received
    568
    Trophies
    10
    Posts
    3,268
    • September 23, 2022 at 7:30 PM
    • #5

    You need to set the Z height in the vision process to the distance from the offset frame to the surface of the part.

  • Daniel O'Keeffe
    Trophies
    1
    Posts
    6
    • October 7, 2022 at 6:00 PM
    • #6

    Hello All,

    So I found the problem at hand and it had to do with a mix up between the vision grid calibration and the user frame calibration. In one I defined positive X going one way and in the other I defined it going in a completely different direction.

    Thank you for all the help and assistance that was given during this process.

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

Similar Threads

  • Vision Systems With Fanuc Robots

    • white_raven
    • May 2, 2022 at 4:16 PM
    • Fanuc Robot Forum
  • irVision Setup / Fanuc manual

    • Jesper
    • May 9, 2019 at 1:39 PM
    • Fanuc Robot Forum
  • Tracking -IR Picktool without Fanuc Vision - Send Vision coordinates on latch

    • EGi01FR
    • August 29, 2018 at 12:32 PM
    • Fanuc Robot Forum
  • Fanuc Robot and Keyence Vision

    • mrid
    • September 5, 2019 at 8:53 AM
    • Fanuc Robot Forum
  • Cartesian vs Configuration -- limiting RZ

    • SkyeFire
    • July 1, 2020 at 9:46 PM
    • Fanuc Robot Forum
  • Fanuc iRVision: Take photo of position in a vertical matrix where a part may be; if no part, move on to next matrix position

    • hmurray96.work
    • March 13, 2020 at 3:34 PM
    • Fanuc Robot Forum
  • iRvision precision

    • Jesper
    • May 20, 2019 at 8:24 PM
    • Fanuc Robot Forum
  • Developing Epson N2 with Cognex Insight

    • elvicash
    • March 19, 2019 at 6:30 PM
    • Robot Vision and Vision Products
  • AI or Deep Learning in Industrial Automation

    • SkyeFire
    • January 9, 2019 at 11:07 PM
    • General Discussion of Industrial Robots Only

Tags

  • Fanuc
  • code
  • Help Me
  • Help fixing error
  • vision error
  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