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).

P M F S C T D Constants
s O O O O
d O O O

Go CUBLOC Ladder Logic home