Mitsubishi Electric MELSEC FX3U Programming Manual page 342

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
2. 32-bit operation (DSUM and DSUMP)
The number of bits in the ON status in [
• The number of bits in the ON status are stored in
• When all bits are OFF in [
Command
input
Before
execution
After
execution
3. Operation result
b15 b14 b13 b12 b11 b10 b9
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
340
D
S
+1,
D
S
1
FNC 43
S
D
DSUM
Word data
K21847
S
K0
K0
D
K21847
S
K0
K9
D
according to the
D
D
1
Bit device
b8
b7
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
+1,
] is counted, and stored to
D
S
D
S
1
1
D
D
, and K0 is stored in
1
], the zero flag M8020 turns ON.
1
Number of bits in
S
[
+1,
the ON status in
...
b31
b17
b16
b15
b14
b13
0 0 0 0 0
0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1
(Number of "1" (ON))
9
0
0
0
0
0
0
0
0
...
b31
b17
b16
b15
b14
b13
0 0 0 0 0
0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1
0
0
0
0
0
0
0
0
0
0
0
value (in 16-bit operation)
D
S
1
S
b6
b5
b4
b3
b2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0
0
0
0
1
0
0
0
0
1
0
0
0
1
0
0
0
0
1
0
0
0
0
1
0
0
0
0
1
0
1
1
1
1
0
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
12 Data Operation – FNC 40 to FNC 49
12.4 FNC 43 – SUM / Sum of Active Bits
.
D
D
1
D
D
+1.
1
S
]
D
D
+1,
K0 is written
32-bit data
b12
b11
b10
b9
b8
b7
b6
b5
8
7
6
5
0
0
0
0
0
0
0
0
b12
b11
b10
b9
b8
b7
b6
b5
32 16 8 4 2 1
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
Word device
b1
b0
Decimal
Hexadecimal
0
0
0
0000
0
1
1
0001
1
0
2
0002
1
1
3
0003
0
0
4
0004
0
1
5
0005
1
0
6
0006
1
1
7
0007
0
0
8
0008
0
1
9
0009
1
0
10
000A
1
1
11
000B
−5
1
1
FFFB
−4
0
0
FFFC
−3
0
1
FFFD
−2
1
0
FFFE
−1
1
1
FFFF
b4
b3
b2
b1
b0
4
3
2
1
0
0
0
0
0
b4
b3
b2
b1
b0
0
1
0
0
1
M8020
(zero
D
flag)
0
ON
1
OFF
1
OFF
2
OFF
1
OFF
2
OFF
2
OFF
3
OFF
1
OFF
2
OFF
2
OFF
3
OFF
OFF
15
OFF
14
OFF
15
OFF
15
OFF
16
OFF

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents