smuthcrmnl777
Technical User
I have some data that some engineers would like to work with, but it is very time consuming to compile what they need.
I have a machine that will stop because of a problem within that machine. Then the operator will fix the problem and then start the machine up again. I have numerous machines that record this data and the data resides in one table.
I need to have some code look at this table and take when it stop and the next time it starts up again and tell me how long it took to start up.
For Example, line 1 at 8 am stopped and then started up again at 8:01. I should get a reading of
Line 1, 1 (min).
Sometimes a line will get multiple stops before actually starting up. I need to find the first time it stopped to when it actually started up.
For Example, Line 2 Stopped at 8:02,8:03 and 8:04 and then started up at 8:07. I should get a reading of Line 2, 5 (min).
Also keep in mind that any line can and will have multiple start ups due to other problems. I am only focusing on one problem right now.
Thanks!!
I have a machine that will stop because of a problem within that machine. Then the operator will fix the problem and then start the machine up again. I have numerous machines that record this data and the data resides in one table.
I need to have some code look at this table and take when it stop and the next time it starts up again and tell me how long it took to start up.
For Example, line 1 at 8 am stopped and then started up again at 8:01. I should get a reading of
Line 1, 1 (min).
Sometimes a line will get multiple stops before actually starting up. I need to find the first time it stopped to when it actually started up.
For Example, Line 2 Stopped at 8:02,8:03 and 8:04 and then started up at 8:07. I should get a reading of Line 2, 5 (min).
Also keep in mind that any line can and will have multiple start ups due to other problems. I am only focusing on one problem right now.
Code:
TimeStamp Line Stop Start
5/17/06 8:00 AM 1 1
5/17/06 8:00 AM 2 1
5/17/06 8:01 AM 1 1
5/17/06 8:01 AM 2 1
5/17/06 8:02 AM 1 1
5/17/06 8:02 AM 2 1
5/17/06 8:03 AM 1 1
5/17/06 8:03 AM 2 1
5/17/06 8:04 AM 1 1
5/17/06 8:04 AM 2 1
5/17/06 8:07 AM 1 1
5/17/06 8:07 AM 2 1
5/17/06 8:08 AM 1 1
5/17/06 8:08 AM 2 1
5/17/06 8:09 AM 1 1
5/17/06 8:09 AM 2 1
Thanks!!