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

Need some help in Robotstudio with an inductive sensor

  • Luki
  • December 28, 2019 at 6:47 PM
  • Thread is Unresolved
  • Luki
    Trophies
    3
    Posts
    3
    • December 28, 2019 at 6:47 PM
    • #1

    Hi!

    I have this lab where I am given 4 parallell random size metal plates and I need to sort them according to size.

    I am given in the beginning an inductive sensor, which I am going to use to detect and measure the length of each piece.

    So I make a nice path that runs through the pieces and I write some code in a TRAP to record the point of one edge of the a metal piece when the sensor goes high and record the other position when the sensor goes low.

    The plan is to subtract and find the length. It goes well for the first piece, but when the sensor goes to the next metal piece it just applies the position values of the first piece and so on for the rest of the pieces.

    I suspect the problem lies with my TRAP routine and that I should use IDelete/IEnable/Iwatch or smth to deactivate the TRAP? Or can you suggest something that works?

    Thanks in advance!

  • Lemster68
    Reactions Received
    301
    Trophies
    9
    Posts
    2,485
    Blog Articles
    7
    • December 30, 2019 at 2:24 PM
    • #2

    A search would be more appropriate. You can use two different rorbtargets to store the found positions, and then use the Dist() function to tell you the length.

  • Luki
    Trophies
    3
    Posts
    3
    • January 4, 2020 at 5:31 PM
    • #3
    Quote from Lemster68

    A search would be more appropriate. You can use two different rorbtargets to store the found positions, and then use the Dist() function to tell you the length.

    What do you mean by "search" that would be more appopriate?


    By the way, thanks for the Distance function, i did not know it existed :smiling_face:

  • Lemster68
    Reactions Received
    301
    Trophies
    9
    Posts
    2,485
    Blog Articles
    7
    • January 6, 2020 at 1:48 PM
    • #4

    Look up SearchL in the Instructions, functions and datatypes manual.

  • Luki
    Trophies
    3
    Posts
    3
    • January 8, 2020 at 10:23 PM
    • #5
    Quote from Lemster68

    Look up SearchL in the Instructions, functions and datatypes manual.

    Thanks for the advice! I finally could finish the lab and learned a couple of nice things too. i used the Distance function, which worked like a charm and SearchL led me to discover SearchC also and they were great ideas for my other lab! :grinning_squinting_face:

  • Lemster68
    Reactions Received
    301
    Trophies
    9
    Posts
    2,485
    Blog Articles
    7
    • January 9, 2020 at 1:50 PM
    • #6

    :thumbs_up:

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

  • robotstudio
  • inductive sensor
  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