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.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