====== WBCNT, DWBCNT ====== ''WBCNT s, d'' \\ ''DWBCNT s, d'' \\ Counts the number of active bits (1s) in s in stores the result in d. WBCNT operates words (16 bits) and DWBCNT operates on double words (32 bits). {{ :cubloc:wbcnt_dwbcnt:wbcnt.png?nolink |}} | |P |M |F |S |C |T |D |Constants| |s | | | | |O |O |O |O| |d | | | | |O |O |O | | [[cubloc:index#Ladder_Logic:|Go CUBLOC Ladder Logic home]]