How to get .EXE file from TwinCAT XAE project to run on TwinCAT XAR

930 views Asked by At

I hope this message finds you well. I have worked on TwinCAT XAE for past couple of months. I have developed and tested my programs on my Development PC using TwinCAT XAE and Visual studio.

Now I want to shift my programs from my development PC to my Runtime PC (Windows) which is eventually going to be installed by the machine. I want some guidance regarding transfering my programs from XAE to XAR. In simple words I want to know how to get the .EXE file to run on the TwinCAT XAR.

I am also facing some configuration issues with XAR. Can you share any installation guide or prerequisites for the TwinCAT XAR software

1

There are 1 answers

3
Mikkel On BEST ANSWER

You cannot (and should not) make an .EXE file for your target platform (XAR).

.EXE files are run in Windows User Mode and is thus not Real-Time or deterministic. TwinCAT code needs to be run in Kernel mode to ensure Real-Time and deterministic behavior.

Instead you should connect to your target through Visual Studio. You can change from to your target platform by pressing on Local and pressing Choose Target System Seen here.

Here is a bit of information about how this works.

Afterwards you simply Activate the configuration and your code will run on the target platform.