简体   繁体   English

如何从 TwinCAT XAE 项目中获取 .EXE 文件以在 TwinCAT XAR 上运行

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

I hope this message finds you well.我希望这条消息能找到你。 I have worked on TwinCAT XAE for past couple of months.在过去的几个月里,我一直在研究 TwinCAT XAE。 I have developed and tested my programs on my Development PC using TwinCAT XAE and Visual studio.我已经使用 TwinCAT XAE 和 Visual Studio 在我的开发 PC 上开发和测试了我的程序。

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.现在我想将我的程序从我的开发 PC 转移到我的运行时 PC (Windows),最终将由机器安装。 I want some guidance regarding transfering my programs from XAE to XAR.我想要一些关于将我的程序从 XAE 转移到 XAR 的指导。 In simple words I want to know how to get the.EXE file to run on the TwinCAT XAR.简单来说,我想知道如何让 .EXE 文件在 TwinCAT XAR 上运行。

I am also facing some configuration issues with XAR.我还面临 XAR 的一些配置问题。 Can you share any installation guide or prerequisites for the TwinCAT XAR software您能否分享 TwinCAT XAR 软件的任何安装指南或先决条件

You cannot (and should not) make an.EXE file for your target platform (XAR).您不能(也不应该)为您的目标平台 (XAR) 创建一个 .EXE 文件。 .EXT files are run in Windows User Mode and is thus not Real-Time or deterministic. .EXT 文件在 Windows 用户模式下运行,因此不是实时的或确定性的。 TwinCAT code needs to be run in Kernel mode to ensure Real-Time and deterministic behavior. TwinCAT 代码需要在 Kernel 模式下运行,以确保实时和确定性行为。

Instead you should connect to your target through Visual Studio.相反,您应该通过 Visual Studio 连接到您的目标。 You can change from to your target platform by pressing on Local and pressing Choose Target System您可以通过按本地并按选择目标系统来更改目标平台看到这里。

Here is a bit of information about how this works. 这是有关其工作原理的一些信息。

Afterwards you simply Activate the configuration and your code will be run on the target platform.之后您只需激活配置,您的代码将在目标平台上运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM