Cailong Bao

How to count total running time of a process in SLC 500

4 posts in this topic

Hi, does anybody know how to count total running time for a process in SLC 500?

I like to know how long a process takes from the beginning to the end.  The process running time is

different from a batch to another.  The counting begins by a switch and ends by a condition.

Assuming total running time is 10000s, how is this number converted to a format for HH:MM:SS?

Thanks.

Share this post


Link to post
Share on other sites

A typical method is to use a 60 sec timer and a one-shot to a counter for seconds; test seconds = 60 then increment another counter to get minutes; test minutes = 60 then increment another counter to get hours.  Add in the ability to reset and add tests to make sure you do not keep counting and fault your processor.

Share this post


Link to post
Share on other sites
3 hours ago, kaiser_will said:

A typical method is to use a 60 sec timer and a one-shot to a counter for seconds; test seconds = 60 then increment another counter to get minutes; test minutes = 60 then increment another counter to get hours.  Add in the ability to reset and add tests to make sure you do not keep counting and fault your processor.

You won't fault the SLC with a counter rollover. Though the negative accumulator will make for some strange display numbers

1 person likes this

Share this post


Link to post
Share on other sites
3 hours ago, Filthy McNasty said:

You won't fault the SLC with a counter rollover. Though the negative accumulator will make for some strange display numbers

FYI,

A counter rollover will not cause a processor fault. It will just go negative as you stated and continue to count back to zero, then back up all over again.

1 person likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now