Internal time from the VC

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? :+1:

Thank you very much!

Best Regards,

Anna

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()));

}

Thanks for your quick answer Per!

Anna