![RobotStudio event](https://new.abb.com/images/librariesprovider89/default-album/rs_webinar_invitation_2025_2.jpg)
Unable to retrieve 'ElapsedProductionTimeSinceLastService'
Hello,
I have two identical controllers with the same RW 6.0.8 and I am trying to retrieve the value of ElapsedProductionTimeSinceLastService using the following syntax:
_controller.MotionSystem.ActiveMechanicalUnit.ServiceInfo.ElapsedProductionTimeSinceLastService.TotalHours.ToString()
On one robot, it returns the number of hours worked, but on the other one, I get an error: "Specified argument was out of the range of valid values."
I also have another identical pair of robots, and it's the same - one returns hours, and the other returns the error "Index was outside the bounds of the array".
I am using PCSDK 2022.
Thank you for your help.
_controller.MotionSystem.ActiveMechanicalUnit.ServiceInfo.ElapsedProductionTimeSinceLastService.TotalHours.ToString()
On one robot, it returns the number of hours worked, but on the other one, I get an error: "Specified argument was out of the range of valid values."
I also have another identical pair of robots, and it's the same - one returns hours, and the other returns the error "Index was outside the bounds of the array".
I am using PCSDK 2022.
Thank you for your help.
0
Categories
- All Categories
- 5.5K RobotStudio
- 398 UpFeed
- 19 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 321 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 808 RAPID Programming
- 5 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings