Get axis data
 
            
                
                    Klaus                
                
                     ✭✭                
            
                        
            I try to use the example on page 175 in the userguide.
Dim AMechCol As MechanicalUnitCollection = aController.MotionSystem.MechanicalUnits()
Dim AMechUnit As MechanicalUnit = aController.MotionSystem.ActiveMechanicalUnit
I get error from both lines.
Error 1 'MechanicalUnits' is not a member of 'ABB.Robotics.Controllers.MotionDomain.MotionSystem'.
Error 2 Value of type 'String' cannot be converted to 'ABB.Robotics.Controllers.MotionDomain.MechanicalUnit'.  ;
What do i do wrong?
Best regards klaus
Best Regards
Klaus Soenderhegn
www.cadalysator.dk
Klaus Soenderhegn
www.cadalysator.dk
0  
            Comments
- 
            Hello Klaus, This example works for the PC SDK. In the FP SDK, however, there is no MechanicalUnits property, but a GetMechanicalUnits method, so this is obviously an error in the User's Guide, which will be corrected. If you take a look in the FP SDK Reference Help you will see a correct example: Controller c = new Controller(); 
 MotionSystem motion = c.MotionSystem;
 MechanicalUnitCollection mecUnits = motion.GetMechanicalUnits();
 foreach (MechanicalUnit m in mecUnits)
 {
 if (m.Name == "ROB_1")
 // Do Something
 }Best regards,
 Ingela Brorsson
 Software Engineer
 ABB Robotics, Sweden0
Categories
- All Categories
- 5.6K RobotStudio
- 401 UpFeed
- 21 Tutorials
- 15 RobotApps
- 306 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.9K Robot Controller
- 363 IRC5
- 80 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 853 RAPID Programming
- 31 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 110 Collaborative Robots
- 5 Job listings
