回复:请教:定时器与扫描周期

yanxiao

版主

  • 帖子

    12270
  • 精华

    48
  • 被关注

    190

论坛等级:至圣

注册时间:2003-06-06

钻石 钻石 如何晋级?

发布于 2003-06-16 20:07:42

0楼

Edition 04/2002
英文版手册198页:

For a timer with a resolution of 1 ms, the timer bit and the current value are updated asynchronous to the
scan cycle. For scans greater than 1 ms, the timer bit and the current value are updated multiple times
throughout the scan.
For a timer with a resolution of 10 ms, the timer bit and the current value are updated at the beginning of
each scan cycle. The timer bit and current value remain constant throughout the scan, and the time
intervals that accumulate during the scan are added to the current value at the start of each scan.
For a timer with a resolution of 100 ms, the timer bit and current value are updated when the instruction is
executed; therefore, ensure that your program executes the instruction for a 100-ms timer only once per
scan cycle in order for the timer to maintain the correct timing.

也就是说,1ms定时是实时更新的,10ms定时Scan开始时更新一次,100ms定时是指令执行到时再更新。
评论
编辑推荐: 关闭

请填写推广理由:

本版热门话题

SIMATIC S7-200

共有33289条技术帖

相关推荐

热门标签

相关帖子推荐

guzhang

恭喜,你发布的帖子

评为精华帖!

快扫描右侧二维码晒一晒吧!

再发帖或跟帖交流2条,就能晋升VIP啦!开启更多专属权限!

  • 分享

  • 只看
    楼主

top
X 图片
您收到0封站内信:
×
×
信息提示
很抱歉!您所访问的页面不存在,或网址发生了变化,请稍后再试。