Applies To:
  • CitectSCADA 1.00 1.01 1.10 1.11 1.20 2.00 2.01 2.10

Question: How much cicode can I have in my system ? Are there any limits to the amount of Cicode, Citect can handle? 

Cicode has the following limitations. You may have a maximum of 2048 cicode functions and each function must contain less than 64K of compiled cicode. In version 2.10 and later the maximum number of cicode function has been increased to 2700.

These limits allow for a huge amount of cicode to be developed. I have seen systems which contained around 87 thousand lines of cicode. This system is so large it took 45 minutes to compile the cicode on a 66 Mhz 486 computer. This should give you an indication of the size of cicode Citect can handle. If you have a large amount of cicode you must still design you cicode to be efficient as poor design can cause poor system performance.

You could possibly run into the maximum number of cicode functions if you have many small functions. You may need many small functions if you want to generate indirect writes back to the PLCs by using one function per write. In later versions of Citect for Windows, indirect writes will be supported directly via a new cicode function so this will not be required and will greatly reduce the maximum number of functions needed.