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. Yaskawa Motoman 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 move the tool to the desired height

  • Jiial
  • February 10, 2025 at 2:11 PM
  • Thread is Unresolved
  • Jiial
    Posts
    7
    • February 10, 2025 at 2:11 PM
    • #1

    What command can I use to move the robot's tool straight up to the desired height?

  • k1ng
    Posts
    2
    • February 10, 2025 at 2:43 PM
    • #2

    You could do something like this. It reads the current position of the robot, and moves it to a height of -300. Change it depending on your needs.

    I'm using Reltool, since I want to not go straight up, but w/ the current orientation.

    The For-Loop is just to ensure the height is reached, since the Z-Value isn't exactly the height if the tool is at a slope, and with every iteration it gets closer to reaching the desired height.


        FOR HeightReached FROM 1 TO 5 DO
           !
           pTempHeight:=CRobT(\Tool:=tool0\WObj:=wobj0);
           MoveL Reltool(pTempHeight,0,0,(-300+pTempHeight.trans.z)),v1000,fine,tool0\WObj:=wobj0;
           !
       ENDFOR

  • Lemster68
    Reactions Received
    299
    Trophies
    9
    Posts
    2,467
    Blog Articles
    7
    • February 10, 2025 at 2:54 PM
    • #3

    k1ng

    That won't work too well on a Motoman robot. 😬

  • TheKetteringKid
    Reactions Received
    2
    Posts
    7
    • February 10, 2025 at 2:54 PM
    • #4

    You can do this in a macro for moving in T1 or you could add this to a program for running in auto. Make a position register the current position, then change the Z value to your desired height, then move to that position register.


    PR[??]=LPOS

    PR[??,3]=Desired Height

    L PR[??]

  • k1ng
    Posts
    2
    • February 10, 2025 at 2:59 PM
    • #5

    Lemster68 Oh, my mistake. Didn't realize which category the thread was in. :upside_down_face:

  • Lemster68
    Reactions Received
    299
    Trophies
    9
    Posts
    2,467
    Blog Articles
    7
    • February 10, 2025 at 3:01 PM
    • #6

    Does no one pay attention to the subforum of which robot it is?

  • Online
    95devils
    Reactions Received
    233
    Trophies
    8
    Posts
    1,946
    • February 10, 2025 at 6:40 PM
    • #7
    Quote from Lemster68

    Does no one pay attention to the subforum of which robot it is?

    Lemster68


    Did you say something? :face_with_tongue:

    I know a thing or two, because I’ve seen a thing or two. Don't even ask about a third thing. I won't know it.

  • Online
    95devils
    Reactions Received
    233
    Trophies
    8
    Posts
    1,946
    • February 10, 2025 at 6:45 PM
    • #8
    Quote from TheKetteringKid

    You can do this in a macro for moving in T1 or you could add this to a program for running in auto. Make a position register the current position, then change the Z value to your desired height, then move to that position register.


    PR[??]=LPOS

    PR[??,3]=Desired Height

    L PR[??]

    This ain’t a Fanuc sub forum. Use the IMOV instruction. Populate manually or set a Position Variable with amount and direction. If you want to move straight with respect to the tool add the TF coordinate tag to the instruction.

    I know a thing or two, because I’ve seen a thing or two. Don't even ask about a third thing. I won't know it.

  • WattUp
    Reactions Received
    7
    Posts
    96
    • February 10, 2025 at 8:30 PM
    • #9

    If you want to move up 300mm every time, just use an IMOV with a PVAR set to Z 300.
    If you want to move up to a set height every time no matter where you are, you will need to read current position to a PVAR, edit Z to equal the new height, then move to that PVAR.

  • Robodoc
    Reactions Received
    56
    Trophies
    7
    Posts
    1,059
    • February 15, 2025 at 2:22 PM
    • #10

    shift on the tool frame.

    Just my $0.02

    Robodoc

  • Farhan
    Trophies
    1
    Posts
    26
    • March 8, 2025 at 5:08 PM
    • #11

    Hello,

    if i have this code. and i want the robot move +Z axis 5cm, how the code could be?

    /JOB
    //NAME HOME
    //POS
    ///NPOS 1,0,0,0,0,0
    ///TOOL 0
    ///POSTYPE PULSE
    ///PULSE
    C00000=92160,0,-103424,-206848,0,0,0
    //INST
    ///DATE 2025/02/28 14:59
    ///COMM Generated using RoboDK
    ///ATTR SC,RW
    ///GROUP1 RB1
    NOP
    'Program generated by RoboDK v
    '5.8.0 for Yaskawa SIA10D on 2
    '8/02/2025 14:59:52
    'Using nominal kinematics.
    'Using Posisi 10x10 (targets w
    'rt base):
    '28.5,561.0,-128.0,0.0,0.0,0.0
    'Tool 2 (Tool Snap 2) should b
    'e close to:
    '132.5,0.0,63.5,90.0,0.0,90.0
    MOVJ C00000 VJ=10.00
    END

  • Robodoc
    Reactions Received
    56
    Trophies
    7
    Posts
    1,059
    • March 9, 2025 at 2:06 PM
    • #12

    The code depends on if you want to shift all the time or only some times. If you want to shift all the time use the parallel shift utility to shift the line or lines in your program.

    Robodoc

  • Farhan
    Trophies
    1
    Posts
    26
    • March 9, 2025 at 5:35 PM
    • #13

    how about if i just want to shift some time?

  • Online
    95devils
    Reactions Received
    233
    Trophies
    8
    Posts
    1,946
    • March 9, 2025 at 10:17 PM
    • #14

    Either manually or programmatically set up a position variable for direction and amount. Use the SFTON and SFTOF instructions.

    I know a thing or two, because I’ve seen a thing or two. Don't even ask about a third thing. I won't know it.

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