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. Nachi Robots
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

Nachi Robot Offset Move

  • kevilay
  • October 21, 2021 at 2:44 PM
  • Thread is Unresolved
  • kevilay
    Reactions Received
    1
    Trophies
    3
    Posts
    134
    • October 21, 2021 at 2:44 PM
    • #1

    Hey guys,

    I am workin with my first nachi robot and am looking to write an offset program. Normally when programming robots I will read in my current position, then apply either apply a set z height that I know is clear to the current position or apply a static z offset. Then go to the same position that it was left at (random position in travel) then apply the offset and it will move up to a safe height, then from there it can go home. What does this look like in nachi? I am currently attempting to do this using XYZ shift FN58 but even with it all being linear moves when I apply the shift the robot will move up but it doesnt maintain the pitch/roll It moves the TCP straight up, but also rolls it quite a bit. I have tried this using world and TCP frames. Please let me know if you have any suggestions.


    Thanks,

    Kevin

  • bsrr
    Reactions Received
    11
    Trophies
    3
    Posts
    148
    • October 22, 2021 at 2:46 AM
    • #2

    Example to Home the robot as below

    Code
    DIM Position[2] As POSITION 'FN801-DEFINE Variable Position
    MOVEX A=1,AC=0,SM=0,M1J,P,P*,R=20.0,H=2,MS 'Move to Current position
    GETPOS 0,1,Position[1],0,1 ' USE FN 822 -Get Current Machine cordinate position 
    OPEPOS 0,Position[1],V1!,0,0' USE FN 826- Extract X,Y,Z,Roll,pitch,yaw into real variables V1 to V6

    Current position of (Z) available in V3!.You can then use IF statements to compare V3! and then MOVE robot safely to Home

  • kevilay
    Reactions Received
    1
    Trophies
    3
    Posts
    134
    • October 25, 2021 at 2:31 PM
    • #3
    Quote from bsrr

    Example to Home the robot as below

    Code
    DIM Position[2] As POSITION 'FN801-DEFINE Variable Position
    MOVEX A=1,AC=0,SM=0,M1J,P,P*,R=20.0,H=2,MS 'Move to Current position
    GETPOS 0,1,Position[1],0,1 ' USE FN 822 -Get Current Machine cordinate position 
    OPEPOS 0,Position[1],V1!,0,0' USE FN 826- Extract X,Y,Z,Roll,pitch,yaw into real variables V1 to V6

    Current position of (Z) available in V3!.You can then use IF statements to compare V3! and then MOVE robot safely to Home

    I am a little confused by this. I am not exactly sure what the movex does. If in my case I would try to move to a z of a fixed 500 how would I do the final move with the current position applied? I think I need 1 more line but am struggling with getting it working.

  • bsrr
    Reactions Received
    11
    Trophies
    3
    Posts
    148
    • October 26, 2021 at 12:13 AM
    • #4
    Code
    USE 1
    DIM Position[2] As POSITION     
    MOVEX A=1,AC=0,SM=0,M1J,P,P*,R=20.0,H=1,MS    
    INH
    GETPOS 0,1,Position[1],1,1    
    OPEPOS 0,Position[1],V1!,0,0
    V3! = V3!+500
    OPEPOS 0,Position[1],V1!,0,1
    POS2POSE 0,Position[1],1,1,P1
    MOVEX A=1,AC=0,SM=0,M1J,L,P1,R=50.0,H=1,MS
    END
    Display More

    Above ASCII code need to be compiled

    MOVEX and Pose file details are available in the Robot Language Manual.

  • kevilay
    Reactions Received
    1
    Trophies
    3
    Posts
    134
    • October 27, 2021 at 2:13 PM
    • #5

    Thank you for the help. This is now working.

  • dkeranen
    Reactions Received
    1
    Trophies
    2
    Posts
    11
    • January 13, 2023 at 6:49 PM
    • #6

    Hi BSRR,

    Thanks for the code above. I appreciate you taking the time to help out.

    I don't have the manual that describes those functions in your sample code above. Would you be able to list the variables and what they do for the functions below? Also is there a manual that lists and describes all of these functions. I have the handling and robot language manuals.

    DIM

    GETPOS

    OPEPOS

    POS2POSE

  • bsrr
    Reactions Received
    11
    Trophies
    3
    Posts
    148
    • January 14, 2023 at 2:39 AM
    • #7
    Quote from dkeranen

    DIM

    GETPOS

    OPEPOS

    POS2POSE

    The above Function descriptions are available in the Command reference manual TFDEN-092

  • CharlesWar
    Trophies
    2
    Posts
    4
    • February 28, 2023 at 4:55 PM
    • #8

    I Find this

    FN801 - DIM

    FN645 - MOVEX

    FN310 - INH

    FN822 - GETPOS

    FN826 - OPEPOS

    FN638 - ADD REAL VARIABLE

    FN809 - POS2POSE

    You can review the manual in the Teach of the robot

    I will try modify with it next week.

    regards

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 Issue: Kuka KR 150.2

    • technician820
    • March 29, 2019 at 9:47 PM
    • KUKA Robot Forum
  • Frame Transforms

    • atomic_robo
    • June 28, 2018 at 6:55 PM
    • KUKA Robot Forum

Tags

  • Offset
  • nachi
  • linear motion
  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