I am quite new to TwinCAT 3.I am trying to import a C code from Dymola to TwinCAT 3.I have gone through BECKHOFF manual but it didn't help much.
It would be grateful,if you could help me.
I am quite new to TwinCAT 3.I am trying to import a C code from Dymola to TwinCAT 3.I have gone through BECKHOFF manual but it didn't help much.
It would be grateful,if you could help me.
Ok, i understand. Beckhoff place restrictions on both how the code is put together and how much of the language / frameworks you can use. You can't use third party dlls either (so the wrapper idea is out). You can import modules that have been put together in the TwinCAT way.
To start with, you will need to port your code into TwinCAT C++ directly, following the method of putting modules together, as per the instructions you followed. How much you'll actually need to change depends on the complexity of the c code, of course. A lot is syntactically identical. You can Google "compile c code for c++" for the main differences.
I'm no expert on the c++ bit of TC3, but this is my understanding. All the best with it!
LazzMaTazz