发布于 2008-03-12 15:00:26
0楼
可以用脚本实现:
先新建PLC的变量
变量名称 数据类型
年 Word
月 Byte
日 Byte
时 Byte
分 Byte
秒 Byte
定时触发以下脚本就可以了
SetValue SmartTags("年"), DatePart("yyyy", Date)
SetValue SmartTags("月"), DatePart("m", Date)
SetValue SmartTags("日"), DatePart("d", Date)
SetValue SmartTags("时"), DatePart("h", Time)
SetValue SmartTags("分"), DatePart("n", Time)
SetValue SmartTags("秒"), DatePart("s", Time)
助人为主,捣乱为辅,偶尔灌水,有时潜水!开心就好