以批处理模式运行 CodeSys V2.3
恐怕我在3S论坛上进展不大。所以你们现在会被缠住!
我正在使用 3S Codesys v2.3
我正在尝试创建一个启动项目并在我的构建服务器上下载源代码,我想避免将任何硬件插入其中。我使用以下命令行来运行 Codesys:
Build.bat:
"C:\Program Files\3S Software\CoDeSys V2.3\Codesys.exe" OptimusPlcFirmware.pro /cmd Build.cmd /batch
Build.cmd:
echo on
online sim off
项目重建
online bootproject
online sim
code>
在线登录
在线源代码下载
在线注销
在线SIM关闭
当我这样做时,我得到了Windows“遇到了出现问题,需要关闭,并附带“发送错误报告/不发送”按钮”
引导项目已成功创建,源代码似乎都是正确的。谁能解释发生了什么事吗?
谢谢马特
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:
Build.bat:
"C:\Program Files\3S Software\CoDeSys V2.3\Codesys.exe" OptimusPlcFirmware.pro /cmd Build.cmd /batch
Build.cmd:
echo on
online sim off
project rebuild
online bootproject
online sim
online login
online sourcecodedownload
online logout
online sim off
When I do this I get the windows "has encountered a problem and needs to close, with accompanying Send Error Report / Don't Send buttons"
The boot project has been created succesfully and the sourcecode all seems correct. Can anyone explain what's happening?
Thanks
Matt
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我在这里运行 Twincat 2.11,它基于 CoDeSys 2.3,但我的想法可能有用。在目标(以及您的本地运行时)处于运行模式之前,您无法联机(登录)。您的本地运行时可能处于配置模式,因此不接受登录和程序下载。将其切换到“正在运行”并尝试再次运行脚本。
塔拉斯
I run Twincat 2.11 here which is based on CoDeSys 2.3 but may be my idea can be useful. You cannot go Online (Login) until target (your local runtime as well) is in Running mode. Probably your local runtime is in Config mode and thus doesn't accept login and program download. Switch it to Running and try to run your script again.
Taras
我已经使用 CoDeSys 2.3.9.13 进行了测试,并且遇到了类似的问题。看来问题来自于
online sourcecodedownload
命令。不知道在仿真模式下下载PLC中的源代码是否有效。我觉得很奇怪。无论如何,即使不可能,也不应该崩溃。
我希望它有帮助
I've tested with CoDeSys 2.3.9.13 and I have a similar issue. It seems that the problem comes from the
online sourcecodedownload
command.I didn't know if it is valid to download the source code in the PLC in simulation mode. It looks strange to me. In any case, even if it's not possible it shouldn't crash.
I hope it helps