Adjusting WorkObject
interface with the operator. However, I need to change the rotation of the
work object. But how to do with the quaternion? Let's say I need to
change the rotation about the x-axis by 1.5 degrees, how to do?
Thanks!!
Comments
-
Hi
Take a look in the RAPID manual on instructions
- OrientZYX
- EulerZYX
I think that is what you needBest Regards
Per SvenssonPer Svensson
Robotics and Vision Specialist
Consat Engineering0 -
Hi,
The PerSvensson have reason this is only you need, OrientZYX and the EulerZYX, you must have attention to order of the function is ( ZZZZZ,YYYYYY,XXXXXXX) not (XXXXX,YYYYYY,ZZZZZZ)is very important use the coordinate correct. I recomend use 2 WorkObject data, one is a fixed and the other is a variable like this:
fresa2 and fresa They are a WorkObject
fresa2:=fresa;
anglex := EulerZYX(X,fresa2.uframe.rot);
angley := EulerZYX(Y,fresa2.uframe.rot);
anglez := EulerZYX(,fresa2.uframe.rot);
anglnovox:=anglex + inclinafreza;
anglnovoy:=angley;
anglnovoz:=anglez;fresa2.uframe.rot := OrientZYX(anglnovoz, anglnovoy, anglnovox);
fresa2.oframe.trans.x:=fresa2.oframe.trans.x + fresadx;
fresa2.oframe.trans.y:=fresa2.oframe.trans.y + fresady;
fresa2.oframe.trans.z:=fresa2.oframe.trans.z + fresadz;Best regards,
Joao Fidalgo
0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 800 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings