Q:
1、打开pro程序时报错,Memory layout in download information is different!
2、编译程序报错outof range
3、编译提醒数据区域快要满了。
这些问题,总结下来就是如何手动增大TwinCAT的inupt区域、output区域、memory区域,增加保存数据的空间。
A:
TC2:
在TC2中,打开PLC Control->project->option->twincat
(PS:需要有一个项目才会显示twincat选项)
如果伴随Error while loading downloadinformation for current target:login without download possible!报错,使用clean all 后rebulid,重新打开。
TC3:
打开以下路径中的device.xml文件:
C:\TwinCAT\3.1\Components\Plc\devices\4096\1002 0004\1.0.0.4可以看到默认值是128000,手动修改这些即可。
(PS:实际打开这个路径下面发现device.xml的文件挺多的,要改的话就全改掉)