Search the Community
Showing results for tags 'loop output'.
Hi I'm trying to build some logic to charge batteries in a loop but I don't know what's the best solution for this. (vision 130) I have 8 outputs (with external relays) and I want to activate them one by one. we have 1 load system and 8 batteries. (see picture) This must be in a loop and the charging has to change to the next battery every t minutes. so O1 comes high, then stops and then O2 comes high important: between switching of and turning on the next output we need a small delay of D seconds to avoid short circuits. when a battery is not used we have to skip this one. (we can see this using the MB101->MB108) when a battery comes in we have to charge this one next. we only have MB101->MB108 for the status of the batteries (connected/disconnected) and 8 outputs. If MB103=0 this means battery 3 is not connected and must not be charged, we need to skip this output. When MB103 becomes 1, this means that this battery must be charged next because it was last in use. When we disconnect a battery (MB->0) , the charging must stop immediately and move on to the next battery I think i need a kind of table to do this but I never used this before. I don't know if I can do this in vigilogic without a table? any help is welcome.