LSIS MASTER-K200S Instructions & Programming page 190

Table of Contents

Advertisement

2) Program example
-
Program that count the numbers of '1 ' in P020 and P021, then store the count result into D0030
when M020 is switched on.
M020
F
E
P020
0
0
F
E
P021
1
0
F
E
D0030
0
0
DBSUMP P020
D
C
B
A
9
8
1
1
1
0
1
0
D
C
B
A
9
8
1
0
0
0
0
1
D
C
B
A
9
8
0
0
0
0
0
0
5-78
Chapter 5. Application instructions
D0030
7
6
5
4
3
2
1
1
0
1
0
7
6
5
4
3
2
1
0
1
1
0
7
6
5
4
3
2
0
0
0
1
0
1
0
The numbers
0
1
1
of 1 = 9
1
0
The numbers
1
1
0
of 1 = 8
1
0
Total num bers
0
0
1
of 1 = 17
(h0011)

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MASTER-K200S and is the answer not in the manual?

Table of Contents