Read Coordinate System Type by PC SDK?

guds
✭
Does anyone knows how to read the coordinate system type (world/base/tool/work) by using PC SDK?
I have a vision program on PC and when I read the position from controller, I need to check if user is moving the TCP along work object coordinate.
I have a vision program on PC and when I read the position from controller, I need to check if user is moving the TCP along work object coordinate.
0
Comments
-
In the MechanicalUnit Class, you have the function GetPosition(CoordinateSystemType). This function return the current position as robtarget. (This information can be found in the documentation)
CoordinateSystemType are pre-defined coordinate systems and you can choose between 'Base', 'Undefined', 'Tool', 'WorkObject' and 'World'.Controller _controller = .......; ..... RobTarget _position = _controller.MotionSystem.ActiveMechanicalUnit.GetPosition(CoordinateSystemType.World);
0
Categories
- All Categories
- 5.6K RobotStudio
- 398 UpFeed
- 20 Tutorials
- 14 RobotApps
- 300 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 335 IRC5
- 67 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 827 RAPID Programming
- 10 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 106 Collaborative Robots
- 5 Job listings