defcon.klaxon
Lifetime Supporting Member
Hey guys,
I'm working on a small water treatment plant that has SCADAPacks spec'ed for the project (using Telepace).
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.
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. 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. 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 used each "state" bit in the logic that would control valves, motors, etc.
But when Telepace, I'm not sure the best way to take care of this. 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.
Wondering how you guys would approach this, any suggestions would be greatly appreciated. Thanks!
I'm working on a small water treatment plant that has SCADAPacks spec'ed for the project (using Telepace).
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.
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. 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. 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 used each "state" bit in the logic that would control valves, motors, etc.
But when Telepace, I'm not sure the best way to take care of this. 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.
Wondering how you guys would approach this, any suggestions would be greatly appreciated. Thanks!