回复:请教 OPN DB [# ]

东方红一红

版主 西门子1847工业学习平台

  • 帖子

    6779
  • 精华

    50
  • 被关注

    142

论坛等级:至圣

注册时间:2003-07-12

钻石 钻石 如何晋级?

发布于 2013-03-13 14:04:37

1楼

1,因为 CALL "CNT2_CTR" 之后, "CNT2_CTR"程序体内可能打开其他DB,所以此后必须重新 OPN DB [#cnt2_db] ,指向所操作的DB。

2,SAVE saves the RLO into the BR bit. The first check bit /FC is not reset. For this reason, the status of the BR bit is included in the AND logic operation in the next network.

The use of SAVE and a subsequent query of the BR bit in the same block or in secondary blocks is not recommended because the BR bit can be changed by numerous instructions between the two. It makes sense to use the SAVE instruction before exiting a block because this sets the ENO output (= BR bit) to the value of the RLO bit and you can then add error handling of the block to this.
知其道,用其妙!
评论
编辑推荐: 关闭

请填写推广理由:

本版热门话题

SIMATIC S7-300/400

共有54617条技术帖

相关推荐

热门标签

相关帖子推荐

guzhang

恭喜,你发布的帖子

评为精华帖!

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

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

  • 分享

  • 只看
    楼主

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