Bcu (On Bits Count) - Panasonic FP7 Series Command Reference Manual

Cpu unit
Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

10.2 BCU (ON Bits Count)

Ladder diagram
Available operation units (●: Available)
Operatio
bit
n unit
i
List of operands
Operand
Description
S
Target device address or the constant (data format: according to the operation unit)
D
Device address to store the result (data format: unsigned 16-bit integer)
Available devices (●: Available)
Operan
d
W
W
X
Y
S
D
(Note 1)
Cannot be specified when the operation unit is 16-bit integer (SS, US).
(Note 2)
Only 16-bit devices, 32-bit devices, and integer constants can be modified. (Real number constants,
and character constants cannot be specified.)
Outline of operation
● This function counts the number of ON bits (bits whose value is 1) in the data specified by
[S], and stores the result in the device address specified by [D].
● The result is stored as an unsigned 16-bit integer.
WUME-FP7CPUPGR-12
US
16-Bit device:
W
W
W
S
D
L
R
L
S
D
T
D
SS
UL
32-Bit
device:
(Note 1)
TS
TE
U
W
WI
C
C
M
O
S
E
10.2 BCU (ON Bits Count)
SL
SF
Real
Integer
numbe
r
D
IX
K
H
SF
F
DF
St
rin
Index
g
modifie
r
(Note 2)
" "
10-5

Advertisement

Table of Contents
loading

Table of Contents