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

OFFSET in KR C4

  • BOTja
  • June 16, 2023 at 11:33 AM
  • Thread is Resolved
  • BOTja
    Reactions Received
    1
    Trophies
    2
    Posts
    36
    • June 16, 2023 at 11:33 AM
    • #1

    I have to apply an offset equal to the thickness of a sheet for a destacker, and I'm a bit confused on how the offset affects the data.

    I did a bit of research and found that offsets are made like this:

    Code
    PTP {X 0, Y 0, Z OFFSET, A 0, B 0, C 0}:P1

    But I'm not sure if that will change the data of P1 (modify the Z value) or just make the movement with that offset and nothing else.

    If that will change the data of P1, I will have to use a copy of P1 and add the offset every time the robot picks a sheet, but I'm not 100% sure on how to do that. My try would be this:

    Code
    ;INI to start from the origen
    P1_OFFS = P1
    
    ;Every time a sheet is picked
    PTP {X 0, Y 0, Z OFFSET, A 0, B 0, C 0}:P1_OFFS
    
    ;OFFSET WILL BE LIKE 1.2mm

    If the data is not modified, I will just substract 1.2mm to that offset variable and it will go 1.2mm lower each time.

    If the data is modified, I will modify the copy that will "restart" when a new stack is placed.

    I can't test it, I don't have the robot and I have to send the changes on the code so they can test it, so I want to be as sure as possible in everything that I can.

    Thanks for reading.

  • Fubini
    Reactions Received
    278
    Trophies
    9
    Posts
    1,886
    • June 16, 2023 at 12:32 PM
    • #2

    First of all one of the most often made mistakes. You can not use variables inside the aggregates (everthing between curly brackets). So

    Code
    PTP {X 0, Y 0, Z OFFSET, A 0, B 0, C 0}:P1

    will not work because of the "Z Offset". You need to assign beforehand like this:

    Code
    E6POS SHIFT
    SHIFT.X = 0
    SHIFT.Y = 0
    SHIFT.Z = OFFSET
    SHIFT.A = 0
    SHIFT.B = 0
    SHIFT.C = 0
    PTP SHIFT:P1

    This operation will not modify P1 but you have to think in which coordinate system you want to shift. Should the shift be happening in the base system the upper code is correct. If a shift in the tool system is required you need to change the order to

    Code
    PTP P1:SHIFT

    See also the discussions here

    Post

    Offset a target point

    I have about 30 programs to write with 20 - 30 target points in each program.
    To speed programming I would like to offset my targets points in Tool Frame Z.
    I do this with offsets in Japanese robots.
    what is the command in a Kuka to preform this?
    Example:
    PTP HOME
    PTP p1 offset tool Z 300 mm approach position
    PTP p1 CONT Vel=100 % PDAT27 Tool[1]: Base[3]:1 target position
    PTP p1 offset tool Z 100mm…
    tonygast
    December 11, 2014 at 4:19 PM
    Post

    Behind the scene - geometric operator

    I was looking for the "geometric operator"in this forum and found a lot of problems unsolved.

    Maybe this thread will help to get a better understanding.

    So, let us start:

    robot-forum.com/attachment/37413/

    In this first post just some explanations:

    T01: $BASE (given) : {X 800.0, Y 0.0, Z 1200.0, A 0.0, B 90.0, C 0.0} -> how to convert?

    T12: Pose relative to $BASE (given): {X 300.0, Y 0.0, Z 400, A 0.0, B -90.0, C0.0} -> how to convert?

    T02: Pose relative to K0 (needs to be calculated)

    The geometric…
    MOM
    April 15, 2023 at 1:03 AM

    Fubini

  • BOTja
    Reactions Received
    1
    Trophies
    2
    Posts
    36
    • June 16, 2023 at 12:40 PM
    • #3
    Quote from Fubini

    First of all one of the most often made mistakes. You can not use variables inside the aggregates (everthing between curly brackets). So

    Code
    PTP {X 0, Y 0, Z OFFSET, A 0, B 0, C 0}:P1

    will not work because of the "Z Offset". You need to assign beforehand like this:

    Code
    E6POS SHIFT
    SHIFT.X = 0
    SHIFT.Y = 0
    SHIFT.Z = OFFSET
    SHIFT.A = 0
    SHIFT.B = 0
    SHIFT.C = 0
    PTP SHIFT:P1

    This operation will not modify P1 but you have to think in which coordinate system you want to shift. Should the shift be happening in the base system the upper code is correct. If a shift in the tool system is required you need to change the order to

    Code
    PTP P1:SHIFT

    See also the discussions here

    Post

    Offset a target point

    I have about 30 programs to write with 20 - 30 target points in each program.
    To speed programming I would like to offset my targets points in Tool Frame Z.
    I do this with offsets in Japanese robots.
    what is the command in a Kuka to preform this?
    Example:
    PTP HOME
    PTP p1 offset tool Z 300 mm approach position
    PTP p1 CONT Vel=100 % PDAT27 Tool[1]: Base[3]:1 target position
    PTP p1 offset tool Z 100mm…
    tonygast
    December 11, 2014 at 4:19 PM
    Post

    Behind the scene - geometric operator

    I was looking for the "geometric operator"in this forum and found a lot of problems unsolved.

    Maybe this thread will help to get a better understanding.

    So, let us start:

    robot-forum.com/attachment/37413/

    In this first post just some explanations:

    T01: $BASE (given) : {X 800.0, Y 0.0, Z 1200.0, A 0.0, B 90.0, C 0.0} -> how to convert?

    T12: Pose relative to $BASE (given): {X 300.0, Y 0.0, Z 400, A 0.0, B -90.0, C0.0} -> how to convert?

    T02: Pose relative to K0 (needs to be calculated)

    The geometric…
    MOM
    April 15, 2023 at 1:03 AM

    Fubini

    Thank you so much, I think that's all I needed and, yes, I want to make an offset using the base system, so PTP SHIFT:P1

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

  • Subprogram skips out of Main and shows Errors INTP-105 and MCTL-105

    • TP77
    • August 20, 2022 at 3:08 PM
    • Fanuc Robot Forum
  • KUKA KR C2 write messages to console

    • NoBugsOnlyFeatures
    • March 24, 2021 at 5:38 PM
    • KUKA Robot Forum
  • Understanding of numbers in IOSYS.INI

    • gunigunigogo
    • April 12, 2017 at 5:10 AM
    • KUKA Robot Forum
  • How to get robot to safe space not matter what

    • cat91345
    • June 24, 2022 at 8:32 PM
    • Fanuc Robot Forum
  • Shifted User Frame using Vision

    • diey
    • April 26, 2022 at 4:18 AM
    • Fanuc Robot Forum
  • KRL: define struc with array struc

    • irobot
    • July 7, 2014 at 10:05 AM
    • KUKA Robot Forum
  • IOSYS DI/DO changes

    • sasi1922
    • July 12, 2021 at 3:53 PM
    • KUKA Robot Forum
  • Understanding IOSYS

    • Joe_vlc84
    • February 12, 2021 at 12:41 PM
    • KUKA Robot Forum

Tags

  • Offset
  • KRC 4
  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