3/2/2025 4:50 PM | |
Joined: 3/2/2025 Last visit: 3/16/2025 Posts: 3 Rating:
|
I would like to ask help to greate a product productivity counter that will display pieces per hours (update every 10 min display pieces productivity increase or decrease per hours) to be shown on logo8 screen,and also show a real time continuous count. And the counter goes to zero at midnight. Max 20 pieces per min. Thank You! |
3/4/2025 11:00 PM | |
Joined: 6/11/2019 Last visit: 3/14/2025 Posts: 2449 Rating:
|
Hello AutoGen, The procedure depends on how you define the hourly values. If you want to output a total every full hour, it is best to work with two counters. The first is reset after 10 minutes and the second after 60 minutes. If you always want to evaluate the last 60 minutes, you have to record the number of pieces every 10 minutes and temporarily store them in a stack memory. You can then create a total with these six values. Increasing or decreasing productivity always means a comparison with the last value. Therefore, saving the count value before resetting the counter is crucial. The whole thing will be time-critical programming. Therefore, you should set up the program in a cycle-oriented manner. It is best to upload the program you have created so far and describe where you are stuck. A tip: search in the German part of the forum under "Eimerkettenspeicher", "Stapelspeicher" or "FiFo". You will find valuable help for your project there. Regards Ella_68 (translated by Google) |
3/8/2025 7:39 AM | |
Joined: 3/2/2025 Last visit: 3/16/2025 Posts: 3 Rating:
|
Hello Ella, Unfortunately I don't have a project. I wrote that maybe someone already has such a project. I have two machines in factory where 8 operators work. Every operator has own screen where the productivity number changes every 10 minutes (value on screen show pieces per hours). |
Last edited by: AutoGen_5344998 at: 03/08/2025 07:39:47 |
|
3/8/2025 3:05 PM | |
Joined: 6/11/2019 Last visit: 3/14/2025 Posts: 2449 Rating:
|
Hello AutoGen, As I understand you, the number of pieces per hour is updated every 10 minutes. But you have to explain in more detail what the productivity number refers to. Is that the number of pieces in the last 60 minutes ? Or is that the number of pieces extrapolated to the next 60 minutes ? Or is that the total number of pieces already produced during the day, broken down to the last hour ? Depending on what applies, you can then write a program for it. Regards Ella_68 (translated by google) P.S.: Does the production number per hour exceed 32,767 units? |
Last edited by: Ella_68 at: 03/08/2025 15:08:47 |
|
3/9/2025 10:54 PM | |
Joined: 3/2/2025 Last visit: 3/16/2025 Posts: 3 Rating:
|
Hello Dear Ella, As I understand you, the number of pieces per hour is updated every 10 minutes. Correct. Is that the number of pieces in the last 60 minutes ? - As I understand it, it calculates productivity every 10 minutes that way e.g first minute 5x60=300, second minute 4x60=240, third minute 5x60=300, fourth minute 3x60=180, .... tenth minute 7x60=420 and 10 min is over than show on screen average read in the last ten minutes ~325 pieces per hour. P.S.: Does the production number per hour exceed 32,767 units? - No max number per hour is 700 pieces. Kind regards |
3/10/2025 8:52 PM | |
Joined: 6/11/2019 Last visit: 3/14/2025 Posts: 2449 Rating:
|
Hello AutoGen, I programmed something to make it easier to understand. The counting pulses (I1) are counted in counter B001 and multiplied by 10 in module B023 to minimize rounding errors when calculating the mean later. Since you don't get more than 700 in an hour, you stay below the limit of 32767. The pulse generator B002 delivers a pulse every 10 minutes. This triggers a bucket brigade memory and writes the count value into the first memory cell B017. Another trigger pulse pushes this value into the second memory cell B004 and takes a new value into B017, etc. Once this has happened, the pulse delayed by one cycle by M1 will reset counter B001. The arithmetic mean is calculated from the six values of the bucket brigade memory using modules B020 to B022. The result can then be divided by 10 or, as I did, displayed as a decimal point. I hope you can do something with this, Greetings Ella_68 AttachmentProduktzähler.zip (6 Downloads) |
This contribution was helpful to
1 thankful Users |
Follow us on