EasyManua.ls Logo

Mitsubishi FX3G Series

Mitsubishi FX3G Series
944 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
320
FX3G/FX3U/FX3GC/FX3UC Series
Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49
12.4 FNC 43 – SUM / Sum of Active Bits
Caution
While the command input is OFF, the instruction is not executed.
The output of the number of bits in the ON status is latched in the previous status.
Program example
When X000 is ON, the number of bits in the ON status in D0 is counted, and stored to D2.
X000
S
îš‚
D
îš‚
The number of "1" in D0 is stored to D2.
FNC 43
SUM
D 0 D 2
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1
D 0 = K0 D 2 = K0
M8020=ON
M8020=OFF
32 16 8 4 2 1
D 0 = K21847 D 2 = K9
0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Zero flag
Zero flag

Table of Contents

Other manuals for Mitsubishi FX3G Series

Related product manuals