10/24/2024 6:16 PM | |
Joined: 2/7/2023 Last visit: 12/10/2024 Posts: 9 Rating:
|
I am trying to do a very simple round-robin to run devices in order. I think the simple test program that I have made looks like it should work, but in the simulator it fails if more than one device has demand. The idea is that there are three devices. Each device has a demand input. If the device has demand then as long as neither of the other two devices are running then that device starts up and runs for a pre-determined time and then stops, regardless of the state of its demand input. Now the next device has a turn, and the next device, etc. I would LOVE to add the program as an attachment but apparently .LLD is not a valid extension. The problem I am having is that while the program works perfectly if any one device has demand, and even works perfectly if I turn on the demand for one device, then turn the demand off again so it continues running until the timer runs out, if I have more than one demand input turned on then after the first one finishes its turn it then rapidly switches between the two devices with demand. The speed is high enough that it appears at first glance that both are turned on. I have tried moving a few things around, thinking it was a code sequence issue, but no luck. Any thoughts? I'd settle for information regarding how to post a ladder logic program, or how to post under my name instead of 'AutoGen'. Mike Edit: Program is now attached. Simulate and turn on two or three of the inputs and you will see what happens after the 5 second timer runs out. Attachmentround_robin_test.zip (376 Downloads) |
Last edited by: AutoGen_7634532 at: 10/24/2024 21:51:14 |
|
Follow us on