If you want to reset it, you set it to zero. I'd just use integers and have one integer represent all the states of one sequence.Īs you go from one state to the next, you just increase the integer by one. Wondering how you guys would approach this, any suggestions would be greatly appreciated. There are three filter trains at the plant I'm working on, and each will have about 15-20 "states" offline, filtering, three backwash steps for each filter section (with four filter sections per train).and using CMP blocks/checking individual bits is really clunky in Telepace and it's looking like my preferred approach is going to be a nightmare. I used each "state" bit in the logic that would control valves, motors, etc.īut when Telepace, I'm not sure the best way to take care of this. It was really easy to follow in the logic, and because you can address individual bits in a DINT with coils/contacts it was really straightforward. I'd simply latch one bit at a time, and unlatch it/latch the next when it was time to move to a new step. When I've used AB (Logix5K) I had a really great "state" machine approach, where each filter train had a "state" DINT, and each "state" was a single bit.
CONNECTING SCADAPACK TO TELEPACE STUDIO CODE
One of the challenges I'm trying to gracefully code is controlling the various "modes" of the filters, whether they're filtering water or backwashing. I'm working on a small water treatment plant that has SCADAPacks spec'ed for the project (using Telepace).