Is it possible to adjust a user frame in the code : f.i. to change X and Y value in TP program?
Adjust user frame in the code
-
Plc_User -
January 23, 2017 at 7:44 AM -
Thread is marked as Resolved.
-
-
you can change the PR[x] positions and then pass the PR[x] to user frame.
-
Here is some code that would do what you want. In the example below, we move the frame forward in X by 10mm, and to the right by 10mm. The reason I am referencing index 10 & 11 on the PR is because the Fanuc stores frames in matrix representation, which has 12 elements. The first 9 represent the rotation unit vectors, and the last 3 represent the translation of the frame.