发布于 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