回复:请教编程熟手(循环变量)

sykj

  • 帖子

    40
  • 精华

    0
  • 被关注

    0

论坛等级:新手

注册时间:2003-06-06

普通 普通 如何晋级?

发布于 2003-07-07 16:05:23

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
评论
编辑推荐: 关闭

请填写推广理由:

本版热门话题

SIMATIC S7-300/400

共有54654条技术帖

相关推荐

热门标签

相关帖子推荐

guzhang

恭喜,你发布的帖子

评为精华帖!

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

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

  • 分享

  • 只看
    楼主

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