16-Bit Data Checks: Sum - Mitsubishi Electric MELSEC Q Series Programming Manual

Motion controller
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

5 SEQUENCE INSTRUCTIONS FOR MOTION CPU

5.4.32 16-bit data checks: SUM

Setting
data
X
Y
M
(S)
(D)
[Setting data]
[Function]
Bit device
SM
F
T
C
D
[Instruction]
Command
SUM
Setting data
(S)
Number of the devices where the total number of the bits will be stored
(D)
(1) From the 16-bit data in the device designated by (S), stores the total number of
bits where "1" is set, in the device designated by (D).
(S) before execution
(D) after execution
Usable device
Word device
W
T
C
SD
Z
SUM
Number of the devices where the total number of bits of "1" is counted
b15
1
1
0
0
1
0
b15
0
0
0
0
0
0
The total number of "1"s is set in BIN
(In this example, 8 is set.)
5 - 72
Constant
Pointer
Level
K
H
P
N
(S)
(D)
Description
(BIN 16 bits)
(BIN 16 bits)
16 bits
1
1
0
0
1
1
0
0
0
Total number of "1"s
0
0
0
0
0
0
1
0
0
Digit
desig-
Index
nation
: Usable
b0
1
b0
0

Advertisement

Table of Contents
loading

Table of Contents