Is there an easy way to create a workobject 90 degrees perpendicular to the base?

in RobotStudio
Or to another workobject in the robot?
0
Answers
-
Use this:
%%% VERSION:1 LANGUAGE:ENGLISH %%% MODULE TCP_adjust VAR orient orient1:=[1,0,0,0]; PROC tcp_orient() VAR num anglex; VAR num angley; VAR num anglez; VAR num nFKAnswer; TPWrite "This routine is use to calculate"; TPWrite "The quaternions based upon EulerZYX"; TPWrite "angles."; TPWrite "Remember EulerZYX goes Z rotation,"; TPWrite "Then Y rotation,"; TPWrite "and then X rotation"; TPReadNum anglex,"Please enter the value for x rotation"; TPReadNum angley,"Please enter the value for y rotation"; TPReadNum anglez,"Please enter the value for z rotation"; orient1:=OrientZYX(anglez,angley,anglex); TPWrite "Based upon your inputs,"; TPWrite "Quaternion 1 is "\Num:=orient1.q1; TPWrite "Quaternion 2 is "\Num:=orient1.q2; TPWrite "Quaternion 3 is "\Num:=orient1.q3; TPWrite "Quaternion 4 is "\Num:=orient1.q4; TPReadFK nFKAnswer,"Press OK to Finish",stEmpty,stEmpty,stEmpty,stEmpty,"OK"; ENDPROC ENDMODULE
Lee Justice0 -
lemster68 said:Use this:
%%% VERSION:1 LANGUAGE:ENGLISH %%% MODULE TCP_adjust VAR orient orient1:=[1,0,0,0]; PROC tcp_orient() VAR num anglex; VAR num angley; VAR num anglez; VAR num nFKAnswer; TPWrite "This routine is use to calculate"; TPWrite "The quaternions based upon EulerZYX"; TPWrite "angles."; TPWrite "Remember EulerZYX goes Z rotation,"; TPWrite "Then Y rotation,"; TPWrite "and then X rotation"; TPReadNum anglex,"Please enter the value for x rotation"; TPReadNum angley,"Please enter the value for y rotation"; TPReadNum anglez,"Please enter the value for z rotation"; orient1:=OrientZYX(anglez,angley,anglex); TPWrite "Based upon your inputs,"; TPWrite "Quaternion 1 is "\Num:=orient1.q1; TPWrite "Quaternion 2 is "\Num:=orient1.q2; TPWrite "Quaternion 3 is "\Num:=orient1.q3; TPWrite "Quaternion 4 is "\Num:=orient1.q4; TPReadFK nFKAnswer,"Press OK to Finish",stEmpty,stEmpty,stEmpty,stEmpty,"OK"; ENDPROC ENDMODULE
0 -
Just load the module as-is, then pp to that routine.Lee Justice0
Categories
- All Categories
- 5.6K RobotStudio
- 399 UpFeed
- 20 Tutorials
- 14 RobotApps
- 300 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 336 IRC5
- 67 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 828 RAPID Programming
- 12 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 107 Collaborative Robots
- 5 Job listings