回复:关于BR与RLO~

shine

  • 帖子

    8803
  • 精华

    39
  • 被关注

    157

论坛等级:至圣

注册时间:2003-06-06

普通 普通 如何晋级?

发布于 2006-06-27 17:42:12

0楼

这是帮助中对于BR的说明。
2个功能,如果不需要对BR进行任何操作,那就在程序开始的时候保存调用该块之前的BR,然后在块结束时恢复BR,另外是判断块中程序是否正确执行而设置BR位,
The BR bit is bit 8 of the status word. The BR bit transfers thesults
obtained from processing Statement List (STL) instructions on to the
next instructions to be processed. When writing a function block or
function in STL that you want to call from LAD/FBD, you have to store
the result of the logic operation (RLO) in the BR bit immediately
before leaving the block in order to provide the enable output (ENO)
or the LAD/FBD box. You do this using the SAVE, JCB, JNB
instructions. When you call a system function block (SFB) or a system
function (SFC) in your program, the SFB or SFC indicates whether the
CPU was able to execute the function with or without errors by
providing the following information in the binary result bit: ? If an
error occurred during execution, the BR bit is ‘’ 0 ” . ? If the
function was executed with no error, the BR bit is ‘’ 1 ” .
评论
编辑推荐: 关闭

请填写推广理由:

本版热门话题

SIMATIC S7-300/400

共有54717条技术帖

相关推荐

热门标签

相关帖子推荐

guzhang

恭喜,你发布的帖子

评为精华帖!

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

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

  • 分享

  • 只看
    楼主

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