Mitsubishi Electric MELDAS C6 Programming Manual page 290

Hide thumbs Also See for MELDAS C6:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Meldas c64

Table of Contents