PDK是PMAC运动控制器的上位机开发包,通过该开发包可以定制化开发客户的上位机程序。
以C#为例,开始编程时,需要注意如下工作:
1,安装&使用基于Visual Studio2015的C#编程环境。
2,新建C#项目,在项目属性中设置“目标框架”为.NET Framework4.6.1,“输出类型”为Windows应用程序。
3,增加三条using:
using ODT.PowerPmacComLib;
using ODT.Common.Services;
using ODT.Common.Core;
4,在namespace命名空间内,增加:
delegate bool ComErrorInvokeDelegate();
delegate void AppendTextDelegate(String message);
5,在类class from1下,增加5行:
ISyncGpasciiCommunicationInterfa