CompactLogix - Calculating Elapsed Time Example....??

tmiuser

Member
Join Date
May 2009
Location
Kentucky
Posts
26
I am setting up a SHIFT run-time calculator.

Currently, I have a Panelview with START/END times setup that the operator can change (if needed)

like :
Shift Start: 07:30 Shift End: 15:30

Break1 Start : 08:00 Break1 End: 08:20

the Hour and Minutes are 24 hours format and separate tags.
(i.e..ShiftStartHour, ShiftStartMin and Break1Start, Break1End)

Is there an easy method to calculate the elapsed time for a given item?

Like:
Shift Total Run Time would be : 8 hours (or, I could take it in Seconds.......)

Break1 Time would be 20 minutes....)or, I could take it in seconds...)

either way, I was hoping somebody had a quick(dirty) way of doing this!!

: Po_O
 
Here you are, these are AOIs, please unzip them, then import them into your program and ready to use.
Tless and Tdiff run together, time_elapsed runs by itself.
I have used them lots of time with no problem.
 
bill?

How to import?
(Sorry, never imported into a CompactLogix before....)
I see a option, but it only allows *.CSV, and *.TXT....
 
bill?

How to import?
(Sorry, never imported into a CompactLogix before....)
I see a option, but it only allows *.CSV, and *.TXT....
First of all, you have to use at least V16 of Rslogix5000, unzip my file then import them into your application as shown in figure.
From that point on they are ready to use. Please read publication 1756-pm001_-en-p.pdf you can download it from www.ab.com chapters 9 & 10 for help.

time elapsed.jpg
 
OK...I started the import.
but, RSLogix V16 is complaining that I don't have a 'DT' data type.

But....you're doing great!.....

fly me in cap'tn!!
 
I guess I need to understand more what the datatype 'DT' is......
I am assuming I must create it before I can complete the import.
It permitted me to import the 'Time_ElapsedFB'...but I can't import the others without making this datatype.....
??

Sorry I am keeping you tied up....
 
YES.....ok...got everything imported!

ha...now, I guess I just slap 2 separate Hr/Min/Secs at it....and it spits something back at me?
hahhaaa....
 
So in his first picture if you look about two lines up you will see "User-Defined". You would add a new data type and make it look like his second picture.

UDT = User-Defined Data Type
 
Bill............

You the MAN....
that works GREAT....
Appreciate the support.

I'll get a little something extra put in your paycheck at the end of the week!!!!!

: )
 

Similar Topics

Hi everyone, i have a compact logic 1769-L18 PLC and I'm using FTalk View ME for the display. I wanted to do some visualization on Grafana. At...
Replies
1
Views
95
Does anyone know what the data transfer rate for this series of CompactLogix PLC's? 1769-L24ER-QB1B to be exact. Cheers.
Replies
1
Views
98
Does this instruction calculate values during a single scan, or does it require number of scans based on element count in the array? For Example...
Replies
3
Views
114
Hello all, and thank you in advance for any assistance you may be able to provide! This is my first post, so if I need to reformat or change...
Replies
8
Views
478
We are trying to poll data coming from a PLC for remote monitoring we have the IP address of the PLC and the default port number and the path is...
Replies
25
Views
577
Back
Top Bottom