{"id":2699,"date":"2021-08-22T06:35:10","date_gmt":"2021-08-22T06:35:10","guid":{"rendered":"https:\/\/www.zacobria.com\/universal-robots-knowledge-base-tech-support-forum-hints-tips-cb2-cb3\/?page_id=2699"},"modified":"2023-01-21T05:47:15","modified_gmt":"2023-01-21T05:47:15","slug":"x-y-z-rx-ry-rz-position","status":"publish","type":"page","link":"https:\/\/www.zacobria.com\/universal-robots-knowledge-base-tech-support-forum-hints-tips-cb2-cb3\/index.php\/x-y-z-rx-ry-rz-position\/","title":{"rendered":"X-Y-Z-Rx-Ry-Rz-position."},"content":{"rendered":"\n<p><a title=\"Visit Zacobria &amp; Webshop &amp; Universal-Robots solutions.\" href=\"https:\/\/www.zacobria.com\/automation\/webshop\/\">Visit Zacobria Webshop<\/a><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">X, Y and Z positions and angle positions.<\/h1>\n\n\n\n<p>The UR robot is a 6 axis robot so the calculation of the robot coordinates is a complex equation that involves rotation vectors as well. It might seems simple to say \u201cI just want the robot to go to a X, Y Z position &#8211; yes but then there are many different Pose the robot can have at that exact &nbsp;X, Y, Z position \u2013 for example should the head be from the left \u2013 or right \u2013 or in an angle or upside down from below \u2013 they can all reach the exact same X, Y Z position. Therefore the angle or rotation of the tool head can be different and therefore thrown into the equation.<\/p>\n\n\n\n<p>For the better understanding then focus on the X, Y and Z position first.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_1\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_1.jpg\" alt=\"universal_robots_zacobria_xyz_position_1\" class=\"wp-image-556\"\/><\/a><\/figure>\n\n\n\n<p>Just consider the robot in an X, Y, and Z coordinate system.<\/p>\n\n\n\n<p>This shows the robot at X = 0 mm, Y = 430 mm and Z = 400 mm. Easy to see in the coordinate system. And this can also be seen on the Information window in the Move screen.<\/p>\n\n\n\n<p>In this case the X, Y, Z coordinates is shown with the base as reference.<\/p>\n\n\n\n<p>Don\u2019t worry too much about the Rx, Ry and Rz yet \u2013 they will be explained later. But it is important to understand and to sink in that&nbsp; &#8211; the X, Y and Z coordinates are seen from the Base position in this case (can actually be changed, but that will complicated the explanation) \u2013 whereas the Rotation of the Tool head is seen from the tool head position itself. This is paramount to understand otherwise it is very easy to get confused.<\/p>\n\n\n\n<p>Maybe consider your arm \u2013 the finger tip position is the X, Y and Z coordinates from your body \u2013 whereas the Rotation of your wrist is the Rx, Ry and Rz \u2013 with the X, Y and Z axis shifted to your fingertip.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">X, Y, Z vector versus Joint angles.<\/h2>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_2\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_2.jpg\" alt=\"universal_robots_zacobria_xyz_position_2\" class=\"wp-image-557\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_5\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_5.jpg\" alt=\"universal_robots_zacobria_xyz_position_5\" class=\"wp-image-563\"\/><\/a><\/figure>\n\n\n\n<p>This part of the screen shows the Joint angle of each joint. This does not directly&nbsp;tell where the robot head is position in the space. Note each is expressed in degrees.<\/p>\n\n\n\n<p>Each joint can turn + 360 degrees and -360 degrees i.e. a total of 720 degrees.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_6\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_6.jpg\" alt=\"universal_robots_zacobria_xyz_position_6\" class=\"wp-image-564\"\/><\/a><\/figure>\n\n\n\n<p>The part of the screen shows the tool Position as a 6 axis vector with the X, Y, Z&nbsp;position in mm seen from the base as&nbsp;reference.<\/p>\n\n\n\n<p>Whereas the tool head rotation is seen as&nbsp;angles expressed in Radians as seen from the tool head point as reference.<\/p>\n\n\n\n<p>As seen above the Joint angles are shown in degrees, but this could also be expressed in Radians. And this is important to notice because later when used in script programming \u2013 these joint angles has to be provided in Radians.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Formula for converting Radians to degrees on UR and degrees to Radians.<\/h3>\n\n\n\n<p>(Radian \/ 3.14) x 180 = The Degree shown in the Move Screen.<\/p>\n\n\n\n<p>3.14 x (The Degree shown in the Move Screen) \/ 180 = Radian<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">RX, RY and RZ rotation vector movement.<\/h1>\n\n\n\n<p>The position of RX, RY and RZ is a Rotation Vector based on the physics of the robot i.e. the length of the arms and joints and the rotation of the joints.<\/p>\n\n\n\n<p>The calculation of the tool head position is equations where these factors are a part. The normal tool head position facing down is 180 degree from the origin of these vectors. So to illustrate the changes to RX, RY and RZ then rotate the tool head to face straight up so all RX, RY and RZ can be 0.<\/p>\n\n\n\n<p>Put the robot in this pose i.e. X = 0, Y = 400 mm, Z = 600 mm, RX = 0, RY = 0, RZ =0<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_7\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_7.jpg\" alt=\"universal_robots_zacobria_xyz_position_7\" class=\"wp-image-566\"\/><\/a><\/figure>\n\n\n\n<p>Robot Pose.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_8\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_8.jpg\" alt=\"universal_robots_zacobria_xyz_position_8\" class=\"wp-image-567\"\/><\/a><\/figure>\n\n\n\n<p>The RX, RY and RZ can be changed&nbsp;Individually by these controls.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_9\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_9.jpg\" alt=\"universal_robots_zacobria_xyz_position_9\" class=\"wp-image-568\"\/><\/a><\/figure>\n\n\n\n<p>The RX, RY and RZ can&nbsp;also be changed by key in the value of the desired&nbsp;angle.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_10\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_10.jpg\" alt=\"universal_robots_zacobria_xyz_position_10\" class=\"wp-image-569\"\/><\/a><\/figure>\n\n\n\n<p>Current value for RX.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_11\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_11.jpg\" alt=\"universal_robots_zacobria_xyz_position_11\" class=\"wp-image-570\"\/><\/a><\/figure>\n\n\n\n<p>Type in the desired angle in radians&nbsp;and click OK.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_12\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_12.jpg\" alt=\"universal_robots_zacobria_xyz_position_12\" class=\"wp-image-571\"\/><\/a><\/figure>\n\n\n\n<p>Press Auto the perform the move.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_13\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_13.jpg\" alt=\"universal_robots_zacobria_xyz_position_13\" class=\"wp-image-572\"\/><\/a><\/figure>\n\n\n\n<p>The robot tool head has turned around the X axis.<\/p>\n\n\n\n<p>Using the Arrow keys for the tool head.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_14\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_14.jpg\" alt=\"universal_robots_zacobria_xyz_position_14\" class=\"wp-image-574\"\/><\/a><\/figure>\n\n\n\n<p>Set the robot in position X = 0, Y = 400 mm, Z = 600 mm, RX = 0, RY = 0, RZ =0<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_15\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_15.jpg\" alt=\"universal_robots_zacobria_xyz_position_15\" class=\"wp-image-575\"\/><\/a><\/figure>\n\n\n\n<p>Press one of the X rotation arrows.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_16\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_16.jpg\" alt=\"universal_robots_zacobria_xyz_position_16\" class=\"wp-image-576\"\/><\/a><\/figure>\n\n\n\n<p>The robot has turned around the X axis<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_17\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_17.jpg\" alt=\"universal_robots_zacobria_xyz_position_17\" class=\"wp-image-577\"\/><\/a><\/figure>\n\n\n\n<p>Set the robot in position X = 0, Y = 400 mm, Z = 600 mm, RX = 0, RY = 0, RZ =0<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_18\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_18.jpg\" alt=\"universal_robots_zacobria_xyz_position_18\" class=\"wp-image-578\"\/><\/a><\/figure>\n\n\n\n<p>Press one of the Y rotation arrows.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_19\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_19.jpg\" alt=\"universal_robots_zacobria_xyz_position_19\" class=\"wp-image-579\"\/><\/a><\/figure>\n\n\n\n<p>The robot has turned around the Y axis<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_20\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_20.jpg\" alt=\"universal_robots_zacobria_xyz_position_20\" class=\"wp-image-580\"\/><\/a><\/figure>\n\n\n\n<p>Set the robot in position X = 0, Y = 400 mm, Z = 600 mm, RX = 0, RY = 0, RZ =0<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_21\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_21.jpg\" alt=\"universal_robots_zacobria_xyz_position_21\" class=\"wp-image-581\"\/><\/a><\/figure>\n\n\n\n<p>Press one of the Z rotation arrows.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_22\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_22.jpg\" alt=\"universal_robots_zacobria_xyz_position_22\" class=\"wp-image-583\"\/><\/a><\/figure>\n\n\n\n<p>The robot has turned around the Z axis (Not easy to see on this graphics,&nbsp;but only the last joint with the connector has turned.<\/p>\n\n\n\n<p>(Better to see on a physical robot).<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_23\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_23.jpg\" alt=\"universal_robots_zacobria_xyz_position_23\" class=\"wp-image-584\"\/><\/a><\/figure>\n\n\n\n<p>When the robot tool head is facing down the RX is turned 180 degree i.e. 3.14 radians.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_24\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_24.jpg\" alt=\"universal_robots_zacobria_xyz_position_24\" class=\"wp-image-585\"\/><\/a><\/figure>\n\n\n\n<p>When the robot head is turned around the Y axis then RX and RZ&nbsp;is changing value because the entire equation involve the 180&nbsp;Degree offset of the tool head.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Move to X, Y, Z, Rx, Ry, Rz position.<\/h2>\n\n\n\n<p>In these examples the Feature is shown from a \u201cBase\u201d perspective i.e. set the Feature to \u201cBase\u201d view.<\/p>\n\n\n\n<p>The X, Y and Z are the position of the robot tool head in mm as in a coordinate system.<\/p>\n\n\n\n<p>Rx, Ry and Rz are the orientation of the Tool head as an angle in Radians around the axis mentioned after the \u201cR\u201d i.e. Rx is the angle around the X axis in Radians.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_25\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_25.jpg\" alt=\"universal_robots_zacobria_xyz_position_25\" class=\"wp-image-587\"\/><\/a><\/figure>\n\n\n\n<p>X = 0 mm, Y = 430 mm, Z = 400 mm<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_26\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_26.jpg\" alt=\"universal_robots_zacobria_xyz_position_26\" class=\"wp-image-588\"\/><\/a><\/figure>\n\n\n\n<p>X = 0 mm &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Y = 430 mm &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Z = 400 mm<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Turn the robot tool around an Axis.<\/h3>\n\n\n\n<p>Observe how there is a Red, Green and Blue line below the robot graphics. The Red line illustrates the X axis, the Green line illustrates the Y axis and the blue line illustrates the Z axis. These entire Axes are seen from the tool head point.<\/p>\n\n\n\n<p>On the left side of the screen under \u201cMove Tool\u201d is the same colour used on the arrows to indicate which axis is moved.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_27\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_27.jpg\" alt=\"universal_robots_zacobria_xyz_position_27\" class=\"wp-image-593\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_28\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_28.jpg\" alt=\"universal_robots_zacobria_xyz_position_28\" class=\"wp-image-594\"\/><\/a><\/figure>\n\n\n\n<p>Pay attention to these arrows.<br>Focus now only on these arrows and press the Red arrow on the left side.<\/p>\n\n\n\n<p>Turn the Tool head around the X axis (Rx).<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_29\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_29.jpg\" alt=\"universal_robots_zacobria_xyz_position_29\" class=\"wp-image-595\"\/><\/a><\/figure>\n\n\n\n<p>Turn the Tool head back around the X axis (Rx).<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_30\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_30.jpg\" alt=\"universal_robots_zacobria_xyz_position_30\" class=\"wp-image-596\"\/><\/a><\/figure>\n\n\n\n<p>Notice how the robot turn the tool head along the X axis.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_31\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_31.jpg\" alt=\"universal_robots_zacobria_xyz_position_31\" class=\"wp-image-597\"\/><\/a><\/figure>\n\n\n\n<p>Turn the Tool head back around the X axis (Rx)<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_32\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_32.jpg\" alt=\"universal_robots_zacobria_xyz_position_32\" class=\"wp-image-598\"\/><\/a><\/figure>\n\n\n\n<p>Notice how the robot turn the tool head along the X axis.<\/p>\n\n\n\n<p>Turn the Tool head around the Y axis (Ry).<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_33\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_33.jpg\" alt=\"universal_robots_zacobria_xyz_position_33\" class=\"wp-image-599\"\/><\/a><\/figure>\n\n\n\n<p>Turn the Tool head back around the Y axis (Ry).<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_34\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_34.jpg\" alt=\"universal_robots_zacobria_xyz_position_34\" class=\"wp-image-600\"\/><\/a><\/figure>\n\n\n\n<p>Notice how the robot turn the tool head along the Y axis.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_35\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_35.jpg\" alt=\"universal_robots_zacobria_xyz_position_35\" class=\"wp-image-601\"\/><\/a><\/figure>\n\n\n\n<p>Turn the Tool head back around the Y axis (Ry).<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_36\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_36.jpg\" alt=\"universal_robots_zacobria_xyz_position_36\" class=\"wp-image-602\"\/><\/a><\/figure>\n\n\n\n<p>Notice how the robot turn the tool head along the Y axis.<\/p>\n\n\n\n<p>Turn the Tool head around the Z axis (Rz).<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_37\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_37.jpg\" alt=\"universal_robots_zacobria_xyz_position_37\" class=\"wp-image-603\"\/><\/a><\/figure>\n\n\n\n<p>Turn the Tool head back around the Z axis (Rz).<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_38\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_38.jpg\" alt=\"universal_robots_zacobria_xyz_position_38\" class=\"wp-image-604\"\/><\/a><\/figure>\n\n\n\n<p>Notice how the robot turn the tool head along the Z axis.<\/p>\n\n\n\n<p>(Not easy to see on the graphics because only the last joint turns).<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_39\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_39.jpg\" alt=\"universal_robots_zacobria_xyz_position_39\" class=\"wp-image-605\"\/><\/a><\/figure>\n\n\n\n<p>Turn the Tool head back around the Z axis (Rz).<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_40\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_40.jpg\" alt=\"universal_robots_zacobria_xyz_position_40\" class=\"wp-image-606\"\/><\/a><\/figure>\n\n\n\n<p>Notice how the robot turn the tool head along the Z axis.<\/p>\n\n\n\n<p>(Not easy to see on the graphics because only the last joint turns).<\/p>\n\n\n\n<p>The X, Y, Z, Rx, Ry, Rz will change when the tool head is manipulated according to the physics of the robots arms and body structure.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Turn the robot tool around the Y axis (Ry).<\/h3>\n\n\n\n<p>Instead of using the arrows as manipulators, it is also possible to key in the angle of the tool head position. This is easiest to understand when the robot is aligned along the X and the Y axis. In first example the robot is aligned along the Y axis i.e. X = 0.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_41\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_41.jpg\" alt=\"universal_robots_zacobria_xyz_position_41\" class=\"wp-image-608\"\/><\/a><\/figure>\n\n\n\n<p>Press the Ry bar. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Change from 3.14 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; to 2.00 Radians.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_42\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_42.jpg\" alt=\"universal_robots_zacobria_xyz_position_42\" class=\"wp-image-610\"\/><\/a><\/figure>\n\n\n\n<p>Press \u201cAuto\u201d button to perform the move. Ry now changed to 2.00 Radians.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_43\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_43.jpg\" alt=\"universal_robots_zacobria_xyz_position_43\" class=\"wp-image-611\"\/><\/a><\/figure>\n\n\n\n<p>Robot at Ry = 3.14 Rad. &nbsp; &nbsp;Robot at Ry = 2.00 Rad. &nbsp; Robot at Ry = 2.00 Rad<\/p>\n\n\n\n<p><br>&nbsp;Change the robot back to Ry = 3.14 Radians.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_44\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_44.jpg\" alt=\"universal_robots_zacobria_xyz_position_44\" class=\"wp-image-612\"\/><\/a><\/figure>\n\n\n\n<p>Press the Ry button and set Ry to 3.14.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_45\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_45.jpg\" alt=\"universal_robots_zacobria_xyz_position_45\" class=\"wp-image-613\"\/><\/a><\/figure>\n\n\n\n<p>Try just a small change e.g. set the Ry to 3.1. Notice how the robot did the move immediately without the need for pressing \u201cAuto\u201d because of the small change.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_46\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_46.jpg\" alt=\"universal_robots_zacobria_xyz_position_46\" class=\"wp-image-614\"\/><\/a><\/figure>\n\n\n\n<p>Robot now at Ry = 3.1 Radian (Toolhead slightly tilted).<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_47\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_47.jpg\" alt=\"universal_robots_zacobria_xyz_position_47\" class=\"wp-image-615\"\/><\/a><\/figure>\n\n\n\n<p>Set the robot back to Ry = 3.14.<\/p>\n\n\n\n<p>Next example will show the robot aligned along the X axis i.e. Y = 0. Change the Robot to the Y = 0 position.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_48\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_48.jpg\" alt=\"universal_robots_zacobria_xyz_position_48\" class=\"wp-image-616\"\/><\/a><\/figure>\n\n\n\n<p>Use the \u201cBase\u201d arrow bar to move the robot over to the Y = 0 position.<\/p>\n\n\n\n<p>The robot swing over the position the toll head at the X axis i.e. Y = 0.<\/p>\n\n\n\n<p>Notice how the Rx and Ry also change along the way because the tool head also move.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_49\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_49.jpg\" alt=\"universal_robots_zacobria_xyz_position_49\" class=\"wp-image-617\"\/><\/a><\/figure>\n\n\n\n<p>Change the Ry = 0.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_50\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_50.jpg\" alt=\"universal_robots_zacobria_xyz_position_50\" class=\"wp-image-619\"\/><\/a><\/figure>\n\n\n\n<p>Change the Rx = 3.14<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_51\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_51.jpg\" alt=\"universal_robots_zacobria_xyz_position_51\" class=\"wp-image-620\"\/><\/a><\/figure>\n\n\n\n<p>Robot at Y = 0 and the tool head align with the X axis.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_52\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_52.jpg\" alt=\"universal_robots_zacobria_xyz_position_52\" class=\"wp-image-621\"\/><\/a><\/figure>\n\n\n\n<p>Press the Rx bar. &nbsp; &nbsp;Change the Rx = 2.00. &nbsp; &nbsp; &nbsp; Press \u201cAuto\u201d to perform move.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_53\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_53.jpg\" alt=\"universal_robots_zacobria_xyz_position_53\" class=\"wp-image-623\"\/><\/a><\/figure>\n\n\n\n<p>The tool head has now turned around the X axis.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_54\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_54.jpg\" alt=\"universal_robots_zacobria_xyz_position_54\" class=\"wp-image-624\"\/><\/a><\/figure>\n\n\n\n<p>Rotated around the X axis.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Move the Robot by X, Y, Z positions via Script.<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Move the tool head around the Y axis.<\/h4>\n\n\n\n<p>In this example the Robot is at X = 0, Y = 430 and Z = 400 with the tool head at Ry = 3.14 Radians.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_55\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_55.jpg\" alt=\"universal_robots_zacobria_xyz_position_55\" class=\"wp-image-625\"\/><\/a><\/figure>\n\n\n\n<p>Then this script command is send to the Robot.<\/p>\n\n\n\n<p>s.send (&#8220;movej([-1.8263219632699421, -1.7319098497843228, 1.7991931614989278, -1.6389153321983159, -1.5723347175650684, 2.8868157860256334], a=1.3962634015954636, v=1.0471975511965976)&#8221; + &#8220;\\n&#8221;)<\/p>\n\n\n\n<p>time.sleep(10)<\/p>\n\n\n\n<p>s.send (&#8220;movej(<strong>p<\/strong>[0.0000000000000000, 0.4300000000000000, 0.4000000000000000, 0.0000000000000000, 2.0000000000000000, 0.0000000000000000], a=1.3962634015954636, v=1.0471975511965976)&#8221; + &#8220;\\n&#8221;)<\/p>\n\n\n\n<p>Note:<\/p>\n\n\n\n<p>The \u201cp\u201d (here highlighted) in front of the parameter change from Joint position move to a Pose move.<\/p>\n\n\n\n<p>In this example the tool head is moved from Radian 3.14 to Radian 2.0 around the Y axis.<\/p>\n\n\n\n<p>Notice how the X, Y and Z remain the same, but how the RY is changed from 3.14 to 2.00 by the script command below.<\/p>\n\n\n\n<p>Using this description in the Script manual as Inspiration.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_56\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_56.jpg\" alt=\"universal_robots_zacobria_xyz_position_56\" class=\"wp-image-626\"\/><\/a><\/figure>\n\n\n\n<p>Notice hot he Tool head has turned around the Y axis.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_57\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_57.jpg\" alt=\"universal_robots_zacobria_xyz_position_57\" class=\"wp-image-627\"\/><\/a><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Move the tool head along the Y axis.<\/h4>\n\n\n\n<p>It is also possible to move in a direction of an axis. In this example the robot is moved <strong>200 m<\/strong>m in Y axis direction.<\/p>\n\n\n\n<p>s.send (&#8220;movej([-1.8263219632699421, -1.7319098497843228, 1.7991931614989278, -1.6389153321983159, -1.5723347175650684, 2.8868157860256334], a=1.3962634015954636, v=1.0471975511965976)&#8221; + &#8220;\\n&#8221;)<\/p>\n\n\n\n<p>time.sleep(10)<\/p>\n\n\n\n<p>s.send (&#8220;movej(p[0.0000000000000000, <strong>0.4300000000000000<\/strong>, 0.4000000000000000, 0.0000000000000000, 2.0000000000000000, 0.0000000000000000], a=1.3962634015954636, v=1.0471975511965976)&#8221; + &#8220;\\n&#8221;)<\/p>\n\n\n\n<p>time.sleep(10)<\/p>\n\n\n\n<p>s.send (&#8220;movej(p[0.0000000000000000, <strong>0.6300000000000000<\/strong>, 0.4000000000000000, 0.0000000000000000, 2.0000000000000000, 0.0000000000000000], a=1.3962634015954636, v=1.0471975511965976)&#8221; + &#8220;\\n&#8221;)<\/p>\n\n\n\n<p>See the result below<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/x-y-and-z-position\/universal_robots_zacobria_xyz_position_58\/\"><img decoding=\"async\" src=\"http:\/\/www.zacobria.com\/universal-robots-zacobria-forum-hints-tips-how-to\/wp-content\/uploads\/2012\/12\/universal_robots_zacobria_xyz_position_58.jpg\" alt=\"universal_robots_zacobria_xyz_position_58\" class=\"wp-image-628\"\/><\/a><\/figure>\n\n\n\n<p>Complete program for moving the robot 200 mm in Y axis. (Note the change from 0.43000 to 0.63000.<\/p>\n\n\n\n<p><strong># Echo client program<\/strong><br><strong>import socket<\/strong><br><strong>import time<\/strong><br><br><strong>HOST = &#8220;192.168.0.9&#8221;&nbsp;&nbsp;&nbsp; # The remote host<\/strong><br><strong>PORT = 30002&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # The same port as used by the server<\/strong><br><strong>s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)<\/strong><br><strong>s.connect((HOST, PORT))<\/strong><br><strong>s.send (&#8220;set_analog_inputrange(0, 0)&#8221; + &#8220;\\n&#8221;)<\/strong><br><strong>data = s.recv(1024)<\/strong><br><strong>s.close()<\/strong><br><strong>s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)<\/strong><br><strong>s.connect((HOST, PORT))<\/strong><br><strong>s.send (&#8220;set_analog_inputrange(1, 0)&#8221; + &#8220;\\n&#8221;)<\/strong><br><strong>data = s.recv(1024)<\/strong><br><strong>s.close()<\/strong><br><strong>s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)<\/strong><br><strong>s.connect((HOST, PORT))<\/strong><br><strong>s.send (&#8220;set_analog_outputdomain(0, 0)&#8221; + &#8220;\\n&#8221;)<\/strong><br><strong>data = s.recv(1024)<\/strong><br><strong>s.close()<\/strong><br><strong>s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)<\/strong><br><strong>s.connect((HOST, PORT))<\/strong><br><strong>s.send (&#8220;set_analog_outputdomain(1, 0)&#8221; + &#8220;\\n&#8221;)<\/strong><br><strong>data = s.recv(1024)<\/strong><br><strong>s.close()<\/strong><br><strong>s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)<\/strong><br><strong>s.connect((HOST, PORT))<\/strong><br><strong>s.send (&#8220;set_tool_voltage(24)&#8221; + &#8220;\\n&#8221;)<\/strong><br><strong>data = s.recv(1024)<\/strong><br><strong>s.close()<\/strong><br><strong>s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)<\/strong><br><strong>s.connect((HOST, PORT))<\/strong><br><strong>s.send (&#8220;set_runstate_outputs([])&#8221; + &#8220;\\n&#8221;)<\/strong><br><strong>data = s.recv(1024)<\/strong><br><strong>s.close()<\/strong><br><strong>s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)<\/strong><br><strong>s.connect((HOST, PORT))<\/strong><br><strong>s.send (&#8220;set_payload(0.0)&#8221; + &#8220;\\n&#8221;)<\/strong><br><strong>data = s.recv(1024)<\/strong><br><strong>s.close()<\/strong><br><strong>s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)<\/strong><br><strong>s.connect((HOST, PORT))<\/strong><br><strong>s.send (&#8220;set_gravity([0.0, 0.0, 9.82])&#8221; + &#8220;\\n&#8221;)<\/strong><br><strong>data = s.recv(1024)<\/strong><br><strong>s.close()<\/strong><br><strong>s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)<\/strong><br><strong>s.connect((HOST, PORT))<\/strong><br><br><strong>s.send (&#8220;movej([-1.8263219632699421, -1.7319098497843228, 1.7991931614989278, -1.6389153321983159, -1.5723347175650684, 2.8868157860256334], a=1.3962634015954636, v=1.0471975511965976)&#8221; + &#8220;\\n&#8221;)<\/strong><br><br><strong>time.sleep(10)<\/strong><br><strong>s.send (&#8220;movej(p[0.0000000000000000, 0.4300000000000000, 0.4000000000000000, 0.0000000000000000, 2.0000000000000000, 0.0000000000000000], a=1.3962634015954636, v=1.0471975511965976)&#8221; + &#8220;\\n&#8221;)<\/strong><br><br><strong>time.sleep(10)<\/strong><br><strong>s.send (&#8220;movej(p[0.0000000000000000, 0.6300000000000000, 0.4000000000000000, 0.0000000000000000, 2.0000000000000000, 0.0000000000000000], a=1.3962634015954636, v=1.0471975511965976)&#8221; + &#8220;\\n&#8221;)<\/strong><br><br><strong>data = s.recv(1024)<\/strong><br><strong>s.close()<\/strong><br><strong>print (&#8220;Received&#8221;, repr(data))<\/strong><\/p>\n\n\n\n<p><strong>Disclaimer:<\/strong> While the Zacobria Pte. Ltd. believes that information and guidance provided is correct, parties must rely upon their skill and judgement when making use of them. Zacobria Pte. Ltd. assumes no liability for loss or damage caused by error or omission, whether such an error or omission is the result of negligence or any other cause. Where reference is made to legislation it is not to be considered as legal advice. Any and all such liability is disclaimed.<\/p>\n\n\n\n<p>If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.<\/p>\n\n\n\n<p>Author:<br><a href=\"https:\/\/plus.google.com\/u\/0\/116832821661215606670?rel=author\">By Zacobria Lars Skovsgaard<\/a><br>Accredited 2015-2018 Universal Robots support Centre and Forum.<br><br><br><\/p>\n\n\n\n<p><a href=\"https:\/\/twitter.com\/share\">Tweet<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/twitter.com\/zacobria\">Follow @zacobria<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Visit Zacobria Webshop X, Y and Z positions and angle positions. The UR robot is a 6 axis robot so the calculation of the robot coordinates is a complex equation that involves rotation vectors as well. It might seems simple&#8230; <\/p>\n<div class=\"more-link-container\"><a class=\"more-link\" href=\"https:\/\/www.zacobria.com\/universal-robots-knowledge-base-tech-support-forum-hints-tips-cb2-cb3\/index.php\/x-y-z-rx-ry-rz-position\/\">Read More<\/a><\/div>\n","protected":false},"author":1,"featured_media":2481,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"templates\/full-width-page.php","meta":{"footnotes":""},"class_list":["post-2699","page","type-page","status-publish","has-post-thumbnail","hentry"],"_links":{"self":[{"href":"https:\/\/www.zacobria.com\/universal-robots-knowledge-base-tech-support-forum-hints-tips-cb2-cb3\/index.php\/wp-json\/wp\/v2\/pages\/2699","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zacobria.com\/universal-robots-knowledge-base-tech-support-forum-hints-tips-cb2-cb3\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.zacobria.com\/universal-robots-knowledge-base-tech-support-forum-hints-tips-cb2-cb3\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.zacobria.com\/universal-robots-knowledge-base-tech-support-forum-hints-tips-cb2-cb3\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zacobria.com\/universal-robots-knowledge-base-tech-support-forum-hints-tips-cb2-cb3\/index.php\/wp-json\/wp\/v2\/comments?post=2699"}],"version-history":[{"count":6,"href":"https:\/\/www.zacobria.com\/universal-robots-knowledge-base-tech-support-forum-hints-tips-cb2-cb3\/index.php\/wp-json\/wp\/v2\/pages\/2699\/revisions"}],"predecessor-version":[{"id":3141,"href":"https:\/\/www.zacobria.com\/universal-robots-knowledge-base-tech-support-forum-hints-tips-cb2-cb3\/index.php\/wp-json\/wp\/v2\/pages\/2699\/revisions\/3141"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.zacobria.com\/universal-robots-knowledge-base-tech-support-forum-hints-tips-cb2-cb3\/index.php\/wp-json\/wp\/v2\/media\/2481"}],"wp:attachment":[{"href":"https:\/\/www.zacobria.com\/universal-robots-knowledge-base-tech-support-forum-hints-tips-cb2-cb3\/index.php\/wp-json\/wp\/v2\/media?parent=2699"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}