I have an array of DINT and I want to turn a coil on if bit position 0 of any of the array is on, and so on.
So in plain text:
ArrayBit: DINT;
Array: ARRAY[32] of DINT;
IF Array[0].0 OR Array[1].0 OR Array[2].0 ...(through Array[32]... THEN ArrayBit.0 = TRUE
And I need to do that for every bit of the DINT[32]. Obviously if I typed it all out it would be insanely long.
Doesn't really matter if it's done in ladder or structured text. Sorry in advance for this ridiculous request I'm working on a Rexroth MLC if it matters.
So in plain text:
ArrayBit: DINT;
Array: ARRAY[32] of DINT;
IF Array[0].0 OR Array[1].0 OR Array[2].0 ...(through Array[32]... THEN ArrayBit.0 = TRUE
And I need to do that for every bit of the DINT[32]. Obviously if I typed it all out it would be insanely long.
Doesn't really matter if it's done in ladder or structured text. Sorry in advance for this ridiculous request I'm working on a Rexroth MLC if it matters.