OSCAT Forum

oscat.lib => oscat.lib fuer TwinCAT/CoDeSys => Thema gestartet von: elektronikmuh in 23. August 2009, 10:52:50

Titel: Built error on CodeSysv2.23
Beitrag von: elektronikmuh in 23. August 2009, 10:52:50
 Hi all
I have add Oscatlibv3.10 library file into CodeSysv2.3. When i try to write simple program it's prompt me built error that i dont understand where is my mistake, can you help me?
My sample program link:http://rapidshare.com/files/270460060/Sample.pro.html (http://rapidshare.com/files/270460060/Sample.pro.html)
Thanks for all reply...
Titel: Re: Built error on CodeSysv2.23
Beitrag von: hugo in 23. August 2009, 12:30:17
your program works just fine.
to be more readable and for better programming structure you should delare your variables in plc_prog and not as global vars.
you are not using any functions from the oscat library at all.

i suspect you have the following problem:

depending on your target selection under resource / targets you can select the max number of Bausteine.
this entry should be set to 1023 becuase of aprox. 800 components in the oscat library.
codesys will compile all library components even the ones not used at all.