西门子S7-300、400 定时器执行原理

已锁定

西门大观人

  • 帖子

    39
  • 精华

    0
  • 被关注

    2

论坛等级:游民

注册时间:2006-01-26

普通 普通 如何晋级?

西门子S7-300、400 定时器执行原理

2557

7

2009-10-30 09:57:10

该内容出自德国工程师写的教科书。
When a timer is started, the CUP uses the programmed time value as the timer's running time. The operating system updates timers at fixed intervals and independently of the user program scan, that is ,it decrements an active timer's time value as per the time period indicated by time base.

When the value reaches zero, the timer is regraded as expired. The CPU then sets the timer status(signal state"0" or "1",depending on the type of timer involved)and drops all futher activities until the timer is started again.

when a time value of zero is specified, the timer remains active until the CPU processes it and discovers that the timer has expired.

Timers are update asynchronously to the program scan. It is therefore possible that the status of the timer at the start of the cycle may differ from its status at the end of the cycle. If you use timer instructions at only one location in the program and in the suggested order(see below), there will be no errors due to asynchronous timer updating.
从这段话中我们能看到定时器是异步于程序扫描周期的,也就是说在一个程序的扫描周期内,定时器的状态可能出现两种形式,正如上面所言,可能在程序的头,定时器状态为0,可能在程序的尾部,定时器状态为1。
西门子S7-300、400 定时器执行原理 已锁定
编辑推荐: 关闭

请填写推广理由:

本版热门话题

SIMATIC S7-300/400

共有54617条技术帖

相关推荐

热门标签

相关帖子推荐

guzhang

恭喜,你发布的帖子

评为精华帖!

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

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

  • 分享

  • 只看
    楼主

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