Compax3 Troubleshooting - CODESYS Error 5846 #1046 Too Many 16BIT Variables

When compiling if receiving Error 5846: #1046: Too many 16bit variables declared, this is commonly caused by trying to compile the program for All Versions for backwards compatibility to CoDeSys' initial release versions.

c3_codesys_5846_5119-20240521-000911.jpg

 

Unless using older Compax3s, always use >=V03.04.00 (C3 2007R07) to give full functionality.  Using All Versions will compile for older firmware and some commands and functions may not be available.  Using >=V03.04.00 builds the project for succinctly and many times eliminates this error.

codesys_compiler_v3_04_00_3367-20240521-000911.jpg

 

 

4/10/2014jh