Logging "Downtime" in RSLogix 5000

HunterM93

Member
Join Date
May 2019
Location
Arkansas
Posts
20
Hello,

I've been browsing the forum and doing internet searches but i haven't been able to make anything work. What i am trying to do is log how long the downtime on some of my production lines. What i am trying to do is setup to log the duration of the last 10 stops. I have the logic setup to count the downtime but i am having issues putting it into an array for storage. Once the array is full i want to push out the oldest data so that it can keep loading new information.

Once i have the above mentioned setup i plan on displaying it on an HMI for operators.
 
You could "roll your own". You have a data Array, 10 elements. Store the current downtime in Array[0], when you need to store another, use a ONS to Copy Array[0] to Array[1], length of 9, then write your data to [0] again.
 
Hunter:
This is what i did years ago:
1) Define what down time is , i.e. how many minutes without production. For instance if the line has been off for more than 3 minutes then that configures a downtime.
2) Define what production is on again,i.e. , how many minutes products are been produced. For instance if production has been on for more than 3 minutes then line is ok
2) Use a timer to log downtimes less than 2 minutes this has to be a RTO timer, one for shift, one for day.
3) you can try to log the reason for down time along with time , if the line is on again and the operator did not enter reason for last down timw the line will stop again.
4) use a FIFO in my case i designed a UDT that contain start time final time and reason for downtime.

Hope this will help.
 
Does anyone have any pointers on using a FIFO instruction? Ive looked at it but ive never used one before and ive not seen one used in any of our 50+ running programs.
 
Its probably easier to do what ken says and just stick the value into the last element of an array and copy len-1 elements from element 1 to element 0.

With a fifo you will need to use both a fifo load and unload command each time to update the array.

When new data comes in:
- if fifo is full then use ffu to remove first entry
- push new data in with ffl command

Both instructions use the same control structure
 

Similar Topics

Hi folks, I'm not as accustom with Siemens & WinCC, however I've been asked to increase the amount of data an existing application is logging...
Replies
2
Views
67
Hi, Wy we log data in PLC using DLG instruction, when we have option to log data in HMI
Replies
1
Views
80
Hi everyone id like to start by saying im not a PLC programmer so my technical terminology is limited. i would like advice on what software is...
Replies
4
Views
299
After the new very nice update to this site I could not log in with my original password, tried to recover my account but did not recieve a email...
Replies
14
Views
396
I have some datalogging set up on an S7-1211. Most basic controller, but 1MB of memory should be enough. A single log is 222 bytes and logs an...
Replies
3
Views
417
Back
Top Bottom