Mitsubishi Electric MELDAS C6 Programming Manual page 287

Hide thumbs Also See for MELDAS C6:
Table of Contents

Advertisement

SUM, SUMP ... Count of No. of 16-bit data set to 1
Bit device
X
Y M
L
F
B SB T SM V T
S
D
SUM
SUMP
Function
The total No. of bits that are set to 1 in the 16-bit data of the device designated with S is stored in D.
S before execution
D after execution
Execution conditions
The execution conditions for SUM, SUMP are as shown below.
Operation command OFF
SUM
SUMP
8. Function Commands
SUM, SUMP
Usable device
Word device
C D R W SW Z SD K
Operation command
16 bits
1 1
0
0
1
0
1 1
B15...................................................B0
0 0
0
0
0
0
0 0
0
The total No. of "1" bits is set in BIN.
(In this example, 8 is set.)
ON
Executed per scan
- 278 -
Get other manuals https://www.bkmanuals.com
Con-
Pointer
stant
H
P
SUM
S
SUMP
S
Setting data
Head No. of device
S
to count the total No.
of bits set to 1.
Head No. of device
where the total No. of
D
bits is stored.
0
0
1
1
0
0 0
1
Total No. of "1" bits
0
0
0
1
0 0
0
Executed per scan
Digit
No. of
desig-
Index
steps
nation
4
D
D

Advertisement

Table of Contents
loading

This manual is also suitable for:

Meldas c64

Table of Contents