项目案例程序下载:https://tr.beckhoff.com.cn/pluginfile.php/92012/mod_book/chapter/15136/CX7000%20NTP%20Provider.tnzip
CX70xx 支持NTP provider时钟同步的镜像系统需要为140501及以上版本
之后需要在TcCOM Objects中添加一个NTP Module
再到创建好的Module中,设置Context的Task为PlcTask
之后进入Parameter(Init)选项卡,如需将CX7000设置为NTP时钟服务器,那需要将ClientPara中的.bEnable从True更改为False,将ServerPara中的.bEnable设置为True。
作为Server的时候:
bEnable:true
serverPort:123
stratum为2(即完成ntp的对时功能设置)
如需将CX7000设置为NTP时钟客户端,那么反向设置即可。
作为Client的时候:
bEnable:true
ServerName:随机
ServerAddress:是ntpServer的IP
serverPort:是ntpServer的Port(默认123)
2025.4.11 范小军 供稿