whimsey
Member
Using TIA Portal v17, SIMATIC S7-1500 PLC.
I am trying to write an alarm that will trigger for multiple sources, and output the triggering source(s) in the text.
I have this sort of worked out - all sources that should trigger the alarm do, and as long as only a single source has triggered it, the text output is correct. The problem is when multiple sources have triggered the alarm at the same time.
Each source triggers a bit in an array, which is then gathered into a word, and the value of that word is checked against a text list and the results output.
Ideally, I would be check every bit in the word and output according to the state of that bit.
I can't just throw them into the SD_ inputs, because I have 12 possible sources, and there are only 10 inputs.
I would like to avoid a text list that contains every possible permutation, but that's the only way I'm seeing out of this.
Thanks.
I am trying to write an alarm that will trigger for multiple sources, and output the triggering source(s) in the text.
I have this sort of worked out - all sources that should trigger the alarm do, and as long as only a single source has triggered it, the text output is correct. The problem is when multiple sources have triggered the alarm at the same time.
Each source triggers a bit in an array, which is then gathered into a word, and the value of that word is checked against a text list and the results output.
Ideally, I would be check every bit in the word and output according to the state of that bit.
I can't just throw them into the SD_ inputs, because I have 12 possible sources, and there are only 10 inputs.
I would like to avoid a text list that contains every possible permutation, but that's the only way I'm seeing out of this.
Thanks.