32-Bit Data Bit Check (Sum, Sump, Dsum, Dsump) - Mitsubishi MELSEC-A Series Programming Manual

Type acpu/qcpu-a (a mode)
Hide thumbs Also See for MELSEC-A Series:
Table of Contents

Advertisement

7. APPLICATION INSTRUCTIONS
7.4.2 16-, 32-bit data bit check
(SUM, SUMP, DSUM, DSUMP)
Bit device
X
Y
M
SUM
(S)
O
O
O
DSUM (S)
O
O
O
Operation commands
Functions
Available Device
L
S
B
F
T
C
O
O
O
O
O
O
O
O
O
O
O
O
SUM
Stores in A0 the total number of bits which are one found in the 16-bit data of device
specified at (S).
Before execution
After execution
The A0J2HCPU stores the total number of bits also in D9003.
DSUM
Stores to A0 the total number of bits which are one found in the 32-bit data of device
specified at (S).
Before execution
After execution
Applicable
CPU
Word (16-bit) device
D
W
R
A0
A1
Z
O
O
O
O
O
O
O
O
O
O
O
(S)
(S)
P
Total number of 1s is stored in BIN.(8 pcs. in this example)
Total number of 1s is stored in BIN. (16 pcs. in this example)
7 − 43
All CPUs
Constant Pointer
Level
V
K
H
P
I
N
K1 to
O
K1 to
Indicates the instruction symbol.
SUM, DSUM
Setting data
Head number of device
which counts the total
(S)
number of bits which are
"1".
16 bits
Total number of 1s
32 bits
MELSEC-A
M9012 (M9010, M9011)
K4
O
O
K8

Advertisement

Table of Contents
loading

This manual is also suitable for:

Acpu-common-p-e13j741AcpuQcpu-a

Table of Contents