Posted: 5/29/2017 9:39:26 PM EDT
I posted about a compressor sequencer a few weeks ago. This is a more specific problem associated with that project.
See below. I have (3) 16 bit registers assigned to the 3 compressors. Each register essentially contains 3 pieces of data:
1. is the compressor operational or faulted (bit 0)
2. is the compressor assigned to no pressure point, pressure point 1, 2, or 3 (bits 1, 2, and 3)
3. is pressure point 1, 2, or 3 actively calling for a compressor (bits 4, 5, and 6)
For compressor #1, for example, to run, one of three states has to be present:
comp_1:0 and comp_1:1 and comp_1_4 are high
comp_1:0 and comp_1:2 and comp_1_5 are high
comp_1:0 and comp_1:3 and comp_1_6 are high
What is the cleanest, most efficient way to do these three checks on the compressor coil rung?
Yes, I could simply use N.O. contacts, but I feel like there's a cooler way to do it within the register.
Thanks for any help.
|