Antal Posted January 22, 2021 Report Share Posted January 22, 2021 Hello everyone. I need help. The schedule works, with one schedule. I need 20 schedules for one output. I can't do multiple schedules for one output. This is what needs help. That's how i did it. Thank you in advance for your help. Greetings B.A. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted January 22, 2021 MVP 2022 Report Share Posted January 22, 2021 I can't tell from your screenshot, but I'm guessing you've assigned the same output to all the schedules. This is a programming no-no, as the state of the output will be determined by it's last instance in the program. None of the others will count. Are all 20 schedules active at the same time? Not that it matters. Is there any reason you can't create a different bit for each schedule output and OR them all together for your output? I've never tried as many as 20 parallel contacts in one net, as Vision won't let you do it. So I tried with UniStream, and it did compile without errors: There are 20 contacts there - trust me. The minimum zoom out on UniLogic is 70% so I was not able to truly capture the crazy of this network. But it will work. Joe T. Quote Link to comment Share on other sites More sharing options...
ORSO2001 Posted January 22, 2021 Report Share Posted January 22, 2021 Dear Antal, the PLC will execute exactly each single command...so if you have 2 or more contiguous "simple coil" command the status of the last win. to avoid this you have to use the SET and RESET coil; in this way if cois is SET a RESET event has to arise to set it to "0". however my suggest is have only one place where a coil, coupled with an output, is SET or RESET...following the relative conditions. Quote Link to comment Share on other sites More sharing options...
Antal Posted January 22, 2021 Author Report Share Posted January 22, 2021 Hi Joe T Thank you very much for your quick reply. Works perfectly. I read the schedule from a table. When the time is the same, in one of the rows on the Table, the output turns on. I need 20 different schedules a day. Greetings B.A. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Ausman Posted January 22, 2021 MVP 2022 Report Share Posted January 22, 2021 Antal, it is worth remembering/learning from this one that the same principle applies throughout PLC programming. If you have multiple references to any sort of output, the last one in the ladder is the one that is applied. So if you need to have multiple references, you have to have all those references independently applied to the output in one rung as parallel like Joe says. Sometimes on complex output involvement, this can even mean the need to "cascade" the individual references. I do this to break it up into more easily referenced visually for the human. In programming, I always try to make it easy to follow the logic to facilitate troubleshooting, which sometimes means more elements seemingly arranged clumsily. But they are there for a purpose! All Programmers have their own preferences, but many keep all physical outputs ladder work until the very end of the program. cheers, Aus Quote Link to comment Share on other sites More sharing options...
Antal Posted January 23, 2021 Author Report Share Posted January 23, 2021 Hello Ausman I thought writing on the table was harder to read and went easily. I got stuck with a simple solution. But this forum is good for people to help each other. Sorry for my bad english. Greetings B.A. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.