Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
Re-setting the production hours since last service using the PCSDK
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.7K RobotStudio
- 402 UpFeed
- 21 Tutorials
- 16 RobotApps
- 307 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 251 ScreenMaker
- 2.9K Robot Controller
- 368 IRC5
- 92 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 859 RAPID Programming
- 43 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings