Jump to content
OMRON Forums

Motion Program time


Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

You can measure time passage in a PMAC script program by taking the beginning and end difference of “Sys.Time”. It is a 64 bit positive floating-point result in units of seconds. It is documented in the “Power PMAC Software Reference Manual” under the “Sys. Global Status Data Structure Elements”.
Link to comment
Share on other sites

A quick note: The end of the program calculation is when the last move or dwell has been computed, which could be significantly before that last move has finished executing. It is best to add a DWELL 0 after the last real move calculations before you check the timer. It would be something like this:


MyStartTime = Sys.Time;

{my program}

dwell 0;

MyExecutionTime = Sys.Time - MyStartTime;

Link to comment
Share on other sites

This topic is now closed to further replies.

  • Create New...