QUOTE (tAotomation @ Apr 27 2009, 06:30 AM)

hallo to everybody,
I would like to know how CoDeSys/TwinCAT systems allocates memory. When I declare VAR_CONF, for example STRUCT, it's possible that this STRUCT overwrites some other variables? How variables are addressed? By simbol or by address. I need to declare STRUCTs like a DB (DATA BLOCK) as on Siemens PLCs, is it possible??
Thanks.
PS: sorry for my bad english.
By default, TwinCAT handles all variable addressing for you, you do not need to worry about one variable "stepping on" another.
TwinCAT does allow you to specify a particular memory location, like this...
sHMIOperatorID AT %MW0: WORD;
Once you have begun to address variables by memory locations, you must excercise caution, as the compiler will give you no warnings.
For details about the Struct, see the previous reply