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