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

How to trigger Signal when robot at HOME Position

  • emerald_geni
  • July 10, 2023 at 4:06 AM
  • Thread is Resolved
  • emerald_geni
    Trophies
    2
    Posts
    25
    • July 10, 2023 at 4:06 AM
    • #1

    Hi I have made my own HOME position and would like to signal my PLC that the ROBOT is at HOME.

    I do not have WORLD ZONE package and wrote the code below.


    Code
        VAR robtarget pCurrentPosition;
        VAR robtarget Differnce;
        VAR num val;
        GetSysData tCheck\ObjectName:=stToolName;
        GetSysData wobjCheck\ObjectName:=stWobjName;
        pCurrentPosition:=CRobT(\Tool:=tCheck\WObj:=wobjCheck);
        !val :=pCurrentPosition.trans.x;
        !val := Round(val\Dec:=2);
    
        
        IF HOME = pCurrentPosition  THEN
            SetDO doRobotAtHome,1;
        ELSE
            SetDO doRobotAtHome,0;
        ENDIF 
    Display More

    The issue with the above code is that the current position might have a few decimal places values different then HOME values.

    Is there are any other more efficient solution to trigger Signal when robot at HOME Position?

  • hermann
    Reactions Received
    407
    Trophies
    9
    Posts
    2,612
    • July 10, 2023 at 6:22 AM
    • #2
    Code
    ..  
        IF (abs(Home.trans.x-pCurrentPosition.trans.x)<0.1) and (abs(Home.trans.y-pCurrentPosition.trans.y)<0.1) and (abs(Home.trans.z-pCurrentPosition.trans.z)<0.1) Then
    ... 

    But how/where do you want to execute the code? If the code isn't executed in background the signal won't be set everytime HOME is reached. And more important it won't be resetted if robot leaves HOME.

  • emerald_geni
    Trophies
    2
    Posts
    25
    • July 10, 2023 at 7:54 AM
    • #3
    Quote from hermann
    Code

    But how/where do you want to execute the code? If the code isn't executed in background the signal won't be set everytime HOME is reached. And more important it won't be resetted if robot leaves HOME.

    Hi Hermann,

    The PLC will check for this signal and then only give the command to execute a procedure.

    i just want a output signal when at robot at HOME position.

    This code is kind of a work around to achieve that. im not sure if this is the best way to do this?

  • Mertkan Koca
    Reactions Received
    1
    Trophies
    1
    Posts
    53
    • July 10, 2023 at 11:04 AM
    • #4

    How about set a new point as HOME position and define that point for 2 diffirent val 1 for position information 2 for loops and check-in to use whenever you want

  • hermann
    Reactions Received
    407
    Trophies
    9
    Posts
    2,612
    • July 10, 2023 at 12:49 PM
    • #5
    Quote from emerald_geni

    .. i just want a output signal when at robot at HOME position..

    World zones work asynchronous to main program. Your procedure also should work asynchronous, but it won't unless you have multitasking option. If you don't have world zones, I doubt you have multitasking.

    May be you can try to use a timer controlled interrupt to call your routine. Otherwise you only can call it synchronous somewhere in the program, but then only on that call the signal will be set/reset.

    Why didn't you answer my question? :smiling_face:

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

  • Should $MOVE_ENABLE be assigned to an input other than $IN[1025]?

    • robotninja
    • February 9, 2023 at 9:57 PM
    • KUKA Robot Forum
  • Interrupt not working when program is stopped

    • Xerces
    • August 14, 2019 at 6:31 PM
    • KUKA Robot Forum
  • Is it possible to de-active the manual output in T1/T2

    • plustandard
    • July 15, 2022 at 5:44 PM
    • KUKA Robot Forum
  • Measurment of tool with interrupt when the toolsetter/button is clicked and then unclicked

    • martenH
    • November 30, 2021 at 4:02 PM
    • KUKA Robot Forum
  • Point Skipped in Interrept function, Caused minor Crash!

    • arunbluez
    • April 1, 2021 at 11:00 AM
    • KUKA Robot Forum
  • Homing filosophy with Fanuc

    • PetrBroza
    • November 25, 2020 at 10:00 AM
    • Fanuc Robot Forum
  • ABB Multimove freezing

    • VoCh
    • November 20, 2019 at 6:10 PM
    • ABB Robot Forum
  • Motion Interlock FANUC

    • a00948630
    • June 19, 2019 at 7:59 PM
    • Fanuc Robot Forum

Tags

  • abb
  • irc5
  • home position

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