登录
首页 PLC论坛 PLC论坛
回帖 发帖
正文

主题:求 助!关于西门子SFC1使用

点击:3021 回复:4

我是初学。请教各位师傅。
我在西门子S7400里使用SFC1功能。
请问SFC1功能的输出端用什么类型的变量来存储时间?
非常感谢!
05-08-30 12:49
TOD类型
05-08-30 13:14
不对吧 ,应该是date-and_time  变量 ,该变量只存在在L区和DB数据中
05-08-30 16:21
以下是在线帮助
Description
With SFC 1 "READ_CLK" (read system clock), you read the current date or current time of the system clock of the CPU.
Parameter Declaration Data Type Memory Area Description
RET_VAL OUTPUT INT I, Q, M, D, L If an error occurs during the execution of the
function, the return value contains an error
code.
CDT OUTPUT DT D,L The current date and current time are output at
the CDT output.
05-08-30 16:53
谢谢!
05-09-02 17:10

工控新闻

更多新闻资讯