I’m defining an array as in the example from the help: TYPE \tbufferArray2 : ARRAY [0..50] OF BYTE; END_TYPE\t This makes two errors in the PC Worx: “Illegal IEC syntax at or before ‘TYPE’!” and “Illegal IEC syntax at or before ‘END_TYPE’!”. I used the example in help that describe how to define an array: TYPE graph : ARRAY[1..23] OF INT; END_TYPE What is wrong in the first declaration and how can I fix it?
I hope I can help. Can you please clarify - are you using PC Worx, or PLCnext Engineer software? What version of this software are you using? Which example from the help are you looking at? Are you defining the new type in a Data Type worksheet? The error you are seeing indicates that perhaps this is in a Code worksheet (which will not work). If you are using PC Worx, then you will get the best support from your local Phoenix Contact office.