![RobotStudio event](https://new.abb.com/images/librariesprovider89/default-album/robotstudio-webinar-arc-welding.jpg)
Re-setting the production hours since last service using the PCSDK
![gbdalar](https://secure.gravatar.com/avatar/458b971a823e1a6e48bffc35f0834bb0/?default=https%3A%2F%2Fus.v-cdn.net%2F5020483%2Fuploads%2Fdefaultavatar%2FK2266OAKOLNC.jpg&rating=g&size=200)
gbdalar
✭
Hi
Does any one know if it is possible to reset the production hours since last service? I would like to use the PCSDK to reset these hours instead of having to run the service routine to do this. I am able to read the hours by using:
myTimeSpan = controller.MotionSystem.ActiveMechanicalUnit.ServiceInfo.ElapsedProductionTimeSinceLastService
But I am unable to write to this. The reference docs state "public TimeSpan ElapsedCalenderTimeSinceLastService { get; set; }" so it states a set as well as get so I am guessing it is possible. But if I do this:
controller.MotionSystem.ActiveMechanicalUnit.ServiceInfo.ElapsedProductionTimeSinceLastService = myTimeSpan
At run time I get an exception. I am not sure what I am doing wrong.
Any help or guidance would be great.
Cheers
Dave
0
Categories
- All Categories
- 5.5K RobotStudio
- 397 UpFeed
- 18 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 319 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 804 RAPID Programming
- 4 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings