10/3/2022 9:26 PM | |
Joined: 6/11/2019 Last visit: 11/8/2024 Posts: 2313 Rating: (102) |
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 (741 Downloads) |
This contribution was helpful to1 thankful Users |
10/7/2022 8:05 AM | |
Joined: 1/26/2021 Last visit: 8/29/2024 Posts: 5 Rating: (0) |
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/29/2024 Posts: 5 Rating: (0) |
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 (704 Downloads) |
10/7/2022 9:56 AM | |
Joined: 6/11/2019 Last visit: 11/8/2024 Posts: 2313 Rating: (102) |
Take a look at the attached program.This is built with shift registers. Ella_68 Attachmenttest 02.zip (794 Downloads) |
This contribution was helpful to1 thankful Users |
Follow us on