When trying to use it with my PLC Controller I get:
Bad declaration, use '%MX' for 'BOOL' variable
With CoDeSys_SP_Win PLC it works correctly.
Is there a way to bit align the array. Meaning
myWORD AT %MW0 : WORD; myBoolArray AT %MB0 : ARRAY[0..15] OF BOOL;
myBoolArray[0] would equal myWord.0 would equal %MX0.0 myBoolArray[1] would equal myWord.1 would equal %MX0.1 myBoolArray[2] would equal myWord.3 would equal %MX0.2 myBoolArray[3] would equal myWord.4 would equal %MX0.3 myBoolArray[4] would equal myWord.5 would equal %MX0.4 myBoolArray[5] would equal myWord.6 would equal %MX0.5 myBoolArray[6] would equal myWord.7 would equal %MX0.6 myBoolArray[7] would equal myWord.8 would equal %MX0.7 myBoolArray[8] would equal myWord.9 would equal %MX1.0 etc
_________________ The Original SoMachine Ninja
