回复:如何实现某一段程序的循环操作

万泉河

  • 帖子

    10906
  • 精华

    132
  • 被关注

    1018

论坛等级:至圣

注册时间:2003-06-06

钻石 钻石 如何晋级?

发布于 2002-07-09 13:22:35

0楼

STL Explanation
L L#1 Load the integer constant (32 bit) into ACCU?.
T MD20 Transfer the contents from ACCU? into MD20 (initialization).
L 5 Load number of loop cycles into ACCU?-L.
NEXT: T MW10 Jump label = loop start / transfer ACCU?-L to loop counter.
L MD20
* D Multiply current contents of MD20 by the current contents of MB10.
T MD20 Transfer the multiplication result to MD20.
L MW10 Load contents of loop counter into ACCU?.
LOOP NEXT Decrement the contents of ACCU? and jump to the NEXT jump label if ACCU?-L > 0.
L MW24 Program scan resumes here after loop is finished.
L 200
>I

以上是关于LOOP的HELP
微信公众号:PLC标准化编程,ZHO6371995
评论
编辑推荐: 关闭

请填写推广理由:

本版热门话题

SIMATIC S7-300/400

共有54755条技术帖

相关推荐

热门标签

相关帖子推荐

guzhang

恭喜,你发布的帖子

评为精华帖!

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

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

  • 分享

  • 只看
    楼主

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