AddOffsetRobotPointToList

Hello,

 I do not understand the AddOffsetRobotPointToList using method, my application is that I want to calculate a new robot point based on a reference point for replacing the picking point, because product picking position is different.

 for example: reference point(see attachment 'Picking_Position_value')  the X = 78.78, Y = 341.3.  I want to calculate it to X = 138.78, Y = 341.3 via AddOffsetRobotPointToList method, but the result is not what I expect. (see attachment Pincking_Position_value_after_adding_offset and PLC_Code).

 I refered to the document, but do not understand what the 'the robot point addressed by BaseIndex is considered the origin of a new reference coordinate system' meaning.

 Hardware : Staubli scara 4 axis

thank you.

PLC_Code.png
39.24KB
Pincking_Position_value_after_adding_offset.png
222.27KB
Picking_Position_value.png
85.41KB
Best reply by Thorsten_Brach

If you have set all values of the tool to 0, then your tool is equal to the flange.

With stäubli robots, it is common to set up the tool so that the working direction of the tool is the the Z axis.
Then you usually just work with a Z-offset to approach to a workpiece or moving away from it.

I made a short video of how the whole thing behaves.

The blue arrow is the Z-axis - once from the flange and once from a correct configured tool....

If I select the tool and drive in Z-direction, then you can see that the tool moves only in Z-direction,
but the robot has to interpolate all axes accordingly.


You would have to tilt your tool 90 degrees and compensate the twist to the flange
and adjust the center of the gripper via X and Y.

Then you can easily work with tool offsets in your program.
Without a correctly configured tool you can not work with the tooloffsets - the result will not be satisfactory.

2024-10-11_11h24_36.mp4
2.08MB
View original
4 replies
Resolved