codesys

Pointers and online change in TwinCAT and CoDeSys

Are pointers safe against online change of running PLC program in TwinCAT 2.10 and in CoDeSys 2.3 on which the first one is based? What happens if memory block gets reallocated as part of online program change and there are pointers pointing to that memory block? ...

Run CodeSys V2.3 in batch mode

Hi Folks, I'm afraid I'm not making much progress on the 3S forums. So you lot are going to get pestered now! I'm using 3S Codesys v2.3 I'm trying to create a boot project and do sourcecode download on my build server and I'd like to avoid having any hardware plugged into it. I'm using the following command line to run Codesys: Bui...

Defining extern "C" function in C#

I have an ActiveX control written in C# and working when run in an ActiveX compatible program (CoDeSys). The problem I've come across is that in order to allow CoDeSys to interact with the ActiveX control, CoDeSys requires the dll to export the function prototype: void ExecuteActiveXCall(IUnknown* pUnk, char* pszId, char* pszParam, char...