Is the variable declared as RETAIN or as PERSISTENT (or even both)? TwinCAT behaves different than CoDeSys (or IndraLogic) concerning these keywords. With all TwinCAT target systems supported by Control plus, it is never necessary to declare a variable as RETAIN. With TwinCAT, RETAIN variables are linked to a NOVRAM hardware memory. Instead, just use PERSISTENT and the variables will be persisted on the Windows file system.
... View more