Mitsubishi Electric MELDAS C6 Programming Manual page 288

Hide thumbs Also See for MELDAS C6:
Table of Contents

Advertisement

Program example
Program to obtain the No. of D10 data bits that are set to ON (1) when XB turns ON.
XB
10
8. Function Commands
SUM, SUMP
SUM
D20
D10
Counter data
B15...................................................B0
D10
1 1
0
0
0
0
1 0
The total No. of bits set
to 1 is stored in D20.
Counting with SUM command
- 279 -
Get other manuals https://www.bkmanuals.com
Coding
No. of
Com-
steps
mand
10
LD
11
SUM
15
0
0
1
0
0
0 1
1
6
D20
Device
XB
D10
D20

Advertisement

Table of Contents
loading

This manual is also suitable for:

Meldas c64

Table of Contents