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

How do I move by an incremental distance in the current tool frame?

  • ashwinmudigonda
  • March 28, 2018 at 12:11 AM
  • Thread is Resolved
  • ashwinmudigonda
    Trophies
    3
    Posts
    43
    • March 28, 2018 at 12:11 AM
    • #1

    I have an L command

    Code
    L PR[8] 50mm/sec FINE INC

    It's moving in the world frame. How do I get it to in the tool frame #2?

    I added

    Code
    UTOOL_NUM=2

    before the motion command and that didn't help.

  • HawkME
    Reactions Received
    567
    Trophies
    10
    Posts
    3,268
    • March 28, 2018 at 1:17 AM
    • #2

    Use a tool offset.

    For example:

    L PR[8] 50mm/sec FINE Tool Offset PR[9]

    Sent from my SM-G930V using Tapatalk

  • ashwinmudigonda
    Trophies
    3
    Posts
    43
    • March 28, 2018 at 4:45 PM
    • #3

    What is the PR[9] in this case?

  • Atinder Singh
    Reactions Received
    2
    Trophies
    3
    Posts
    103
    • March 28, 2018 at 4:56 PM
    • #4
    Quote from ashwinmudigonda


    What is the PR[9] in this case?


    He just took an example. Using the value in the position register number 9. Could be any value in any position register whatever you choose.

  • ashwinmudigonda
    Trophies
    3
    Posts
    43
    • March 28, 2018 at 5:11 PM
    • #5

    I am still confused.

    I want to move in the tool frame's Z coordinate the way I am able to jog.

    What do I do have to put into the PR variable?

    Isn't there a parameter in the L motion command to signify which frame to use - Base, User, or Tool?

  • pdl
    Reactions Received
    266
    Trophies
    9
    Posts
    1,504
    • March 28, 2018 at 6:00 PM
    • #6

    If you want to move in tool z:
    PR[9,3]=25
    L P[1] 200mm/sec, TOOL OFFSET PR[9]

  • ashwinmudigonda
    Trophies
    3
    Posts
    43
    • March 28, 2018 at 6:17 PM
    • #7

    Thanks.

    Could you clarify what the command is trying to do?

    What should be in P[1]?

    I am getting an "uninitialized data is used" error.

    When I tried

    PR[8,3] = 25
    L PR[11] 50mm/sec FINE INC Tool_Offset, PR[8]

    It still moves in the world frame's Z.

    Edited once, last by ashwinmudigonda (March 28, 2018 at 6:31 PM).

  • Fabian Munoz
    Reactions Received
    133
    Trophies
    9
    Articles
    1
    Posts
    1,517
    • March 28, 2018 at 6:53 PM
    • #8

    because you have to fill all the values on pr8 pr8,1= 0 etc etc

    Retired but still helping

  • ashwinmudigonda
    Trophies
    3
    Posts
    43
    • March 28, 2018 at 7:08 PM
    • #9

    PR[8] is completely filled in.

    PR[8,1] = 0
    PR[8,2] = 0
    PR[8,3] = -25
    PR[8,4] = 0
    PR[8,5] = 0
    PR[8,6] = 0

    L P[1] 50mm/sec FINE Tool_Offset, PR[8]


    throws an uninitialized error

  • HawkME
    Reactions Received
    567
    Trophies
    10
    Posts
    3,268
    • March 28, 2018 at 7:19 PM
    • #10

    You need to look at both P[1] and PR[8] and ensure that all data is filled out. Not just xyzwpr, but also that P[1] has a UF and UT and config string. PR[8] will just have 'F' for the UF and UT values.

    Also in one post you were using INC. Do not do this. You are replacing the function of INC with the Tool Offset.

  • ashwinmudigonda
    Trophies
    3
    Posts
    43
    • March 28, 2018 at 7:23 PM
    • #11

    I was trying to set the P[1] variable's components, but could not figure out how to. Under the REGISTER _ _ = _ _ I couldn't find an option to set a P variable.

    I figured that about the INC and was going to remove it.

  • HawkME
    Reactions Received
    567
    Trophies
    10
    Posts
    3,268
    • March 28, 2018 at 7:31 PM
    • #12

    You don't set points programmatically. You just jog and touch up the point, or cursor over P[1] and press the 'position' F-key and directly enter. I would recommend jogging it close to where you want and touching up P[1] first, then modify with direct entry if needed. When you touch up it will fill out all data including the current UF and UT.

  • ashwinmudigonda
    Trophies
    3
    Posts
    43
    • March 28, 2018 at 9:12 PM
    • #13

    But these are dynamic points, not fixed.

    I have a part. I compute the a pose above the part. And from there I want to explore in the tool frame by an offset.

    So I cannot teach a P[1] position.

    I changed it to

    PR[8,0]=0
    ..
    PR[8,3]=-25
    ..
    PR[8,6]=0

    L PR[1] 50mm/sec FINE Tool_Offset,PR[8]

    And now it goes in the tool frame, but it goes to PR[1] which is the pick point.

  • Nation
    Typical Robot Error
    Reactions Received
    522
    Trophies
    9
    Posts
    1,900
    • March 28, 2018 at 10:08 PM
    • #14

    This would move in tool from wherever the robot currently is.

    Code
    !Current Position
    PR[99]=LPOS;
    !Make sure the tool offset is in XYZWPR
    PR[100]=LPOS;
    !Zero it
    PR[100]=PR[100]-PR[100]
    !100 mm move in tool -Z
    PR[100,3] = (-100)
    L PR[99] 50mm/sec FINE Tool_Offset,PR[100]

    Check out the Fanuc position converter I wrote here! Now open source!

    Check out my example Fanuc Ethernet/IP Explicit Messaging program here!

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