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

Variable for home position (Kuka Krc4)

  • Sidnei Steuernagel
  • July 9, 2020 at 10:11 PM
  • Thread is Unresolved
  • Sidnei Steuernagel
    Trophies
    2
    Posts
    10
    • July 9, 2020 at 10:11 PM
    • #1

    Hello, is there any boolean variable to monitor when the robot is at home position?

    Kuka KRC4

  • massula
    Reactions Received
    200
    Trophies
    8
    Posts
    1,421
    • July 10, 2020 at 12:35 AM
    • #2

    If you is using the default HOME declared in $config.dat, you can check $IN_HOME, declared by default as $OUT[1000].

  • Sidnei Steuernagel
    Trophies
    2
    Posts
    10
    • July 13, 2020 at 1:20 AM
    • #3

    I am using the default home. I put the robot in the home position and check the variables "$ IN_HOME" or "$ OUT [1000]", but they are always in FALSE. The only way I found was to compare the variable "$ AXIS_ACT" with "XHOME" (config.dat). I don't know if there is another way.

  • Online
    panic mode
    Reactions Received
    1,267
    Trophies
    11
    Posts
    13,037
    • July 13, 2020 at 2:12 PM
    • #4

    System variables start with $

    XHOME is just a position variable but... it is not a system variable. you can make you own variable to be home position if you like....

    system variable that defines home position is $H_POS. since you are using XHOME as home position, XHOME value need to be copied to $H_POS

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • Online
    SkyeFire
    Reactions Received
    1,042
    Trophies
    12
    Posts
    9,388
    • July 13, 2020 at 5:22 PM
    • #5

    Note, the standard "Home" move included in the KRC's Normal Module template includes $H_POS = XHOME as part of the Inline Form, just to protect against issues like this. If you're writing "raw" KRL, rather than using the template, that might be one cause of the issue.

  • Sidnei Steuernagel
    Trophies
    2
    Posts
    10
    • July 13, 2020 at 7:16 PM
    • #6

    I used the home default which is created automatically.

    Should I use the same home default as the cell.src program?

    Images

    • Capturar.JPG
      • 52.49 kB
      • 1,004 × 327
      • 113
  • Online
    panic mode
    Reactions Received
    1,267
    Trophies
    11
    Posts
    13,037
    • July 13, 2020 at 10:11 PM
    • #7

    you can just use variable monitor to assign XHOME value to $H_POS.

    this only need to be done once unless you are manually transferring programs but not updating $CONFIG.DAT for example

    another option is to add at the top of the program

    $H_POS=XHOME

    this can be placed inside INI, and added into template file.

    and finally you can simply change first SPTP HOME to PTP HOME.

    this is not an approximated motion anyway (unless you change it) so by default will not have any effect on program execution even if all other motions are new motions.

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • Online
    SkyeFire
    Reactions Received
    1,042
    Trophies
    12
    Posts
    9,388
    • July 14, 2020 at 4:24 PM
    • #8
    Quote from Sidnei Steuernagel

    I used the home default which is created automatically.


    Should I use the same home default as the cell.src program?

    Open the SPTP HOME Fold and look inside it. Unless something has changed, there should be a line inside it that sets $H_POS=XHOME.

    The trick here is that the Inline Form for the Home motion only updates XHOME when the TouchUp button is used. And XHOME is a "local " variable, stored in the program's .DAT file. So to ensure that $H_POS is updated whenever someone uses TouchUp on Home, that line is included.

    This makes ILF-programming on the pendant easier for novices. But there is one potential pitfall -- if you create multiple programs using the basic template, and TouchUp Home differently in each program, each one will re-assign $H_POS as it runs. Which can have unexpected side effects.

  • Online
    panic mode
    Reactions Received
    1,267
    Trophies
    11
    Posts
    13,037
    • July 14, 2020 at 4:38 PM
    • #9

    that is why it is best to stick with global XHOME which is a default anyway. most people know nothing about robots they use and are bound to make mistakes. goal should be to minimize mistakes.

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

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

  • Robot Signals Help?

    • n0909
    • March 18, 2018 at 10:16 PM
    • KUKA Robot Forum
  • KRC4 External Automatic mode without PLC (just a HMI as MBus TCP master)?

    • n0909
    • March 13, 2018 at 2:16 AM
    • KUKA Robot Forum

Tags

  • KUKA KRC4
  • 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