RS 5.15 Add-In GetExternalAxisJointValues()
Hi,
// Activate the first mechanical unit.
station.Irc5Controllers[0].MechanicalUnits[0].ActivationMode = MechanicalUnitActivationMode.Active;
// Get the JointTypes of the external axes in the task.
JointType[] myJT = myTask.GetExternalAxisJointTypes();
// Get the joint values of the external axes in the task.
double[] eaValues = myTask.GetExternalAxisJointValues();
In the attached Add-In this code is executed when the user clicks on the menu that says Test 5.15
When we run this code the mechanicalUnit corresponding to the robotic arm is set to Active (I don't really understand why at the begining is Unactive), and then the GetExternalAxisJointValues() throws an exeption with the following message:
ex = {"Index was outside the bounds of the array."}
If we comment this line:
station.Irc5Controllers[0].MechanicalUnits[0].ActivationMode = MechanicalUnitActivationMode.Active;
Then the ActivationMode of the robot stays Unactive and no error is thrown which to me, seems the opposite to the expected behaviour.
Comments
-
Moved to Developer CenterHenrik Berlin
ABB0
Categories
- All Categories
- 5.5K RobotStudio
- 395 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings