Instruction 110- bit count – Maple Systems MAPware-7000 User Manual

Page 183

Advertising
background image

175

MAPware-7000 Ladder Logic Guide

1010-1041 rev. 00

Instruction 110-

Bit Count

Expression:

Space Requirement: 1 line x 5 column Location Requirement: Middle, Right rail

Function:

When the input is ON, this instruction counts the number of ON (1) bits of A, and stores the
result in B.

Execution Condition:

Input

Operation

Output

OFF

No execution

OFF

ON

Execution

ON

Operand:

Coil or Bit

Register

Constant

Index

Name

X

Y B

S

T.

C.

M

X
W

Y
W

B
W

S
W

T C

D

I

J

K

M
W

A

Source

√ √

B

Count Data

√ √

Example:

When B020 is ON, the number of ON (1) bits of the register BW032 is counted, and the result is
stored in D0102.

The following figure shows an operation example.

Advertising