10/3/2022 9:26 PM | |
Joined: 6/11/2019 Last visit: 8/20/2024 Posts: 2215 Rating:
|
Hello AdolfoMallenco, as I understand it, you only want to evaluate the last 100 (50) reviews of a property. The 101 (51) would fall out of consideration, wouldn't it ? In my opinion, the counter modules would not lead to the desired goal. This can be done with a shift register. But then you have to say goodbye to the idea of the last hundred entries. If you use the shift registers of the Logo, only a maximum of 32 acquisitions can be evaluated (4x 8-bit shift registers). If you build this up conventionally (see program), you will exceed the maximum number of markers in a logo with 100 evaluations. But then there is no more space for the rest of the program. Even with only 50 evaluations, there is very little space left. Ella_68 Attachmenttest 01.zip (680 Downloads) |
This contribution was helpful to
1 thankful Users |
10/7/2022 8:05 AM | |
Joined: 1/26/2021 Last visit: 8/9/2024 Posts: 5 Rating:
|
Hi, Thanks a lot for your answer.
The goal is to control the production and stop the machine in case anything goes wrong. Doing the 5-in-a-row bad parts is fine if there's a machine's operator next to it: Example of 5 in a row bad production But during the night, I need to check that the production is not doing something like this: Example of Never-5-in-a-row bad scenario I want to stop as soon as there are more than x bad parts during the last 32 (maybe 10 bad parts of the last 32).
Hey, thanks a lot for your assistance. I'm still having a headache when I look into your example It's really impressive, but even clicking on I1 8 times in a row (or I2 8 times in a row) it always ends triggering M1. I'm going to check information about the shift registers of the LOGO! to see if I can use it in my aplication. Greets from Barcelona |
Last edited by: AdolfoMallenco at: 10/07/2022 09:54:28 |
|
10/7/2022 9:40 AM | |
Joined: 1/26/2021 Last visit: 8/9/2024 Posts: 5 Rating:
|
I have tried the shift register and it looks like just what I was looking for. Once again, thanks for your tips and assistance. I have two more questions: How can I increase the number of registers from 8 to 32? Using 4 registers? And how can I count the number of 1 or 0 bits of a register? If I've 8 bits, 4 of them are 1's, is there any function to get how many of them are 1s or zeros? Any help would be truly appreciated. Greets from Barcelona AttachmentShift1.zip (642 Downloads) |
10/7/2022 9:56 AM | |
Joined: 6/11/2019 Last visit: 8/20/2024 Posts: 2215 Rating:
|
Take a look at the attached program.This is built with shift registers. Ella_68 Attachmenttest 02.zip (732 Downloads) |
This contribution was helpful to
1 thankful Users |
10/7/2022 11:28 AM | |
Joined: 6/19/2017 Last visit: 8/5/2024 Posts: 8175 Rating:
|
Hi AdolfoMallenco, please attach your files as an attachment and don't use ibb as a filesharing hoster. I can't open and check it, because the website is blocked. If you want to attach more than one file, you can create a zip file to attach more than one file. Best regards, |
My Forum is the place to personalize your profile, |
|
This contribution was helpful to
1 thankful Users |
Follow us on