1/4/2021 4:07 AM | |
Joined: 12/18/2014 Last visit: 8/17/2024 Posts: 33576 Rating:
|
I have attached a program proposal from me. Maybe this is what you want.
AttachmentAlternationTest_V2.zip (209 Downloads) |
1/4/2021 8:22 AM | |
Joined: 4/9/2009 Last visit: 6/25/2024 Posts: 66 Rating:
|
Yes, I agree, I also note yesterday. In my opinion it is because, unlike a normal PLC (for example a S7) where the execution sequence of the blocks is known, the value of Q1 that is turned off is not managed by the blocks B007 and B008 since the next cycle. For example, in the S7-1200 all the blocks are executed from top to bottom and from left to right and therefore, in the cycle that Q1 is turned off, the instruction below sees it immediately turned off (and not in the next cycle). I have made a small change to the program (see attachment) that seems insignificant but which should solve the problem (in block B008 instead of Q2 denied I use the output of block B014). However, there remains the problem mentioned in my previous posts related to switching off the correct pump when going from two active levels to only 1. Note: With this modification, in the case of two active levels, regardless of the pump that started first, P2 always switches off for first
AttachmentAlternationTest.zip (186 Downloads) |
Follow us on