回复:各位老师:如何知道MD0中有多少位是1

万泉河

  • 帖子

    10904
  • 精华

    132
  • 被关注

    1012

论坛等级:至圣

注册时间:2003-06-06

钻石 钻石 如何晋级?

发布于 2006-12-04 19:20:02

0楼

FC99 BITSUM

Des cription

The BITSUM function counts the number of bits that are set to a value of 1 in the input IN and returns this as the function's value.

FC99

Example


If the signal state of input I0.0 is 1 (activated) the BITSUM function is executed. In this example, the value returned in MW0 is 13 (揇?in hexadecimal notation), which is the sum of bits set to 1 in the double word input hex value DW#16#12345678.
微信公众号:PLC标准化编程,ZHO6371995
评论
编辑推荐: 关闭

请填写推广理由:

本版热门话题

SIMATIC S7-200

共有33276条技术帖

相关推荐

热门标签

相关帖子推荐

guzhang

恭喜,你发布的帖子

评为精华帖!

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

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

  • 分享

  • 只看
    楼主

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