Forum Migration Notice
We're transitioning to a more modern community platform by the end of this year. Learn about the upcoming changes and what to expect.
Internal time from the VC
Anna
✭
in RobotStudio
Hello all!
I would like to run a macro in order to get the internal time from de VC. I was doing it in RS 4.0 with this simple line:
ActiveStation.PrintLog "Robotics", Application.ActiveStation.ActiveMechanism.Controller.MotionT ime
Now with RS 5.08 I cannot find the way, can you help me? 
Thank you very much!
Best Regards,
Anna
Best Regards,
Anna
Anna
0
Comments
-
Here is a simple example in C#
public void Macro_ProcessTime()
{
Station stn = Project.ActiveProject as Station;
if (stn == null) return;
Logger.AddMessage(new LogMessage(stn.Irc5Controllers[0].ProcessTime.ToString()));
}Per Svensson
Robotics and Vision Specialist
Consat Engineering0 -
Thanks for your quick answer Per!
Anna
Best Regards,
Anna0
Categories
- All Categories
- 5.6K RobotStudio
- 401 UpFeed
- 21 Tutorials
- 16 RobotApps
- 306 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.9K Robot Controller
- 365 IRC5
- 86 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 854 RAPID Programming
- 38 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings